* Renamed all tags (eg. v0_2_83 -> 0.2.83).
[vlc.git] / configure
blobb7f1f10e823431f8355410154181848997daad82
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
149 esac
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
226 IFS=" $as_nl"
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237 exec 6>&1
240 # Initializations.
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
261 ac_unique_file="include/main.h"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
338 ac_prev=
339 for ac_option
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
352 case $ac_option in
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
371 --config-cache | -C)
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
634 esac
635 done
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
710 else
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
783 _ACEOF
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
814 cat <<\_ACEOF
816 System types:
817 --build=BUILD configure for building on BUILD [guessed]
818 --host=HOST cross-compile to build programs to run on HOST [BUILD]
819 --target=TARGET configure for building compilers for TARGET [HOST]
820 _ACEOF
823 if test -n "$ac_init_help"; then
825 cat <<\_ACEOF
827 Optional Features:
828 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
829 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
830 --disable-nls do not use Native Language Support
831 --disable-optimizations disable compiler optimizations (default enabled)
832 --disable-altivec disable altivec optimizations (default enabled on PPC)
833 --enable-debug debug mode (default disabled)
834 --enable-release activate extra optimizations (default disabled)
835 --enable-dvd DVD input module (default enabled)
836 --enable-dvdread dvdread input module (default disabled)
837 --enable-dvbpsi dvbpsi ts demux module (default disabled)
838 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)
839 --enable-satellite satellite card support (default disabled)
840 --enable-avi AVI demux module (default enabled)
841 --enable-mad libmad module (default disabled)
842 --enable-ffmpeg ffmpeg codec (default disabled)
843 --enable-a52 AC3 support with liba52 (default enabled)
844 --enable-vorbis Ogg/Vorbis decoder support (default enabled)
845 --enable-x11 X11 support (default enabled)
846 --enable-xvideo XVideo support (default enabled)
847 --enable-sdl SDL support (default enabled)
848 --enable-qte QT Embedded support (default disabled)
849 --enable-directx Win32 DirectX support (default enabled on Win32)
850 --enable-fb Linux framebuffer support (default enabled on Linux)
851 --enable-mga Linux kernel Matrox support (default disabled)
852 --enable-ggi GGI support (default disabled)
853 --enable-glide Glide (3dfx) support (default disabled)
854 --enable-aa aalib output (default disabled)
855 --enable-dsp Linux /dev/dsp support (enabled on Linux)
856 --enable-esd Esound library support (default disabled)
857 --enable-arts aRts sound server (default disabled)
858 --enable-alsa ALSA sound support for Linux (default disabled)
859 --enable-waveout Win32 waveOut module (default enabled on Win32)
860 --enable-gtk Gtk+ support (default enabled)
861 --enable-familiar Familiar Gtk+ support (default disabled)
862 --enable-gnome Gnome interface support (default disabled)
863 --enable-qt Qt interface support (default disabled)
864 --enable-kde KDE interface support (default disabled)
865 --enable-opie Qt embedded interface support (default disabled)
866 --enable-macosx MacOS X support (default enabled on MacOS X)
867 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)
868 --enable-intfwin Win32 interface support (default disabled)
869 --enable-ncurses ncurses interface support (default disabled)
870 --enable-lirc lirc support (default disabled)
871 --enable-gprof gprof profiling (default disabled)
872 --enable-cprof cprof profiling (default disabled)
873 --enable-pth GNU Pth support (default disabled)
874 --enable-st State Threads (default disabled)
875 --disable-plugins make all plug-ins built-in (default plug-ins enabled)
877 Optional Packages:
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
881 --with-included-gettext use the GNU gettext library included here
883 Optimization options:
884 --with-tuning=ARCH enable special tuning for an architecture
885 (default i686 on IA-32 and 750 on PPC)
886 Input plugins:
887 --with-dvdcss=PATH libdvdcss headers and libraries
888 --with-dvdcss-tree=PATH libdvdcss tree for static linking
889 --with-dvdread=PATH libdvdread headers and libraries
890 --with-dvbpsi=PATH libdvbpsi headers and libraries
891 --with-dvbpsi-tree=PATH libdvbpsi tree for static linking
892 Codec plugins:
893 --with-mad=PATH path to libmad
894 --with-mad-tree=PATH mad tree for static linking
895 --with-ffmpeg=PATH path to ffmpeg installation
896 --with-ffmpeg-tree=PATH ffmpeg tree for static linking
897 --with-a52-tree=PATH a52dec tree for static linking
898 Video plugins:
899 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)
900 --with-sdl-prefix=PATH path to libsdl (needed for cross-compiling),
901 e.g use as:
902 --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/usr)
903 --with-qte=PATH Qt Embedded headers and libraries
904 --with-directx=PATH Win32 DirectX headers and libraries
905 --with-ggi=PATH path to libggi
906 --with-glide=PATH path to libglide
907 Audio plugins:
908 Interface plugins:
909 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)
910 --with-gtk-prefix=PATH path to libgtk (needed for cross-compiling),
911 e.g use as:
912 --with-gtk-prefix=/usr/local/arm/2.95.3/arm-linux/usr)
913 --with-gpe-prefix=PATH gpe installation path prefix (default search in \$PATH)
914 --with-bcbuilder=PATH Borland C++ Builder installation path
915 Misc options:
916 --with-words=endianness set endianness (big or little)
918 Some influential environment variables:
919 CC C compiler command
920 CFLAGS C compiler flags
921 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
922 nonstandard directory <lib dir>
923 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
924 headers in a nonstandard directory <include dir>
925 CPP C preprocessor
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
930 _ACEOF
933 if test "$ac_init_help" = "recursive"; then
934 # If there are subdirs, report their specific --help.
935 ac_popdir=`pwd`
936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937 test -d $ac_dir || continue
938 ac_builddir=.
940 if test "$ac_dir" != .; then
941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942 # A "../" for each directory in $ac_dir_suffix.
943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 else
945 ac_dir_suffix= ac_top_builddir=
948 case $srcdir in
949 .) # No --srcdir option. We are building in place.
950 ac_srcdir=.
951 if test -z "$ac_top_builddir"; then
952 ac_top_srcdir=.
953 else
954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955 fi ;;
956 [\\/]* | ?:[\\/]* ) # Absolute path.
957 ac_srcdir=$srcdir$ac_dir_suffix;
958 ac_top_srcdir=$srcdir ;;
959 *) # Relative path.
960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 esac
963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 # absolute.
965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
966 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
970 cd $ac_dir
971 # Check for guested configure; otherwise get Cygnus style configure.
972 if test -f $ac_srcdir/configure.gnu; then
973 echo
974 $SHELL $ac_srcdir/configure.gnu --help=recursive
975 elif test -f $ac_srcdir/configure; then
976 echo
977 $SHELL $ac_srcdir/configure --help=recursive
978 elif test -f $ac_srcdir/configure.ac ||
979 test -f $ac_srcdir/configure.in; then
980 echo
981 $ac_configure --help
982 else
983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 cd $ac_popdir
986 done
989 test -n "$ac_init_help" && exit 0
990 if $ac_init_version; then
991 cat <<\_ACEOF
993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
994 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997 _ACEOF
998 exit 0
1000 exec 5>config.log
1001 cat >&5 <<_ACEOF
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1005 It was created by $as_me, which was
1006 generated by GNU Autoconf 2.53. Invocation command line was
1008 $ $0 $@
1010 _ACEOF
1012 cat <<_ASUNAME
1013 ## --------- ##
1014 ## Platform. ##
1015 ## --------- ##
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034 _ASUNAME
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 for as_dir in $PATH
1039 IFS=$as_save_IFS
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1042 done
1044 } >&5
1046 cat >&5 <<_ACEOF
1049 ## ----------- ##
1050 ## Core tests. ##
1051 ## ----------- ##
1053 _ACEOF
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Also quote any args containing shell meta-characters.
1059 ac_configure_args=
1060 ac_sep=
1061 for ac_arg
1063 case $ac_arg in
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n ) continue ;;
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case " $ac_configure_args " in
1073 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1074 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 ac_sep=" " ;;
1076 esac
1077 # Get rid of the leading space.
1078 done
1080 # When interrupted or exit'd, cleanup temporary files, and complete
1081 # config.log. We remove comments because anyway the quotes in there
1082 # would cause problems or look ugly.
1083 # WARNING: Be sure not to use single quotes in there, as some shells,
1084 # such as our DU 5.0 friend, will then `close' the trap.
1085 trap 'exit_status=$?
1086 # Save into config.log some information that might help in debugging.
1088 echo
1089 cat <<\_ASBOX
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1093 _ASBOX
1094 echo
1095 # The following way of writing the cache mishandles newlines in values,
1097 (set) 2>&1 |
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 *ac_space=\ *)
1100 sed -n \
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1105 sed -n \
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108 esac;
1110 echo
1111 if test -s confdefs.h; then
1112 cat <<\_ASBOX
1113 ## ----------- ##
1114 ## confdefs.h. ##
1115 ## ----------- ##
1116 _ASBOX
1117 echo
1118 sed "/^$/d" confdefs.h
1119 echo
1121 test "$ac_signal" != 0 &&
1122 echo "$as_me: caught signal $ac_signal"
1123 echo "$as_me: exit $exit_status"
1124 } >&5
1125 rm -f core core.* *.core &&
1126 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1127 exit $exit_status
1129 for ac_signal in 1 2 13 15; do
1130 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1131 done
1132 ac_signal=0
1134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1135 rm -rf conftest* confdefs.h
1136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1137 echo >confdefs.h
1139 # Predefined preprocessor variables.
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_NAME "$PACKAGE_NAME"
1143 _ACEOF
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1148 _ACEOF
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1153 _ACEOF
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_STRING "$PACKAGE_STRING"
1158 _ACEOF
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1163 _ACEOF
1166 # Let the site file select an alternate cache file if it wants to.
1167 # Prefer explicitly selected file to automatically selected ones.
1168 if test -z "$CONFIG_SITE"; then
1169 if test "x$prefix" != xNONE; then
1170 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1171 else
1172 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1175 for ac_site_file in $CONFIG_SITE; do
1176 if test -r "$ac_site_file"; then
1177 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1178 echo "$as_me: loading site script $ac_site_file" >&6;}
1179 sed 's/^/| /' "$ac_site_file" >&5
1180 . "$ac_site_file"
1182 done
1184 if test -r "$cache_file"; then
1185 # Some versions of bash will fail to source /dev/null (special
1186 # files actually), so we avoid doing that.
1187 if test -f "$cache_file"; then
1188 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1189 echo "$as_me: loading cache $cache_file" >&6;}
1190 case $cache_file in
1191 [\\/]* | ?:[\\/]* ) . $cache_file;;
1192 *) . ./$cache_file;;
1193 esac
1195 else
1196 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1197 echo "$as_me: creating cache $cache_file" >&6;}
1198 >$cache_file
1201 # Check that the precious variables saved in the cache have kept the same
1202 # value.
1203 ac_cache_corrupted=false
1204 for ac_var in `(set) 2>&1 |
1205 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1207 eval ac_new_set=\$ac_env_${ac_var}_set
1208 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1209 eval ac_new_val="\$ac_env_${ac_var}_value"
1210 case $ac_old_set,$ac_new_set in
1211 set,)
1212 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1214 ac_cache_corrupted=: ;;
1215 ,set)
1216 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1218 ac_cache_corrupted=: ;;
1219 ,);;
1221 if test "x$ac_old_val" != "x$ac_new_val"; then
1222 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1223 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1224 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1225 echo "$as_me: former value: $ac_old_val" >&2;}
1226 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1227 echo "$as_me: current value: $ac_new_val" >&2;}
1228 ac_cache_corrupted=:
1229 fi;;
1230 esac
1231 # Pass precious variables to config.status.
1232 if test "$ac_new_set" = set; then
1233 case $ac_new_val in
1234 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1235 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1236 *) ac_arg=$ac_var=$ac_new_val ;;
1237 esac
1238 case " $ac_configure_args " in
1239 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1240 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1241 esac
1243 done
1244 if $ac_cache_corrupted; then
1245 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1247 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249 { (exit 1); exit 1; }; }
1252 ac_ext=c
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275 ac_config_headers="$ac_config_headers include/defs.h"
1277 ac_aux_dir=
1278 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1279 if test -f $ac_dir/install-sh; then
1280 ac_aux_dir=$ac_dir
1281 ac_install_sh="$ac_aux_dir/install-sh -c"
1282 break
1283 elif test -f $ac_dir/install.sh; then
1284 ac_aux_dir=$ac_dir
1285 ac_install_sh="$ac_aux_dir/install.sh -c"
1286 break
1287 elif test -f $ac_dir/shtool; then
1288 ac_aux_dir=$ac_dir
1289 ac_install_sh="$ac_aux_dir/shtool install -c"
1290 break
1292 done
1293 if test -z "$ac_aux_dir"; then
1294 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1295 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1296 { (exit 1); exit 1; }; }
1298 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1299 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1300 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1302 # Make sure we can run config.sub.
1303 $ac_config_sub sun4 >/dev/null 2>&1 ||
1304 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1305 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1306 { (exit 1); exit 1; }; }
1308 echo "$as_me:$LINENO: checking build system type" >&5
1309 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1310 if test "${ac_cv_build+set}" = set; then
1311 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 else
1313 ac_cv_build_alias=$build_alias
1314 test -z "$ac_cv_build_alias" &&
1315 ac_cv_build_alias=`$ac_config_guess`
1316 test -z "$ac_cv_build_alias" &&
1317 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1318 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1319 { (exit 1); exit 1; }; }
1320 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1321 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1322 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1323 { (exit 1); exit 1; }; }
1326 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1327 echo "${ECHO_T}$ac_cv_build" >&6
1328 build=$ac_cv_build
1329 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1330 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1331 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1334 echo "$as_me:$LINENO: checking host system type" >&5
1335 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1336 if test "${ac_cv_host+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 else
1339 ac_cv_host_alias=$host_alias
1340 test -z "$ac_cv_host_alias" &&
1341 ac_cv_host_alias=$ac_cv_build_alias
1342 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1343 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1344 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1345 { (exit 1); exit 1; }; }
1348 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1349 echo "${ECHO_T}$ac_cv_host" >&6
1350 host=$ac_cv_host
1351 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1352 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1353 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356 echo "$as_me:$LINENO: checking target system type" >&5
1357 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1358 if test "${ac_cv_target+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 else
1361 ac_cv_target_alias=$target_alias
1362 test "x$ac_cv_target_alias" = "x" &&
1363 ac_cv_target_alias=$ac_cv_host_alias
1364 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1370 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1371 echo "${ECHO_T}$ac_cv_target" >&6
1372 target=$ac_cv_target
1373 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378 # The aliases save the names the user supplied, while $host etc.
1379 # will get canonicalized.
1380 test -n "$target_alias" &&
1381 test "$program_prefix$program_suffix$program_transform_name" = \
1382 NONENONEs,x,x, &&
1383 program_prefix=${target_alias}-
1385 PACKAGE="vlc"
1386 VERSION="0.4.6"
1387 CODENAME=Ourumov
1389 save_CFLAGS="${CFLAGS}"
1390 save_CPPFLAGS="${CPPFLAGS}"
1391 save_LDFLAGS="${LDFLAGS}"
1393 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1394 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1395 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1396 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399 cat >conftest.make <<\_ACEOF
1400 all:
1401 @echo 'ac_maketemp="${MAKE}"'
1402 _ACEOF
1403 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1404 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1405 if test -n "$ac_maketemp"; then
1406 eval ac_cv_prog_make_${ac_make}_set=yes
1407 else
1408 eval ac_cv_prog_make_${ac_make}_set=no
1410 rm -f conftest.make
1412 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1413 echo "$as_me:$LINENO: result: yes" >&5
1414 echo "${ECHO_T}yes" >&6
1415 SET_MAKE=
1416 else
1417 echo "$as_me:$LINENO: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1419 SET_MAKE="MAKE=${MAKE-make}"
1422 ac_ext=c
1423 ac_cpp='$CPP $CPPFLAGS'
1424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1427 if test -n "$ac_tool_prefix"; then
1428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1429 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435 if test -n "$CC"; then
1436 ac_cv_prog_CC="$CC" # Let the user override the test.
1437 else
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 for as_dir in $PATH
1441 IFS=$as_save_IFS
1442 test -z "$as_dir" && as_dir=.
1443 for ac_exec_ext in '' $ac_executable_extensions; do
1444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447 break 2
1449 done
1450 done
1454 CC=$ac_cv_prog_CC
1455 if test -n "$CC"; then
1456 echo "$as_me:$LINENO: result: $CC" >&5
1457 echo "${ECHO_T}$CC" >&6
1458 else
1459 echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1464 if test -z "$ac_cv_prog_CC"; then
1465 ac_ct_CC=$CC
1466 # Extract the first word of "gcc", so it can be a program name with args.
1467 set dummy gcc; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 if test -n "$ac_ct_CC"; then
1474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1475 else
1476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 for as_dir in $PATH
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_ac_ct_CC="gcc"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1487 done
1488 done
1492 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1493 if test -n "$ac_ct_CC"; then
1494 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1495 echo "${ECHO_T}$ac_ct_CC" >&6
1496 else
1497 echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1501 CC=$ac_ct_CC
1502 else
1503 CC="$ac_cv_prog_CC"
1506 if test -z "$CC"; then
1507 if test -n "$ac_tool_prefix"; then
1508 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1509 set dummy ${ac_tool_prefix}cc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515 if test -n "$CC"; then
1516 ac_cv_prog_CC="$CC" # Let the user override the test.
1517 else
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 for as_dir in $PATH
1521 IFS=$as_save_IFS
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_CC="${ac_tool_prefix}cc"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 break 2
1529 done
1530 done
1534 CC=$ac_cv_prog_CC
1535 if test -n "$CC"; then
1536 echo "$as_me:$LINENO: result: $CC" >&5
1537 echo "${ECHO_T}$CC" >&6
1538 else
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1544 if test -z "$ac_cv_prog_CC"; then
1545 ac_ct_CC=$CC
1546 # Extract the first word of "cc", so it can be a program name with args.
1547 set dummy cc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553 if test -n "$ac_ct_CC"; then
1554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1555 else
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1559 IFS=$as_save_IFS
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563 ac_cv_prog_ac_ct_CC="cc"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 break 2
1567 done
1568 done
1572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1573 if test -n "$ac_ct_CC"; then
1574 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1575 echo "${ECHO_T}$ac_ct_CC" >&6
1576 else
1577 echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1581 CC=$ac_ct_CC
1582 else
1583 CC="$ac_cv_prog_CC"
1587 if test -z "$CC"; then
1588 # Extract the first word of "cc", so it can be a program name with args.
1589 set dummy cc; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595 if test -n "$CC"; then
1596 ac_cv_prog_CC="$CC" # Let the user override the test.
1597 else
1598 ac_prog_rejected=no
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1607 ac_prog_rejected=yes
1608 continue
1610 ac_cv_prog_CC="cc"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 break 2
1614 done
1615 done
1617 if test $ac_prog_rejected = yes; then
1618 # We found a bogon in the path, so make sure we never use it.
1619 set dummy $ac_cv_prog_CC
1620 shift
1621 if test $# != 0; then
1622 # We chose a different compiler from the bogus one.
1623 # However, it has the same basename, so the bogon will be chosen
1624 # first if we set CC to just the basename; use the full file name.
1625 shift
1626 set dummy "$as_dir/$ac_word" ${1+"$@"}
1627 shift
1628 ac_cv_prog_CC="$@"
1633 CC=$ac_cv_prog_CC
1634 if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1637 else
1638 echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1643 if test -z "$CC"; then
1644 if test -n "$ac_tool_prefix"; then
1645 for ac_prog in cl
1647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 if test -n "$CC"; then
1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 break 2
1668 done
1669 done
1673 CC=$ac_cv_prog_CC
1674 if test -n "$CC"; then
1675 echo "$as_me:$LINENO: result: $CC" >&5
1676 echo "${ECHO_T}$CC" >&6
1677 else
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1682 test -n "$CC" && break
1683 done
1685 if test -z "$CC"; then
1686 ac_ct_CC=$CC
1687 for ac_prog in cl
1689 # Extract the first word of "$ac_prog", so it can be a program name with args.
1690 set dummy $ac_prog; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 if test -n "$ac_ct_CC"; then
1697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_ac_ct_CC="$ac_prog"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 break 2
1710 done
1711 done
1715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1716 if test -n "$ac_ct_CC"; then
1717 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1718 echo "${ECHO_T}$ac_ct_CC" >&6
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1724 test -n "$ac_ct_CC" && break
1725 done
1727 CC=$ac_ct_CC
1733 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1734 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1735 { (exit 1); exit 1; }; }
1737 # Provide some information about the compiler.
1738 echo "$as_me:$LINENO:" \
1739 "checking for C compiler version" >&5
1740 ac_compiler=`set X $ac_compile; echo $2`
1741 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1742 (eval $ac_compiler --version </dev/null >&5) 2>&5
1743 ac_status=$?
1744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745 (exit $ac_status); }
1746 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1747 (eval $ac_compiler -v </dev/null >&5) 2>&5
1748 ac_status=$?
1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750 (exit $ac_status); }
1751 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1752 (eval $ac_compiler -V </dev/null >&5) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1757 cat >conftest.$ac_ext <<_ACEOF
1758 #line $LINENO "configure"
1759 #include "confdefs.h"
1761 #ifdef F77_DUMMY_MAIN
1762 # ifdef __cplusplus
1763 extern "C"
1764 # endif
1765 int F77_DUMMY_MAIN() { return 1; }
1766 #endif
1768 main ()
1772 return 0;
1774 _ACEOF
1775 ac_clean_files_save=$ac_clean_files
1776 ac_clean_files="$ac_clean_files a.out a.exe"
1777 # Try to create an executable without -o first, disregard a.out.
1778 # It will help us diagnose broken compilers, and finding out an intuition
1779 # of exeext.
1780 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1781 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1782 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1783 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1784 (eval $ac_link_default) 2>&5
1785 ac_status=$?
1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787 (exit $ac_status); }; then
1788 # Find the output, starting from the most likely. This scheme is
1789 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1790 # resort.
1792 # Be careful to initialize this variable, since it used to be cached.
1793 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1794 ac_cv_exeext=
1795 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1796 ls a.out conftest 2>/dev/null;
1797 ls a.* conftest.* 2>/dev/null`; do
1798 case $ac_file in
1799 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1800 a.out ) # We found the default executable, but exeext='' is most
1801 # certainly right.
1802 break;;
1803 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1804 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1805 export ac_cv_exeext
1806 break;;
1807 * ) break;;
1808 esac
1809 done
1810 else
1811 echo "$as_me: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1813 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1814 echo "$as_me: error: C compiler cannot create executables" >&2;}
1815 { (exit 77); exit 77; }; }
1818 ac_exeext=$ac_cv_exeext
1819 echo "$as_me:$LINENO: result: $ac_file" >&5
1820 echo "${ECHO_T}$ac_file" >&6
1822 # Check the compiler produces executables we can run. If not, either
1823 # the compiler is broken, or we cross compile.
1824 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1825 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1826 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1827 # If not cross compiling, check that we can run a simple program.
1828 if test "$cross_compiling" != yes; then
1829 if { ac_try='./$ac_file'
1830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1831 (eval $ac_try) 2>&5
1832 ac_status=$?
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; }; then
1835 cross_compiling=no
1836 else
1837 if test "$cross_compiling" = maybe; then
1838 cross_compiling=yes
1839 else
1840 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1841 If you meant to cross compile, use \`--host'." >&5
1842 echo "$as_me: error: cannot run C compiled programs.
1843 If you meant to cross compile, use \`--host'." >&2;}
1844 { (exit 1); exit 1; }; }
1848 echo "$as_me:$LINENO: result: yes" >&5
1849 echo "${ECHO_T}yes" >&6
1851 rm -f a.out a.exe conftest$ac_cv_exeext
1852 ac_clean_files=$ac_clean_files_save
1853 # Check the compiler produces executables we can run. If not, either
1854 # the compiler is broken, or we cross compile.
1855 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1856 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1857 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1858 echo "${ECHO_T}$cross_compiling" >&6
1860 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1861 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1863 (eval $ac_link) 2>&5
1864 ac_status=$?
1865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866 (exit $ac_status); }; then
1867 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1868 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1869 # work properly (i.e., refer to `conftest.exe'), while it won't with
1870 # `rm'.
1871 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1872 case $ac_file in
1873 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1874 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1875 export ac_cv_exeext
1876 break;;
1877 * ) break;;
1878 esac
1879 done
1880 else
1881 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1882 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1883 { (exit 1); exit 1; }; }
1886 rm -f conftest$ac_cv_exeext
1887 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1888 echo "${ECHO_T}$ac_cv_exeext" >&6
1890 rm -f conftest.$ac_ext
1891 EXEEXT=$ac_cv_exeext
1892 ac_exeext=$EXEEXT
1893 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1894 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1895 if test "${ac_cv_objext+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898 cat >conftest.$ac_ext <<_ACEOF
1899 #line $LINENO "configure"
1900 #include "confdefs.h"
1902 #ifdef F77_DUMMY_MAIN
1903 # ifdef __cplusplus
1904 extern "C"
1905 # endif
1906 int F77_DUMMY_MAIN() { return 1; }
1907 #endif
1909 main ()
1913 return 0;
1915 _ACEOF
1916 rm -f conftest.o conftest.obj
1917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1918 (eval $ac_compile) 2>&5
1919 ac_status=$?
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }; then
1922 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1923 case $ac_file in
1924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1925 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1926 break;;
1927 esac
1928 done
1929 else
1930 echo "$as_me: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1932 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1933 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1934 { (exit 1); exit 1; }; }
1937 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1939 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1940 echo "${ECHO_T}$ac_cv_objext" >&6
1941 OBJEXT=$ac_cv_objext
1942 ac_objext=$OBJEXT
1943 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948 cat >conftest.$ac_ext <<_ACEOF
1949 #line $LINENO "configure"
1950 #include "confdefs.h"
1952 #ifdef F77_DUMMY_MAIN
1953 # ifdef __cplusplus
1954 extern "C"
1955 # endif
1956 int F77_DUMMY_MAIN() { return 1; }
1957 #endif
1959 main ()
1961 #ifndef __GNUC__
1962 choke me
1963 #endif
1966 return 0;
1968 _ACEOF
1969 rm -f conftest.$ac_objext
1970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1971 (eval $ac_compile) 2>&5
1972 ac_status=$?
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); } &&
1975 { ac_try='test -s conftest.$ac_objext'
1976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1977 (eval $ac_try) 2>&5
1978 ac_status=$?
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); }; }; then
1981 ac_compiler_gnu=yes
1982 else
1983 echo "$as_me: failed program was:" >&5
1984 cat conftest.$ac_ext >&5
1985 ac_compiler_gnu=no
1987 rm -f conftest.$ac_objext conftest.$ac_ext
1988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1991 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1993 GCC=`test $ac_compiler_gnu = yes && echo yes`
1994 ac_test_CFLAGS=${CFLAGS+set}
1995 ac_save_CFLAGS=$CFLAGS
1996 CFLAGS="-g"
1997 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1998 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1999 if test "${ac_cv_prog_cc_g+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002 cat >conftest.$ac_ext <<_ACEOF
2003 #line $LINENO "configure"
2004 #include "confdefs.h"
2006 #ifdef F77_DUMMY_MAIN
2007 # ifdef __cplusplus
2008 extern "C"
2009 # endif
2010 int F77_DUMMY_MAIN() { return 1; }
2011 #endif
2013 main ()
2017 return 0;
2019 _ACEOF
2020 rm -f conftest.$ac_objext
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028 (eval $ac_try) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2032 ac_cv_prog_cc_g=yes
2033 else
2034 echo "$as_me: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2036 ac_cv_prog_cc_g=no
2038 rm -f conftest.$ac_objext conftest.$ac_ext
2040 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2041 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2042 if test "$ac_test_CFLAGS" = set; then
2043 CFLAGS=$ac_save_CFLAGS
2044 elif test $ac_cv_prog_cc_g = yes; then
2045 if test "$GCC" = yes; then
2046 CFLAGS="-g -O2"
2047 else
2048 CFLAGS="-g"
2050 else
2051 if test "$GCC" = yes; then
2052 CFLAGS="-O2"
2053 else
2054 CFLAGS=
2057 # Some people use a C++ compiler to compile C. Since we use `exit',
2058 # in C++ we need to declare it. In case someone uses the same compiler
2059 # for both compiling C and C++ we need to have the C++ compiler decide
2060 # the declaration of exit, since it's the most demanding environment.
2061 cat >conftest.$ac_ext <<_ACEOF
2062 #ifndef __cplusplus
2063 choke me
2064 #endif
2065 _ACEOF
2066 rm -f conftest.$ac_objext
2067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2068 (eval $ac_compile) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); } &&
2072 { ac_try='test -s conftest.$ac_objext'
2073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2074 (eval $ac_try) 2>&5
2075 ac_status=$?
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); }; }; then
2078 for ac_declaration in \
2080 '#include <stdlib.h>' \
2081 'extern "C" void std::exit (int) throw (); using std::exit;' \
2082 'extern "C" void std::exit (int); using std::exit;' \
2083 'extern "C" void exit (int) throw ();' \
2084 'extern "C" void exit (int);' \
2085 'void exit (int);'
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2089 #include "confdefs.h"
2090 #include <stdlib.h>
2091 $ac_declaration
2092 #ifdef F77_DUMMY_MAIN
2093 # ifdef __cplusplus
2094 extern "C"
2095 # endif
2096 int F77_DUMMY_MAIN() { return 1; }
2097 #endif
2099 main ()
2101 exit (42);
2103 return 0;
2105 _ACEOF
2106 rm -f conftest.$ac_objext
2107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2108 (eval $ac_compile) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); } &&
2112 { ac_try='test -s conftest.$ac_objext'
2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 (eval $ac_try) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; }; then
2119 else
2120 echo "$as_me: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2122 continue
2124 rm -f conftest.$ac_objext conftest.$ac_ext
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2128 $ac_declaration
2129 #ifdef F77_DUMMY_MAIN
2130 # ifdef __cplusplus
2131 extern "C"
2132 # endif
2133 int F77_DUMMY_MAIN() { return 1; }
2134 #endif
2136 main ()
2138 exit (42);
2140 return 0;
2142 _ACEOF
2143 rm -f conftest.$ac_objext
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 break
2156 else
2157 echo "$as_me: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2160 rm -f conftest.$ac_objext conftest.$ac_ext
2161 done
2162 rm -f conftest*
2163 if test -n "$ac_declaration"; then
2164 echo '#ifdef __cplusplus' >>confdefs.h
2165 echo $ac_declaration >>confdefs.h
2166 echo '#endif' >>confdefs.h
2169 else
2170 echo "$as_me: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2173 rm -f conftest.$ac_objext conftest.$ac_ext
2174 ac_ext=c
2175 ac_cpp='$CPP $CPPFLAGS'
2176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2180 ac_ext=c
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2186 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2187 # On Suns, sometimes $CPP names a directory.
2188 if test -n "$CPP" && test -d "$CPP"; then
2189 CPP=
2191 if test -z "$CPP"; then
2192 if test "${ac_cv_prog_CPP+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195 # Double quotes because CPP needs to be expanded
2196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2198 ac_preproc_ok=false
2199 for ac_c_preproc_warn_flag in '' yes
2201 # Use a header file that comes with gcc, so configuring glibc
2202 # with a fresh cross-compiler works.
2203 # On the NeXT, cc -E runs the code through the compiler's parser,
2204 # not just through cpp. "Syntax error" is here to catch this case.
2205 cat >conftest.$ac_ext <<_ACEOF
2206 #line $LINENO "configure"
2207 #include "confdefs.h"
2208 #include <assert.h>
2209 Syntax error
2210 _ACEOF
2211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2213 ac_status=$?
2214 egrep -v '^ *\+' conftest.er1 >conftest.err
2215 rm -f conftest.er1
2216 cat conftest.err >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); } >/dev/null; then
2219 if test -s conftest.err; then
2220 ac_cpp_err=$ac_c_preproc_warn_flag
2221 else
2222 ac_cpp_err=
2224 else
2225 ac_cpp_err=yes
2227 if test -z "$ac_cpp_err"; then
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2232 # Broken: fails on valid input.
2233 continue
2235 rm -f conftest.err conftest.$ac_ext
2237 # OK, works on sane cases. Now check whether non-existent headers
2238 # can be detected and how.
2239 cat >conftest.$ac_ext <<_ACEOF
2240 #line $LINENO "configure"
2241 #include "confdefs.h"
2242 #include <ac_nonexistent.h>
2243 _ACEOF
2244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2246 ac_status=$?
2247 egrep -v '^ *\+' conftest.er1 >conftest.err
2248 rm -f conftest.er1
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } >/dev/null; then
2252 if test -s conftest.err; then
2253 ac_cpp_err=$ac_c_preproc_warn_flag
2254 else
2255 ac_cpp_err=
2257 else
2258 ac_cpp_err=yes
2260 if test -z "$ac_cpp_err"; then
2261 # Broken: success on invalid input.
2262 continue
2263 else
2264 echo "$as_me: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2266 # Passes both tests.
2267 ac_preproc_ok=:
2268 break
2270 rm -f conftest.err conftest.$ac_ext
2272 done
2273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2274 rm -f conftest.err conftest.$ac_ext
2275 if $ac_preproc_ok; then
2276 break
2279 done
2280 ac_cv_prog_CPP=$CPP
2283 CPP=$ac_cv_prog_CPP
2284 else
2285 ac_cv_prog_CPP=$CPP
2287 echo "$as_me:$LINENO: result: $CPP" >&5
2288 echo "${ECHO_T}$CPP" >&6
2289 ac_preproc_ok=false
2290 for ac_c_preproc_warn_flag in '' yes
2292 # Use a header file that comes with gcc, so configuring glibc
2293 # with a fresh cross-compiler works.
2294 # On the NeXT, cc -E runs the code through the compiler's parser,
2295 # not just through cpp. "Syntax error" is here to catch this case.
2296 cat >conftest.$ac_ext <<_ACEOF
2297 #line $LINENO "configure"
2298 #include "confdefs.h"
2299 #include <assert.h>
2300 Syntax error
2301 _ACEOF
2302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2304 ac_status=$?
2305 egrep -v '^ *\+' conftest.er1 >conftest.err
2306 rm -f conftest.er1
2307 cat conftest.err >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } >/dev/null; then
2310 if test -s conftest.err; then
2311 ac_cpp_err=$ac_c_preproc_warn_flag
2312 else
2313 ac_cpp_err=
2315 else
2316 ac_cpp_err=yes
2318 if test -z "$ac_cpp_err"; then
2320 else
2321 echo "$as_me: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 # Broken: fails on valid input.
2324 continue
2326 rm -f conftest.err conftest.$ac_ext
2328 # OK, works on sane cases. Now check whether non-existent headers
2329 # can be detected and how.
2330 cat >conftest.$ac_ext <<_ACEOF
2331 #line $LINENO "configure"
2332 #include "confdefs.h"
2333 #include <ac_nonexistent.h>
2334 _ACEOF
2335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2337 ac_status=$?
2338 egrep -v '^ *\+' conftest.er1 >conftest.err
2339 rm -f conftest.er1
2340 cat conftest.err >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); } >/dev/null; then
2343 if test -s conftest.err; then
2344 ac_cpp_err=$ac_c_preproc_warn_flag
2345 else
2346 ac_cpp_err=
2348 else
2349 ac_cpp_err=yes
2351 if test -z "$ac_cpp_err"; then
2352 # Broken: success on invalid input.
2353 continue
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2357 # Passes both tests.
2358 ac_preproc_ok=:
2359 break
2361 rm -f conftest.err conftest.$ac_ext
2363 done
2364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2365 rm -f conftest.err conftest.$ac_ext
2366 if $ac_preproc_ok; then
2368 else
2369 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2370 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2371 { (exit 1); exit 1; }; }
2374 ac_ext=c
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381 if test -n "$ac_tool_prefix"; then
2382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2384 echo "$as_me:$LINENO: checking for $ac_word" >&5
2385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2386 if test "${ac_cv_prog_RANLIB+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389 if test -n "$RANLIB"; then
2390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2391 else
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
2397 for ac_exec_ext in '' $ac_executable_extensions; do
2398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2399 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 break 2
2403 done
2404 done
2408 RANLIB=$ac_cv_prog_RANLIB
2409 if test -n "$RANLIB"; then
2410 echo "$as_me:$LINENO: result: $RANLIB" >&5
2411 echo "${ECHO_T}$RANLIB" >&6
2412 else
2413 echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6
2418 if test -z "$ac_cv_prog_RANLIB"; then
2419 ac_ct_RANLIB=$RANLIB
2420 # Extract the first word of "ranlib", so it can be a program name with args.
2421 set dummy ranlib; ac_word=$2
2422 echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2424 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 if test -n "$ac_ct_RANLIB"; then
2428 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2437 ac_cv_prog_ac_ct_RANLIB="ranlib"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2441 done
2442 done
2444 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2447 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2448 if test -n "$ac_ct_RANLIB"; then
2449 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2450 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2451 else
2452 echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6
2456 RANLIB=$ac_ct_RANLIB
2457 else
2458 RANLIB="$ac_cv_prog_RANLIB"
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}strip; ac_word=$2
2464 echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_prog_STRIP+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 if test -n "$STRIP"; then
2470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2483 done
2484 done
2488 STRIP=$ac_cv_prog_STRIP
2489 if test -n "$STRIP"; then
2490 echo "$as_me:$LINENO: result: $STRIP" >&5
2491 echo "${ECHO_T}$STRIP" >&6
2492 else
2493 echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6
2498 if test -z "$ac_cv_prog_STRIP"; then
2499 ac_ct_STRIP=$STRIP
2500 # Extract the first word of "strip", so it can be a program name with args.
2501 set dummy strip; ac_word=$2
2502 echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2504 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 if test -n "$ac_ct_STRIP"; then
2508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517 ac_cv_prog_ac_ct_STRIP="strip"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 break 2
2521 done
2522 done
2524 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2528 if test -n "$ac_ct_STRIP"; then
2529 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2530 echo "${ECHO_T}$ac_ct_STRIP" >&6
2531 else
2532 echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6
2536 STRIP=$ac_ct_STRIP
2537 else
2538 STRIP="$ac_cv_prog_STRIP"
2541 if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}ar; ac_word=$2
2544 echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2546 if test "${ac_cv_prog_AR+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549 if test -n "$AR"; then
2550 ac_cv_prog_AR="$AR" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559 ac_cv_prog_AR="${ac_tool_prefix}ar"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2563 done
2564 done
2568 AR=$ac_cv_prog_AR
2569 if test -n "$AR"; then
2570 echo "$as_me:$LINENO: result: $AR" >&5
2571 echo "${ECHO_T}$AR" >&6
2572 else
2573 echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2578 if test -z "$ac_cv_prog_AR"; then
2579 ac_ct_AR=$AR
2580 # Extract the first word of "ar", so it can be a program name with args.
2581 set dummy ar; ac_word=$2
2582 echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2584 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587 if test -n "$ac_ct_AR"; then
2588 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597 ac_cv_prog_ac_ct_AR="ar"
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2601 done
2602 done
2604 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
2607 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2608 if test -n "$ac_ct_AR"; then
2609 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2610 echo "${ECHO_T}$ac_ct_AR" >&6
2611 else
2612 echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6
2616 AR=$ac_ct_AR
2617 else
2618 AR="$ac_cv_prog_AR"
2621 if test -n "$ac_tool_prefix"; then
2622 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}ld; ac_word=$2
2624 echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2626 if test "${ac_cv_prog_LD+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629 if test -n "$LD"; then
2630 ac_cv_prog_LD="$LD" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639 ac_cv_prog_LD="${ac_tool_prefix}ld"
2640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2643 done
2644 done
2648 LD=$ac_cv_prog_LD
2649 if test -n "$LD"; then
2650 echo "$as_me:$LINENO: result: $LD" >&5
2651 echo "${ECHO_T}$LD" >&6
2652 else
2653 echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6
2658 if test -z "$ac_cv_prog_LD"; then
2659 ac_ct_LD=$LD
2660 # Extract the first word of "ld", so it can be a program name with args.
2661 set dummy ld; ac_word=$2
2662 echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2664 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 if test -n "$ac_ct_LD"; then
2668 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2677 ac_cv_prog_ac_ct_LD="ld"
2678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2681 done
2682 done
2684 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD=":"
2687 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2688 if test -n "$ac_ct_LD"; then
2689 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2690 echo "${ECHO_T}$ac_ct_LD" >&6
2691 else
2692 echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6
2696 LD=$ac_ct_LD
2697 else
2698 LD="$ac_cv_prog_LD"
2702 # Extract the first word of "gmake", so it can be a program name with args.
2703 set dummy gmake; ac_word=$2
2704 echo "$as_me:$LINENO: checking for $ac_word" >&5
2705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706 if test "${ac_cv_path_GMAKE+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 case $GMAKE in
2710 [\\/]* | ?:[\\/]*)
2711 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2725 done
2726 done
2728 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
2730 esac
2732 GMAKE=$ac_cv_path_GMAKE
2734 if test -n "$GMAKE"; then
2735 echo "$as_me:$LINENO: result: $GMAKE" >&5
2736 echo "${ECHO_T}$GMAKE" >&6
2737 else
2738 echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2742 if test "x$GMAKE" = "xno"; then
2743 echo "$as_me:$LINENO: checking whether GNU make is installed" >&5
2744 echo $ECHO_N "checking whether GNU make is installed... $ECHO_C" >&6
2745 if test "${ac_cv_gmake+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 if make --version | grep -q -i gnu; then
2749 ac_cv_gmake="yes"
2750 else
2751 echo "This software needs you to install GNU make to compile properly."
2752 echo "You can get it from http://www.gnu.org/."
2753 exit
2756 echo "$as_me:$LINENO: result: $ac_cv_gmake" >&5
2757 echo "${ECHO_T}$ac_cv_gmake" >&6
2758 VLC_MAKE="make"
2759 else
2760 VLC_MAKE="gmake"
2763 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
2766 cat >>confdefs.h <<_ACEOF
2767 #define VLC_PACKAGE "$PACKAGE"
2768 _ACEOF
2771 cat >>confdefs.h <<_ACEOF
2772 #define VLC_VERSION "$VERSION"
2773 _ACEOF
2775 if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2778 echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2780 if test "${ac_cv_prog_RANLIB+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783 if test -n "$RANLIB"; then
2784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2797 done
2798 done
2802 RANLIB=$ac_cv_prog_RANLIB
2803 if test -n "$RANLIB"; then
2804 echo "$as_me:$LINENO: result: $RANLIB" >&5
2805 echo "${ECHO_T}$RANLIB" >&6
2806 else
2807 echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6
2812 if test -z "$ac_cv_prog_RANLIB"; then
2813 ac_ct_RANLIB=$RANLIB
2814 # Extract the first word of "ranlib", so it can be a program name with args.
2815 set dummy ranlib; ac_word=$2
2816 echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2818 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821 if test -n "$ac_ct_RANLIB"; then
2822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_ac_ct_RANLIB="ranlib"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2835 done
2836 done
2838 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2842 if test -n "$ac_ct_RANLIB"; then
2843 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2844 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2845 else
2846 echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2850 RANLIB=$ac_ct_RANLIB
2851 else
2852 RANLIB="$ac_cv_prog_RANLIB"
2857 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2858 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2859 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 ac_check_lib_save_LIBS=$LIBS
2863 LIBS="-lcposix $LIBS"
2864 cat >conftest.$ac_ext <<_ACEOF
2865 #line $LINENO "configure"
2866 #include "confdefs.h"
2868 /* Override any gcc2 internal prototype to avoid an error. */
2869 #ifdef __cplusplus
2870 extern "C"
2871 #endif
2872 /* We use char because int might match the return type of a gcc2
2873 builtin and then its argument prototype would still apply. */
2874 char strerror ();
2875 #ifdef F77_DUMMY_MAIN
2876 # ifdef __cplusplus
2877 extern "C"
2878 # endif
2879 int F77_DUMMY_MAIN() { return 1; }
2880 #endif
2882 main ()
2884 strerror ();
2886 return 0;
2888 _ACEOF
2889 rm -f conftest.$ac_objext conftest$ac_exeext
2890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2891 (eval $ac_link) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -s conftest$ac_exeext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 (eval $ac_try) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2901 ac_cv_lib_cposix_strerror=yes
2902 else
2903 echo "$as_me: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2905 ac_cv_lib_cposix_strerror=no
2907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2908 LIBS=$ac_check_lib_save_LIBS
2910 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2911 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2912 if test $ac_cv_lib_cposix_strerror = yes; then
2913 LIBS="$LIBS -lcposix"
2919 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2920 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2921 if test "${ac_cv_header_stdc+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924 cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 #include "confdefs.h"
2927 #include <stdlib.h>
2928 #include <stdarg.h>
2929 #include <string.h>
2930 #include <float.h>
2932 _ACEOF
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935 ac_status=$?
2936 egrep -v '^ *\+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null; then
2941 if test -s conftest.err; then
2942 ac_cpp_err=$ac_c_preproc_warn_flag
2943 else
2944 ac_cpp_err=
2946 else
2947 ac_cpp_err=yes
2949 if test -z "$ac_cpp_err"; then
2950 ac_cv_header_stdc=yes
2951 else
2952 echo "$as_me: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2954 ac_cv_header_stdc=no
2956 rm -f conftest.err conftest.$ac_ext
2958 if test $ac_cv_header_stdc = yes; then
2959 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #line $LINENO "configure"
2962 #include "confdefs.h"
2963 #include <string.h>
2965 _ACEOF
2966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2967 egrep "memchr" >/dev/null 2>&1; then
2969 else
2970 ac_cv_header_stdc=no
2972 rm -f conftest*
2976 if test $ac_cv_header_stdc = yes; then
2977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2978 cat >conftest.$ac_ext <<_ACEOF
2979 #line $LINENO "configure"
2980 #include "confdefs.h"
2981 #include <stdlib.h>
2983 _ACEOF
2984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2985 egrep "free" >/dev/null 2>&1; then
2987 else
2988 ac_cv_header_stdc=no
2990 rm -f conftest*
2994 if test $ac_cv_header_stdc = yes; then
2995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2996 if test "$cross_compiling" = yes; then
2998 else
2999 cat >conftest.$ac_ext <<_ACEOF
3000 #line $LINENO "configure"
3001 #include "confdefs.h"
3002 #include <ctype.h>
3003 #if ((' ' & 0x0FF) == 0x020)
3004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3006 #else
3007 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3008 || ('j' <= (c) && (c) <= 'r') \
3009 || ('s' <= (c) && (c) <= 'z'))
3010 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3011 #endif
3013 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3015 main ()
3017 int i;
3018 for (i = 0; i < 256; i++)
3019 if (XOR (islower (i), ISLOWER (i))
3020 || toupper (i) != TOUPPER (i))
3021 exit(2);
3022 exit (0);
3024 _ACEOF
3025 rm -f conftest$ac_exeext
3026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3027 (eval $ac_link) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 (eval $ac_try) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3037 else
3038 echo "$as_me: program exited with status $ac_status" >&5
3039 echo "$as_me: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3041 ( exit $ac_status )
3042 ac_cv_header_stdc=no
3044 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3048 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3049 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3050 if test $ac_cv_header_stdc = yes; then
3052 cat >>confdefs.h <<\_ACEOF
3053 #define STDC_HEADERS 1
3054 _ACEOF
3058 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3059 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3060 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 ac_cv_prog_cc_stdc=no
3064 ac_save_CC=$CC
3065 cat >conftest.$ac_ext <<_ACEOF
3066 #line $LINENO "configure"
3067 #include "confdefs.h"
3068 #include <stdarg.h>
3069 #include <stdio.h>
3070 #include <sys/types.h>
3071 #include <sys/stat.h>
3072 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3073 struct buf { int x; };
3074 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3075 static char *e (p, i)
3076 char **p;
3077 int i;
3079 return p[i];
3081 static char *f (char * (*g) (char **, int), char **p, ...)
3083 char *s;
3084 va_list v;
3085 va_start (v,p);
3086 s = g (p, va_arg (v,int));
3087 va_end (v);
3088 return s;
3090 int test (int i, double x);
3091 struct s1 {int (*f) (int a);};
3092 struct s2 {int (*f) (double a);};
3093 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3094 int argc;
3095 char **argv;
3096 #ifdef F77_DUMMY_MAIN
3097 # ifdef __cplusplus
3098 extern "C"
3099 # endif
3100 int F77_DUMMY_MAIN() { return 1; }
3101 #endif
3103 main ()
3105 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3107 return 0;
3109 _ACEOF
3110 # Don't try gcc -ansi; that turns off useful extensions and
3111 # breaks some systems' header files.
3112 # AIX -qlanglvl=ansi
3113 # Ultrix and OSF/1 -std1
3114 # HP-UX 10.20 and later -Ae
3115 # HP-UX older versions -Aa -D_HPUX_SOURCE
3116 # SVR4 -Xc -D__EXTENSIONS__
3117 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3119 CC="$ac_save_CC $ac_arg"
3120 rm -f conftest.$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122 (eval $ac_compile) 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -s conftest.$ac_objext'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128 (eval $ac_try) 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3132 ac_cv_prog_cc_stdc=$ac_arg
3133 break
3134 else
3135 echo "$as_me: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3138 rm -f conftest.$ac_objext
3139 done
3140 rm -f conftest.$ac_ext conftest.$ac_objext
3141 CC=$ac_save_CC
3145 case "x$ac_cv_prog_cc_stdc" in
3146 x|xno)
3147 echo "$as_me:$LINENO: result: none needed" >&5
3148 echo "${ECHO_T}none needed" >&6 ;;
3150 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3151 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3152 CC="$CC $ac_cv_prog_cc_stdc" ;;
3153 esac
3155 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3156 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3157 if test "${ac_cv_c_const+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 cat >conftest.$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3162 #include "confdefs.h"
3164 #ifdef F77_DUMMY_MAIN
3165 # ifdef __cplusplus
3166 extern "C"
3167 # endif
3168 int F77_DUMMY_MAIN() { return 1; }
3169 #endif
3171 main ()
3173 /* FIXME: Include the comments suggested by Paul. */
3174 #ifndef __cplusplus
3175 /* Ultrix mips cc rejects this. */
3176 typedef int charset[2];
3177 const charset x;
3178 /* SunOS 4.1.1 cc rejects this. */
3179 char const *const *ccp;
3180 char **p;
3181 /* NEC SVR4.0.2 mips cc rejects this. */
3182 struct point {int x, y;};
3183 static struct point const zero = {0,0};
3184 /* AIX XL C 1.02.0.0 rejects this.
3185 It does not let you subtract one const X* pointer from another in
3186 an arm of an if-expression whose if-part is not a constant
3187 expression */
3188 const char *g = "string";
3189 ccp = &g + (g ? g-g : 0);
3190 /* HPUX 7.0 cc rejects these. */
3191 ++ccp;
3192 p = (char**) ccp;
3193 ccp = (char const *const *) p;
3194 { /* SCO 3.2v4 cc rejects this. */
3195 char *t;
3196 char const *s = 0 ? (char *) 0 : (char const *) 0;
3198 *t++ = 0;
3200 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3201 int x[] = {25, 17};
3202 const int *foo = &x[0];
3203 ++foo;
3205 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3206 typedef const int *iptr;
3207 iptr p = 0;
3208 ++p;
3210 { /* AIX XL C 1.02.0.0 rejects this saying
3211 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3212 struct s { int j; const int *ap[3]; };
3213 struct s *b; b->j = 5;
3215 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3216 const int foo = 10;
3218 #endif
3221 return 0;
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -s conftest.$ac_objext'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 (eval $ac_try) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; }; then
3236 ac_cv_c_const=yes
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3240 ac_cv_c_const=no
3242 rm -f conftest.$ac_objext conftest.$ac_ext
3244 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3245 echo "${ECHO_T}$ac_cv_c_const" >&6
3246 if test $ac_cv_c_const = no; then
3248 cat >>confdefs.h <<\_ACEOF
3249 #define const
3250 _ACEOF
3254 echo "$as_me:$LINENO: checking for inline" >&5
3255 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3256 if test "${ac_cv_c_inline+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 ac_cv_c_inline=no
3260 for ac_kw in inline __inline__ __inline; do
3261 cat >conftest.$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 #include "confdefs.h"
3264 #ifndef __cplusplus
3265 static $ac_kw int static_foo () {return 0; }
3266 $ac_kw int foo () {return 0; }
3267 #endif
3269 _ACEOF
3270 rm -f conftest.$ac_objext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272 (eval $ac_compile) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -s conftest.$ac_objext'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 (eval $ac_try) 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3282 ac_cv_c_inline=$ac_kw; break
3283 else
3284 echo "$as_me: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 rm -f conftest.$ac_objext conftest.$ac_ext
3288 done
3291 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3292 echo "${ECHO_T}$ac_cv_c_inline" >&6
3293 case $ac_cv_c_inline in
3294 inline | yes) ;;
3296 cat >>confdefs.h <<\_ACEOF
3297 #define inline
3298 _ACEOF
3300 *) cat >>confdefs.h <<_ACEOF
3301 #define inline $ac_cv_c_inline
3302 _ACEOF
3304 esac
3306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3317 inttypes.h stdint.h unistd.h
3319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3320 echo "$as_me:$LINENO: checking for $ac_header" >&5
3321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325 cat >conftest.$ac_ext <<_ACEOF
3326 #line $LINENO "configure"
3327 #include "confdefs.h"
3328 $ac_includes_default
3330 #include <$ac_header>
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } &&
3338 { ac_try='test -s conftest.$ac_objext'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 (eval $ac_try) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3344 eval "$as_ac_Header=yes"
3345 else
3346 echo "$as_me: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3348 eval "$as_ac_Header=no"
3350 rm -f conftest.$ac_objext conftest.$ac_ext
3352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3355 cat >>confdefs.h <<_ACEOF
3356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3357 _ACEOF
3361 done
3364 echo "$as_me:$LINENO: checking for off_t" >&5
3365 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3366 if test "${ac_cv_type_off_t+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369 cat >conftest.$ac_ext <<_ACEOF
3370 #line $LINENO "configure"
3371 #include "confdefs.h"
3372 $ac_includes_default
3373 #ifdef F77_DUMMY_MAIN
3374 # ifdef __cplusplus
3375 extern "C"
3376 # endif
3377 int F77_DUMMY_MAIN() { return 1; }
3378 #endif
3380 main ()
3382 if ((off_t *) 0)
3383 return 0;
3384 if (sizeof (off_t))
3385 return 0;
3387 return 0;
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try='test -s conftest.$ac_objext'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 (eval $ac_try) 2>&5
3399 ac_status=$?
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3402 ac_cv_type_off_t=yes
3403 else
3404 echo "$as_me: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3406 ac_cv_type_off_t=no
3408 rm -f conftest.$ac_objext conftest.$ac_ext
3410 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3411 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3412 if test $ac_cv_type_off_t = yes; then
3414 else
3416 cat >>confdefs.h <<_ACEOF
3417 #define off_t long
3418 _ACEOF
3422 echo "$as_me:$LINENO: checking for size_t" >&5
3423 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3424 if test "${ac_cv_type_size_t+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427 cat >conftest.$ac_ext <<_ACEOF
3428 #line $LINENO "configure"
3429 #include "confdefs.h"
3430 $ac_includes_default
3431 #ifdef F77_DUMMY_MAIN
3432 # ifdef __cplusplus
3433 extern "C"
3434 # endif
3435 int F77_DUMMY_MAIN() { return 1; }
3436 #endif
3438 main ()
3440 if ((size_t *) 0)
3441 return 0;
3442 if (sizeof (size_t))
3443 return 0;
3445 return 0;
3447 _ACEOF
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 ac_cv_type_size_t=yes
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3464 ac_cv_type_size_t=no
3466 rm -f conftest.$ac_objext conftest.$ac_ext
3468 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3469 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3470 if test $ac_cv_type_size_t = yes; then
3472 else
3474 cat >>confdefs.h <<_ACEOF
3475 #define size_t unsigned
3476 _ACEOF
3480 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3481 # for constant arguments. Useless!
3482 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3483 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3484 if test "${ac_cv_working_alloca_h+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 cat >conftest.$ac_ext <<_ACEOF
3488 #line $LINENO "configure"
3489 #include "confdefs.h"
3490 #include <alloca.h>
3491 #ifdef F77_DUMMY_MAIN
3492 # ifdef __cplusplus
3493 extern "C"
3494 # endif
3495 int F77_DUMMY_MAIN() { return 1; }
3496 #endif
3498 main ()
3500 char *p = (char *) alloca (2 * sizeof (int));
3502 return 0;
3504 _ACEOF
3505 rm -f conftest.$ac_objext conftest$ac_exeext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3507 (eval $ac_link) 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } &&
3511 { ac_try='test -s conftest$ac_exeext'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 (eval $ac_try) 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; }; then
3517 ac_cv_working_alloca_h=yes
3518 else
3519 echo "$as_me: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3521 ac_cv_working_alloca_h=no
3523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3525 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3526 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3527 if test $ac_cv_working_alloca_h = yes; then
3529 cat >>confdefs.h <<\_ACEOF
3530 #define HAVE_ALLOCA_H 1
3531 _ACEOF
3535 echo "$as_me:$LINENO: checking for alloca" >&5
3536 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3537 if test "${ac_cv_func_alloca_works+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 cat >conftest.$ac_ext <<_ACEOF
3541 #line $LINENO "configure"
3542 #include "confdefs.h"
3543 #ifdef __GNUC__
3544 # define alloca __builtin_alloca
3545 #else
3546 # ifdef _MSC_VER
3547 # include <malloc.h>
3548 # define alloca _alloca
3549 # else
3550 # if HAVE_ALLOCA_H
3551 # include <alloca.h>
3552 # else
3553 # ifdef _AIX
3554 #pragma alloca
3555 # else
3556 # ifndef alloca /* predefined by HP cc +Olibcalls */
3557 char *alloca ();
3558 # endif
3559 # endif
3560 # endif
3561 # endif
3562 #endif
3564 #ifdef F77_DUMMY_MAIN
3565 # ifdef __cplusplus
3566 extern "C"
3567 # endif
3568 int F77_DUMMY_MAIN() { return 1; }
3569 #endif
3571 main ()
3573 char *p = (char *) alloca (1);
3575 return 0;
3577 _ACEOF
3578 rm -f conftest.$ac_objext conftest$ac_exeext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3580 (eval $ac_link) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -s conftest$ac_exeext'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; }; then
3590 ac_cv_func_alloca_works=yes
3591 else
3592 echo "$as_me: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3594 ac_cv_func_alloca_works=no
3596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3598 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3599 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3601 if test $ac_cv_func_alloca_works = yes; then
3603 cat >>confdefs.h <<\_ACEOF
3604 #define HAVE_ALLOCA 1
3605 _ACEOF
3607 else
3608 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3609 # that cause trouble. Some versions do not even contain alloca or
3610 # contain a buggy version. If you still want to use their alloca,
3611 # use ar to extract alloca.o from them instead of compiling alloca.c.
3613 ALLOCA=alloca.$ac_objext
3615 cat >>confdefs.h <<\_ACEOF
3616 #define C_ALLOCA 1
3617 _ACEOF
3620 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3621 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3622 if test "${ac_cv_os_cray+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 cat >conftest.$ac_ext <<_ACEOF
3626 #line $LINENO "configure"
3627 #include "confdefs.h"
3628 #if defined(CRAY) && ! defined(CRAY2)
3629 webecray
3630 #else
3631 wenotbecray
3632 #endif
3634 _ACEOF
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636 egrep "webecray" >/dev/null 2>&1; then
3637 ac_cv_os_cray=yes
3638 else
3639 ac_cv_os_cray=no
3641 rm -f conftest*
3644 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3645 echo "${ECHO_T}$ac_cv_os_cray" >&6
3646 if test $ac_cv_os_cray = yes; then
3647 for ac_func in _getb67 GETB67 getb67; do
3648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3649 echo "$as_me:$LINENO: checking for $ac_func" >&5
3650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3651 if eval "test \"\${$as_ac_var+set}\" = set"; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654 cat >conftest.$ac_ext <<_ACEOF
3655 #line $LINENO "configure"
3656 #include "confdefs.h"
3657 /* System header to define __stub macros and hopefully few prototypes,
3658 which can conflict with char $ac_func (); below. */
3659 #include <assert.h>
3660 /* Override any gcc2 internal prototype to avoid an error. */
3661 #ifdef __cplusplus
3662 extern "C"
3663 #endif
3664 /* We use char because int might match the return type of a gcc2
3665 builtin and then its argument prototype would still apply. */
3666 char $ac_func ();
3667 char (*f) ();
3669 #ifdef F77_DUMMY_MAIN
3670 # ifdef __cplusplus
3671 extern "C"
3672 # endif
3673 int F77_DUMMY_MAIN() { return 1; }
3674 #endif
3676 main ()
3678 /* The GNU C library defines this for functions which it implements
3679 to always fail with ENOSYS. Some functions are actually named
3680 something starting with __ and the normal name is an alias. */
3681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3682 choke me
3683 #else
3684 f = $ac_func;
3685 #endif
3688 return 0;
3690 _ACEOF
3691 rm -f conftest.$ac_objext conftest$ac_exeext
3692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3693 (eval $ac_link) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try='test -s conftest$ac_exeext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 eval "$as_ac_var=yes"
3704 else
3705 echo "$as_me: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3707 eval "$as_ac_var=no"
3709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3713 if test `eval echo '${'$as_ac_var'}'` = yes; then
3715 cat >>confdefs.h <<_ACEOF
3716 #define CRAY_STACKSEG_END $ac_func
3717 _ACEOF
3719 break
3722 done
3725 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3726 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3727 if test "${ac_cv_c_stack_direction+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 if test "$cross_compiling" = yes; then
3731 ac_cv_c_stack_direction=0
3732 else
3733 cat >conftest.$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3735 #include "confdefs.h"
3737 find_stack_direction ()
3739 static char *addr = 0;
3740 auto char dummy;
3741 if (addr == 0)
3743 addr = &dummy;
3744 return find_stack_direction ();
3746 else
3747 return (&dummy > addr) ? 1 : -1;
3751 main ()
3753 exit (find_stack_direction () < 0);
3755 _ACEOF
3756 rm -f conftest$ac_exeext
3757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3758 (eval $ac_link) 2>&5
3759 ac_status=$?
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3767 ac_cv_c_stack_direction=1
3768 else
3769 echo "$as_me: program exited with status $ac_status" >&5
3770 echo "$as_me: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3772 ( exit $ac_status )
3773 ac_cv_c_stack_direction=-1
3775 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3778 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3779 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3781 cat >>confdefs.h <<_ACEOF
3782 #define STACK_DIRECTION $ac_cv_c_stack_direction
3783 _ACEOF
3790 for ac_header in stdlib.h unistd.h
3792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3794 echo "$as_me:$LINENO: checking for $ac_header" >&5
3795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3801 else
3802 # Is the header compilable?
3803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3805 cat >conftest.$ac_ext <<_ACEOF
3806 #line $LINENO "configure"
3807 #include "confdefs.h"
3808 $ac_includes_default
3809 #include <$ac_header>
3810 _ACEOF
3811 rm -f conftest.$ac_objext
3812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3813 (eval $ac_compile) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_header_compiler=yes
3824 else
3825 echo "$as_me: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3827 ac_header_compiler=no
3829 rm -f conftest.$ac_objext conftest.$ac_ext
3830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3831 echo "${ECHO_T}$ac_header_compiler" >&6
3833 # Is the header present?
3834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3836 cat >conftest.$ac_ext <<_ACEOF
3837 #line $LINENO "configure"
3838 #include "confdefs.h"
3839 #include <$ac_header>
3840 _ACEOF
3841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3843 ac_status=$?
3844 egrep -v '^ *\+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } >/dev/null; then
3849 if test -s conftest.err; then
3850 ac_cpp_err=$ac_c_preproc_warn_flag
3851 else
3852 ac_cpp_err=
3854 else
3855 ac_cpp_err=yes
3857 if test -z "$ac_cpp_err"; then
3858 ac_header_preproc=yes
3859 else
3860 echo "$as_me: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3862 ac_header_preproc=no
3864 rm -f conftest.err conftest.$ac_ext
3865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3866 echo "${ECHO_T}$ac_header_preproc" >&6
3868 # So? What about this header?
3869 case $ac_header_compiler:$ac_header_preproc in
3870 yes:no )
3871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3875 no:yes )
3876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3882 esac
3883 echo "$as_me:$LINENO: checking for $ac_header" >&5
3884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 eval "$as_ac_Header=$ac_header_preproc"
3890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3895 cat >>confdefs.h <<_ACEOF
3896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3897 _ACEOF
3901 done
3904 for ac_func in getpagesize
3906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3907 echo "$as_me:$LINENO: checking for $ac_func" >&5
3908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3909 if eval "test \"\${$as_ac_var+set}\" = set"; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912 cat >conftest.$ac_ext <<_ACEOF
3913 #line $LINENO "configure"
3914 #include "confdefs.h"
3915 /* System header to define __stub macros and hopefully few prototypes,
3916 which can conflict with char $ac_func (); below. */
3917 #include <assert.h>
3918 /* Override any gcc2 internal prototype to avoid an error. */
3919 #ifdef __cplusplus
3920 extern "C"
3921 #endif
3922 /* We use char because int might match the return type of a gcc2
3923 builtin and then its argument prototype would still apply. */
3924 char $ac_func ();
3925 char (*f) ();
3927 #ifdef F77_DUMMY_MAIN
3928 # ifdef __cplusplus
3929 extern "C"
3930 # endif
3931 int F77_DUMMY_MAIN() { return 1; }
3932 #endif
3934 main ()
3936 /* The GNU C library defines this for functions which it implements
3937 to always fail with ENOSYS. Some functions are actually named
3938 something starting with __ and the normal name is an alias. */
3939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3940 choke me
3941 #else
3942 f = $ac_func;
3943 #endif
3946 return 0;
3948 _ACEOF
3949 rm -f conftest.$ac_objext conftest$ac_exeext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3951 (eval $ac_link) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } &&
3955 { ac_try='test -s conftest$ac_exeext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 eval "$as_ac_var=yes"
3962 else
3963 echo "$as_me: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3965 eval "$as_ac_var=no"
3967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3971 if test `eval echo '${'$as_ac_var'}'` = yes; then
3972 cat >>confdefs.h <<_ACEOF
3973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3974 _ACEOF
3977 done
3979 echo "$as_me:$LINENO: checking for working mmap" >&5
3980 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3981 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984 if test "$cross_compiling" = yes; then
3985 ac_cv_func_mmap_fixed_mapped=no
3986 else
3987 cat >conftest.$ac_ext <<_ACEOF
3988 #line $LINENO "configure"
3989 #include "confdefs.h"
3990 $ac_includes_default
3991 /* malloc might have been renamed as rpl_malloc. */
3992 #undef malloc
3994 /* Thanks to Mike Haertel and Jim Avera for this test.
3995 Here is a matrix of mmap possibilities:
3996 mmap private not fixed
3997 mmap private fixed at somewhere currently unmapped
3998 mmap private fixed at somewhere already mapped
3999 mmap shared not fixed
4000 mmap shared fixed at somewhere currently unmapped
4001 mmap shared fixed at somewhere already mapped
4002 For private mappings, we should verify that changes cannot be read()
4003 back from the file, nor mmap's back from the file at a different
4004 address. (There have been systems where private was not correctly
4005 implemented like the infamous i386 svr4.0, and systems where the
4006 VM page cache was not coherent with the file system buffer cache
4007 like early versions of FreeBSD and possibly contemporary NetBSD.)
4008 For shared mappings, we should conversely verify that changes get
4009 propagated back to all the places they're supposed to be.
4011 Grep wants private fixed already mapped.
4012 The main things grep needs to know about mmap are:
4013 * does it exist and is it safe to write into the mmap'd area
4014 * how to use it (BSD variants) */
4016 #include <fcntl.h>
4017 #include <sys/mman.h>
4019 #if !STDC_HEADERS && !HAVE_STDLIB_H
4020 char *malloc ();
4021 #endif
4023 /* This mess was copied from the GNU getpagesize.h. */
4024 #if !HAVE_GETPAGESIZE
4025 /* Assume that all systems that can run configure have sys/param.h. */
4026 # if !HAVE_SYS_PARAM_H
4027 # define HAVE_SYS_PARAM_H 1
4028 # endif
4030 # ifdef _SC_PAGESIZE
4031 # define getpagesize() sysconf(_SC_PAGESIZE)
4032 # else /* no _SC_PAGESIZE */
4033 # if HAVE_SYS_PARAM_H
4034 # include <sys/param.h>
4035 # ifdef EXEC_PAGESIZE
4036 # define getpagesize() EXEC_PAGESIZE
4037 # else /* no EXEC_PAGESIZE */
4038 # ifdef NBPG
4039 # define getpagesize() NBPG * CLSIZE
4040 # ifndef CLSIZE
4041 # define CLSIZE 1
4042 # endif /* no CLSIZE */
4043 # else /* no NBPG */
4044 # ifdef NBPC
4045 # define getpagesize() NBPC
4046 # else /* no NBPC */
4047 # ifdef PAGESIZE
4048 # define getpagesize() PAGESIZE
4049 # endif /* PAGESIZE */
4050 # endif /* no NBPC */
4051 # endif /* no NBPG */
4052 # endif /* no EXEC_PAGESIZE */
4053 # else /* no HAVE_SYS_PARAM_H */
4054 # define getpagesize() 8192 /* punt totally */
4055 # endif /* no HAVE_SYS_PARAM_H */
4056 # endif /* no _SC_PAGESIZE */
4058 #endif /* no HAVE_GETPAGESIZE */
4061 main ()
4063 char *data, *data2, *data3;
4064 int i, pagesize;
4065 int fd;
4067 pagesize = getpagesize ();
4069 /* First, make a file with some known garbage in it. */
4070 data = (char *) malloc (pagesize);
4071 if (!data)
4072 exit (1);
4073 for (i = 0; i < pagesize; ++i)
4074 *(data + i) = rand ();
4075 umask (0);
4076 fd = creat ("conftest.mmap", 0600);
4077 if (fd < 0)
4078 exit (1);
4079 if (write (fd, data, pagesize) != pagesize)
4080 exit (1);
4081 close (fd);
4083 /* Next, try to mmap the file at a fixed address which already has
4084 something else allocated at it. If we can, also make sure that
4085 we see the same garbage. */
4086 fd = open ("conftest.mmap", O_RDWR);
4087 if (fd < 0)
4088 exit (1);
4089 data2 = (char *) malloc (2 * pagesize);
4090 if (!data2)
4091 exit (1);
4092 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4093 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4094 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4095 exit (1);
4096 for (i = 0; i < pagesize; ++i)
4097 if (*(data + i) != *(data2 + i))
4098 exit (1);
4100 /* Finally, make sure that changes to the mapped area do not
4101 percolate back to the file as seen by read(). (This is a bug on
4102 some variants of i386 svr4.0.) */
4103 for (i = 0; i < pagesize; ++i)
4104 *(data2 + i) = *(data2 + i) + 1;
4105 data3 = (char *) malloc (pagesize);
4106 if (!data3)
4107 exit (1);
4108 if (read (fd, data3, pagesize) != pagesize)
4109 exit (1);
4110 for (i = 0; i < pagesize; ++i)
4111 if (*(data + i) != *(data3 + i))
4112 exit (1);
4113 close (fd);
4114 exit (0);
4116 _ACEOF
4117 rm -f conftest$ac_exeext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4119 (eval $ac_link) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_func_mmap_fixed_mapped=yes
4129 else
4130 echo "$as_me: program exited with status $ac_status" >&5
4131 echo "$as_me: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 ( exit $ac_status )
4134 ac_cv_func_mmap_fixed_mapped=no
4136 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4139 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4140 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4141 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4143 cat >>confdefs.h <<\_ACEOF
4144 #define HAVE_MMAP 1
4145 _ACEOF
4148 rm -f conftest.mmap
4151 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
4152 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4153 if test "${ac_cv_gnu_library_2_1+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156 cat >conftest.$ac_ext <<_ACEOF
4157 #line $LINENO "configure"
4158 #include "confdefs.h"
4160 #include <features.h>
4161 #ifdef __GNU_LIBRARY__
4162 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4163 Lucky GNU user
4164 #endif
4165 #endif
4167 _ACEOF
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 egrep "Lucky GNU user" >/dev/null 2>&1; then
4170 ac_cv_gnu_library_2_1=yes
4171 else
4172 ac_cv_gnu_library_2_1=no
4174 rm -f conftest*
4179 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
4180 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4182 GLIBC21="$ac_cv_gnu_library_2_1"
4196 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
4197 stdlib.h string.h unistd.h sys/param.h
4199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4201 echo "$as_me:$LINENO: checking for $ac_header" >&5
4202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4208 else
4209 # Is the header compilable?
4210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4213 #line $LINENO "configure"
4214 #include "confdefs.h"
4215 $ac_includes_default
4216 #include <$ac_header>
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_header_compiler=yes
4231 else
4232 echo "$as_me: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 ac_header_compiler=no
4236 rm -f conftest.$ac_objext conftest.$ac_ext
4237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4238 echo "${ECHO_T}$ac_header_compiler" >&6
4240 # Is the header present?
4241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4243 cat >conftest.$ac_ext <<_ACEOF
4244 #line $LINENO "configure"
4245 #include "confdefs.h"
4246 #include <$ac_header>
4247 _ACEOF
4248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4250 ac_status=$?
4251 egrep -v '^ *\+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } >/dev/null; then
4256 if test -s conftest.err; then
4257 ac_cpp_err=$ac_c_preproc_warn_flag
4258 else
4259 ac_cpp_err=
4261 else
4262 ac_cpp_err=yes
4264 if test -z "$ac_cpp_err"; then
4265 ac_header_preproc=yes
4266 else
4267 echo "$as_me: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 ac_header_preproc=no
4271 rm -f conftest.err conftest.$ac_ext
4272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4273 echo "${ECHO_T}$ac_header_preproc" >&6
4275 # So? What about this header?
4276 case $ac_header_compiler:$ac_header_preproc in
4277 yes:no )
4278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4282 no:yes )
4283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4289 esac
4290 echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295 eval "$as_ac_Header=$ac_header_preproc"
4297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302 cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304 _ACEOF
4308 done
4331 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
4332 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
4333 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
4335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4336 echo "$as_me:$LINENO: checking for $ac_func" >&5
4337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4338 if eval "test \"\${$as_ac_var+set}\" = set"; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341 cat >conftest.$ac_ext <<_ACEOF
4342 #line $LINENO "configure"
4343 #include "confdefs.h"
4344 /* System header to define __stub macros and hopefully few prototypes,
4345 which can conflict with char $ac_func (); below. */
4346 #include <assert.h>
4347 /* Override any gcc2 internal prototype to avoid an error. */
4348 #ifdef __cplusplus
4349 extern "C"
4350 #endif
4351 /* We use char because int might match the return type of a gcc2
4352 builtin and then its argument prototype would still apply. */
4353 char $ac_func ();
4354 char (*f) ();
4356 #ifdef F77_DUMMY_MAIN
4357 # ifdef __cplusplus
4358 extern "C"
4359 # endif
4360 int F77_DUMMY_MAIN() { return 1; }
4361 #endif
4363 main ()
4365 /* The GNU C library defines this for functions which it implements
4366 to always fail with ENOSYS. Some functions are actually named
4367 something starting with __ and the normal name is an alias. */
4368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4369 choke me
4370 #else
4371 f = $ac_func;
4372 #endif
4375 return 0;
4377 _ACEOF
4378 rm -f conftest.$ac_objext conftest$ac_exeext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380 (eval $ac_link) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try='test -s conftest$ac_exeext'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 eval "$as_ac_var=yes"
4391 else
4392 echo "$as_me: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4394 eval "$as_ac_var=no"
4396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4400 if test `eval echo '${'$as_ac_var'}'` = yes; then
4401 cat >>confdefs.h <<_ACEOF
4402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4403 _ACEOF
4406 done
4412 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4413 if test "${with_libiconv_prefix+set}" = set; then
4414 withval="$with_libiconv_prefix"
4416 for dir in `echo "$withval" | tr : ' '`; do
4417 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
4418 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
4419 done
4423 echo "$as_me:$LINENO: checking for iconv" >&5
4424 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
4425 if test "${am_cv_func_iconv+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4429 am_cv_func_iconv="no, consider installing GNU libiconv"
4430 am_cv_lib_iconv=no
4431 cat >conftest.$ac_ext <<_ACEOF
4432 #line $LINENO "configure"
4433 #include "confdefs.h"
4434 #include <stdlib.h>
4435 #include <iconv.h>
4436 #ifdef F77_DUMMY_MAIN
4437 # ifdef __cplusplus
4438 extern "C"
4439 # endif
4440 int F77_DUMMY_MAIN() { return 1; }
4441 #endif
4443 main ()
4445 iconv_t cd = iconv_open("","");
4446 iconv(cd,NULL,NULL,NULL,NULL);
4447 iconv_close(cd);
4449 return 0;
4451 _ACEOF
4452 rm -f conftest.$ac_objext conftest$ac_exeext
4453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4454 (eval $ac_link) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try='test -s conftest$ac_exeext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 am_cv_func_iconv=yes
4465 else
4466 echo "$as_me: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4470 if test "$am_cv_func_iconv" != yes; then
4471 am_save_LIBS="$LIBS"
4472 LIBS="$LIBS -liconv"
4473 cat >conftest.$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4475 #include "confdefs.h"
4476 #include <stdlib.h>
4477 #include <iconv.h>
4478 #ifdef F77_DUMMY_MAIN
4479 # ifdef __cplusplus
4480 extern "C"
4481 # endif
4482 int F77_DUMMY_MAIN() { return 1; }
4483 #endif
4485 main ()
4487 iconv_t cd = iconv_open("","");
4488 iconv(cd,NULL,NULL,NULL,NULL);
4489 iconv_close(cd);
4491 return 0;
4493 _ACEOF
4494 rm -f conftest.$ac_objext conftest$ac_exeext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4496 (eval $ac_link) 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } &&
4500 { ac_try='test -s conftest$ac_exeext'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 (eval $ac_try) 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
4506 am_cv_lib_iconv=yes
4507 am_cv_func_iconv=yes
4508 else
4509 echo "$as_me: failed program was:" >&5
4510 cat conftest.$ac_ext >&5
4512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4513 LIBS="$am_save_LIBS"
4517 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4518 echo "${ECHO_T}$am_cv_func_iconv" >&6
4519 if test "$am_cv_func_iconv" = yes; then
4521 cat >>confdefs.h <<\_ACEOF
4522 #define HAVE_ICONV 1
4523 _ACEOF
4525 echo "$as_me:$LINENO: checking for iconv declaration" >&5
4526 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
4527 if test "${am_cv_proto_iconv+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4531 cat >conftest.$ac_ext <<_ACEOF
4532 #line $LINENO "configure"
4533 #include "confdefs.h"
4535 #include <stdlib.h>
4536 #include <iconv.h>
4537 extern
4538 #ifdef __cplusplus
4540 #endif
4541 #if defined(__STDC__) || defined(__cplusplus)
4542 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4543 #else
4544 size_t iconv();
4545 #endif
4547 #ifdef F77_DUMMY_MAIN
4548 # ifdef __cplusplus
4549 extern "C"
4550 # endif
4551 int F77_DUMMY_MAIN() { return 1; }
4552 #endif
4554 main ()
4558 return 0;
4560 _ACEOF
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 am_cv_proto_iconv_arg1=""
4574 else
4575 echo "$as_me: failed program was:" >&5
4576 cat conftest.$ac_ext >&5
4577 am_cv_proto_iconv_arg1="const"
4579 rm -f conftest.$ac_objext conftest.$ac_ext
4580 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
4583 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4584 echo "$as_me:$LINENO: result: ${ac_t:-
4585 }$am_cv_proto_iconv" >&5
4586 echo "${ECHO_T}${ac_t:-
4587 }$am_cv_proto_iconv" >&6
4589 cat >>confdefs.h <<_ACEOF
4590 #define ICONV_CONST $am_cv_proto_iconv_arg1
4591 _ACEOF
4594 LIBICONV=
4595 if test "$am_cv_lib_iconv" = yes; then
4596 LIBICONV="-liconv"
4601 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
4602 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4603 if test "${am_cv_langinfo_codeset+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 cat >conftest.$ac_ext <<_ACEOF
4607 #line $LINENO "configure"
4608 #include "confdefs.h"
4609 #include <langinfo.h>
4610 #ifdef F77_DUMMY_MAIN
4611 # ifdef __cplusplus
4612 extern "C"
4613 # endif
4614 int F77_DUMMY_MAIN() { return 1; }
4615 #endif
4617 main ()
4619 char* cs = nl_langinfo(CODESET);
4621 return 0;
4623 _ACEOF
4624 rm -f conftest.$ac_objext conftest$ac_exeext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4626 (eval $ac_link) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -s conftest$ac_exeext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 am_cv_langinfo_codeset=yes
4637 else
4638 echo "$as_me: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 am_cv_langinfo_codeset=no
4642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4645 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
4646 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4647 if test $am_cv_langinfo_codeset = yes; then
4649 cat >>confdefs.h <<\_ACEOF
4650 #define HAVE_LANGINFO_CODESET 1
4651 _ACEOF
4655 if test $ac_cv_header_locale_h = yes; then
4656 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4657 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4658 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661 cat >conftest.$ac_ext <<_ACEOF
4662 #line $LINENO "configure"
4663 #include "confdefs.h"
4664 #include <locale.h>
4665 #ifdef F77_DUMMY_MAIN
4666 # ifdef __cplusplus
4667 extern "C"
4668 # endif
4669 int F77_DUMMY_MAIN() { return 1; }
4670 #endif
4672 main ()
4674 return LC_MESSAGES
4676 return 0;
4678 _ACEOF
4679 rm -f conftest.$ac_objext conftest$ac_exeext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try='test -s conftest$ac_exeext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 am_cv_val_LC_MESSAGES=yes
4692 else
4693 echo "$as_me: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4695 am_cv_val_LC_MESSAGES=no
4697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4699 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4700 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4701 if test $am_cv_val_LC_MESSAGES = yes; then
4703 cat >>confdefs.h <<\_ACEOF
4704 #define HAVE_LC_MESSAGES 1
4705 _ACEOF
4709 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4710 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4711 # Check whether --enable-nls or --disable-nls was given.
4712 if test "${enable_nls+set}" = set; then
4713 enableval="$enable_nls"
4714 USE_NLS=$enableval
4715 else
4716 USE_NLS=yes
4718 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4719 echo "${ECHO_T}$USE_NLS" >&6
4722 BUILD_INCLUDED_LIBINTL=no
4723 USE_INCLUDED_LIBINTL=no
4724 INTLLIBS=
4726 if test "$USE_NLS" = "yes"; then
4728 cat >>confdefs.h <<\_ACEOF
4729 #define ENABLE_NLS 1
4730 _ACEOF
4732 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4733 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4735 # Check whether --with-included-gettext or --without-included-gettext was given.
4736 if test "${with_included_gettext+set}" = set; then
4737 withval="$with_included_gettext"
4738 nls_cv_force_use_gnu_gettext=$withval
4739 else
4740 nls_cv_force_use_gnu_gettext=no
4742 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4743 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4745 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4746 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4747 CATOBJEXT=NONE
4752 if test "${ac_cv_header_libintl_h+set}" = set; then
4753 echo "$as_me:$LINENO: checking for libintl.h" >&5
4754 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4755 if test "${ac_cv_header_libintl_h+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4759 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4760 else
4761 # Is the header compilable?
4762 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4763 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4764 cat >conftest.$ac_ext <<_ACEOF
4765 #line $LINENO "configure"
4766 #include "confdefs.h"
4767 $ac_includes_default
4768 #include <libintl.h>
4769 _ACEOF
4770 rm -f conftest.$ac_objext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4772 (eval $ac_compile) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_header_compiler=yes
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4786 ac_header_compiler=no
4788 rm -f conftest.$ac_objext conftest.$ac_ext
4789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4790 echo "${ECHO_T}$ac_header_compiler" >&6
4792 # Is the header present?
4793 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4794 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4795 cat >conftest.$ac_ext <<_ACEOF
4796 #line $LINENO "configure"
4797 #include "confdefs.h"
4798 #include <libintl.h>
4799 _ACEOF
4800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4802 ac_status=$?
4803 egrep -v '^ *\+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } >/dev/null; then
4808 if test -s conftest.err; then
4809 ac_cpp_err=$ac_c_preproc_warn_flag
4810 else
4811 ac_cpp_err=
4813 else
4814 ac_cpp_err=yes
4816 if test -z "$ac_cpp_err"; then
4817 ac_header_preproc=yes
4818 else
4819 echo "$as_me: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 ac_header_preproc=no
4823 rm -f conftest.err conftest.$ac_ext
4824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4825 echo "${ECHO_T}$ac_header_preproc" >&6
4827 # So? What about this header?
4828 case $ac_header_compiler:$ac_header_preproc in
4829 yes:no )
4830 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4831 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4832 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4833 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4834 no:yes )
4835 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4836 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4837 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4838 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4839 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4840 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4841 esac
4842 echo "$as_me:$LINENO: checking for libintl.h" >&5
4843 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4844 if test "${ac_cv_header_libintl_h+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 ac_cv_header_libintl_h=$ac_header_preproc
4849 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4850 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4853 if test $ac_cv_header_libintl_h = yes; then
4854 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4855 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
4856 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 cat >conftest.$ac_ext <<_ACEOF
4860 #line $LINENO "configure"
4861 #include "confdefs.h"
4862 #include <libintl.h>
4863 extern int _nl_msg_cat_cntr;
4864 #ifdef F77_DUMMY_MAIN
4865 # ifdef __cplusplus
4866 extern "C"
4867 # endif
4868 int F77_DUMMY_MAIN() { return 1; }
4869 #endif
4871 main ()
4873 bindtextdomain ("", "");
4874 return (int) gettext ("") + _nl_msg_cat_cntr
4876 return 0;
4878 _ACEOF
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881 (eval $ac_link) 2>&5
4882 ac_status=$?
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try='test -s conftest$ac_exeext'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 gt_cv_func_gnugettext1_libc=yes
4892 else
4893 echo "$as_me: failed program was:" >&5
4894 cat conftest.$ac_ext >&5
4895 gt_cv_func_gnugettext1_libc=no
4897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4899 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4900 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
4902 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4903 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4904 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4905 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 gt_save_LIBS="$LIBS"
4909 LIBS="$LIBS -lintl $LIBICONV"
4910 cat >conftest.$ac_ext <<_ACEOF
4911 #line $LINENO "configure"
4912 #include "confdefs.h"
4913 #include <libintl.h>
4914 extern int _nl_msg_cat_cntr;
4915 #ifdef F77_DUMMY_MAIN
4916 # ifdef __cplusplus
4917 extern "C"
4918 # endif
4919 int F77_DUMMY_MAIN() { return 1; }
4920 #endif
4922 main ()
4924 bindtextdomain ("", "");
4925 return (int) gettext ("") + _nl_msg_cat_cntr
4927 return 0;
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } &&
4936 { ac_try='test -s conftest$ac_exeext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 gt_cv_func_gnugettext1_libintl=yes
4943 else
4944 echo "$as_me: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4946 gt_cv_func_gnugettext1_libintl=no
4948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4949 LIBS="$gt_save_LIBS"
4951 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
4952 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
4955 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4956 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4957 && test "$PACKAGE" != gettext; }; then
4959 cat >>confdefs.h <<\_ACEOF
4960 #define HAVE_GETTEXT 1
4961 _ACEOF
4964 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4965 INTLLIBS="-lintl $LIBICONV"
4968 gt_save_LIBS="$LIBS"
4969 LIBS="$LIBS $INTLLIBS"
4971 for ac_func in dcgettext
4973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4974 echo "$as_me:$LINENO: checking for $ac_func" >&5
4975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4976 if eval "test \"\${$as_ac_var+set}\" = set"; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979 cat >conftest.$ac_ext <<_ACEOF
4980 #line $LINENO "configure"
4981 #include "confdefs.h"
4982 /* System header to define __stub macros and hopefully few prototypes,
4983 which can conflict with char $ac_func (); below. */
4984 #include <assert.h>
4985 /* Override any gcc2 internal prototype to avoid an error. */
4986 #ifdef __cplusplus
4987 extern "C"
4988 #endif
4989 /* We use char because int might match the return type of a gcc2
4990 builtin and then its argument prototype would still apply. */
4991 char $ac_func ();
4992 char (*f) ();
4994 #ifdef F77_DUMMY_MAIN
4995 # ifdef __cplusplus
4996 extern "C"
4997 # endif
4998 int F77_DUMMY_MAIN() { return 1; }
4999 #endif
5001 main ()
5003 /* The GNU C library defines this for functions which it implements
5004 to always fail with ENOSYS. Some functions are actually named
5005 something starting with __ and the normal name is an alias. */
5006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5007 choke me
5008 #else
5009 f = $ac_func;
5010 #endif
5013 return 0;
5015 _ACEOF
5016 rm -f conftest.$ac_objext conftest$ac_exeext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018 (eval $ac_link) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -s conftest$ac_exeext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 eval "$as_ac_var=yes"
5029 else
5030 echo "$as_me: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5032 eval "$as_ac_var=no"
5034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5038 if test `eval echo '${'$as_ac_var'}'` = yes; then
5039 cat >>confdefs.h <<_ACEOF
5040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5041 _ACEOF
5044 done
5046 LIBS="$gt_save_LIBS"
5048 # Extract the first word of "msgfmt", so it can be a program name with args.
5049 set dummy msgfmt; ac_word=$2
5050 echo "$as_me:$LINENO: checking for $ac_word" >&5
5051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5052 if test "${ac_cv_path_MSGFMT+set}" = set; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 else
5055 case "$MSGFMT" in
5057 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5061 for ac_dir in $PATH; do
5062 test -z "$ac_dir" && ac_dir=.
5063 if test -f $ac_dir/$ac_word; then
5064 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
5065 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5066 break
5069 done
5070 IFS="$ac_save_ifs"
5071 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5073 esac
5075 MSGFMT="$ac_cv_path_MSGFMT"
5076 if test "$MSGFMT" != ":"; then
5077 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5078 echo "${ECHO_T}$MSGFMT" >&6
5079 else
5080 echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6
5084 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5085 set dummy gmsgfmt; ac_word=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 case $GMSGFMT in
5092 [\\/]* | ?:[\\/]*)
5093 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5107 done
5108 done
5110 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5112 esac
5114 GMSGFMT=$ac_cv_path_GMSGFMT
5116 if test -n "$GMSGFMT"; then
5117 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5118 echo "${ECHO_T}$GMSGFMT" >&6
5119 else
5120 echo "$as_me:$LINENO: result: no" >&5
5121 echo "${ECHO_T}no" >&6
5125 # Extract the first word of "xgettext", so it can be a program name with args.
5126 set dummy xgettext; ac_word=$2
5127 echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 case "$XGETTEXT" in
5134 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5138 for ac_dir in $PATH; do
5139 test -z "$ac_dir" && ac_dir=.
5140 if test -f $ac_dir/$ac_word; then
5141 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
5142 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5143 break
5146 done
5147 IFS="$ac_save_ifs"
5148 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5150 esac
5152 XGETTEXT="$ac_cv_path_XGETTEXT"
5153 if test "$XGETTEXT" != ":"; then
5154 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5155 echo "${ECHO_T}$XGETTEXT" >&6
5156 else
5157 echo "$as_me:$LINENO: result: no" >&5
5158 echo "${ECHO_T}no" >&6
5162 CATOBJEXT=.gmo
5169 if test "$CATOBJEXT" = "NONE"; then
5170 nls_cv_use_gnu_gettext=yes
5174 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5175 INTLOBJS="\$(GETTOBJS)"
5176 # Extract the first word of "msgfmt", so it can be a program name with args.
5177 set dummy msgfmt; ac_word=$2
5178 echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5180 if test "${ac_cv_path_MSGFMT+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183 case "$MSGFMT" in
5185 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5189 for ac_dir in $PATH; do
5190 test -z "$ac_dir" && ac_dir=.
5191 if test -f $ac_dir/$ac_word; then
5192 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
5193 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5194 break
5197 done
5198 IFS="$ac_save_ifs"
5199 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5201 esac
5203 MSGFMT="$ac_cv_path_MSGFMT"
5204 if test "$MSGFMT" != ":"; then
5205 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5206 echo "${ECHO_T}$MSGFMT" >&6
5207 else
5208 echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5212 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5213 set dummy gmsgfmt; ac_word=$2
5214 echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219 case $GMSGFMT in
5220 [\\/]* | ?:[\\/]*)
5221 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5235 done
5236 done
5238 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5240 esac
5242 GMSGFMT=$ac_cv_path_GMSGFMT
5244 if test -n "$GMSGFMT"; then
5245 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5246 echo "${ECHO_T}$GMSGFMT" >&6
5247 else
5248 echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6
5252 # Extract the first word of "xgettext", so it can be a program name with args.
5253 set dummy xgettext; ac_word=$2
5254 echo "$as_me:$LINENO: checking for $ac_word" >&5
5255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5256 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259 case "$XGETTEXT" in
5261 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5265 for ac_dir in $PATH; do
5266 test -z "$ac_dir" && ac_dir=.
5267 if test -f $ac_dir/$ac_word; then
5268 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
5269 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5270 break
5273 done
5274 IFS="$ac_save_ifs"
5275 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5277 esac
5279 XGETTEXT="$ac_cv_path_XGETTEXT"
5280 if test "$XGETTEXT" != ":"; then
5281 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5282 echo "${ECHO_T}$XGETTEXT" >&6
5283 else
5284 echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6
5289 BUILD_INCLUDED_LIBINTL=yes
5290 USE_INCLUDED_LIBINTL=yes
5291 CATOBJEXT=.gmo
5292 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
5293 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
5296 if test "$GMSGFMT" != ":"; then
5297 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
5299 else
5300 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
5301 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
5302 GMSGFMT=":"
5306 if test "$XGETTEXT" != ":"; then
5307 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
5309 else
5310 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5311 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5312 XGETTEXT=":"
5316 POSUB=po
5318 ac_config_commands="$ac_config_commands default-1"
5322 if test "$PACKAGE" = gettext; then
5323 BUILD_INCLUDED_LIBINTL=yes
5326 for ac_prog in bison
5328 # Extract the first word of "$ac_prog", so it can be a program name with args.
5329 set dummy $ac_prog; ac_word=$2
5330 echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5332 if test "${ac_cv_prog_INTLBISON+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335 if test -n "$INTLBISON"; then
5336 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345 ac_cv_prog_INTLBISON="$ac_prog"
5346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 break 2
5349 done
5350 done
5354 INTLBISON=$ac_cv_prog_INTLBISON
5355 if test -n "$INTLBISON"; then
5356 echo "$as_me:$LINENO: result: $INTLBISON" >&5
5357 echo "${ECHO_T}$INTLBISON" >&6
5358 else
5359 echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6
5363 test -n "$INTLBISON" && break
5364 done
5366 if test -z "$INTLBISON"; then
5367 ac_verc_fail=yes
5368 else
5369 echo "$as_me:$LINENO: checking version of bison" >&5
5370 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
5371 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5372 case $ac_prog_version in
5373 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5374 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5375 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5376 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5377 esac
5378 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5379 echo "${ECHO_T}$ac_prog_version" >&6
5381 if test $ac_verc_fail = yes; then
5382 INTLBISON=:
5385 for lang in $ALL_LINGUAS; do
5386 GMOFILES="$GMOFILES $lang.gmo"
5387 POFILES="$POFILES $lang.po"
5388 done
5400 nls_cv_header_intl=
5401 nls_cv_header_libgt=
5403 DATADIRNAME=share
5406 INSTOBJEXT=.mo
5409 GENCAT=gencat
5413 if test "x$CATOBJEXT" != "x"; then
5414 if test "x$ALL_LINGUAS" = "x"; then
5415 LINGUAS=
5416 else
5417 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5418 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5419 NEW_LINGUAS=
5420 for presentlang in $ALL_LINGUAS; do
5421 useit=no
5422 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
5423 # Use the presentlang catalog if desiredlang is
5424 # a. equal to presentlang, or
5425 # b. a variant of presentlang (because in this case,
5426 # presentlang can be used as a fallback for messages
5427 # which are not translated in the desiredlang catalog).
5428 case "$desiredlang" in
5429 "$presentlang"*) useit=yes;;
5430 esac
5431 done
5432 if test $useit = yes; then
5433 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5435 done
5436 LINGUAS=$NEW_LINGUAS
5437 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5438 echo "${ECHO_T}$LINGUAS" >&6
5441 if test -n "$LINGUAS"; then
5442 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5446 MKINSTALLDIRS=
5447 if test -n "$ac_aux_dir"; then
5448 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5450 if test -z "$MKINSTALLDIRS"; then
5451 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5455 INTL_LIBTOOL_SUFFIX_PREFIX=
5459 # Find a good install program. We prefer a C program (faster),
5460 # so one script is as good as another. But avoid the broken or
5461 # incompatible versions:
5462 # SysV /etc/install, /usr/sbin/install
5463 # SunOS /usr/etc/install
5464 # IRIX /sbin/install
5465 # AIX /bin/install
5466 # AmigaOS /C/install, which installs bootblocks on floppy discs
5467 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5468 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5469 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5470 # ./install, which can be erroneously created by make from ./install.sh.
5471 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5472 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5473 if test -z "$INSTALL"; then
5474 if test "${ac_cv_path_install+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 # Account for people who put trailing slashes in PATH elements.
5483 case $as_dir/ in
5484 ./ | .// | /cC/* | \
5485 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5486 /usr/ucb/* ) ;;
5488 # OSF1 and SCO ODT 3.0 have their own names for install.
5489 # Don't use installbsd from OSF since it installs stuff as root
5490 # by default.
5491 for ac_prog in ginstall scoinst install; do
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5494 if test $ac_prog = install &&
5495 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5496 # AIX install. It has an incompatible calling convention.
5498 elif test $ac_prog = install &&
5499 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5500 # program-specific install script used by HP pwplus--don't use.
5502 else
5503 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5504 break 3
5507 done
5508 done
5510 esac
5511 done
5515 if test "${ac_cv_path_install+set}" = set; then
5516 INSTALL=$ac_cv_path_install
5517 else
5518 # As a last resort, use the slow shell script. We don't cache a
5519 # path for INSTALL within a source directory, because that will
5520 # break other packages using the cache if that directory is
5521 # removed, or if the path is relative.
5522 INSTALL=$ac_install_sh
5525 echo "$as_me:$LINENO: result: $INSTALL" >&5
5526 echo "${ECHO_T}$INSTALL" >&6
5528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5529 # It thinks the first close brace ends the variable substitution.
5530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5537 case x"${target_os}" in
5539 SYS=unknown
5541 xlinux*)
5542 SYS=linux
5544 xbsdi*)
5545 SYS=bsdi
5546 save_CFLAGS="${save_CFLAGS} -pthread"
5547 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
5548 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
5550 x*bsd*)
5551 SYS="${target_os}"
5552 save_CFLAGS="${save_CFLAGS} -pthread"
5554 xdarwin*)
5555 SYS=darwin
5556 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
5558 x*mingw32*)
5559 SYS=mingw32
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}windres; ac_word=$2
5563 echo "$as_me:$LINENO: checking for $ac_word" >&5
5564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5565 if test "${ac_cv_prog_WINDRES+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 if test -n "$WINDRES"; then
5569 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5582 done
5583 done
5587 WINDRES=$ac_cv_prog_WINDRES
5588 if test -n "$WINDRES"; then
5589 echo "$as_me:$LINENO: result: $WINDRES" >&5
5590 echo "${ECHO_T}$WINDRES" >&6
5591 else
5592 echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6
5597 if test -z "$ac_cv_prog_WINDRES"; then
5598 ac_ct_WINDRES=$WINDRES
5599 # Extract the first word of "windres", so it can be a program name with args.
5600 set dummy windres; ac_word=$2
5601 echo "$as_me:$LINENO: checking for $ac_word" >&5
5602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5603 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606 if test -n "$ac_ct_WINDRES"; then
5607 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_ac_ct_WINDRES="windres"
5617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5620 done
5621 done
5623 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
5626 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5627 if test -n "$ac_ct_WINDRES"; then
5628 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5629 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5630 else
5631 echo "$as_me:$LINENO: result: no" >&5
5632 echo "${ECHO_T}no" >&6
5635 WINDRES=$ac_ct_WINDRES
5636 else
5637 WINDRES="$ac_cv_prog_WINDRES"
5640 save_CFLAGS="${save_CFLAGS} -D_OFF_T_ -D_off_t=long"
5641 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
5642 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
5643 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
5644 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
5645 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
5646 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
5648 x*nto*)
5649 SYS=nto
5650 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
5651 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
5653 xbeos)
5654 SYS=beos
5655 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
5656 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
5657 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
5658 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker -ltranslation -lstdc++.r4"
5659 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
5662 SYS="${target_os}"
5664 esac
5666 if test x"${SYS}" != xmingw32; then
5667 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
5670 if test x$SYS = xmingw32
5671 then
5672 echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
5673 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6
5674 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 ac_check_lib_save_LIBS=$LIBS
5678 LIBS="-lmingwex $LIBS"
5679 cat >conftest.$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5681 #include "confdefs.h"
5683 /* Override any gcc2 internal prototype to avoid an error. */
5684 #ifdef __cplusplus
5685 extern "C"
5686 #endif
5687 /* We use char because int might match the return type of a gcc2
5688 builtin and then its argument prototype would still apply. */
5689 char opendir ();
5690 #ifdef F77_DUMMY_MAIN
5691 # ifdef __cplusplus
5692 extern "C"
5693 # endif
5694 int F77_DUMMY_MAIN() { return 1; }
5695 #endif
5697 main ()
5699 opendir ();
5701 return 0;
5703 _ACEOF
5704 rm -f conftest.$ac_objext conftest$ac_exeext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5706 (eval $ac_link) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -s conftest$ac_exeext'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 (eval $ac_try) 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_cv_lib_mingwex_opendir=yes
5717 else
5718 echo "$as_me: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5720 ac_cv_lib_mingwex_opendir=no
5722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5723 LIBS=$ac_check_lib_save_LIBS
5725 echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
5726 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6
5727 if test $ac_cv_lib_mingwex_opendir = yes; then
5728 echo "$as_me:$LINENO: checking for opendir in -lmingw32" >&5
5729 echo $ECHO_N "checking for opendir in -lmingw32... $ECHO_C" >&6
5730 if test "${ac_cv_lib_mingw32_opendir+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 ac_check_lib_save_LIBS=$LIBS
5734 LIBS="-lmingw32 $LIBS"
5735 cat >conftest.$ac_ext <<_ACEOF
5736 #line $LINENO "configure"
5737 #include "confdefs.h"
5739 /* Override any gcc2 internal prototype to avoid an error. */
5740 #ifdef __cplusplus
5741 extern "C"
5742 #endif
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5745 char opendir ();
5746 #ifdef F77_DUMMY_MAIN
5747 # ifdef __cplusplus
5748 extern "C"
5749 # endif
5750 int F77_DUMMY_MAIN() { return 1; }
5751 #endif
5753 main ()
5755 opendir ();
5757 return 0;
5759 _ACEOF
5760 rm -f conftest.$ac_objext conftest$ac_exeext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762 (eval $ac_link) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -s conftest$ac_exeext'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 (eval $ac_try) 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5772 ac_cv_lib_mingw32_opendir=yes
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5776 ac_cv_lib_mingw32_opendir=no
5778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5779 LIBS=$ac_check_lib_save_LIBS
5781 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_opendir" >&5
5782 echo "${ECHO_T}$ac_cv_lib_mingw32_opendir" >&6
5783 if test $ac_cv_lib_mingw32_opendir = yes; then
5784 vlc_LDFLAGS="${vlc_LDFLAGS}"
5785 else
5786 vlc_LDFLAGS="${vlc_LDFLAGS} -lmingwex"
5787 gtk_LDFLAGS="${gtk_LDFLAGS} -lmingwex"
5795 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
5811 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
5813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5814 echo "$as_me:$LINENO: checking for $ac_func" >&5
5815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5816 if eval "test \"\${$as_ac_var+set}\" = set"; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819 cat >conftest.$ac_ext <<_ACEOF
5820 #line $LINENO "configure"
5821 #include "confdefs.h"
5822 /* System header to define __stub macros and hopefully few prototypes,
5823 which can conflict with char $ac_func (); below. */
5824 #include <assert.h>
5825 /* Override any gcc2 internal prototype to avoid an error. */
5826 #ifdef __cplusplus
5827 extern "C"
5828 #endif
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5831 char $ac_func ();
5832 char (*f) ();
5834 #ifdef F77_DUMMY_MAIN
5835 # ifdef __cplusplus
5836 extern "C"
5837 # endif
5838 int F77_DUMMY_MAIN() { return 1; }
5839 #endif
5841 main ()
5843 /* The GNU C library defines this for functions which it implements
5844 to always fail with ENOSYS. Some functions are actually named
5845 something starting with __ and the normal name is an alias. */
5846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5847 choke me
5848 #else
5849 f = $ac_func;
5850 #endif
5853 return 0;
5855 _ACEOF
5856 rm -f conftest.$ac_objext conftest$ac_exeext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5858 (eval $ac_link) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -s conftest$ac_exeext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 eval "$as_ac_var=yes"
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 eval "$as_ac_var=no"
5874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5878 if test `eval echo '${'$as_ac_var'}'` = yes; then
5879 cat >>confdefs.h <<_ACEOF
5880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5881 _ACEOF
5884 done
5887 echo "$as_me:$LINENO: checking for connect" >&5
5888 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5889 if test "${ac_cv_func_connect+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5894 #include "confdefs.h"
5895 /* System header to define __stub macros and hopefully few prototypes,
5896 which can conflict with char connect (); below. */
5897 #include <assert.h>
5898 /* Override any gcc2 internal prototype to avoid an error. */
5899 #ifdef __cplusplus
5900 extern "C"
5901 #endif
5902 /* We use char because int might match the return type of a gcc2
5903 builtin and then its argument prototype would still apply. */
5904 char connect ();
5905 char (*f) ();
5907 #ifdef F77_DUMMY_MAIN
5908 # ifdef __cplusplus
5909 extern "C"
5910 # endif
5911 int F77_DUMMY_MAIN() { return 1; }
5912 #endif
5914 main ()
5916 /* The GNU C library defines this for functions which it implements
5917 to always fail with ENOSYS. Some functions are actually named
5918 something starting with __ and the normal name is an alias. */
5919 #if defined (__stub_connect) || defined (__stub___connect)
5920 choke me
5921 #else
5922 f = connect;
5923 #endif
5926 return 0;
5928 _ACEOF
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -s conftest$ac_exeext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_func_connect=yes
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5945 ac_cv_func_connect=no
5947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5950 echo "${ECHO_T}$ac_cv_func_connect" >&6
5951 if test $ac_cv_func_connect = yes; then
5953 else
5955 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5956 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5957 if test "${ac_cv_lib_socket_connect+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960 ac_check_lib_save_LIBS=$LIBS
5961 LIBS="-lsocket $LIBS"
5962 cat >conftest.$ac_ext <<_ACEOF
5963 #line $LINENO "configure"
5964 #include "confdefs.h"
5966 /* Override any gcc2 internal prototype to avoid an error. */
5967 #ifdef __cplusplus
5968 extern "C"
5969 #endif
5970 /* We use char because int might match the return type of a gcc2
5971 builtin and then its argument prototype would still apply. */
5972 char connect ();
5973 #ifdef F77_DUMMY_MAIN
5974 # ifdef __cplusplus
5975 extern "C"
5976 # endif
5977 int F77_DUMMY_MAIN() { return 1; }
5978 #endif
5980 main ()
5982 connect ();
5984 return 0;
5986 _ACEOF
5987 rm -f conftest.$ac_objext conftest$ac_exeext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989 (eval $ac_link) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -s conftest$ac_exeext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
5999 ac_cv_lib_socket_connect=yes
6000 else
6001 echo "$as_me: failed program was:" >&5
6002 cat conftest.$ac_ext >&5
6003 ac_cv_lib_socket_connect=no
6005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6006 LIBS=$ac_check_lib_save_LIBS
6008 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6009 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6010 if test $ac_cv_lib_socket_connect = yes; then
6011 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
6012 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
6018 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6019 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6020 if test "${ac_cv_func_gethostbyname+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023 cat >conftest.$ac_ext <<_ACEOF
6024 #line $LINENO "configure"
6025 #include "confdefs.h"
6026 /* System header to define __stub macros and hopefully few prototypes,
6027 which can conflict with char gethostbyname (); below. */
6028 #include <assert.h>
6029 /* Override any gcc2 internal prototype to avoid an error. */
6030 #ifdef __cplusplus
6031 extern "C"
6032 #endif
6033 /* We use char because int might match the return type of a gcc2
6034 builtin and then its argument prototype would still apply. */
6035 char gethostbyname ();
6036 char (*f) ();
6038 #ifdef F77_DUMMY_MAIN
6039 # ifdef __cplusplus
6040 extern "C"
6041 # endif
6042 int F77_DUMMY_MAIN() { return 1; }
6043 #endif
6045 main ()
6047 /* The GNU C library defines this for functions which it implements
6048 to always fail with ENOSYS. Some functions are actually named
6049 something starting with __ and the normal name is an alias. */
6050 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6051 choke me
6052 #else
6053 f = gethostbyname;
6054 #endif
6057 return 0;
6059 _ACEOF
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6062 (eval $ac_link) 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -s conftest$ac_exeext'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6072 ac_cv_func_gethostbyname=yes
6073 else
6074 echo "$as_me: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6076 ac_cv_func_gethostbyname=no
6078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6080 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6081 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6082 if test $ac_cv_func_gethostbyname = yes; then
6084 else
6086 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6087 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6088 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091 ac_check_lib_save_LIBS=$LIBS
6092 LIBS="-lnsl $LIBS"
6093 cat >conftest.$ac_ext <<_ACEOF
6094 #line $LINENO "configure"
6095 #include "confdefs.h"
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 #ifdef __cplusplus
6099 extern "C"
6100 #endif
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6103 char gethostbyname ();
6104 #ifdef F77_DUMMY_MAIN
6105 # ifdef __cplusplus
6106 extern "C"
6107 # endif
6108 int F77_DUMMY_MAIN() { return 1; }
6109 #endif
6111 main ()
6113 gethostbyname ();
6115 return 0;
6117 _ACEOF
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120 (eval $ac_link) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -s conftest$ac_exeext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_lib_nsl_gethostbyname=yes
6131 else
6132 echo "$as_me: failed program was:" >&5
6133 cat conftest.$ac_ext >&5
6134 ac_cv_lib_nsl_gethostbyname=no
6136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6137 LIBS=$ac_check_lib_save_LIBS
6139 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6140 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6141 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6142 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
6148 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6149 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6150 if test "${ac_cv_func_gethostbyname+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153 cat >conftest.$ac_ext <<_ACEOF
6154 #line $LINENO "configure"
6155 #include "confdefs.h"
6156 /* System header to define __stub macros and hopefully few prototypes,
6157 which can conflict with char gethostbyname (); below. */
6158 #include <assert.h>
6159 /* Override any gcc2 internal prototype to avoid an error. */
6160 #ifdef __cplusplus
6161 extern "C"
6162 #endif
6163 /* We use char because int might match the return type of a gcc2
6164 builtin and then its argument prototype would still apply. */
6165 char gethostbyname ();
6166 char (*f) ();
6168 #ifdef F77_DUMMY_MAIN
6169 # ifdef __cplusplus
6170 extern "C"
6171 # endif
6172 int F77_DUMMY_MAIN() { return 1; }
6173 #endif
6175 main ()
6177 /* The GNU C library defines this for functions which it implements
6178 to always fail with ENOSYS. Some functions are actually named
6179 something starting with __ and the normal name is an alias. */
6180 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6181 choke me
6182 #else
6183 f = gethostbyname;
6184 #endif
6187 return 0;
6189 _ACEOF
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_cv_func_gethostbyname=yes
6203 else
6204 echo "$as_me: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6206 ac_cv_func_gethostbyname=no
6208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6210 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6211 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6212 if test $ac_cv_func_gethostbyname = yes; then
6214 else
6216 echo "$as_me:$LINENO: checking for gethostbyname in -lbind" >&5
6217 echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6
6218 if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221 ac_check_lib_save_LIBS=$LIBS
6222 LIBS="-lbind $LIBS"
6223 cat >conftest.$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6225 #include "confdefs.h"
6227 /* Override any gcc2 internal prototype to avoid an error. */
6228 #ifdef __cplusplus
6229 extern "C"
6230 #endif
6231 /* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6233 char gethostbyname ();
6234 #ifdef F77_DUMMY_MAIN
6235 # ifdef __cplusplus
6236 extern "C"
6237 # endif
6238 int F77_DUMMY_MAIN() { return 1; }
6239 #endif
6241 main ()
6243 gethostbyname ();
6245 return 0;
6247 _ACEOF
6248 rm -f conftest.$ac_objext conftest$ac_exeext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6250 (eval $ac_link) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -s conftest$ac_exeext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 ac_cv_lib_bind_gethostbyname=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6264 ac_cv_lib_bind_gethostbyname=no
6266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6267 LIBS=$ac_check_lib_save_LIBS
6269 echo "$as_me:$LINENO: result: $ac_cv_lib_bind_gethostbyname" >&5
6270 echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6
6271 if test $ac_cv_lib_bind_gethostbyname = yes; then
6272 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
6278 have_nanosleep=0
6279 echo "$as_me:$LINENO: checking for nanosleep" >&5
6280 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
6281 if test "${ac_cv_func_nanosleep+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284 cat >conftest.$ac_ext <<_ACEOF
6285 #line $LINENO "configure"
6286 #include "confdefs.h"
6287 /* System header to define __stub macros and hopefully few prototypes,
6288 which can conflict with char nanosleep (); below. */
6289 #include <assert.h>
6290 /* Override any gcc2 internal prototype to avoid an error. */
6291 #ifdef __cplusplus
6292 extern "C"
6293 #endif
6294 /* We use char because int might match the return type of a gcc2
6295 builtin and then its argument prototype would still apply. */
6296 char nanosleep ();
6297 char (*f) ();
6299 #ifdef F77_DUMMY_MAIN
6300 # ifdef __cplusplus
6301 extern "C"
6302 # endif
6303 int F77_DUMMY_MAIN() { return 1; }
6304 #endif
6306 main ()
6308 /* The GNU C library defines this for functions which it implements
6309 to always fail with ENOSYS. Some functions are actually named
6310 something starting with __ and the normal name is an alias. */
6311 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
6312 choke me
6313 #else
6314 f = nanosleep;
6315 #endif
6318 return 0;
6320 _ACEOF
6321 rm -f conftest.$ac_objext conftest$ac_exeext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6323 (eval $ac_link) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -s conftest$ac_exeext'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 (eval $ac_try) 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
6333 ac_cv_func_nanosleep=yes
6334 else
6335 echo "$as_me: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6337 ac_cv_func_nanosleep=no
6339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
6342 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
6343 if test $ac_cv_func_nanosleep = yes; then
6344 have_nanosleep=1
6345 else
6347 echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
6348 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
6349 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352 ac_check_lib_save_LIBS=$LIBS
6353 LIBS="-lrt $LIBS"
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6356 #include "confdefs.h"
6358 /* Override any gcc2 internal prototype to avoid an error. */
6359 #ifdef __cplusplus
6360 extern "C"
6361 #endif
6362 /* We use char because int might match the return type of a gcc2
6363 builtin and then its argument prototype would still apply. */
6364 char nanosleep ();
6365 #ifdef F77_DUMMY_MAIN
6366 # ifdef __cplusplus
6367 extern "C"
6368 # endif
6369 int F77_DUMMY_MAIN() { return 1; }
6370 #endif
6372 main ()
6374 nanosleep ();
6376 return 0;
6378 _ACEOF
6379 rm -f conftest.$ac_objext conftest$ac_exeext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6381 (eval $ac_link) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -s conftest$ac_exeext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_lib_rt_nanosleep=yes
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6395 ac_cv_lib_rt_nanosleep=no
6397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6398 LIBS=$ac_check_lib_save_LIBS
6400 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
6401 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
6402 if test $ac_cv_lib_rt_nanosleep = yes; then
6403 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
6404 else
6405 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
6406 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
6407 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410 ac_check_lib_save_LIBS=$LIBS
6411 LIBS="-lposix4 $LIBS"
6412 cat >conftest.$ac_ext <<_ACEOF
6413 #line $LINENO "configure"
6414 #include "confdefs.h"
6416 /* Override any gcc2 internal prototype to avoid an error. */
6417 #ifdef __cplusplus
6418 extern "C"
6419 #endif
6420 /* We use char because int might match the return type of a gcc2
6421 builtin and then its argument prototype would still apply. */
6422 char nanosleep ();
6423 #ifdef F77_DUMMY_MAIN
6424 # ifdef __cplusplus
6425 extern "C"
6426 # endif
6427 int F77_DUMMY_MAIN() { return 1; }
6428 #endif
6430 main ()
6432 nanosleep ();
6434 return 0;
6436 _ACEOF
6437 rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6439 (eval $ac_link) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try='test -s conftest$ac_exeext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 ac_cv_lib_posix4_nanosleep=yes
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6453 ac_cv_lib_posix4_nanosleep=no
6455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6456 LIBS=$ac_check_lib_save_LIBS
6458 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
6459 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
6460 if test $ac_cv_lib_posix4_nanosleep = yes; then
6461 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
6470 if test x$have_nanosleep = x1; then
6472 cat >>confdefs.h <<\_ACEOF
6473 #define HAVE_NANOSLEEP 1
6474 _ACEOF
6477 echo "$as_me:$LINENO: checking for inet_aton" >&5
6478 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
6479 if test "${ac_cv_func_inet_aton+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 cat >conftest.$ac_ext <<_ACEOF
6483 #line $LINENO "configure"
6484 #include "confdefs.h"
6485 /* System header to define __stub macros and hopefully few prototypes,
6486 which can conflict with char inet_aton (); below. */
6487 #include <assert.h>
6488 /* Override any gcc2 internal prototype to avoid an error. */
6489 #ifdef __cplusplus
6490 extern "C"
6491 #endif
6492 /* We use char because int might match the return type of a gcc2
6493 builtin and then its argument prototype would still apply. */
6494 char inet_aton ();
6495 char (*f) ();
6497 #ifdef F77_DUMMY_MAIN
6498 # ifdef __cplusplus
6499 extern "C"
6500 # endif
6501 int F77_DUMMY_MAIN() { return 1; }
6502 #endif
6504 main ()
6506 /* The GNU C library defines this for functions which it implements
6507 to always fail with ENOSYS. Some functions are actually named
6508 something starting with __ and the normal name is an alias. */
6509 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6510 choke me
6511 #else
6512 f = inet_aton;
6513 #endif
6516 return 0;
6518 _ACEOF
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } &&
6525 { ac_try='test -s conftest$ac_exeext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_cv_func_inet_aton=yes
6532 else
6533 echo "$as_me: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6535 ac_cv_func_inet_aton=no
6537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6539 echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
6540 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
6541 if test $ac_cv_func_inet_aton = yes; then
6543 else
6545 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6546 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6547 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550 ac_check_lib_save_LIBS=$LIBS
6551 LIBS="-lresolv $LIBS"
6552 cat >conftest.$ac_ext <<_ACEOF
6553 #line $LINENO "configure"
6554 #include "confdefs.h"
6556 /* Override any gcc2 internal prototype to avoid an error. */
6557 #ifdef __cplusplus
6558 extern "C"
6559 #endif
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6562 char inet_aton ();
6563 #ifdef F77_DUMMY_MAIN
6564 # ifdef __cplusplus
6565 extern "C"
6566 # endif
6567 int F77_DUMMY_MAIN() { return 1; }
6568 #endif
6570 main ()
6572 inet_aton ();
6574 return 0;
6576 _ACEOF
6577 rm -f conftest.$ac_objext conftest$ac_exeext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579 (eval $ac_link) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -s conftest$ac_exeext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_cv_lib_resolv_inet_aton=yes
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6593 ac_cv_lib_resolv_inet_aton=no
6595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6596 LIBS=$ac_check_lib_save_LIBS
6598 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6599 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6600 if test $ac_cv_lib_resolv_inet_aton = yes; then
6601 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
6607 echo "$as_me:$LINENO: checking for textdomain" >&5
6608 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
6609 if test "${ac_cv_func_textdomain+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612 cat >conftest.$ac_ext <<_ACEOF
6613 #line $LINENO "configure"
6614 #include "confdefs.h"
6615 /* System header to define __stub macros and hopefully few prototypes,
6616 which can conflict with char textdomain (); below. */
6617 #include <assert.h>
6618 /* Override any gcc2 internal prototype to avoid an error. */
6619 #ifdef __cplusplus
6620 extern "C"
6621 #endif
6622 /* We use char because int might match the return type of a gcc2
6623 builtin and then its argument prototype would still apply. */
6624 char textdomain ();
6625 char (*f) ();
6627 #ifdef F77_DUMMY_MAIN
6628 # ifdef __cplusplus
6629 extern "C"
6630 # endif
6631 int F77_DUMMY_MAIN() { return 1; }
6632 #endif
6634 main ()
6636 /* The GNU C library defines this for functions which it implements
6637 to always fail with ENOSYS. Some functions are actually named
6638 something starting with __ and the normal name is an alias. */
6639 #if defined (__stub_textdomain) || defined (__stub___textdomain)
6640 choke me
6641 #else
6642 f = textdomain;
6643 #endif
6646 return 0;
6648 _ACEOF
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651 (eval $ac_link) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -s conftest$ac_exeext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 ac_cv_func_textdomain=yes
6662 else
6663 echo "$as_me: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6665 ac_cv_func_textdomain=no
6667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6669 echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
6670 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
6671 if test $ac_cv_func_textdomain = yes; then
6673 else
6675 echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
6676 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
6677 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 ac_check_lib_save_LIBS=$LIBS
6681 LIBS="-lintl $LIBS"
6682 cat >conftest.$ac_ext <<_ACEOF
6683 #line $LINENO "configure"
6684 #include "confdefs.h"
6686 /* Override any gcc2 internal prototype to avoid an error. */
6687 #ifdef __cplusplus
6688 extern "C"
6689 #endif
6690 /* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6692 char textdomain ();
6693 #ifdef F77_DUMMY_MAIN
6694 # ifdef __cplusplus
6695 extern "C"
6696 # endif
6697 int F77_DUMMY_MAIN() { return 1; }
6698 #endif
6700 main ()
6702 textdomain ();
6704 return 0;
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6709 (eval $ac_link) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -s conftest$ac_exeext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 (eval $ac_try) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_lib_intl_textdomain=yes
6720 else
6721 echo "$as_me: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6723 ac_cv_lib_intl_textdomain=no
6725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6726 LIBS=$ac_check_lib_save_LIBS
6728 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
6729 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
6730 if test $ac_cv_lib_intl_textdomain = yes; then
6731 save_LDFLAGS="${save_LDFLAGS} -lintl"
6738 NEED_GETOPT=0
6739 echo "$as_me:$LINENO: checking for getopt_long" >&5
6740 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
6741 if test "${ac_cv_func_getopt_long+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 cat >conftest.$ac_ext <<_ACEOF
6745 #line $LINENO "configure"
6746 #include "confdefs.h"
6747 /* System header to define __stub macros and hopefully few prototypes,
6748 which can conflict with char getopt_long (); below. */
6749 #include <assert.h>
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 #ifdef __cplusplus
6752 extern "C"
6753 #endif
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6756 char getopt_long ();
6757 char (*f) ();
6759 #ifdef F77_DUMMY_MAIN
6760 # ifdef __cplusplus
6761 extern "C"
6762 # endif
6763 int F77_DUMMY_MAIN() { return 1; }
6764 #endif
6766 main ()
6768 /* The GNU C library defines this for functions which it implements
6769 to always fail with ENOSYS. Some functions are actually named
6770 something starting with __ and the normal name is an alias. */
6771 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
6772 choke me
6773 #else
6774 f = getopt_long;
6775 #endif
6778 return 0;
6780 _ACEOF
6781 rm -f conftest.$ac_objext conftest$ac_exeext
6782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6783 (eval $ac_link) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } &&
6787 { ac_try='test -s conftest$ac_exeext'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 (eval $ac_try) 2>&5
6790 ac_status=$?
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; }; then
6793 ac_cv_func_getopt_long=yes
6794 else
6795 echo "$as_me: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6797 ac_cv_func_getopt_long=no
6799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6801 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
6802 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
6803 if test $ac_cv_func_getopt_long = yes; then
6805 cat >>confdefs.h <<\_ACEOF
6806 #define HAVE_GETOPT_LONG 1
6807 _ACEOF
6809 else
6810 # FreeBSD has a gnugetopt library for this:
6811 echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
6812 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
6813 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 ac_check_lib_save_LIBS=$LIBS
6817 LIBS="-lgnugetopt $LIBS"
6818 cat >conftest.$ac_ext <<_ACEOF
6819 #line $LINENO "configure"
6820 #include "confdefs.h"
6822 /* Override any gcc2 internal prototype to avoid an error. */
6823 #ifdef __cplusplus
6824 extern "C"
6825 #endif
6826 /* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6828 char getopt_long ();
6829 #ifdef F77_DUMMY_MAIN
6830 # ifdef __cplusplus
6831 extern "C"
6832 # endif
6833 int F77_DUMMY_MAIN() { return 1; }
6834 #endif
6836 main ()
6838 getopt_long ();
6840 return 0;
6842 _ACEOF
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845 (eval $ac_link) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try='test -s conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 ac_cv_lib_gnugetopt_getopt_long=yes
6856 else
6857 echo "$as_me: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6859 ac_cv_lib_gnugetopt_getopt_long=no
6861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6862 LIBS=$ac_check_lib_save_LIBS
6864 echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
6865 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
6866 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
6868 cat >>confdefs.h <<\_ACEOF
6869 #define HAVE_GETOPT_LONG 1
6870 _ACEOF
6871 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
6872 else
6873 NEED_GETOPT=1
6879 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6880 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6881 if test "${ac_cv_type_signal+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884 cat >conftest.$ac_ext <<_ACEOF
6885 #line $LINENO "configure"
6886 #include "confdefs.h"
6887 #include <sys/types.h>
6888 #include <signal.h>
6889 #ifdef signal
6890 # undef signal
6891 #endif
6892 #ifdef __cplusplus
6893 extern "C" void (*signal (int, void (*)(int)))(int);
6894 #else
6895 void (*signal ()) ();
6896 #endif
6898 #ifdef F77_DUMMY_MAIN
6899 # ifdef __cplusplus
6900 extern "C"
6901 # endif
6902 int F77_DUMMY_MAIN() { return 1; }
6903 #endif
6905 main ()
6907 int i;
6909 return 0;
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } &&
6918 { ac_try='test -s conftest.$ac_objext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 (eval $ac_try) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6924 ac_cv_type_signal=void
6925 else
6926 echo "$as_me: failed program was:" >&5
6927 cat conftest.$ac_ext >&5
6928 ac_cv_type_signal=int
6930 rm -f conftest.$ac_objext conftest.$ac_ext
6932 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6933 echo "${ECHO_T}$ac_cv_type_signal" >&6
6935 cat >>confdefs.h <<_ACEOF
6936 #define RETSIGTYPE $ac_cv_type_signal
6937 _ACEOF
6940 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6941 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945 ac_check_lib_save_LIBS=$LIBS
6946 LIBS="-ldl $LIBS"
6947 cat >conftest.$ac_ext <<_ACEOF
6948 #line $LINENO "configure"
6949 #include "confdefs.h"
6951 /* Override any gcc2 internal prototype to avoid an error. */
6952 #ifdef __cplusplus
6953 extern "C"
6954 #endif
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6957 char dlopen ();
6958 #ifdef F77_DUMMY_MAIN
6959 # ifdef __cplusplus
6960 extern "C"
6961 # endif
6962 int F77_DUMMY_MAIN() { return 1; }
6963 #endif
6965 main ()
6967 dlopen ();
6969 return 0;
6971 _ACEOF
6972 rm -f conftest.$ac_objext conftest$ac_exeext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974 (eval $ac_link) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -s conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 ac_cv_lib_dl_dlopen=yes
6985 else
6986 echo "$as_me: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6988 ac_cv_lib_dl_dlopen=no
6990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6991 LIBS=$ac_check_lib_save_LIBS
6993 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6994 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6995 if test $ac_cv_lib_dl_dlopen = yes; then
6996 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
6999 echo "$as_me:$LINENO: checking for cos in -lm" >&5
7000 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
7001 if test "${ac_cv_lib_m_cos+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004 ac_check_lib_save_LIBS=$LIBS
7005 LIBS="-lm $LIBS"
7006 cat >conftest.$ac_ext <<_ACEOF
7007 #line $LINENO "configure"
7008 #include "confdefs.h"
7010 /* Override any gcc2 internal prototype to avoid an error. */
7011 #ifdef __cplusplus
7012 extern "C"
7013 #endif
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7016 char cos ();
7017 #ifdef F77_DUMMY_MAIN
7018 # ifdef __cplusplus
7019 extern "C"
7020 # endif
7021 int F77_DUMMY_MAIN() { return 1; }
7022 #endif
7024 main ()
7026 cos ();
7028 return 0;
7030 _ACEOF
7031 rm -f conftest.$ac_objext conftest$ac_exeext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033 (eval $ac_link) 2>&5
7034 ac_status=$?
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } &&
7037 { ac_try='test -s conftest$ac_exeext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 (eval $ac_try) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_lib_m_cos=yes
7044 else
7045 echo "$as_me: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 ac_cv_lib_m_cos=no
7049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7050 LIBS=$ac_check_lib_save_LIBS
7052 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
7053 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
7054 if test $ac_cv_lib_m_cos = yes; then
7055 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
7056 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
7059 echo "$as_me:$LINENO: checking for pow in -lm" >&5
7060 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
7061 if test "${ac_cv_lib_m_pow+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064 ac_check_lib_save_LIBS=$LIBS
7065 LIBS="-lm $LIBS"
7066 cat >conftest.$ac_ext <<_ACEOF
7067 #line $LINENO "configure"
7068 #include "confdefs.h"
7070 /* Override any gcc2 internal prototype to avoid an error. */
7071 #ifdef __cplusplus
7072 extern "C"
7073 #endif
7074 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7076 char pow ();
7077 #ifdef F77_DUMMY_MAIN
7078 # ifdef __cplusplus
7079 extern "C"
7080 # endif
7081 int F77_DUMMY_MAIN() { return 1; }
7082 #endif
7084 main ()
7086 pow ();
7088 return 0;
7090 _ACEOF
7091 rm -f conftest.$ac_objext conftest$ac_exeext
7092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7093 (eval $ac_link) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } &&
7097 { ac_try='test -s conftest$ac_exeext'
7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 (eval $ac_try) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 ac_cv_lib_m_pow=yes
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7107 ac_cv_lib_m_pow=no
7109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7110 LIBS=$ac_check_lib_save_LIBS
7112 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
7113 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
7114 if test $ac_cv_lib_m_pow = yes; then
7115 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
7116 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
7117 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
7118 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
7123 THREAD_LIB=error
7124 if test "x${THREAD_LIB}" = xerror; then
7125 echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
7126 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
7127 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 ac_check_lib_save_LIBS=$LIBS
7131 LIBS="-lpthread $LIBS"
7132 cat >conftest.$ac_ext <<_ACEOF
7133 #line $LINENO "configure"
7134 #include "confdefs.h"
7136 /* Override any gcc2 internal prototype to avoid an error. */
7137 #ifdef __cplusplus
7138 extern "C"
7139 #endif
7140 /* We use char because int might match the return type of a gcc2
7141 builtin and then its argument prototype would still apply. */
7142 char pthread_attr_init ();
7143 #ifdef F77_DUMMY_MAIN
7144 # ifdef __cplusplus
7145 extern "C"
7146 # endif
7147 int F77_DUMMY_MAIN() { return 1; }
7148 #endif
7150 main ()
7152 pthread_attr_init ();
7154 return 0;
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -s conftest$ac_exeext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 ac_cv_lib_pthread_pthread_attr_init=yes
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7173 ac_cv_lib_pthread_pthread_attr_init=no
7175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7176 LIBS=$ac_check_lib_save_LIBS
7178 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
7179 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
7180 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
7181 THREAD_LIB="-lpthread"
7185 if test "x${THREAD_LIB}" = xerror; then
7186 echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthreads" >&5
7187 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
7188 if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191 ac_check_lib_save_LIBS=$LIBS
7192 LIBS="-lpthreads $LIBS"
7193 cat >conftest.$ac_ext <<_ACEOF
7194 #line $LINENO "configure"
7195 #include "confdefs.h"
7197 /* Override any gcc2 internal prototype to avoid an error. */
7198 #ifdef __cplusplus
7199 extern "C"
7200 #endif
7201 /* We use char because int might match the return type of a gcc2
7202 builtin and then its argument prototype would still apply. */
7203 char pthread_attr_init ();
7204 #ifdef F77_DUMMY_MAIN
7205 # ifdef __cplusplus
7206 extern "C"
7207 # endif
7208 int F77_DUMMY_MAIN() { return 1; }
7209 #endif
7211 main ()
7213 pthread_attr_init ();
7215 return 0;
7217 _ACEOF
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220 (eval $ac_link) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -s conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 ac_cv_lib_pthreads_pthread_attr_init=yes
7231 else
7232 echo "$as_me: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 ac_cv_lib_pthreads_pthread_attr_init=no
7236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7237 LIBS=$ac_check_lib_save_LIBS
7239 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
7240 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
7241 if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
7242 THREAD_LIB="-lpthreads"
7246 if test "x${THREAD_LIB}" = xerror; then
7247 echo "$as_me:$LINENO: checking for pthread_attr_init in -lc_r" >&5
7248 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6
7249 if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 ac_check_lib_save_LIBS=$LIBS
7253 LIBS="-lc_r $LIBS"
7254 cat >conftest.$ac_ext <<_ACEOF
7255 #line $LINENO "configure"
7256 #include "confdefs.h"
7258 /* Override any gcc2 internal prototype to avoid an error. */
7259 #ifdef __cplusplus
7260 extern "C"
7261 #endif
7262 /* We use char because int might match the return type of a gcc2
7263 builtin and then its argument prototype would still apply. */
7264 char pthread_attr_init ();
7265 #ifdef F77_DUMMY_MAIN
7266 # ifdef __cplusplus
7267 extern "C"
7268 # endif
7269 int F77_DUMMY_MAIN() { return 1; }
7270 #endif
7272 main ()
7274 pthread_attr_init ();
7276 return 0;
7278 _ACEOF
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281 (eval $ac_link) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -s conftest$ac_exeext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_cv_lib_c_r_pthread_attr_init=yes
7292 else
7293 echo "$as_me: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7295 ac_cv_lib_c_r_pthread_attr_init=no
7297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7298 LIBS=$ac_check_lib_save_LIBS
7300 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
7301 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6
7302 if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
7303 THREAD_LIB="-lc_r"
7307 if test "x${THREAD_LIB}" = xerror; then
7308 echo "$as_me:$LINENO: checking for pthread_attr_init" >&5
7309 echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6
7310 if test "${ac_cv_func_pthread_attr_init+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 cat >conftest.$ac_ext <<_ACEOF
7314 #line $LINENO "configure"
7315 #include "confdefs.h"
7316 /* System header to define __stub macros and hopefully few prototypes,
7317 which can conflict with char pthread_attr_init (); below. */
7318 #include <assert.h>
7319 /* Override any gcc2 internal prototype to avoid an error. */
7320 #ifdef __cplusplus
7321 extern "C"
7322 #endif
7323 /* We use char because int might match the return type of a gcc2
7324 builtin and then its argument prototype would still apply. */
7325 char pthread_attr_init ();
7326 char (*f) ();
7328 #ifdef F77_DUMMY_MAIN
7329 # ifdef __cplusplus
7330 extern "C"
7331 # endif
7332 int F77_DUMMY_MAIN() { return 1; }
7333 #endif
7335 main ()
7337 /* The GNU C library defines this for functions which it implements
7338 to always fail with ENOSYS. Some functions are actually named
7339 something starting with __ and the normal name is an alias. */
7340 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
7341 choke me
7342 #else
7343 f = pthread_attr_init;
7344 #endif
7347 return 0;
7349 _ACEOF
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352 (eval $ac_link) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } &&
7356 { ac_try='test -s conftest$ac_exeext'
7357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 (eval $ac_try) 2>&5
7359 ac_status=$?
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); }; }; then
7362 ac_cv_func_pthread_attr_init=yes
7363 else
7364 echo "$as_me: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7366 ac_cv_func_pthread_attr_init=no
7368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7370 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_init" >&5
7371 echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6
7373 THREAD_LIB=""
7376 echo "$as_me:$LINENO: checking for cthread_fork in -lthreads" >&5
7377 echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
7378 if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 ac_check_lib_save_LIBS=$LIBS
7382 LIBS="-lthreads $LIBS"
7383 cat >conftest.$ac_ext <<_ACEOF
7384 #line $LINENO "configure"
7385 #include "confdefs.h"
7387 /* Override any gcc2 internal prototype to avoid an error. */
7388 #ifdef __cplusplus
7389 extern "C"
7390 #endif
7391 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7393 char cthread_fork ();
7394 #ifdef F77_DUMMY_MAIN
7395 # ifdef __cplusplus
7396 extern "C"
7397 # endif
7398 int F77_DUMMY_MAIN() { return 1; }
7399 #endif
7401 main ()
7403 cthread_fork ();
7405 return 0;
7407 _ACEOF
7408 rm -f conftest.$ac_objext conftest$ac_exeext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410 (eval $ac_link) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try='test -s conftest$ac_exeext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_cv_lib_threads_cthread_fork=yes
7421 else
7422 echo "$as_me: failed program was:" >&5
7423 cat conftest.$ac_ext >&5
7424 ac_cv_lib_threads_cthread_fork=no
7426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7427 LIBS=$ac_check_lib_save_LIBS
7429 echo "$as_me:$LINENO: result: $ac_cv_lib_threads_cthread_fork" >&5
7430 echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6
7431 if test $ac_cv_lib_threads_cthread_fork = yes; then
7432 THREAD_LIB="-lthreads"
7436 cat >conftest.$ac_ext <<_ACEOF
7437 #line $LINENO "configure"
7438 #include "confdefs.h"
7439 #include <pthread.h>
7441 _ACEOF
7442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7443 egrep "pthread_cond_t" >/dev/null 2>&1; then
7446 cat >>confdefs.h <<\_ACEOF
7447 #define PTHREAD_COND_T_IN_PTHREAD_H 1
7448 _ACEOF
7451 rm -f conftest*
7453 cat >conftest.$ac_ext <<_ACEOF
7454 #line $LINENO "configure"
7455 #include "confdefs.h"
7456 #include <strings.h>
7458 _ACEOF
7459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7460 egrep "strncasecmp" >/dev/null 2>&1; then
7463 cat >>confdefs.h <<\_ACEOF
7464 #define STRNCASECMP_IN_STRINGS_H 1
7465 _ACEOF
7468 rm -f conftest*
7476 for ac_header in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
7478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7480 echo "$as_me:$LINENO: checking for $ac_header" >&5
7481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7487 else
7488 # Is the header compilable?
7489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7491 cat >conftest.$ac_ext <<_ACEOF
7492 #line $LINENO "configure"
7493 #include "confdefs.h"
7494 $ac_includes_default
7495 #include <$ac_header>
7496 _ACEOF
7497 rm -f conftest.$ac_objext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7499 (eval $ac_compile) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } &&
7503 { ac_try='test -s conftest.$ac_objext'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 (eval $ac_try) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; }; then
7509 ac_header_compiler=yes
7510 else
7511 echo "$as_me: failed program was:" >&5
7512 cat conftest.$ac_ext >&5
7513 ac_header_compiler=no
7515 rm -f conftest.$ac_objext conftest.$ac_ext
7516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7517 echo "${ECHO_T}$ac_header_compiler" >&6
7519 # Is the header present?
7520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7522 cat >conftest.$ac_ext <<_ACEOF
7523 #line $LINENO "configure"
7524 #include "confdefs.h"
7525 #include <$ac_header>
7526 _ACEOF
7527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7529 ac_status=$?
7530 egrep -v '^ *\+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } >/dev/null; then
7535 if test -s conftest.err; then
7536 ac_cpp_err=$ac_c_preproc_warn_flag
7537 else
7538 ac_cpp_err=
7540 else
7541 ac_cpp_err=yes
7543 if test -z "$ac_cpp_err"; then
7544 ac_header_preproc=yes
7545 else
7546 echo "$as_me: failed program was:" >&5
7547 cat conftest.$ac_ext >&5
7548 ac_header_preproc=no
7550 rm -f conftest.err conftest.$ac_ext
7551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7552 echo "${ECHO_T}$ac_header_preproc" >&6
7554 # So? What about this header?
7555 case $ac_header_compiler:$ac_header_preproc in
7556 yes:no )
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7561 no:yes )
7562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7568 esac
7569 echo "$as_me:$LINENO: checking for $ac_header" >&5
7570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574 eval "$as_ac_Header=$ac_header_preproc"
7576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7581 cat >>confdefs.h <<_ACEOF
7582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7583 _ACEOF
7587 done
7594 for ac_header in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
7596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7598 echo "$as_me:$LINENO: checking for $ac_header" >&5
7599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7605 else
7606 # Is the header compilable?
7607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7609 cat >conftest.$ac_ext <<_ACEOF
7610 #line $LINENO "configure"
7611 #include "confdefs.h"
7612 $ac_includes_default
7613 #include <$ac_header>
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7617 (eval $ac_compile) 2>&5
7618 ac_status=$?
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try='test -s conftest.$ac_objext'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 (eval $ac_try) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; }; then
7627 ac_header_compiler=yes
7628 else
7629 echo "$as_me: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7631 ac_header_compiler=no
7633 rm -f conftest.$ac_objext conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7635 echo "${ECHO_T}$ac_header_compiler" >&6
7637 # Is the header present?
7638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7640 cat >conftest.$ac_ext <<_ACEOF
7641 #line $LINENO "configure"
7642 #include "confdefs.h"
7643 #include <$ac_header>
7644 _ACEOF
7645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7647 ac_status=$?
7648 egrep -v '^ *\+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } >/dev/null; then
7653 if test -s conftest.err; then
7654 ac_cpp_err=$ac_c_preproc_warn_flag
7655 else
7656 ac_cpp_err=
7658 else
7659 ac_cpp_err=yes
7661 if test -z "$ac_cpp_err"; then
7662 ac_header_preproc=yes
7663 else
7664 echo "$as_me: failed program was:" >&5
7665 cat conftest.$ac_ext >&5
7666 ac_header_preproc=no
7668 rm -f conftest.err conftest.$ac_ext
7669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7670 echo "${ECHO_T}$ac_header_preproc" >&6
7672 # So? What about this header?
7673 case $ac_header_compiler:$ac_header_preproc in
7674 yes:no )
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7679 no:yes )
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7686 esac
7687 echo "$as_me:$LINENO: checking for $ac_header" >&5
7688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 else
7692 eval "$as_ac_Header=$ac_header_preproc"
7694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7699 cat >>confdefs.h <<_ACEOF
7700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7701 _ACEOF
7705 done
7709 for ac_header in dlfcn.h image.h
7711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7713 echo "$as_me:$LINENO: checking for $ac_header" >&5
7714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7720 else
7721 # Is the header compilable?
7722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7724 cat >conftest.$ac_ext <<_ACEOF
7725 #line $LINENO "configure"
7726 #include "confdefs.h"
7727 $ac_includes_default
7728 #include <$ac_header>
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732 (eval $ac_compile) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -s conftest.$ac_objext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 ac_header_compiler=yes
7743 else
7744 echo "$as_me: failed program was:" >&5
7745 cat conftest.$ac_ext >&5
7746 ac_header_compiler=no
7748 rm -f conftest.$ac_objext conftest.$ac_ext
7749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7750 echo "${ECHO_T}$ac_header_compiler" >&6
7752 # Is the header present?
7753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7755 cat >conftest.$ac_ext <<_ACEOF
7756 #line $LINENO "configure"
7757 #include "confdefs.h"
7758 #include <$ac_header>
7759 _ACEOF
7760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7762 ac_status=$?
7763 egrep -v '^ *\+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } >/dev/null; then
7768 if test -s conftest.err; then
7769 ac_cpp_err=$ac_c_preproc_warn_flag
7770 else
7771 ac_cpp_err=
7773 else
7774 ac_cpp_err=yes
7776 if test -z "$ac_cpp_err"; then
7777 ac_header_preproc=yes
7778 else
7779 echo "$as_me: failed program was:" >&5
7780 cat conftest.$ac_ext >&5
7781 ac_header_preproc=no
7783 rm -f conftest.err conftest.$ac_ext
7784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7785 echo "${ECHO_T}$ac_header_preproc" >&6
7787 # So? What about this header?
7788 case $ac_header_compiler:$ac_header_preproc in
7789 yes:no )
7790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7794 no:yes )
7795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7801 esac
7802 echo "$as_me:$LINENO: checking for $ac_header" >&5
7803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807 eval "$as_ac_Header=$ac_header_preproc"
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7814 cat >>confdefs.h <<_ACEOF
7815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7816 _ACEOF
7820 done
7826 for ac_header in arpa/inet.h net/if.h netinet/in.h sys/socket.h
7828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7830 echo "$as_me:$LINENO: checking for $ac_header" >&5
7831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7837 else
7838 # Is the header compilable?
7839 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7841 cat >conftest.$ac_ext <<_ACEOF
7842 #line $LINENO "configure"
7843 #include "confdefs.h"
7844 $ac_includes_default
7845 #include <$ac_header>
7846 _ACEOF
7847 rm -f conftest.$ac_objext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7849 (eval $ac_compile) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
7853 { ac_try='test -s conftest.$ac_objext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_header_compiler=yes
7860 else
7861 echo "$as_me: failed program was:" >&5
7862 cat conftest.$ac_ext >&5
7863 ac_header_compiler=no
7865 rm -f conftest.$ac_objext conftest.$ac_ext
7866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7867 echo "${ECHO_T}$ac_header_compiler" >&6
7869 # Is the header present?
7870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7872 cat >conftest.$ac_ext <<_ACEOF
7873 #line $LINENO "configure"
7874 #include "confdefs.h"
7875 #include <$ac_header>
7876 _ACEOF
7877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7879 ac_status=$?
7880 egrep -v '^ *\+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } >/dev/null; then
7885 if test -s conftest.err; then
7886 ac_cpp_err=$ac_c_preproc_warn_flag
7887 else
7888 ac_cpp_err=
7890 else
7891 ac_cpp_err=yes
7893 if test -z "$ac_cpp_err"; then
7894 ac_header_preproc=yes
7895 else
7896 echo "$as_me: failed program was:" >&5
7897 cat conftest.$ac_ext >&5
7898 ac_header_preproc=no
7900 rm -f conftest.err conftest.$ac_ext
7901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7902 echo "${ECHO_T}$ac_header_preproc" >&6
7904 # So? What about this header?
7905 case $ac_header_compiler:$ac_header_preproc in
7906 yes:no )
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7911 no:yes )
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7918 esac
7919 echo "$as_me:$LINENO: checking for $ac_header" >&5
7920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924 eval "$as_ac_Header=$ac_header_preproc"
7926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7931 cat >>confdefs.h <<_ACEOF
7932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7933 _ACEOF
7937 done
7941 for ac_header in machine/param.h sys/shm.h
7943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7945 echo "$as_me:$LINENO: checking for $ac_header" >&5
7946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7952 else
7953 # Is the header compilable?
7954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7956 cat >conftest.$ac_ext <<_ACEOF
7957 #line $LINENO "configure"
7958 #include "confdefs.h"
7959 $ac_includes_default
7960 #include <$ac_header>
7961 _ACEOF
7962 rm -f conftest.$ac_objext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7964 (eval $ac_compile) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_header_compiler=yes
7975 else
7976 echo "$as_me: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7978 ac_header_compiler=no
7980 rm -f conftest.$ac_objext conftest.$ac_ext
7981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7982 echo "${ECHO_T}$ac_header_compiler" >&6
7984 # Is the header present?
7985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7988 #line $LINENO "configure"
7989 #include "confdefs.h"
7990 #include <$ac_header>
7991 _ACEOF
7992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7994 ac_status=$?
7995 egrep -v '^ *\+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } >/dev/null; then
8000 if test -s conftest.err; then
8001 ac_cpp_err=$ac_c_preproc_warn_flag
8002 else
8003 ac_cpp_err=
8005 else
8006 ac_cpp_err=yes
8008 if test -z "$ac_cpp_err"; then
8009 ac_header_preproc=yes
8010 else
8011 echo "$as_me: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8013 ac_header_preproc=no
8015 rm -f conftest.err conftest.$ac_ext
8016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8017 echo "${ECHO_T}$ac_header_preproc" >&6
8019 # So? What about this header?
8020 case $ac_header_compiler:$ac_header_preproc in
8021 yes:no )
8022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8026 no:yes )
8027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8033 esac
8034 echo "$as_me:$LINENO: checking for $ac_header" >&5
8035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039 eval "$as_ac_Header=$ac_header_preproc"
8041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8046 cat >>confdefs.h <<_ACEOF
8047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8048 _ACEOF
8052 done
8055 for ac_header in linux/version.h
8057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8059 echo "$as_me:$LINENO: checking for $ac_header" >&5
8060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8066 else
8067 # Is the header compilable?
8068 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8070 cat >conftest.$ac_ext <<_ACEOF
8071 #line $LINENO "configure"
8072 #include "confdefs.h"
8073 $ac_includes_default
8074 #include <$ac_header>
8075 _ACEOF
8076 rm -f conftest.$ac_objext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078 (eval $ac_compile) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -s conftest.$ac_objext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_header_compiler=yes
8089 else
8090 echo "$as_me: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8092 ac_header_compiler=no
8094 rm -f conftest.$ac_objext conftest.$ac_ext
8095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8096 echo "${ECHO_T}$ac_header_compiler" >&6
8098 # Is the header present?
8099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8102 #line $LINENO "configure"
8103 #include "confdefs.h"
8104 #include <$ac_header>
8105 _ACEOF
8106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8108 ac_status=$?
8109 egrep -v '^ *\+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } >/dev/null; then
8114 if test -s conftest.err; then
8115 ac_cpp_err=$ac_c_preproc_warn_flag
8116 else
8117 ac_cpp_err=
8119 else
8120 ac_cpp_err=yes
8122 if test -z "$ac_cpp_err"; then
8123 ac_header_preproc=yes
8124 else
8125 echo "$as_me: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8127 ac_header_preproc=no
8129 rm -f conftest.err conftest.$ac_ext
8130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8131 echo "${ECHO_T}$ac_header_preproc" >&6
8133 # So? What about this header?
8134 case $ac_header_compiler:$ac_header_preproc in
8135 yes:no )
8136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8140 no:yes )
8141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8147 esac
8148 echo "$as_me:$LINENO: checking for $ac_header" >&5
8149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153 eval "$as_ac_Header=$ac_header_preproc"
8155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8160 cat >>confdefs.h <<_ACEOF
8161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8162 _ACEOF
8166 done
8169 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8170 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8171 if test "${ac_cv_header_time+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174 cat >conftest.$ac_ext <<_ACEOF
8175 #line $LINENO "configure"
8176 #include "confdefs.h"
8177 #include <sys/types.h>
8178 #include <sys/time.h>
8179 #include <time.h>
8181 #ifdef F77_DUMMY_MAIN
8182 # ifdef __cplusplus
8183 extern "C"
8184 # endif
8185 int F77_DUMMY_MAIN() { return 1; }
8186 #endif
8188 main ()
8190 if ((struct tm *) 0)
8191 return 0;
8193 return 0;
8195 _ACEOF
8196 rm -f conftest.$ac_objext
8197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8198 (eval $ac_compile) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try='test -s conftest.$ac_objext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 (eval $ac_try) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 ac_cv_header_time=yes
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 cat conftest.$ac_ext >&5
8212 ac_cv_header_time=no
8214 rm -f conftest.$ac_objext conftest.$ac_ext
8216 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8217 echo "${ECHO_T}$ac_cv_header_time" >&6
8218 if test $ac_cv_header_time = yes; then
8220 cat >>confdefs.h <<\_ACEOF
8221 #define TIME_WITH_SYS_TIME 1
8222 _ACEOF
8227 cat >conftest.$ac_ext <<_ACEOF
8228 #line $LINENO "configure"
8229 #include "confdefs.h"
8230 #include <time.h>
8232 _ACEOF
8233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8234 egrep "nanosleep" >/dev/null 2>&1; then
8237 cat >>confdefs.h <<\_ACEOF
8238 #define HAVE_DECL_NANOSLEEP 1
8239 _ACEOF
8243 rm -f conftest*
8246 cat >conftest.$ac_ext <<_ACEOF
8247 #line $LINENO "configure"
8248 #include "confdefs.h"
8249 #include <sys/time.h>
8251 _ACEOF
8252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8253 egrep "timespec" >/dev/null 2>&1; then
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_STRUCT_TIMESPEC 1
8258 _ACEOF
8262 rm -f conftest*
8269 for ac_header in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
8271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8273 echo "$as_me:$LINENO: checking for $ac_header" >&5
8274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8280 else
8281 # Is the header compilable?
8282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8284 cat >conftest.$ac_ext <<_ACEOF
8285 #line $LINENO "configure"
8286 #include "confdefs.h"
8287 $ac_includes_default
8288 #include <$ac_header>
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8292 (eval $ac_compile) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -s conftest.$ac_objext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 (eval $ac_try) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_header_compiler=yes
8303 else
8304 echo "$as_me: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8306 ac_header_compiler=no
8308 rm -f conftest.$ac_objext conftest.$ac_ext
8309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8310 echo "${ECHO_T}$ac_header_compiler" >&6
8312 # Is the header present?
8313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8315 cat >conftest.$ac_ext <<_ACEOF
8316 #line $LINENO "configure"
8317 #include "confdefs.h"
8318 #include <$ac_header>
8319 _ACEOF
8320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8322 ac_status=$?
8323 egrep -v '^ *\+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } >/dev/null; then
8328 if test -s conftest.err; then
8329 ac_cpp_err=$ac_c_preproc_warn_flag
8330 else
8331 ac_cpp_err=
8333 else
8334 ac_cpp_err=yes
8336 if test -z "$ac_cpp_err"; then
8337 ac_header_preproc=yes
8338 else
8339 echo "$as_me: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8341 ac_header_preproc=no
8343 rm -f conftest.err conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8345 echo "${ECHO_T}$ac_header_preproc" >&6
8347 # So? What about this header?
8348 case $ac_header_compiler:$ac_header_preproc in
8349 yes:no )
8350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8354 no:yes )
8355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8361 esac
8362 echo "$as_me:$LINENO: checking for $ac_header" >&5
8363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367 eval "$as_ac_Header=$ac_header_preproc"
8369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8374 cat >>confdefs.h <<_ACEOF
8375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8376 _ACEOF
8380 done
8383 if test x$SYS != xmingw32
8384 then
8385 if test x$x_includes = xNONE; then
8386 x_includes=/usr/X11R6/include
8388 if test x$x_libraries = xNONE; then
8389 x_libraries=/usr/X11R6/lib
8391 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
8393 for ac_header in X11/extensions/dpms.h
8395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8397 echo "$as_me:$LINENO: checking for $ac_header" >&5
8398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8404 else
8405 # Is the header compilable?
8406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8408 cat >conftest.$ac_ext <<_ACEOF
8409 #line $LINENO "configure"
8410 #include "confdefs.h"
8411 $ac_includes_default
8412 #include <$ac_header>
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } &&
8420 { ac_try='test -s conftest.$ac_objext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_header_compiler=yes
8427 else
8428 echo "$as_me: failed program was:" >&5
8429 cat conftest.$ac_ext >&5
8430 ac_header_compiler=no
8432 rm -f conftest.$ac_objext conftest.$ac_ext
8433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8434 echo "${ECHO_T}$ac_header_compiler" >&6
8436 # Is the header present?
8437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8439 cat >conftest.$ac_ext <<_ACEOF
8440 #line $LINENO "configure"
8441 #include "confdefs.h"
8442 #include <$ac_header>
8443 _ACEOF
8444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8446 ac_status=$?
8447 egrep -v '^ *\+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } >/dev/null; then
8452 if test -s conftest.err; then
8453 ac_cpp_err=$ac_c_preproc_warn_flag
8454 else
8455 ac_cpp_err=
8457 else
8458 ac_cpp_err=yes
8460 if test -z "$ac_cpp_err"; then
8461 ac_header_preproc=yes
8462 else
8463 echo "$as_me: failed program was:" >&5
8464 cat conftest.$ac_ext >&5
8465 ac_header_preproc=no
8467 rm -f conftest.err conftest.$ac_ext
8468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8469 echo "${ECHO_T}$ac_header_preproc" >&6
8471 # So? What about this header?
8472 case $ac_header_compiler:$ac_header_preproc in
8473 yes:no )
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8478 no:yes )
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8485 esac
8486 echo "$as_me:$LINENO: checking for $ac_header" >&5
8487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491 eval "$as_ac_Header=$ac_header_preproc"
8493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8498 cat >>confdefs.h <<_ACEOF
8499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8500 _ACEOF
8502 cat >conftest.$ac_ext <<_ACEOF
8503 #line $LINENO "configure"
8504 #include "confdefs.h"
8505 #include <X11/extensions/dpms.h>
8507 _ACEOF
8508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8509 egrep "DPMSInfo" >/dev/null 2>&1; then
8512 cat >>confdefs.h <<\_ACEOF
8513 #define DPMSINFO_IN_DPMS_H 1
8514 _ACEOF
8518 rm -f conftest*
8523 done
8525 CPPFLAGS="$save_CPPFLAGS"
8528 echo "$as_me:$LINENO: checking for ntohl in sys/param.h" >&5
8529 echo $ECHO_N "checking for ntohl in sys/param.h... $ECHO_C" >&6
8530 if test "${ac_cv_c_ntohl_sys_param_h+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 CFLAGS="${save_CFLAGS} -Wall -Werror"
8534 cat >conftest.$ac_ext <<_ACEOF
8535 #line $LINENO "configure"
8536 #include "confdefs.h"
8537 #include <sys/param.h>
8538 #ifdef F77_DUMMY_MAIN
8539 # ifdef __cplusplus
8540 extern "C"
8541 # endif
8542 int F77_DUMMY_MAIN() { return 1; }
8543 #endif
8545 main ()
8547 void foo() { int meuh; ntohl(meuh); }
8549 return 0;
8551 _ACEOF
8552 rm -f conftest.$ac_objext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8554 (eval $ac_compile) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -s conftest.$ac_objext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 ac_cv_c_ntohl_sys_param_h=yes
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8568 ac_cv_c_ntohl_sys_param_h=no
8570 rm -f conftest.$ac_objext conftest.$ac_ext
8572 echo "$as_me:$LINENO: result: $ac_cv_c_ntohl_sys_param_h" >&5
8573 echo "${ECHO_T}$ac_cv_c_ntohl_sys_param_h" >&6
8574 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
8576 cat >>confdefs.h <<\_ACEOF
8577 #define NTOHL_IN_SYS_PARAM_H 1
8578 _ACEOF
8582 echo "$as_me:$LINENO: checking if \$CC accepts -finline-limit" >&5
8583 echo $ECHO_N "checking if \$CC accepts -finline-limit... $ECHO_C" >&6
8584 if test "${ac_cv_c_inline_limit+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587 CFLAGS="${save_CFLAGS} -finline-limit-30000"
8588 cat >conftest.$ac_ext <<_ACEOF
8589 #line $LINENO "configure"
8590 #include "confdefs.h"
8592 #ifdef F77_DUMMY_MAIN
8593 # ifdef __cplusplus
8594 extern "C"
8595 # endif
8596 int F77_DUMMY_MAIN() { return 1; }
8597 #endif
8599 main ()
8603 return 0;
8605 _ACEOF
8606 rm -f conftest.$ac_objext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8608 (eval $ac_compile) 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -s conftest.$ac_objext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 (eval $ac_try) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 ac_cv_c_inline_limit=yes
8619 else
8620 echo "$as_me: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8622 ac_cv_c_inline_limit=no
8624 rm -f conftest.$ac_objext conftest.$ac_ext
8626 echo "$as_me:$LINENO: result: $ac_cv_c_inline_limit" >&5
8627 echo "${ECHO_T}$ac_cv_c_inline_limit" >&6
8628 if test x"$ac_cv_c_inline_limit" != x"no"; then
8629 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
8632 echo "$as_me:$LINENO: checking if \$CC accepts -Wall -Winline" >&5
8633 echo $ECHO_N "checking if \$CC accepts -Wall -Winline... $ECHO_C" >&6
8634 if test "${ac_cv_c_Wall_Winline+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 else
8637 CFLAGS="${save_CFLAGS} -Wall -Winline"
8638 cat >conftest.$ac_ext <<_ACEOF
8639 #line $LINENO "configure"
8640 #include "confdefs.h"
8642 #ifdef F77_DUMMY_MAIN
8643 # ifdef __cplusplus
8644 extern "C"
8645 # endif
8646 int F77_DUMMY_MAIN() { return 1; }
8647 #endif
8649 main ()
8653 return 0;
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } &&
8662 { ac_try='test -s conftest.$ac_objext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_c_Wall_Winline=yes
8669 else
8670 echo "$as_me: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8672 ac_cv_c_Wall_Winline=no
8674 rm -f conftest.$ac_objext conftest.$ac_ext
8676 echo "$as_me:$LINENO: result: $ac_cv_c_Wall_Winline" >&5
8677 echo "${ECHO_T}$ac_cv_c_Wall_Winline" >&6
8678 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
8679 save_CFLAGS="${save_CFLAGS} -Wall -Winline"
8680 else
8681 echo "$as_me:$LINENO: checking if \$CC accepts -wall -winline" >&5
8682 echo $ECHO_N "checking if \$CC accepts -wall -winline... $ECHO_C" >&6
8683 if test "${ac_cv_c_wall_winline+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686 CFLAGS="${save_CFLAGS} -wall -winline"
8687 cat >conftest.$ac_ext <<_ACEOF
8688 #line $LINENO "configure"
8689 #include "confdefs.h"
8691 #ifdef F77_DUMMY_MAIN
8692 # ifdef __cplusplus
8693 extern "C"
8694 # endif
8695 int F77_DUMMY_MAIN() { return 1; }
8696 #endif
8698 main ()
8702 return 0;
8704 _ACEOF
8705 rm -f conftest.$ac_objext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8707 (eval $ac_compile) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -s conftest.$ac_objext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_c_wall_winline=yes
8718 else
8719 echo "$as_me: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721 ac_cv_c_wall_winline=no
8723 rm -f conftest.$ac_objext conftest.$ac_ext
8725 echo "$as_me:$LINENO: result: $ac_cv_c_wall_winline" >&5
8726 echo "${ECHO_T}$ac_cv_c_wall_winline" >&6
8727 if test x"$ac_cv_c_wall_winline" != x"no"; then
8728 save_CFLAGS="${save_CFLAGS} -wall -winline"
8732 echo "$as_me:$LINENO: checking if \$CC accepts -pipe" >&5
8733 echo $ECHO_N "checking if \$CC accepts -pipe... $ECHO_C" >&6
8734 if test "${ac_cv_c_pipe+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737 CFLAGS="${save_CFLAGS} -pipe"
8738 cat >conftest.$ac_ext <<_ACEOF
8739 #line $LINENO "configure"
8740 #include "confdefs.h"
8742 #ifdef F77_DUMMY_MAIN
8743 # ifdef __cplusplus
8744 extern "C"
8745 # endif
8746 int F77_DUMMY_MAIN() { return 1; }
8747 #endif
8749 main ()
8753 return 0;
8755 _ACEOF
8756 rm -f conftest.$ac_objext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -s conftest.$ac_objext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 ac_cv_c_pipe=yes
8769 else
8770 echo "$as_me: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8772 ac_cv_c_pipe=no
8774 rm -f conftest.$ac_objext conftest.$ac_ext
8776 echo "$as_me:$LINENO: result: $ac_cv_c_pipe" >&5
8777 echo "${ECHO_T}$ac_cv_c_pipe" >&6
8778 if test x"$ac_cv_c_pipe" != x"no"; then
8779 save_CFLAGS="${save_CFLAGS} -pipe"
8782 echo "$as_me:$LINENO: checking if \$CC accepts -O3" >&5
8783 echo $ECHO_N "checking if \$CC accepts -O3... $ECHO_C" >&6
8784 if test "${ac_cv_c_o3+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787 CFLAGS="${save_CFLAGS} -O3"
8788 cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 #include "confdefs.h"
8792 #ifdef F77_DUMMY_MAIN
8793 # ifdef __cplusplus
8794 extern "C"
8795 # endif
8796 int F77_DUMMY_MAIN() { return 1; }
8797 #endif
8799 main ()
8803 return 0;
8805 _ACEOF
8806 rm -f conftest.$ac_objext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8808 (eval $ac_compile) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -s conftest.$ac_objext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 (eval $ac_try) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 ac_cv_c_o3=yes
8819 else
8820 echo "$as_me: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8822 ac_cv_c_o3=no
8824 rm -f conftest.$ac_objext conftest.$ac_ext
8826 echo "$as_me:$LINENO: result: $ac_cv_c_o3" >&5
8827 echo "${ECHO_T}$ac_cv_c_o3" >&6
8828 if test x"$ac_cv_c_o3" != x"no"; then
8829 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
8830 else
8831 echo "$as_me:$LINENO: checking if \$CC accepts -O2" >&5
8832 echo $ECHO_N "checking if \$CC accepts -O2... $ECHO_C" >&6
8833 if test "${ac_cv_c_o2+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 CFLAGS="${save_CFLAGS} -O2"
8837 cat >conftest.$ac_ext <<_ACEOF
8838 #line $LINENO "configure"
8839 #include "confdefs.h"
8841 #ifdef F77_DUMMY_MAIN
8842 # ifdef __cplusplus
8843 extern "C"
8844 # endif
8845 int F77_DUMMY_MAIN() { return 1; }
8846 #endif
8848 main ()
8852 return 0;
8854 _ACEOF
8855 rm -f conftest.$ac_objext
8856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8857 (eval $ac_compile) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -s conftest.$ac_objext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 ac_cv_c_o2=yes
8868 else
8869 echo "$as_me: failed program was:" >&5
8870 cat conftest.$ac_ext >&5
8871 ac_cv_c_o2=no
8873 rm -f conftest.$ac_objext conftest.$ac_ext
8875 echo "$as_me:$LINENO: result: $ac_cv_c_o2" >&5
8876 echo "${ECHO_T}$ac_cv_c_o2" >&6
8877 if test x"$ac_cv_c_o2" != x"no"; then
8878 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
8879 else
8880 echo "$as_me:$LINENO: checking if \$CC accepts -O" >&5
8881 echo $ECHO_N "checking if \$CC accepts -O... $ECHO_C" >&6
8882 if test "${ac_cv_c_o+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885 CFLAGS="${save_CFLAGS} -O"
8886 cat >conftest.$ac_ext <<_ACEOF
8887 #line $LINENO "configure"
8888 #include "confdefs.h"
8890 #ifdef F77_DUMMY_MAIN
8891 # ifdef __cplusplus
8892 extern "C"
8893 # endif
8894 int F77_DUMMY_MAIN() { return 1; }
8895 #endif
8897 main ()
8901 return 0;
8903 _ACEOF
8904 rm -f conftest.$ac_objext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8906 (eval $ac_compile) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try='test -s conftest.$ac_objext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_cv_c_o=yes
8917 else
8918 echo "$as_me: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8920 ac_cv_c_o=no
8922 rm -f conftest.$ac_objext conftest.$ac_ext
8924 echo "$as_me:$LINENO: result: $ac_cv_c_o" >&5
8925 echo "${ECHO_T}$ac_cv_c_o" >&6
8926 if test x"$ac_cv_c_o" != x"no"; then
8927 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
8932 echo "$as_me:$LINENO: checking if \$CC accepts -ffast-math" >&5
8933 echo $ECHO_N "checking if \$CC accepts -ffast-math... $ECHO_C" >&6
8934 if test "${ac_cv_c_fast_math+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937 CFLAGS="${save_CFLAGS} -ffast-math"
8938 cat >conftest.$ac_ext <<_ACEOF
8939 #line $LINENO "configure"
8940 #include "confdefs.h"
8942 #ifdef F77_DUMMY_MAIN
8943 # ifdef __cplusplus
8944 extern "C"
8945 # endif
8946 int F77_DUMMY_MAIN() { return 1; }
8947 #endif
8949 main ()
8953 return 0;
8955 _ACEOF
8956 rm -f conftest.$ac_objext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8958 (eval $ac_compile) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
8962 { ac_try='test -s conftest.$ac_objext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 ac_cv_c_fast_math=yes
8969 else
8970 echo "$as_me: failed program was:" >&5
8971 cat conftest.$ac_ext >&5
8972 ac_cv_c_fast_math=no
8974 rm -f conftest.$ac_objext conftest.$ac_ext
8976 echo "$as_me:$LINENO: result: $ac_cv_c_fast_math" >&5
8977 echo "${ECHO_T}$ac_cv_c_fast_math" >&6
8978 if test x"$ac_cv_c_fast_math" != x"no"; then
8979 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
8982 echo "$as_me:$LINENO: checking if \$CC accepts -funroll-loops" >&5
8983 echo $ECHO_N "checking if \$CC accepts -funroll-loops... $ECHO_C" >&6
8984 if test "${ac_cv_c_unroll_loops+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 else
8987 CFLAGS="${save_CFLAGS} -funroll-loops"
8988 cat >conftest.$ac_ext <<_ACEOF
8989 #line $LINENO "configure"
8990 #include "confdefs.h"
8992 #ifdef F77_DUMMY_MAIN
8993 # ifdef __cplusplus
8994 extern "C"
8995 # endif
8996 int F77_DUMMY_MAIN() { return 1; }
8997 #endif
8999 main ()
9003 return 0;
9005 _ACEOF
9006 rm -f conftest.$ac_objext
9007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9008 (eval $ac_compile) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } &&
9012 { ac_try='test -s conftest.$ac_objext'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9018 ac_cv_c_unroll_loops=yes
9019 else
9020 echo "$as_me: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9022 ac_cv_c_unroll_loops=no
9024 rm -f conftest.$ac_objext conftest.$ac_ext
9026 echo "$as_me:$LINENO: result: $ac_cv_c_unroll_loops" >&5
9027 echo "${ECHO_T}$ac_cv_c_unroll_loops" >&6
9028 if test x"$ac_cv_c_unroll_loops" != x"no"; then
9029 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
9032 echo "$as_me:$LINENO: checking if \$CC accepts -fomit-frame-pointer" >&5
9033 echo $ECHO_N "checking if \$CC accepts -fomit-frame-pointer... $ECHO_C" >&6
9034 if test "${ac_cv_c_omit_frame_pointer+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 else
9037 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 #include "confdefs.h"
9042 #ifdef F77_DUMMY_MAIN
9043 # ifdef __cplusplus
9044 extern "C"
9045 # endif
9046 int F77_DUMMY_MAIN() { return 1; }
9047 #endif
9049 main ()
9053 return 0;
9055 _ACEOF
9056 rm -f conftest.$ac_objext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9058 (eval $ac_compile) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -s conftest.$ac_objext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_c_omit_frame_pointer=yes
9069 else
9070 echo "$as_me: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9072 ac_cv_c_omit_frame_pointer=no
9074 rm -f conftest.$ac_objext conftest.$ac_ext
9076 echo "$as_me:$LINENO: result: $ac_cv_c_omit_frame_pointer" >&5
9077 echo "${ECHO_T}$ac_cv_c_omit_frame_pointer" >&6
9078 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
9079 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
9082 if test x$SYS = xmingw32
9083 then
9084 echo "$as_me:$LINENO: checking if \$CC accepts -mms-bitfields" >&5
9085 echo $ECHO_N "checking if \$CC accepts -mms-bitfields... $ECHO_C" >&6
9086 if test "${ac_cv_c_mms_bitfields+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089 CFLAGS="${save_CFLAGS} -mms-bitfields"
9090 cat >conftest.$ac_ext <<_ACEOF
9091 #line $LINENO "configure"
9092 #include "confdefs.h"
9094 #ifdef F77_DUMMY_MAIN
9095 # ifdef __cplusplus
9096 extern "C"
9097 # endif
9098 int F77_DUMMY_MAIN() { return 1; }
9099 #endif
9101 main ()
9105 return 0;
9107 _ACEOF
9108 rm -f conftest.$ac_objext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9110 (eval $ac_compile) 2>&5
9111 ac_status=$?
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -s conftest.$ac_objext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 ac_cv_c_mms_bitfields=yes
9121 else
9122 echo "$as_me: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 ac_cv_c_mms_bitfields=no
9126 rm -f conftest.$ac_objext conftest.$ac_ext
9128 echo "$as_me:$LINENO: result: $ac_cv_c_mms_bitfields" >&5
9129 echo "${ECHO_T}$ac_cv_c_mms_bitfields" >&6
9130 if test x"$ac_cv_c_mms_bitfields" != x"no"; then
9131 save_CFLAGS="${save_CFLAGS} -mms-bitfields"
9132 plugins_CFLAGS="${plugins_CFLAGS} -mms-bitfields"
9133 else
9134 save_CFLAGS="${save_CFLAGS} -fnative-struct"
9135 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
9139 echo "$as_me:$LINENO: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
9140 echo $ECHO_N "checking if \$CC accepts -bundle -undefined error -lcc_dynamic... $ECHO_C" >&6
9141 if test "${ac_cv_ld_darwin+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
9145 cat >conftest.$ac_ext <<_ACEOF
9146 #line $LINENO "configure"
9147 #include "confdefs.h"
9149 #ifdef F77_DUMMY_MAIN
9150 # ifdef __cplusplus
9151 extern "C"
9152 # endif
9153 int F77_DUMMY_MAIN() { return 1; }
9154 #endif
9156 main ()
9160 return 0;
9162 _ACEOF
9163 rm -f conftest.$ac_objext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9165 (eval $ac_compile) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try='test -s conftest.$ac_objext'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9175 ac_cv_ld_darwin=yes
9176 else
9177 echo "$as_me: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9179 ac_cv_ld_darwin=no
9181 rm -f conftest.$ac_objext conftest.$ac_ext
9183 echo "$as_me:$LINENO: result: $ac_cv_ld_darwin" >&5
9184 echo "${ECHO_T}$ac_cv_ld_darwin" >&6
9185 if test x"$ac_cv_ld_darwin" != x"no"; then
9186 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
9189 echo "$as_me:$LINENO: checking if \$CC accepts -shared" >&5
9190 echo $ECHO_N "checking if \$CC accepts -shared... $ECHO_C" >&6
9191 if test "${ac_cv_ld_plugins+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194 CFLAGS="${save_CFLAGS} -shared"
9195 cat >conftest.$ac_ext <<_ACEOF
9196 #line $LINENO "configure"
9197 #include "confdefs.h"
9199 #ifdef F77_DUMMY_MAIN
9200 # ifdef __cplusplus
9201 extern "C"
9202 # endif
9203 int F77_DUMMY_MAIN() { return 1; }
9204 #endif
9206 main ()
9210 return 0;
9212 _ACEOF
9213 rm -f conftest.$ac_objext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215 (eval $ac_compile) 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_cv_ld_plugins=yes
9226 else
9227 echo "$as_me: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9229 ac_cv_ld_plugins=no
9231 rm -f conftest.$ac_objext conftest.$ac_ext
9233 echo "$as_me:$LINENO: result: $ac_cv_ld_plugins" >&5
9234 echo "${ECHO_T}$ac_cv_ld_plugins" >&6
9235 if test x"$ac_cv_ld_plugins" != x"no"; then
9236 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
9239 echo "$as_me:$LINENO: checking for variadic cpp macros" >&5
9240 echo $ECHO_N "checking for variadic cpp macros... $ECHO_C" >&6
9241 if test "${ac_cv_cpp_variadic_macros+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244 CFLAGS="${save_CFLAGS}"
9245 cat >conftest.$ac_ext <<_ACEOF
9246 #line $LINENO "configure"
9247 #include "confdefs.h"
9248 #include <stdio.h>
9249 #define a(b,c...) printf(b,##c)
9250 #ifdef F77_DUMMY_MAIN
9251 # ifdef __cplusplus
9252 extern "C"
9253 # endif
9254 int F77_DUMMY_MAIN() { return 1; }
9255 #endif
9257 main ()
9259 a("foo");a("%s","bar");a("%s%s","baz","quux");
9261 return 0;
9263 _ACEOF
9264 rm -f conftest.$ac_objext
9265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9266 (eval $ac_compile) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -s conftest.$ac_objext'
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 (eval $ac_try) 2>&5
9273 ac_status=$?
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; }; then
9276 ac_cv_cpp_variadic_macros=yes
9277 else
9278 echo "$as_me: failed program was:" >&5
9279 cat conftest.$ac_ext >&5
9280 ac_cv_cpp_variadic_macros=no
9282 rm -f conftest.$ac_objext conftest.$ac_ext
9284 echo "$as_me:$LINENO: result: $ac_cv_cpp_variadic_macros" >&5
9285 echo "${ECHO_T}$ac_cv_cpp_variadic_macros" >&6
9286 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
9288 cat >>confdefs.h <<\_ACEOF
9289 #define HAVE_VARIADIC_MACROS 1
9290 _ACEOF
9294 echo "$as_me:$LINENO: checking __attribute__ ((aligned ())) support" >&5
9295 echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6
9296 if test "${ac_cv_c_attribute_aligned+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299 ac_cv_c_attribute_aligned=0
9300 CFLAGS="${save_CFLAGS} -Werror"
9301 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
9302 cat >conftest.$ac_ext <<_ACEOF
9303 #line $LINENO "configure"
9304 #include "confdefs.h"
9306 #ifdef F77_DUMMY_MAIN
9307 # ifdef __cplusplus
9308 extern "C"
9309 # endif
9310 int F77_DUMMY_MAIN() { return 1; }
9311 #endif
9313 main ()
9315 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
9317 return 0;
9319 _ACEOF
9320 rm -f conftest.$ac_objext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322 (eval $ac_compile) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try='test -s conftest.$ac_objext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 (eval $ac_try) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
9333 else
9334 echo "$as_me: failed program was:" >&5
9335 cat conftest.$ac_ext >&5
9337 rm -f conftest.$ac_objext conftest.$ac_ext
9338 done
9340 echo "$as_me:$LINENO: result: $ac_cv_c_attribute_aligned" >&5
9341 echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6
9342 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
9344 cat >>confdefs.h <<_ACEOF
9345 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
9346 _ACEOF
9350 CFLAGS="${save_CFLAGS}"
9351 CPPFLAGS="${save_CPPFLAGS}"
9352 LDFLAGS="${save_LDFLAGS}"
9354 echo "$as_me:$LINENO: checking for boolean_t in sys/types.h" >&5
9355 echo $ECHO_N "checking for boolean_t in sys/types.h... $ECHO_C" >&6
9356 if test "${ac_cv_c_boolean_t_sys_types_h+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 else
9359 cat >conftest.$ac_ext <<_ACEOF
9360 #line $LINENO "configure"
9361 #include "confdefs.h"
9362 #include <sys/types.h>
9363 #ifdef F77_DUMMY_MAIN
9364 # ifdef __cplusplus
9365 extern "C"
9366 # endif
9367 int F77_DUMMY_MAIN() { return 1; }
9368 #endif
9370 main ()
9372 boolean_t foo;
9374 return 0;
9376 _ACEOF
9377 rm -f conftest.$ac_objext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9379 (eval $ac_compile) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -s conftest.$ac_objext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 ac_cv_c_boolean_t_sys_types_h=yes
9390 else
9391 echo "$as_me: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9393 ac_cv_c_boolean_t_sys_types_h=no
9395 rm -f conftest.$ac_objext conftest.$ac_ext
9397 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_sys_types_h" >&5
9398 echo "${ECHO_T}$ac_cv_c_boolean_t_sys_types_h" >&6
9399 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
9401 cat >>confdefs.h <<\_ACEOF
9402 #define BOOLEAN_T_IN_SYS_TYPES_H 1
9403 _ACEOF
9407 echo "$as_me:$LINENO: checking for boolean_t in pthread.h" >&5
9408 echo $ECHO_N "checking for boolean_t in pthread.h... $ECHO_C" >&6
9409 if test "${ac_cv_c_boolean_t_pthread_h+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412 cat >conftest.$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9414 #include "confdefs.h"
9415 #include <pthread.h>
9416 #ifdef F77_DUMMY_MAIN
9417 # ifdef __cplusplus
9418 extern "C"
9419 # endif
9420 int F77_DUMMY_MAIN() { return 1; }
9421 #endif
9423 main ()
9425 boolean_t foo;
9427 return 0;
9429 _ACEOF
9430 rm -f conftest.$ac_objext
9431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9432 (eval $ac_compile) 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try='test -s conftest.$ac_objext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 (eval $ac_try) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 ac_cv_c_boolean_t_pthread_h=yes
9443 else
9444 echo "$as_me: failed program was:" >&5
9445 cat conftest.$ac_ext >&5
9446 ac_cv_c_boolean_t_pthread_h=no
9448 rm -f conftest.$ac_objext conftest.$ac_ext
9450 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_pthread_h" >&5
9451 echo "${ECHO_T}$ac_cv_c_boolean_t_pthread_h" >&6
9452 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
9454 cat >>confdefs.h <<\_ACEOF
9455 #define BOOLEAN_T_IN_PTHREAD_H 1
9456 _ACEOF
9460 echo "$as_me:$LINENO: checking for boolean_t in cthreads.h" >&5
9461 echo $ECHO_N "checking for boolean_t in cthreads.h... $ECHO_C" >&6
9462 if test "${ac_cv_c_boolean_t_cthreads_h+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465 cat >conftest.$ac_ext <<_ACEOF
9466 #line $LINENO "configure"
9467 #include "confdefs.h"
9468 #include <cthreads.h>
9469 #ifdef F77_DUMMY_MAIN
9470 # ifdef __cplusplus
9471 extern "C"
9472 # endif
9473 int F77_DUMMY_MAIN() { return 1; }
9474 #endif
9476 main ()
9478 boolean_t foo;
9480 return 0;
9482 _ACEOF
9483 rm -f conftest.$ac_objext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9485 (eval $ac_compile) 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } &&
9489 { ac_try='test -s conftest.$ac_objext'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 (eval $ac_try) 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; }; then
9495 ac_cv_c_boolean_t_cthreads_h=yes
9496 else
9497 echo "$as_me: failed program was:" >&5
9498 cat conftest.$ac_ext >&5
9499 ac_cv_c_boolean_t_cthreads_h=no
9501 rm -f conftest.$ac_objext conftest.$ac_ext
9503 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_cthreads_h" >&5
9504 echo "${ECHO_T}$ac_cv_c_boolean_t_cthreads_h" >&6
9505 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
9507 cat >>confdefs.h <<\_ACEOF
9508 #define BOOLEAN_T_IN_CTHREADS_H 1
9509 _ACEOF
9513 case x"${target_cpu}" in
9515 ARCH=unknown
9518 ARCH="${target_cpu}"
9520 esac
9522 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
9523 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone filter_crop fx_scope"
9525 NETWORK_MODULES="udp http rtp ipv4"
9527 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
9528 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
9529 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
9530 SSE_MODULES="imdctsse downmixsse"
9531 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
9533 if test x$SYS != xbeos
9534 then
9535 PLUGINS="${PLUGINS} ${NETWORK_MODULES}"
9538 echo "$as_me:$LINENO: checking if \$CC groks MMX inline assembly" >&5
9539 echo $ECHO_N "checking if \$CC groks MMX inline assembly... $ECHO_C" >&6
9540 if test "${ac_cv_mmx_inline+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543 cat >conftest.$ac_ext <<_ACEOF
9544 #line $LINENO "configure"
9545 #include "confdefs.h"
9547 #ifdef F77_DUMMY_MAIN
9548 # ifdef __cplusplus
9549 extern "C"
9550 # endif
9551 int F77_DUMMY_MAIN() { return 1; }
9552 #endif
9554 main ()
9556 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
9558 return 0;
9560 _ACEOF
9561 rm -f conftest.$ac_objext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563 (eval $ac_compile) 2>&5
9564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } &&
9567 { ac_try='test -s conftest.$ac_objext'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 (eval $ac_try) 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; }; then
9573 ac_cv_mmx_inline=yes
9574 else
9575 echo "$as_me: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9577 ac_cv_mmx_inline=no
9579 rm -f conftest.$ac_objext conftest.$ac_ext
9581 echo "$as_me:$LINENO: result: $ac_cv_mmx_inline" >&5
9582 echo "${ECHO_T}$ac_cv_mmx_inline" >&6
9583 if test x"$ac_cv_mmx_inline" != x"no"; then
9584 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
9587 echo "$as_me:$LINENO: checking if \$CC groks MMX EXT inline assembly" >&5
9588 echo $ECHO_N "checking if \$CC groks MMX EXT inline assembly... $ECHO_C" >&6
9589 if test "${ac_cv_mmxext_inline+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592 cat >conftest.$ac_ext <<_ACEOF
9593 #line $LINENO "configure"
9594 #include "confdefs.h"
9596 #ifdef F77_DUMMY_MAIN
9597 # ifdef __cplusplus
9598 extern "C"
9599 # endif
9600 int F77_DUMMY_MAIN() { return 1; }
9601 #endif
9603 main ()
9605 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
9607 return 0;
9609 _ACEOF
9610 rm -f conftest.$ac_objext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9612 (eval $ac_compile) 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } &&
9616 { ac_try='test -s conftest.$ac_objext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 (eval $ac_try) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_mmxext_inline=yes
9623 else
9624 echo "$as_me: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9626 ac_cv_mmxext_inline=no
9628 rm -f conftest.$ac_objext conftest.$ac_ext
9630 echo "$as_me:$LINENO: result: $ac_cv_mmxext_inline" >&5
9631 echo "${ECHO_T}$ac_cv_mmxext_inline" >&6
9632 if test x"$ac_cv_mmxext_inline" != x"no"; then
9633 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
9636 echo "$as_me:$LINENO: checking if \$CC groks 3D Now! inline assembly" >&5
9637 echo $ECHO_N "checking if \$CC groks 3D Now! inline assembly... $ECHO_C" >&6
9638 if test "${ac_cv_3dnow_inline+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641 cat >conftest.$ac_ext <<_ACEOF
9642 #line $LINENO "configure"
9643 #include "confdefs.h"
9645 #ifdef F77_DUMMY_MAIN
9646 # ifdef __cplusplus
9647 extern "C"
9648 # endif
9649 int F77_DUMMY_MAIN() { return 1; }
9650 #endif
9652 main ()
9654 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
9656 return 0;
9658 _ACEOF
9659 rm -f conftest.$ac_objext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9661 (eval $ac_compile) 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } &&
9665 { ac_try='test -s conftest.$ac_objext'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_3dnow_inline=yes
9672 else
9673 echo "$as_me: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9675 ac_cv_3dnow_inline=no
9677 rm -f conftest.$ac_objext conftest.$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_cv_3dnow_inline" >&5
9680 echo "${ECHO_T}$ac_cv_3dnow_inline" >&6
9681 if test x"$ac_cv_3dnow_inline" != x"no"; then
9683 cat >>confdefs.h <<\_ACEOF
9684 #define CAN_COMPILE_3DNOW 1
9685 _ACEOF
9687 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
9690 echo "$as_me:$LINENO: checking if \$CC groks SSE inline assembly" >&5
9691 echo $ECHO_N "checking if \$CC groks SSE inline assembly... $ECHO_C" >&6
9692 if test "${ac_cv_sse_inline+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695 cat >conftest.$ac_ext <<_ACEOF
9696 #line $LINENO "configure"
9697 #include "confdefs.h"
9699 #ifdef F77_DUMMY_MAIN
9700 # ifdef __cplusplus
9701 extern "C"
9702 # endif
9703 int F77_DUMMY_MAIN() { return 1; }
9704 #endif
9706 main ()
9708 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
9710 return 0;
9712 _ACEOF
9713 rm -f conftest.$ac_objext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9715 (eval $ac_compile) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -s conftest.$ac_objext'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 (eval $ac_try) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; }; then
9725 ac_cv_sse_inline=yes
9726 else
9727 echo "$as_me: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9729 ac_cv_sse_inline=no
9731 rm -f conftest.$ac_objext conftest.$ac_ext
9733 echo "$as_me:$LINENO: result: $ac_cv_sse_inline" >&5
9734 echo "${ECHO_T}$ac_cv_sse_inline" >&6
9735 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
9737 cat >>confdefs.h <<\_ACEOF
9738 #define CAN_COMPILE_SSE 1
9739 _ACEOF
9741 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
9744 # don't try to grok altivec with native mingw32 it doesn't work right now
9745 # we should be able to remove this test with future versions of mingw32
9746 if test x$SYS != xmingw32; then
9747 echo "$as_me:$LINENO: checking if \$CC groks Altivec inline assembly" >&5
9748 echo $ECHO_N "checking if \$CC groks Altivec inline assembly... $ECHO_C" >&6
9749 if test "${ac_cv_altivec_inline+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752 cat >conftest.$ac_ext <<_ACEOF
9753 #line $LINENO "configure"
9754 #include "confdefs.h"
9756 #ifdef F77_DUMMY_MAIN
9757 # ifdef __cplusplus
9758 extern "C"
9759 # endif
9760 int F77_DUMMY_MAIN() { return 1; }
9761 #endif
9763 main ()
9765 asm volatile("vperm 0,1,2,3");
9767 return 0;
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772 (eval $ac_compile) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try='test -s conftest.$ac_objext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 (eval $ac_try) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_cv_altivec_inline=yes
9783 else
9784 echo "$as_me: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9786 save_CFLAGS=$CFLAGS
9787 CFLAGS="$CFLAGS -Wa,-m7400"
9788 cat >conftest.$ac_ext <<_ACEOF
9789 #line $LINENO "configure"
9790 #include "confdefs.h"
9792 #ifdef F77_DUMMY_MAIN
9793 # ifdef __cplusplus
9794 extern "C"
9795 # endif
9796 int F77_DUMMY_MAIN() { return 1; }
9797 #endif
9799 main ()
9801 asm volatile("vperm 0,1,2,3");
9803 return 0;
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808 (eval $ac_compile) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -s conftest.$ac_objext'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 (eval $ac_try) 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_cv_altivec_inline="-Wa,-m7400"
9819 else
9820 echo "$as_me: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9822 ac_cv_altivec_inline=no
9824 rm -f conftest.$ac_objext conftest.$ac_ext
9825 CFLAGS=$save_CFLAGS
9828 rm -f conftest.$ac_objext conftest.$ac_ext
9830 echo "$as_me:$LINENO: result: $ac_cv_altivec_inline" >&5
9831 echo "${ECHO_T}$ac_cv_altivec_inline" >&6
9832 if test x"$ac_cv_altivec_inline" != x"no"; then
9834 cat >>confdefs.h <<\_ACEOF
9835 #define CAN_COMPILE_ALTIVEC 1
9836 _ACEOF
9838 if test x"$ac_cv_altivec_inline" != x"yes"; then
9839 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
9840 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
9841 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
9842 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
9844 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
9847 echo "$as_me:$LINENO: checking if \$CC groks Altivec C extensions" >&5
9848 echo $ECHO_N "checking if \$CC groks Altivec C extensions... $ECHO_C" >&6
9849 if test "${ac_cv_c_altivec+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852 save_CFLAGS=$CFLAGS
9853 CFLAGS="$CFLAGS -faltivec"
9854 # Darwin test
9855 cat >conftest.$ac_ext <<_ACEOF
9856 #line $LINENO "configure"
9857 #include "confdefs.h"
9859 #ifdef F77_DUMMY_MAIN
9860 # ifdef __cplusplus
9861 extern "C"
9862 # endif
9863 int F77_DUMMY_MAIN() { return 1; }
9864 #endif
9866 main ()
9868 vec_mtvscr((vector unsigned int)(0));
9870 return 0;
9872 _ACEOF
9873 rm -f conftest.$ac_objext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9875 (eval $ac_compile) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -s conftest.$ac_objext'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 (eval $ac_try) 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_c_altivec=-faltivec
9886 else
9887 echo "$as_me: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9890 # Linux/PPC test
9891 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
9892 cat >conftest.$ac_ext <<_ACEOF
9893 #line $LINENO "configure"
9894 #include "confdefs.h"
9896 #ifdef F77_DUMMY_MAIN
9897 # ifdef __cplusplus
9898 extern "C"
9899 # endif
9900 int F77_DUMMY_MAIN() { return 1; }
9901 #endif
9903 main ()
9905 vec_mtvscr((vector unsigned int)(0));
9907 return 0;
9909 _ACEOF
9910 rm -f conftest.$ac_objext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9912 (eval $ac_compile) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -s conftest.$ac_objext'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 (eval $ac_try) 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_cv_c_altivec="-fvec"
9923 else
9924 echo "$as_me: failed program was:" >&5
9925 cat conftest.$ac_ext >&5
9926 ac_cv_c_altivec=no
9928 rm -f conftest.$ac_objext conftest.$ac_ext
9931 rm -f conftest.$ac_objext conftest.$ac_ext
9932 CFLAGS=$save_CFLAGS
9935 echo "$as_me:$LINENO: result: $ac_cv_c_altivec" >&5
9936 echo "${ECHO_T}$ac_cv_c_altivec" >&6
9937 if test x"$ac_cv_c_altivec" != x"no"; then
9939 cat >>confdefs.h <<\_ACEOF
9940 #define CAN_COMPILE_C_ALTIVEC 1
9941 _ACEOF
9943 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
9944 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
9945 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
9946 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
9947 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
9950 echo "$as_me:$LINENO: checking if linker needs -framework vecLib" >&5
9951 echo $ECHO_N "checking if linker needs -framework vecLib... $ECHO_C" >&6
9952 if test "${ac_cv_ld_altivec+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955 save_LDFLAGS=$LDFLAGS
9956 LDFLAGS="$LDFLAGS -framework vecLib"
9957 cat >conftest.$ac_ext <<_ACEOF
9958 #line $LINENO "configure"
9959 #include "confdefs.h"
9961 #ifdef F77_DUMMY_MAIN
9962 # ifdef __cplusplus
9963 extern "C"
9964 # endif
9965 int F77_DUMMY_MAIN() { return 1; }
9966 #endif
9968 main ()
9972 return 0;
9974 _ACEOF
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9977 (eval $ac_link) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } &&
9981 { ac_try='test -s conftest$ac_exeext'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983 (eval $ac_try) 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 ac_cv_ld_altivec=yes
9988 else
9989 echo "$as_me: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9991 ac_cv_ld_altivec=no
9993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9994 LDFLAGS=$save_LDFLAGS
9997 echo "$as_me:$LINENO: result: $ac_cv_ld_altivec" >&5
9998 echo "${ECHO_T}$ac_cv_ld_altivec" >&6
9999 if test x"$ac_cv_ld_altivec" != x"no"; then
10000 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
10001 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
10002 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
10003 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
10005 fi # end if mingw32
10009 # Check whether --with- or --without- was given.
10010 if test "${with_+set}" = set; then
10011 withval="$with_"
10015 # Check whether --with- or --without- was given.
10016 if test "${with_+set}" = set; then
10017 withval="$with_"
10022 # Check whether --with-tuning or --without-tuning was given.
10023 if test "${with_tuning+set}" = set; then
10024 withval="$with_tuning"
10027 if test "x$with_tuning" != "x"; then
10028 TUNING="$with_tuning"
10029 else
10030 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
10031 else
10032 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
10036 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
10037 then
10038 ARCH="${ARCH} mmx"
10039 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
10042 # Check whether --enable-optimizations or --disable-optimizations was given.
10043 if test "${enable_optimizations+set}" = set; then
10044 enableval="$enable_optimizations"
10045 if test x$enable_optimizations = xno; then OPTIMS=0; fi
10046 else
10047 OPTIMS=1
10050 # Check whether --enable-altivec or --disable-altivec was given.
10051 if test "${enable_altivec+set}" = set; then
10052 enableval="$enable_altivec"
10053 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
10054 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
10055 else
10056 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
10057 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
10060 DEBUG=0
10061 # Check whether --enable-debug or --disable-debug was given.
10062 if test "${enable_debug+set}" = set; then
10063 enableval="$enable_debug"
10064 if test x$enable_debug = xyes; then DEBUG=1; fi
10067 RELEASE=0
10068 # Check whether --enable-release or --disable-release was given.
10069 if test "${enable_release+set}" = set; then
10070 enableval="$enable_release"
10071 if test x$enable_release = xyes; then RELEASE=1; fi
10072 else
10073 VERSION="${VERSION}_`date +%Y-%m-%d`"
10078 # Check whether --with- or --without- was given.
10079 if test "${with_+set}" = set; then
10080 withval="$with_"
10084 # Check whether --enable-dvd or --disable-dvd was given.
10085 if test "${enable_dvd+set}" = set; then
10086 enableval="$enable_dvd"
10089 if test "x$enable_dvd" != "xno"
10090 then
10092 # Check whether --with-dvdcss or --without-dvdcss was given.
10093 if test "${with_dvdcss+set}" = set; then
10094 withval="$with_dvdcss"
10098 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
10099 if test "${with_dvdcss_tree+set}" = set; then
10100 withval="$with_dvdcss_tree"
10103 case "x$with_dvdcss" in
10104 x|xyes)
10105 if test "x$with_dvdcss_tree" = x
10106 then
10108 for ac_header in dvdcss/dvdcss.h
10110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10112 echo "$as_me:$LINENO: checking for $ac_header" >&5
10113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10119 else
10120 # Is the header compilable?
10121 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10123 cat >conftest.$ac_ext <<_ACEOF
10124 #line $LINENO "configure"
10125 #include "confdefs.h"
10126 $ac_includes_default
10127 #include <$ac_header>
10128 _ACEOF
10129 rm -f conftest.$ac_objext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131 (eval $ac_compile) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -s conftest.$ac_objext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_header_compiler=yes
10142 else
10143 echo "$as_me: failed program was:" >&5
10144 cat conftest.$ac_ext >&5
10145 ac_header_compiler=no
10147 rm -f conftest.$ac_objext conftest.$ac_ext
10148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10149 echo "${ECHO_T}$ac_header_compiler" >&6
10151 # Is the header present?
10152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10154 cat >conftest.$ac_ext <<_ACEOF
10155 #line $LINENO "configure"
10156 #include "confdefs.h"
10157 #include <$ac_header>
10158 _ACEOF
10159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10161 ac_status=$?
10162 egrep -v '^ *\+' conftest.er1 >conftest.err
10163 rm -f conftest.er1
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } >/dev/null; then
10167 if test -s conftest.err; then
10168 ac_cpp_err=$ac_c_preproc_warn_flag
10169 else
10170 ac_cpp_err=
10172 else
10173 ac_cpp_err=yes
10175 if test -z "$ac_cpp_err"; then
10176 ac_header_preproc=yes
10177 else
10178 echo "$as_me: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10180 ac_header_preproc=no
10182 rm -f conftest.err conftest.$ac_ext
10183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10184 echo "${ECHO_T}$ac_header_preproc" >&6
10186 # So? What about this header?
10187 case $ac_header_compiler:$ac_header_preproc in
10188 yes:no )
10189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10193 no:yes )
10194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10200 esac
10201 echo "$as_me:$LINENO: checking for $ac_header" >&5
10202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206 eval "$as_ac_Header=$ac_header_preproc"
10208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10213 cat >>confdefs.h <<_ACEOF
10214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10215 _ACEOF
10216 PLUGINS="${PLUGINS} dvd"
10217 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
10218 else
10219 { echo "$as_me:$LINENO: WARNING: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." >&5
10220 echo "$as_me: WARNING: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." >&2;}
10221 { { echo "$as_me:$LINENO: error: cannot find libdvdcss headers" >&5
10222 echo "$as_me: error: cannot find libdvdcss headers" >&2;}
10223 { (exit 1); exit 1; }; }
10226 done
10228 else
10229 echo "$as_me:$LINENO: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
10230 echo $ECHO_N "checking for libdvdcss.a in ${with_dvdcss_tree}... $ECHO_C" >&6
10231 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
10232 if test "x$real_dvdcss_tree" = x
10233 then
10234 echo "$as_me:$LINENO: result: no" >&5
10235 echo "${ECHO_T}no" >&6
10236 { { echo "$as_me:$LINENO: error: cannot cd to ${with_dvdcss_tree}" >&5
10237 echo "$as_me: error: cannot cd to ${with_dvdcss_tree}" >&2;}
10238 { (exit 1); exit 1; }; }
10240 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
10241 then
10242 echo "$as_me:$LINENO: result: ${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&5
10243 echo "${ECHO_T}${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&6
10244 BUILTINS="${BUILTINS} dvd"
10245 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
10246 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
10247 else
10248 echo "$as_me:$LINENO: result: no" >&5
10249 echo "${ECHO_T}no" >&6
10250 { { echo "$as_me:$LINENO: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&5
10251 echo "$as_me: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&2;}
10252 { (exit 1); exit 1; }; }
10256 xno)
10257 PLUGINS="${PLUGINS} dvd"
10258 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
10259 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
10262 echo "$as_me:$LINENO: checking for dvdcss headers in ${with_dvdcss}" >&5
10263 echo $ECHO_N "checking for dvdcss headers in ${with_dvdcss}... $ECHO_C" >&6
10264 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
10265 then
10266 echo "$as_me:$LINENO: result: yes" >&5
10267 echo "${ECHO_T}yes" >&6
10268 PLUGINS="${PLUGINS} dvd"
10269 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
10270 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
10271 else
10272 echo "$as_me:$LINENO: result: no" >&5
10273 echo "${ECHO_T}no" >&6
10274 { { echo "$as_me:$LINENO: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&5
10275 echo "$as_me: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&2;}
10276 { (exit 1); exit 1; }; }
10279 esac
10282 # Check whether --enable-dvdread or --disable-dvdread was given.
10283 if test "${enable_dvdread+set}" = set; then
10284 enableval="$enable_dvdread"
10287 if test "x$enable_dvdread" != "xno"
10288 then
10290 # Check whether --with-dvdread or --without-dvdread was given.
10291 if test "${with_dvdread+set}" = set; then
10292 withval="$with_dvdread"
10295 if test "x$with_dvdread" = x
10296 then
10297 test_LDFLAGS=""
10298 test_CFLAGS=""
10299 else
10300 test_LDFLAGS="-L${with_dvdread}/lib"
10301 test_CFLAGS="-I${with_dvdread}/include"
10303 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
10305 for ac_header in dvdread/dvd_reader.h
10307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10309 echo "$as_me:$LINENO: checking for $ac_header" >&5
10310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10316 else
10317 # Is the header compilable?
10318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10320 cat >conftest.$ac_ext <<_ACEOF
10321 #line $LINENO "configure"
10322 #include "confdefs.h"
10323 $ac_includes_default
10324 #include <$ac_header>
10325 _ACEOF
10326 rm -f conftest.$ac_objext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10328 (eval $ac_compile) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } &&
10332 { ac_try='test -s conftest.$ac_objext'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10338 ac_header_compiler=yes
10339 else
10340 echo "$as_me: failed program was:" >&5
10341 cat conftest.$ac_ext >&5
10342 ac_header_compiler=no
10344 rm -f conftest.$ac_objext conftest.$ac_ext
10345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10346 echo "${ECHO_T}$ac_header_compiler" >&6
10348 # Is the header present?
10349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10351 cat >conftest.$ac_ext <<_ACEOF
10352 #line $LINENO "configure"
10353 #include "confdefs.h"
10354 #include <$ac_header>
10355 _ACEOF
10356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10358 ac_status=$?
10359 egrep -v '^ *\+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } >/dev/null; then
10364 if test -s conftest.err; then
10365 ac_cpp_err=$ac_c_preproc_warn_flag
10366 else
10367 ac_cpp_err=
10369 else
10370 ac_cpp_err=yes
10372 if test -z "$ac_cpp_err"; then
10373 ac_header_preproc=yes
10374 else
10375 echo "$as_me: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10377 ac_header_preproc=no
10379 rm -f conftest.err conftest.$ac_ext
10380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10381 echo "${ECHO_T}$ac_header_preproc" >&6
10383 # So? What about this header?
10384 case $ac_header_compiler:$ac_header_preproc in
10385 yes:no )
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10390 no:yes )
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10397 esac
10398 echo "$as_me:$LINENO: checking for $ac_header" >&5
10399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403 eval "$as_ac_Header=$ac_header_preproc"
10405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10410 cat >>confdefs.h <<_ACEOF
10411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10412 _ACEOF
10414 cat >conftest.$ac_ext <<_ACEOF
10415 #line $LINENO "configure"
10416 #include "confdefs.h"
10417 #include <dvdread/dvd_reader.h>
10418 #ifdef F77_DUMMY_MAIN
10419 # ifdef __cplusplus
10420 extern "C"
10421 # endif
10422 int F77_DUMMY_MAIN() { return 1; }
10423 #endif
10425 main ()
10427 void foo() { int i=DVD_VIDEO_LB_LEN; }
10429 return 0;
10431 _ACEOF
10432 rm -f conftest.$ac_objext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434 (eval $ac_compile) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -s conftest.$ac_objext'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10445 PLUGINS="${PLUGINS} dvdread"
10446 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
10447 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10453 if test "x$enable_dvdread" != x
10454 then
10455 { { echo "$as_me:$LINENO: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" >&5
10456 echo "$as_me: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" >&2;}
10457 { (exit 1); exit 1; }; }
10461 rm -f conftest.$ac_objext conftest.$ac_ext
10463 else
10465 if test "x$enable_dvdread" != x
10466 then
10467 if test "x$with_dvdread" != x
10468 then
10469 { { echo "$as_me:$LINENO: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&5
10470 echo "$as_me: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&2;}
10471 { (exit 1); exit 1; }; }
10472 else
10473 { { echo "$as_me:$LINENO: error: Cannot find dvdread/dvd_reader.h" >&5
10474 echo "$as_me: error: Cannot find dvdread/dvd_reader.h" >&2;}
10475 { (exit 1); exit 1; }; }
10481 done
10483 CPPFLAGS="$save_CPPFLAGS"
10486 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
10487 if test "${enable_dvbpsi+set}" = set; then
10488 enableval="$enable_dvbpsi"
10491 if test "x$enable_dvbpsi" != "xno"
10492 then
10494 # Check whether --with-dvbpsi or --without-dvbpsi was given.
10495 if test "${with_dvbpsi+set}" = set; then
10496 withval="$with_dvbpsi"
10500 # Check whether --with-dvbpsi or --without-dvbpsi was given.
10501 if test "${with_dvbpsi+set}" = set; then
10502 withval="$with_dvbpsi"
10505 case "x$with_dvbpsi" in
10506 x|xyes)
10507 if test "x$with_dvbpsi_tree" = x
10508 then
10510 for ac_header in dvbpsi/dr.h
10512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10513 echo "$as_me:$LINENO: checking for $ac_header" >&5
10514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 cat >conftest.$ac_ext <<_ACEOF
10519 #line $LINENO "configure"
10520 #include "confdefs.h"
10521 { { echo "$as_me:$LINENO: error: cannot find libdvbpsi headers" >&5
10522 echo "$as_me: error: cannot find libdvbpsi headers" >&2;}
10523 { (exit 1); exit 1; }; }
10525 #include <$ac_header>
10526 _ACEOF
10527 rm -f conftest.$ac_objext
10528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10529 (eval $ac_compile) 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } &&
10533 { ac_try='test -s conftest.$ac_objext'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539 eval "$as_ac_Header=yes"
10540 else
10541 echo "$as_me: failed program was:" >&5
10542 cat conftest.$ac_ext >&5
10543 eval "$as_ac_Header=no"
10545 rm -f conftest.$ac_objext conftest.$ac_ext
10547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10550 cat >>confdefs.h <<_ACEOF
10551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10552 _ACEOF
10553 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
10554 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
10557 done
10559 else
10560 echo "$as_me:$LINENO: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
10561 echo $ECHO_N "checking for libdvbpsi.a in ${with_dvbpsi_tree}... $ECHO_C" >&6
10562 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
10563 if test "x$real_dvbpsi_tree" = x
10564 then
10565 echo "$as_me:$LINENO: result: no" >&5
10566 echo "${ECHO_T}no" >&6
10567 { { echo "$as_me:$LINENO: error: cannot cd to ${with_dvbpsi_tree}" >&5
10568 echo "$as_me: error: cannot cd to ${with_dvbpsi_tree}" >&2;}
10569 { (exit 1); exit 1; }; }
10571 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
10572 then
10573 echo "$as_me:$LINENO: result: ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&5
10574 echo "${ECHO_T}${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&6
10575 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
10576 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
10577 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
10578 else
10579 echo "$as_me:$LINENO: result: no" >&5
10580 echo "${ECHO_T}no" >&6
10581 { { echo "$as_me:$LINENO: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&5
10582 echo "$as_me: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&2;}
10583 { (exit 1); exit 1; }; }
10587 xno)
10590 echo "$as_me:$LINENO: checking for dvbpsi headers in ${with_dvbpsi}" >&5
10591 echo $ECHO_N "checking for dvbpsi headers in ${with_dvbpsi}... $ECHO_C" >&6
10592 if test "x$with_dvbpsi" = x
10593 then
10594 test_LDFLAGS=""
10595 test_CFLAGS=""
10596 else
10597 test_LDFLAGS="-L${with_dvbpsi}/lib"
10598 test_CFLAGS="-I${with_dvbpsi}/include"
10600 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
10601 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10602 echo "$as_me:$LINENO: checking for dvbpsi/dr.h" >&5
10603 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
10604 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 echo "$as_me:$LINENO: result: $ac_cv_header_dvbpsi_dr_h" >&5
10608 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
10609 else
10610 # Is the header compilable?
10611 echo "$as_me:$LINENO: checking dvbpsi/dr.h usability" >&5
10612 echo $ECHO_N "checking dvbpsi/dr.h usability... $ECHO_C" >&6
10613 cat >conftest.$ac_ext <<_ACEOF
10614 #line $LINENO "configure"
10615 #include "confdefs.h"
10616 $ac_includes_default
10617 #include <dvbpsi/dr.h>
10618 _ACEOF
10619 rm -f conftest.$ac_objext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10621 (eval $ac_compile) 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try='test -s conftest.$ac_objext'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10631 ac_header_compiler=yes
10632 else
10633 echo "$as_me: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10635 ac_header_compiler=no
10637 rm -f conftest.$ac_objext conftest.$ac_ext
10638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10639 echo "${ECHO_T}$ac_header_compiler" >&6
10641 # Is the header present?
10642 echo "$as_me:$LINENO: checking dvbpsi/dr.h presence" >&5
10643 echo $ECHO_N "checking dvbpsi/dr.h presence... $ECHO_C" >&6
10644 cat >conftest.$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10646 #include "confdefs.h"
10647 #include <dvbpsi/dr.h>
10648 _ACEOF
10649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10651 ac_status=$?
10652 egrep -v '^ *\+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } >/dev/null; then
10657 if test -s conftest.err; then
10658 ac_cpp_err=$ac_c_preproc_warn_flag
10659 else
10660 ac_cpp_err=
10662 else
10663 ac_cpp_err=yes
10665 if test -z "$ac_cpp_err"; then
10666 ac_header_preproc=yes
10667 else
10668 echo "$as_me: failed program was:" >&5
10669 cat conftest.$ac_ext >&5
10670 ac_header_preproc=no
10672 rm -f conftest.err conftest.$ac_ext
10673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10674 echo "${ECHO_T}$ac_header_preproc" >&6
10676 # So? What about this header?
10677 case $ac_header_compiler:$ac_header_preproc in
10678 yes:no )
10679 { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: accepted by the compiler, rejected by the preprocessor!" >&5
10680 echo "$as_me: WARNING: dvbpsi/dr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10681 { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&5
10682 echo "$as_me: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&2;};;
10683 no:yes )
10684 { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: present but cannot be compiled" >&5
10685 echo "$as_me: WARNING: dvbpsi/dr.h: present but cannot be compiled" >&2;}
10686 { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: check for missing prerequisite headers?" >&5
10687 echo "$as_me: WARNING: dvbpsi/dr.h: check for missing prerequisite headers?" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&5
10689 echo "$as_me: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&2;};;
10690 esac
10691 echo "$as_me:$LINENO: checking for dvbpsi/dr.h" >&5
10692 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
10693 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696 ac_cv_header_dvbpsi_dr_h=$ac_header_preproc
10698 echo "$as_me:$LINENO: result: $ac_cv_header_dvbpsi_dr_h" >&5
10699 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
10702 if test $ac_cv_header_dvbpsi_dr_h = yes; then
10704 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
10705 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
10706 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
10708 else
10710 if test "x$enable_dvbpsi" != x
10711 then
10712 { { echo "$as_me:$LINENO: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" >&5
10713 echo "$as_me: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" >&2;}
10714 { (exit 1); exit 1; }; }
10720 CPPFLAGS="$save_CPPFLAGS"
10722 esac
10725 # Check whether --enable-vcd or --disable-vcd was given.
10726 if test "${enable_vcd+set}" = set; then
10727 enableval="$enable_vcd"
10731 if test x$enable_vcd != xno
10732 then
10733 cat >conftest.$ac_ext <<_ACEOF
10734 #line $LINENO "configure"
10735 #include "confdefs.h"
10736 #include <linux/cdrom.h>
10738 _ACEOF
10739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10740 egrep "cdrom_msf0" >/dev/null 2>&1; then
10742 PLUGINS="${PLUGINS} vcd"
10745 rm -f conftest*
10748 cat >conftest.$ac_ext <<_ACEOF
10749 #line $LINENO "configure"
10750 #include "confdefs.h"
10751 #include <sys/cdio.h>
10753 _ACEOF
10754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10755 egrep "ioc_toc_header " >/dev/null 2>&1; then
10757 PLUGINS="${PLUGINS} vcd"
10759 cat >>confdefs.h <<\_ACEOF
10760 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
10761 _ACEOF
10765 rm -f conftest*
10768 if test "x${SYS}" = "xbsdi"
10769 then
10770 PLUGINS="${PLUGINS} vcd"
10773 if test "x${SYS}" = "xdarwin"
10774 then
10775 PLUGINS="${PLUGINS} vcd"
10776 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
10780 # Check whether --enable-satellite or --disable-satellite was given.
10781 if test "${enable_satellite+set}" = set; then
10782 enableval="$enable_satellite"
10783 if test x$enable_satellite = xyes
10784 then
10785 PLUGINS="${PLUGINS} satellite"
10789 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
10790 then
10791 echo "$as_me:$LINENO: checking for inet_pton" >&5
10792 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
10793 if test "${ac_cv_func_inet_pton+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796 cat >conftest.$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10798 #include "confdefs.h"
10799 /* System header to define __stub macros and hopefully few prototypes,
10800 which can conflict with char inet_pton (); below. */
10801 #include <assert.h>
10802 /* Override any gcc2 internal prototype to avoid an error. */
10803 #ifdef __cplusplus
10804 extern "C"
10805 #endif
10806 /* We use char because int might match the return type of a gcc2
10807 builtin and then its argument prototype would still apply. */
10808 char inet_pton ();
10809 char (*f) ();
10811 #ifdef F77_DUMMY_MAIN
10812 # ifdef __cplusplus
10813 extern "C"
10814 # endif
10815 int F77_DUMMY_MAIN() { return 1; }
10816 #endif
10818 main ()
10820 /* The GNU C library defines this for functions which it implements
10821 to always fail with ENOSYS. Some functions are actually named
10822 something starting with __ and the normal name is an alias. */
10823 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
10824 choke me
10825 #else
10826 f = inet_pton;
10827 #endif
10830 return 0;
10832 _ACEOF
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10835 (eval $ac_link) 2>&5
10836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -s conftest$ac_exeext'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10842 ac_status=$?
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; }; then
10845 ac_cv_func_inet_pton=yes
10846 else
10847 echo "$as_me: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10849 ac_cv_func_inet_pton=no
10851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10853 echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
10854 echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
10855 if test $ac_cv_func_inet_pton = yes; then
10856 PLUGINS="${PLUGINS} ipv6"
10860 if test "x$SYS" = "xmingw32"
10861 then
10862 echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h" >&5
10863 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h... $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10865 #line $LINENO "configure"
10866 #include "confdefs.h"
10867 #include <ws2tcpip.h>
10869 _ACEOF
10870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10871 egrep "addrinfo" >/dev/null 2>&1; then
10872 echo "$as_me:$LINENO: result: yes" >&5
10873 echo "${ECHO_T}yes" >&6
10874 PLUGINS="${PLUGINS} ipv6"
10875 else
10876 echo "$as_me:$LINENO: result: no" >&5
10877 echo "${ECHO_T}no" >&6
10879 rm -f conftest*
10883 # Check whether --enable-avi or --disable-avi was given.
10884 if test "${enable_avi+set}" = set; then
10885 enableval="$enable_avi"
10888 if test x$enable_avi != xno
10889 then
10890 PLUGINS="${PLUGINS} avi"
10895 # Check whether --with- or --without- was given.
10896 if test "${with_+set}" = set; then
10897 withval="$with_"
10901 # Check whether --enable-mad or --disable-mad was given.
10902 if test "${enable_mad+set}" = set; then
10903 enableval="$enable_mad"
10906 if test x$enable_mad = xyes
10907 then
10909 # Check whether --with-mad or --without-mad was given.
10910 if test "${with_mad+set}" = set; then
10911 withval="$with_mad"
10914 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
10915 then
10916 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
10917 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
10921 # Check whether --with-mad-tree or --without-mad-tree was given.
10922 if test "${with_mad_tree+set}" = set; then
10923 withval="$with_mad_tree"
10926 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
10927 then
10928 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
10929 if test "x$real_mad_tree" = x
10930 then
10931 echo "$as_me:$LINENO: result: no" >&5
10932 echo "${ECHO_T}no" >&6
10933 { { echo "$as_me:$LINENO: error: ${with_mad_tree} directory doesn't exist" >&5
10934 echo "$as_me: error: ${with_mad_tree} directory doesn't exist" >&2;}
10935 { (exit 1); exit 1; }; }
10937 echo "$as_me:$LINENO: checking for mad.h in ${real_mad_tree}/libmad" >&5
10938 echo $ECHO_N "checking for mad.h in ${real_mad_tree}/libmad... $ECHO_C" >&6
10939 if test -f ${real_mad_tree}/libmad/mad.h
10940 then
10941 echo "$as_me:$LINENO: result: yes" >&5
10942 echo "${ECHO_T}yes" >&6
10943 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
10944 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
10945 save_LDFLAGS=$LDFLAGS
10946 LDFLAGS=$mad_LDFLAGS
10947 echo "$as_me:$LINENO: checking for mad_bit_init in -lmad" >&5
10948 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
10949 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952 ac_check_lib_save_LIBS=$LIBS
10953 LIBS="-lmad $LIBS"
10954 cat >conftest.$ac_ext <<_ACEOF
10955 #line $LINENO "configure"
10956 #include "confdefs.h"
10958 /* Override any gcc2 internal prototype to avoid an error. */
10959 #ifdef __cplusplus
10960 extern "C"
10961 #endif
10962 /* We use char because int might match the return type of a gcc2
10963 builtin and then its argument prototype would still apply. */
10964 char mad_bit_init ();
10965 #ifdef F77_DUMMY_MAIN
10966 # ifdef __cplusplus
10967 extern "C"
10968 # endif
10969 int F77_DUMMY_MAIN() { return 1; }
10970 #endif
10972 main ()
10974 mad_bit_init ();
10976 return 0;
10978 _ACEOF
10979 rm -f conftest.$ac_objext conftest$ac_exeext
10980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981 (eval $ac_link) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try='test -s conftest$ac_exeext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 ac_cv_lib_mad_mad_bit_init=yes
10992 else
10993 echo "$as_me: failed program was:" >&5
10994 cat conftest.$ac_ext >&5
10995 ac_cv_lib_mad_mad_bit_init=no
10997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10998 LIBS=$ac_check_lib_save_LIBS
11000 echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_bit_init" >&5
11001 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
11002 if test $ac_cv_lib_mad_mad_bit_init = yes; then
11004 BUILTINS="${BUILTINS} mad"
11005 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
11007 else
11008 { { echo "$as_me:$LINENO: error: the specified tree hasn't been compiled " >&5
11009 echo "$as_me: error: the specified tree hasn't been compiled " >&2;}
11010 { (exit 1); exit 1; }; }
11014 LDFLAGS=$save_LDFLAGS
11015 else
11016 echo "$as_me:$LINENO: result: no" >&5
11017 echo "${ECHO_T}no" >&6
11018 { { echo "$as_me:$LINENO: error: the specified tree doesn't have mad.h" >&5
11019 echo "$as_me: error: the specified tree doesn't have mad.h" >&2;}
11020 { (exit 1); exit 1; }; }
11022 else
11023 save_CFLAGS=$CFLAGS
11024 save_LDFLAGS=$LDFLAGS
11025 CFLAGS="$CFLAGS $mad_CFLAGS"
11026 LDFLAGS="$LDFLAGS $mad_LDFLAGS"
11028 for ac_header in mad.h
11030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11032 echo "$as_me:$LINENO: checking for $ac_header" >&5
11033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11039 else
11040 # Is the header compilable?
11041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11043 cat >conftest.$ac_ext <<_ACEOF
11044 #line $LINENO "configure"
11045 #include "confdefs.h"
11046 $ac_includes_default
11047 #include <$ac_header>
11048 _ACEOF
11049 rm -f conftest.$ac_objext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11051 (eval $ac_compile) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } &&
11055 { ac_try='test -s conftest.$ac_objext'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 ac_header_compiler=yes
11062 else
11063 echo "$as_me: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11065 ac_header_compiler=no
11067 rm -f conftest.$ac_objext conftest.$ac_ext
11068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11069 echo "${ECHO_T}$ac_header_compiler" >&6
11071 # Is the header present?
11072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11074 cat >conftest.$ac_ext <<_ACEOF
11075 #line $LINENO "configure"
11076 #include "confdefs.h"
11077 #include <$ac_header>
11078 _ACEOF
11079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11081 ac_status=$?
11082 egrep -v '^ *\+' conftest.er1 >conftest.err
11083 rm -f conftest.er1
11084 cat conftest.err >&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } >/dev/null; then
11087 if test -s conftest.err; then
11088 ac_cpp_err=$ac_c_preproc_warn_flag
11089 else
11090 ac_cpp_err=
11092 else
11093 ac_cpp_err=yes
11095 if test -z "$ac_cpp_err"; then
11096 ac_header_preproc=yes
11097 else
11098 echo "$as_me: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11100 ac_header_preproc=no
11102 rm -f conftest.err conftest.$ac_ext
11103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11104 echo "${ECHO_T}$ac_header_preproc" >&6
11106 # So? What about this header?
11107 case $ac_header_compiler:$ac_header_preproc in
11108 yes:no )
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11113 no:yes )
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11120 esac
11121 echo "$as_me:$LINENO: checking for $ac_header" >&5
11122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126 eval "$as_ac_Header=$ac_header_preproc"
11128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11133 cat >>confdefs.h <<_ACEOF
11134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11135 _ACEOF
11137 else
11138 { { echo "$as_me:$LINENO: error: Cannot find development headers for libmad..." >&5
11139 echo "$as_me: error: Cannot find development headers for libmad..." >&2;}
11140 { (exit 1); exit 1; }; }
11143 done
11145 echo "$as_me:$LINENO: checking for mad_bit_init in -lmad" >&5
11146 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
11147 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150 ac_check_lib_save_LIBS=$LIBS
11151 LIBS="-lmad $LIBS"
11152 cat >conftest.$ac_ext <<_ACEOF
11153 #line $LINENO "configure"
11154 #include "confdefs.h"
11156 /* Override any gcc2 internal prototype to avoid an error. */
11157 #ifdef __cplusplus
11158 extern "C"
11159 #endif
11160 /* We use char because int might match the return type of a gcc2
11161 builtin and then its argument prototype would still apply. */
11162 char mad_bit_init ();
11163 #ifdef F77_DUMMY_MAIN
11164 # ifdef __cplusplus
11165 extern "C"
11166 # endif
11167 int F77_DUMMY_MAIN() { return 1; }
11168 #endif
11170 main ()
11172 mad_bit_init ();
11174 return 0;
11176 _ACEOF
11177 rm -f conftest.$ac_objext conftest$ac_exeext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11179 (eval $ac_link) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -s conftest$ac_exeext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_lib_mad_mad_bit_init=yes
11190 else
11191 echo "$as_me: failed program was:" >&5
11192 cat conftest.$ac_ext >&5
11193 ac_cv_lib_mad_mad_bit_init=no
11195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11196 LIBS=$ac_check_lib_save_LIBS
11198 echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_bit_init" >&5
11199 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
11200 if test $ac_cv_lib_mad_mad_bit_init = yes; then
11202 PLUGINS="${PLUGINS} mad"
11203 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
11204 else
11205 { { echo "$as_me:$LINENO: error: Cannot find libmad library..." >&5
11206 echo "$as_me: error: Cannot find libmad library..." >&2;}
11207 { (exit 1); exit 1; }; }
11210 CFLAGS=$save_CFLAGS
11211 LDFLAGS=$save_LDFLAGS
11215 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
11216 if test "${enable_ffmpeg+set}" = set; then
11217 enableval="$enable_ffmpeg"
11220 if test "x$enable_ffmpeg" = "xyes"
11221 then
11223 # Check whether --with-ffmpeg or --without-ffmpeg was given.
11224 if test "${with_ffmpeg+set}" = set; then
11225 withval="$with_ffmpeg"
11228 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
11229 then
11230 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
11231 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
11235 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
11236 if test "${with_ffmpeg_tree+set}" = set; then
11237 withval="$with_ffmpeg_tree"
11240 if test "x$with_ffmpeg_tree" != "x"
11241 then
11242 echo "$as_me:$LINENO: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
11243 echo $ECHO_N "checking for libavcodec.a in ${with_ffmpeg_tree}... $ECHO_C" >&6
11244 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
11245 if test "x$real_ffmpeg_tree" = x
11246 then
11247 echo "$as_me:$LINENO: result: no" >&5
11248 echo "${ECHO_T}no" >&6
11249 { { echo "$as_me:$LINENO: error: cannot cd to ${with_ffmpeg_tree}" >&5
11250 echo "$as_me: error: cannot cd to ${with_ffmpeg_tree}" >&2;}
11251 { (exit 1); exit 1; }; }
11253 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
11254 then
11255 echo "$as_me:$LINENO: result: ${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&5
11256 echo "${ECHO_T}${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&6
11257 BUILTINS="${BUILTINS} ffmpeg"
11258 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
11259 if test x$SYS != xbeos
11260 then
11261 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
11263 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
11264 else
11265 echo "$as_me:$LINENO: result: no" >&5
11266 echo "${ECHO_T}no" >&6
11267 { { echo "$as_me:$LINENO: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&5
11268 echo "$as_me: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&2;}
11269 { (exit 1); exit 1; }; }
11271 else
11272 save_CFLAGS=$CFLAGS
11273 save_LDFLAGS=$LDFLAGS
11274 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
11275 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS"
11276 if test x$SYS != xbeos
11277 then
11278 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
11280 echo "$as_me:$LINENO: checking for avcodec_init in -lavcodec" >&5
11281 echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6
11282 if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 ac_check_lib_save_LIBS=$LIBS
11286 LIBS="-lavcodec $LIBS"
11287 cat >conftest.$ac_ext <<_ACEOF
11288 #line $LINENO "configure"
11289 #include "confdefs.h"
11291 /* Override any gcc2 internal prototype to avoid an error. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 /* We use char because int might match the return type of a gcc2
11296 builtin and then its argument prototype would still apply. */
11297 char avcodec_init ();
11298 #ifdef F77_DUMMY_MAIN
11299 # ifdef __cplusplus
11300 extern "C"
11301 # endif
11302 int F77_DUMMY_MAIN() { return 1; }
11303 #endif
11305 main ()
11307 avcodec_init ();
11309 return 0;
11311 _ACEOF
11312 rm -f conftest.$ac_objext conftest$ac_exeext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314 (eval $ac_link) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } &&
11318 { ac_try='test -s conftest$ac_exeext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_cv_lib_avcodec_avcodec_init=yes
11325 else
11326 echo "$as_me: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 ac_cv_lib_avcodec_avcodec_init=no
11330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11333 echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_init" >&5
11334 echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6
11335 if test $ac_cv_lib_avcodec_avcodec_init = yes; then
11337 BUILTINS="${BUILTINS} ffmpeg"
11338 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
11339 if test x$SYS != xbeos
11340 then
11341 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
11343 else
11344 { { echo "$as_me:$LINENO: error: Cannot find libavcodec library..." >&5
11345 echo "$as_me: error: Cannot find libavcodec library..." >&2;}
11346 { (exit 1); exit 1; }; }
11349 CFLAGS=$save_CFLAGS
11350 LDFLAGS=$save_LDFLAGS
11355 if test x$SYS = xbeos
11356 then
11357 PLUGINS="${PLUGINS} beos"
11360 # Check whether --enable-a52 or --disable-a52 was given.
11361 if test "${enable_a52+set}" = set; then
11362 enableval="$enable_a52"
11365 if test "x$enable_a52" != "xno"
11366 then
11368 # Check whether --with-a52-tree or --without-a52-tree was given.
11369 if test "${with_a52_tree+set}" = set; then
11370 withval="$with_a52_tree"
11373 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
11374 then
11375 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
11376 if test "x$real_a52_tree" = x
11377 then
11378 echo "$as_me:$LINENO: result: no" >&5
11379 echo "${ECHO_T}no" >&6
11380 { { echo "$as_me:$LINENO: error: ${with_a52_tree} directory doesn't exist" >&5
11381 echo "$as_me: error: ${with_a52_tree} directory doesn't exist" >&2;}
11382 { (exit 1); exit 1; }; }
11384 echo "$as_me:$LINENO: checking for a52.h in ${real_a52_tree}/include" >&5
11385 echo $ECHO_N "checking for a52.h in ${real_a52_tree}/include... $ECHO_C" >&6
11386 if test -f ${real_a52_tree}/include/a52.h
11387 then
11388 echo "$as_me:$LINENO: result: yes" >&5
11389 echo "${ECHO_T}yes" >&6
11390 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
11391 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
11392 save_LDFLAGS=$LDFLAGS
11393 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
11394 echo "$as_me:$LINENO: checking for a52_free in -la52" >&5
11395 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
11396 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399 ac_check_lib_save_LIBS=$LIBS
11400 LIBS="-la52 -lm $LIBS"
11401 cat >conftest.$ac_ext <<_ACEOF
11402 #line $LINENO "configure"
11403 #include "confdefs.h"
11405 /* Override any gcc2 internal prototype to avoid an error. */
11406 #ifdef __cplusplus
11407 extern "C"
11408 #endif
11409 /* We use char because int might match the return type of a gcc2
11410 builtin and then its argument prototype would still apply. */
11411 char a52_free ();
11412 #ifdef F77_DUMMY_MAIN
11413 # ifdef __cplusplus
11414 extern "C"
11415 # endif
11416 int F77_DUMMY_MAIN() { return 1; }
11417 #endif
11419 main ()
11421 a52_free ();
11423 return 0;
11425 _ACEOF
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11428 (eval $ac_link) 2>&5
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -s conftest$ac_exeext'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; }; then
11438 ac_cv_lib_a52_a52_free=yes
11439 else
11440 echo "$as_me: failed program was:" >&5
11441 cat conftest.$ac_ext >&5
11442 ac_cv_lib_a52_a52_free=no
11444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11447 echo "$as_me:$LINENO: result: $ac_cv_lib_a52_a52_free" >&5
11448 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
11449 if test $ac_cv_lib_a52_a52_free = yes; then
11451 BUILTINS="${BUILTINS} a52"
11452 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
11453 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
11455 else
11457 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
11458 then
11459 { { echo "$as_me:$LINENO: error: make sure you have at least a52dec-0.7.3" >&5
11460 echo "$as_me: error: make sure you have at least a52dec-0.7.3" >&2;}
11461 { (exit 1); exit 1; }; }
11462 else
11463 { { echo "$as_me:$LINENO: error: the specified tree hasn't been compiled" >&5
11464 echo "$as_me: error: the specified tree hasn't been compiled" >&2;}
11465 { (exit 1); exit 1; }; }
11470 LDFLAGS=$save_LDFLAGS
11471 else
11472 echo "$as_me:$LINENO: result: no" >&5
11473 echo "${ECHO_T}no" >&6
11474 { { echo "$as_me:$LINENO: error: the specified tree doesn't have a52.h" >&5
11475 echo "$as_me: error: the specified tree doesn't have a52.h" >&2;}
11476 { (exit 1); exit 1; }; }
11478 else
11479 for ac_header in a52dec/a52.h
11481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11483 echo "$as_me:$LINENO: checking for $ac_header" >&5
11484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11490 else
11491 # Is the header compilable?
11492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11494 cat >conftest.$ac_ext <<_ACEOF
11495 #line $LINENO "configure"
11496 #include "confdefs.h"
11497 $ac_includes_default
11498 #include <$ac_header>
11499 _ACEOF
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502 (eval $ac_compile) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -s conftest.$ac_objext'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_header_compiler=yes
11513 else
11514 echo "$as_me: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11516 ac_header_compiler=no
11518 rm -f conftest.$ac_objext conftest.$ac_ext
11519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11520 echo "${ECHO_T}$ac_header_compiler" >&6
11522 # Is the header present?
11523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11525 cat >conftest.$ac_ext <<_ACEOF
11526 #line $LINENO "configure"
11527 #include "confdefs.h"
11528 #include <$ac_header>
11529 _ACEOF
11530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11532 ac_status=$?
11533 egrep -v '^ *\+' conftest.er1 >conftest.err
11534 rm -f conftest.er1
11535 cat conftest.err >&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } >/dev/null; then
11538 if test -s conftest.err; then
11539 ac_cpp_err=$ac_c_preproc_warn_flag
11540 else
11541 ac_cpp_err=
11543 else
11544 ac_cpp_err=yes
11546 if test -z "$ac_cpp_err"; then
11547 ac_header_preproc=yes
11548 else
11549 echo "$as_me: failed program was:" >&5
11550 cat conftest.$ac_ext >&5
11551 ac_header_preproc=no
11553 rm -f conftest.err conftest.$ac_ext
11554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11555 echo "${ECHO_T}$ac_header_preproc" >&6
11557 # So? What about this header?
11558 case $ac_header_compiler:$ac_header_preproc in
11559 yes:no )
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11564 no:yes )
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11571 esac
11572 echo "$as_me:$LINENO: checking for $ac_header" >&5
11573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11577 eval "$as_ac_Header=$ac_header_preproc"
11579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11584 cat >>confdefs.h <<_ACEOF
11585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11586 _ACEOF
11588 echo "$as_me:$LINENO: checking for a52_free in -la52" >&5
11589 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
11590 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593 ac_check_lib_save_LIBS=$LIBS
11594 LIBS="-la52 -lm $LIBS"
11595 cat >conftest.$ac_ext <<_ACEOF
11596 #line $LINENO "configure"
11597 #include "confdefs.h"
11599 /* Override any gcc2 internal prototype to avoid an error. */
11600 #ifdef __cplusplus
11601 extern "C"
11602 #endif
11603 /* We use char because int might match the return type of a gcc2
11604 builtin and then its argument prototype would still apply. */
11605 char a52_free ();
11606 #ifdef F77_DUMMY_MAIN
11607 # ifdef __cplusplus
11608 extern "C"
11609 # endif
11610 int F77_DUMMY_MAIN() { return 1; }
11611 #endif
11613 main ()
11615 a52_free ();
11617 return 0;
11619 _ACEOF
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11622 (eval $ac_link) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } &&
11626 { ac_try='test -s conftest$ac_exeext'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 ac_cv_lib_a52_a52_free=yes
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 cat conftest.$ac_ext >&5
11636 ac_cv_lib_a52_a52_free=no
11638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11641 echo "$as_me:$LINENO: result: $ac_cv_lib_a52_a52_free" >&5
11642 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
11643 if test $ac_cv_lib_a52_a52_free = yes; then
11645 BUILTINS="${BUILTINS} a52"
11646 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
11647 a52_CFLAGS="${a52_CFLAGS}"
11654 done
11659 # Check whether --enable-vorbis or --disable-vorbis was given.
11660 if test "${enable_vorbis+set}" = set; then
11661 enableval="$enable_vorbis"
11664 if test "x$enable_vorbis" != "xno"
11665 then
11667 for ac_header in ogg/ogg.h
11669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11671 echo "$as_me:$LINENO: checking for $ac_header" >&5
11672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11678 else
11679 # Is the header compilable?
11680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11682 cat >conftest.$ac_ext <<_ACEOF
11683 #line $LINENO "configure"
11684 #include "confdefs.h"
11685 $ac_includes_default
11686 #include <$ac_header>
11687 _ACEOF
11688 rm -f conftest.$ac_objext
11689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690 (eval $ac_compile) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_header_compiler=yes
11701 else
11702 echo "$as_me: failed program was:" >&5
11703 cat conftest.$ac_ext >&5
11704 ac_header_compiler=no
11706 rm -f conftest.$ac_objext conftest.$ac_ext
11707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11708 echo "${ECHO_T}$ac_header_compiler" >&6
11710 # Is the header present?
11711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716 #include <$ac_header>
11717 _ACEOF
11718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11720 ac_status=$?
11721 egrep -v '^ *\+' conftest.er1 >conftest.err
11722 rm -f conftest.er1
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } >/dev/null; then
11726 if test -s conftest.err; then
11727 ac_cpp_err=$ac_c_preproc_warn_flag
11728 else
11729 ac_cpp_err=
11731 else
11732 ac_cpp_err=yes
11734 if test -z "$ac_cpp_err"; then
11735 ac_header_preproc=yes
11736 else
11737 echo "$as_me: failed program was:" >&5
11738 cat conftest.$ac_ext >&5
11739 ac_header_preproc=no
11741 rm -f conftest.err conftest.$ac_ext
11742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6
11745 # So? What about this header?
11746 case $ac_header_compiler:$ac_header_preproc in
11747 yes:no )
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11752 no:yes )
11753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11759 esac
11760 echo "$as_me:$LINENO: checking for $ac_header" >&5
11761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765 eval "$as_ac_Header=$ac_header_preproc"
11767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11772 cat >>confdefs.h <<_ACEOF
11773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11774 _ACEOF
11776 #PLUGINS="${PLUGINS} vorbis"
11777 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
11781 done
11787 # Check whether --with- or --without- was given.
11788 if test "${with_+set}" = set; then
11789 withval="$with_"
11793 # Check whether --enable-x11 or --disable-x11 was given.
11794 if test "${enable_x11+set}" = set; then
11795 enableval="$enable_x11"
11798 if test x$enable_x11 != xno &&
11799 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
11800 if test x$x_includes = xNONE; then
11801 x_includes=/usr/X11R6/include
11803 if test x$x_libraries = xNONE; then
11804 x_libraries=/usr/X11R6/lib
11806 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
11808 for ac_header in X11/Xlib.h
11810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11812 echo "$as_me:$LINENO: checking for $ac_header" >&5
11813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11819 else
11820 # Is the header compilable?
11821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11823 cat >conftest.$ac_ext <<_ACEOF
11824 #line $LINENO "configure"
11825 #include "confdefs.h"
11826 $ac_includes_default
11827 #include <$ac_header>
11828 _ACEOF
11829 rm -f conftest.$ac_objext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11831 (eval $ac_compile) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -s conftest.$ac_objext'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 ac_header_compiler=yes
11842 else
11843 echo "$as_me: failed program was:" >&5
11844 cat conftest.$ac_ext >&5
11845 ac_header_compiler=no
11847 rm -f conftest.$ac_objext conftest.$ac_ext
11848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11849 echo "${ECHO_T}$ac_header_compiler" >&6
11851 # Is the header present?
11852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11854 cat >conftest.$ac_ext <<_ACEOF
11855 #line $LINENO "configure"
11856 #include "confdefs.h"
11857 #include <$ac_header>
11858 _ACEOF
11859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11861 ac_status=$?
11862 egrep -v '^ *\+' conftest.er1 >conftest.err
11863 rm -f conftest.er1
11864 cat conftest.err >&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } >/dev/null; then
11867 if test -s conftest.err; then
11868 ac_cpp_err=$ac_c_preproc_warn_flag
11869 else
11870 ac_cpp_err=
11872 else
11873 ac_cpp_err=yes
11875 if test -z "$ac_cpp_err"; then
11876 ac_header_preproc=yes
11877 else
11878 echo "$as_me: failed program was:" >&5
11879 cat conftest.$ac_ext >&5
11880 ac_header_preproc=no
11882 rm -f conftest.err conftest.$ac_ext
11883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 echo "${ECHO_T}$ac_header_preproc" >&6
11886 # So? What about this header?
11887 case $ac_header_compiler:$ac_header_preproc in
11888 yes:no )
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11893 no:yes )
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11900 esac
11901 echo "$as_me:$LINENO: checking for $ac_header" >&5
11902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906 eval "$as_ac_Header=$ac_header_preproc"
11908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11913 cat >>confdefs.h <<_ACEOF
11914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11915 _ACEOF
11917 PLUGINS="${PLUGINS} x11"
11918 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
11919 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
11923 done
11925 CPPFLAGS="$save_CPPFLAGS"
11928 # Check whether --enable-xvideo or --disable-xvideo was given.
11929 if test "${enable_xvideo+set}" = set; then
11930 enableval="$enable_xvideo"
11933 if test x$enable_xvideo != xno &&
11934 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
11935 if test x$x_includes = xNONE; then
11936 x_includes=/usr/X11R6/include
11938 if test x$x_libraries = xNONE; then
11939 x_libraries=/usr/X11R6/lib
11941 save_CPPFLAGS=$CPPFLAGS
11942 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
11944 for ac_header in X11/extensions/Xv.h
11946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11948 echo "$as_me:$LINENO: checking for $ac_header" >&5
11949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11955 else
11956 # Is the header compilable?
11957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11959 cat >conftest.$ac_ext <<_ACEOF
11960 #line $LINENO "configure"
11961 #include "confdefs.h"
11962 $ac_includes_default
11963 #include <$ac_header>
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -s conftest.$ac_objext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_header_compiler=yes
11978 else
11979 echo "$as_me: failed program was:" >&5
11980 cat conftest.$ac_ext >&5
11981 ac_header_compiler=no
11983 rm -f conftest.$ac_objext conftest.$ac_ext
11984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11985 echo "${ECHO_T}$ac_header_compiler" >&6
11987 # Is the header present?
11988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11990 cat >conftest.$ac_ext <<_ACEOF
11991 #line $LINENO "configure"
11992 #include "confdefs.h"
11993 #include <$ac_header>
11994 _ACEOF
11995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11997 ac_status=$?
11998 egrep -v '^ *\+' conftest.er1 >conftest.err
11999 rm -f conftest.er1
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } >/dev/null; then
12003 if test -s conftest.err; then
12004 ac_cpp_err=$ac_c_preproc_warn_flag
12005 else
12006 ac_cpp_err=
12008 else
12009 ac_cpp_err=yes
12011 if test -z "$ac_cpp_err"; then
12012 ac_header_preproc=yes
12013 else
12014 echo "$as_me: failed program was:" >&5
12015 cat conftest.$ac_ext >&5
12016 ac_header_preproc=no
12018 rm -f conftest.err conftest.$ac_ext
12019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12020 echo "${ECHO_T}$ac_header_preproc" >&6
12022 # So? What about this header?
12023 case $ac_header_compiler:$ac_header_preproc in
12024 yes:no )
12025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12029 no:yes )
12030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12036 esac
12037 echo "$as_me:$LINENO: checking for $ac_header" >&5
12038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042 eval "$as_ac_Header=$ac_header_preproc"
12044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12049 cat >>confdefs.h <<_ACEOF
12050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12051 _ACEOF
12053 save_CFLAGS=$CFLAGS
12054 CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
12055 echo "$as_me:$LINENO: checking for XvSetPortAttribute in -lXv_pic" >&5
12056 echo $ECHO_N "checking for XvSetPortAttribute in -lXv_pic... $ECHO_C" >&6
12057 if test "${ac_cv_lib_Xv_pic_XvSetPortAttribute+set}" = set; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 else
12060 ac_check_lib_save_LIBS=$LIBS
12061 LIBS="-lXv_pic $LIBS"
12062 cat >conftest.$ac_ext <<_ACEOF
12063 #line $LINENO "configure"
12064 #include "confdefs.h"
12066 /* Override any gcc2 internal prototype to avoid an error. */
12067 #ifdef __cplusplus
12068 extern "C"
12069 #endif
12070 /* We use char because int might match the return type of a gcc2
12071 builtin and then its argument prototype would still apply. */
12072 char XvSetPortAttribute ();
12073 #ifdef F77_DUMMY_MAIN
12074 # ifdef __cplusplus
12075 extern "C"
12076 # endif
12077 int F77_DUMMY_MAIN() { return 1; }
12078 #endif
12080 main ()
12082 XvSetPortAttribute ();
12084 return 0;
12086 _ACEOF
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12089 (eval $ac_link) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } &&
12093 { ac_try='test -s conftest$ac_exeext'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 ac_cv_lib_Xv_pic_XvSetPortAttribute=yes
12100 else
12101 echo "$as_me: failed program was:" >&5
12102 cat conftest.$ac_ext >&5
12103 ac_cv_lib_Xv_pic_XvSetPortAttribute=no
12105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12106 LIBS=$ac_check_lib_save_LIBS
12108 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_pic_XvSetPortAttribute" >&5
12109 echo "${ECHO_T}$ac_cv_lib_Xv_pic_XvSetPortAttribute" >&6
12110 if test $ac_cv_lib_Xv_pic_XvSetPortAttribute = yes; then
12111 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
12112 PLUGINS="${PLUGINS} xvideo"
12113 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
12114 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
12115 else
12116 # We don't have Xv_pic, let's make xvideo.a as builtin
12117 BUILTINS="${BUILTINS} xvideo"
12118 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
12119 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
12122 CFLAGS="$save_CFLAGS"
12124 CPPFLAGS="$save_CPPFLAGS"
12127 done
12131 # Check whether --enable-sdl or --disable-sdl was given.
12132 if test "${enable_sdl+set}" = set; then
12133 enableval="$enable_sdl"
12136 if test "x$enable_sdl" != "xno"
12137 then
12138 SDL_PATH=$PATH
12140 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
12141 if test "${with_sdl_config_path+set}" = set; then
12142 withval="$with_sdl_config_path"
12143 if test "x$with_sdl_config_path" != "xno"
12144 then
12145 SDL_PATH="$with_sdl_config_path:$PATH"
12148 # Extract the first word of "sdl12-config", so it can be a program name with args.
12149 set dummy sdl12-config; ac_word=$2
12150 echo "$as_me:$LINENO: checking for $ac_word" >&5
12151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12152 if test "${ac_cv_path_SDL12_CONFIG+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 case $SDL12_CONFIG in
12156 [\\/]* | ?:[\\/]*)
12157 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
12160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $SDL_PATH
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167 ac_cv_path_SDL12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12169 break 2
12171 done
12172 done
12174 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
12176 esac
12178 SDL12_CONFIG=$ac_cv_path_SDL12_CONFIG
12180 if test -n "$SDL12_CONFIG"; then
12181 echo "$as_me:$LINENO: result: $SDL12_CONFIG" >&5
12182 echo "${ECHO_T}$SDL12_CONFIG" >&6
12183 else
12184 echo "$as_me:$LINENO: result: no" >&5
12185 echo "${ECHO_T}no" >&6
12188 SDL_CONFIG=${SDL12_CONFIG}
12189 SDL_HEADER="SDL12/SDL.h"
12190 if test x${SDL_CONFIG} = xno
12191 then
12192 # Extract the first word of "sdl11-config", so it can be a program name with args.
12193 set dummy sdl11-config; ac_word=$2
12194 echo "$as_me:$LINENO: checking for $ac_word" >&5
12195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12196 if test "${ac_cv_path_SDL11_CONFIG+set}" = set; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199 case $SDL11_CONFIG in
12200 [\\/]* | ?:[\\/]*)
12201 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $SDL_PATH
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_path_SDL11_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 break 2
12215 done
12216 done
12218 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
12220 esac
12222 SDL11_CONFIG=$ac_cv_path_SDL11_CONFIG
12224 if test -n "$SDL11_CONFIG"; then
12225 echo "$as_me:$LINENO: result: $SDL11_CONFIG" >&5
12226 echo "${ECHO_T}$SDL11_CONFIG" >&6
12227 else
12228 echo "$as_me:$LINENO: result: no" >&5
12229 echo "${ECHO_T}no" >&6
12232 SDL_CONFIG=${SDL11_CONFIG}
12233 SDL_HEADER="SDL11/SDL.h"
12235 if test x${SDL_CONFIG} = xno
12236 then
12237 # Extract the first word of "sdl-config", so it can be a program name with args.
12238 set dummy sdl-config; ac_word=$2
12239 echo "$as_me:$LINENO: checking for $ac_word" >&5
12240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12241 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244 case $SDL_CONFIG in
12245 [\\/]* | ?:[\\/]*)
12246 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $SDL_PATH
12252 IFS=$as_save_IFS
12253 test -z "$as_dir" && as_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12256 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12258 break 2
12260 done
12261 done
12263 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12265 esac
12267 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12269 if test -n "$SDL_CONFIG"; then
12270 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12271 echo "${ECHO_T}$SDL_CONFIG" >&6
12272 else
12273 echo "$as_me:$LINENO: result: no" >&5
12274 echo "${ECHO_T}no" >&6
12277 SDL_HEADER="SDL/SDL.h"
12279 # check for cross-compiling
12280 SDL_PREFIX=
12282 # Check whether --with-sdl or --without-sdl was given.
12283 if test "${with_sdl+set}" = set; then
12284 withval="$with_sdl"
12287 if test "x$with_sdl_prefix" != "xno" -a "x$with_sdl_prefix" != "x"
12288 then
12289 SDL_PREFIX="--prefix=$with_sdl_prefix"
12291 if test x${SDL_CONFIG} != xno
12292 then
12293 PLUGINS="${PLUGINS} sdl"
12294 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} ${SDL_PREFIX} --cflags`"
12295 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} ${SDL_PREFIX} --libs | sed 's,-rdynamic,,'`"
12296 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
12298 for ac_header in ${SDL_HEADER}
12300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12302 echo "$as_me:$LINENO: checking for $ac_header" >&5
12303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12309 else
12310 # Is the header compilable?
12311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12313 cat >conftest.$ac_ext <<_ACEOF
12314 #line $LINENO "configure"
12315 #include "confdefs.h"
12316 $ac_includes_default
12317 #include <$ac_header>
12318 _ACEOF
12319 rm -f conftest.$ac_objext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12321 (eval $ac_compile) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -s conftest.$ac_objext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12331 ac_header_compiler=yes
12332 else
12333 echo "$as_me: failed program was:" >&5
12334 cat conftest.$ac_ext >&5
12335 ac_header_compiler=no
12337 rm -f conftest.$ac_objext conftest.$ac_ext
12338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12339 echo "${ECHO_T}$ac_header_compiler" >&6
12341 # Is the header present?
12342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12344 cat >conftest.$ac_ext <<_ACEOF
12345 #line $LINENO "configure"
12346 #include "confdefs.h"
12347 #include <$ac_header>
12348 _ACEOF
12349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12351 ac_status=$?
12352 egrep -v '^ *\+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } >/dev/null; then
12357 if test -s conftest.err; then
12358 ac_cpp_err=$ac_c_preproc_warn_flag
12359 else
12360 ac_cpp_err=
12362 else
12363 ac_cpp_err=yes
12365 if test -z "$ac_cpp_err"; then
12366 ac_header_preproc=yes
12367 else
12368 echo "$as_me: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 ac_header_preproc=no
12372 rm -f conftest.err conftest.$ac_ext
12373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12374 echo "${ECHO_T}$ac_header_preproc" >&6
12376 # So? What about this header?
12377 case $ac_header_compiler:$ac_header_preproc in
12378 yes:no )
12379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12383 no:yes )
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12390 esac
12391 echo "$as_me:$LINENO: checking for $ac_header" >&5
12392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396 eval "$as_ac_Header=$ac_header_preproc"
12398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12405 _ACEOF
12407 cat >>confdefs.h <<_ACEOF
12408 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
12409 _ACEOF
12411 else
12412 { { echo "$as_me:$LINENO: error: The development package for SDL is not installed.
12413 Please install it and try again. Alternatively you can also configure with
12414 --disable-sdl." >&5
12415 echo "$as_me: error: The development package for SDL is not installed.
12416 Please install it and try again. Alternatively you can also configure with
12417 --disable-sdl." >&2;}
12418 { (exit 1); exit 1; }; }
12422 done
12424 CPPFLAGS="$save_CPPFLAGS"
12425 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
12426 then
12427 { { echo "$as_me:$LINENO: error: The development package for SDL is not installed.
12428 Please install it and try again. Alternatively you can also configure with
12429 --disable-sdl." >&5
12430 echo "$as_me: error: The development package for SDL is not installed.
12431 Please install it and try again. Alternatively you can also configure with
12432 --disable-sdl." >&2;}
12433 { (exit 1); exit 1; }; }
12435 elif test "x$enable_sdl" = "xyes"
12436 then
12437 { { echo "$as_me:$LINENO: error: I couldn't find the SDL package. You can download libSDL
12438 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
12439 " >&5
12440 echo "$as_me: error: I couldn't find the SDL package. You can download libSDL
12441 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
12442 " >&2;}
12443 { (exit 1); exit 1; }; }
12447 # Check whether --enable-qte or --disable-qte was given.
12448 if test "${enable_qte+set}" = set; then
12449 enableval="$enable_qte"
12452 if test "x${enable_qte}" != "xno"
12453 then
12455 # Check whether --with-qte or --without-qte was given.
12456 if test "${with_qte+set}" = set; then
12457 withval="$with_qte"
12460 if test "x${with_qte}" = "x"
12461 then
12462 test_LDFLAGS="-L${QTDIR}/lib"
12463 test_CFLAGS="-I${QTDIR}/include"
12464 else
12465 test_LDFLAGS="-L${with_qte}/lib"
12466 test_CFLAGS="-I${with_qte}/include"
12469 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
12471 for ac_header in qt.h
12473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12475 echo "$as_me:$LINENO: checking for $ac_header" >&5
12476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12482 else
12483 # Is the header compilable?
12484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12486 cat >conftest.$ac_ext <<_ACEOF
12487 #line $LINENO "configure"
12488 #include "confdefs.h"
12489 $ac_includes_default
12490 #include <$ac_header>
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494 (eval $ac_compile) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_header_compiler=yes
12505 else
12506 echo "$as_me: failed program was:" >&5
12507 cat conftest.$ac_ext >&5
12508 ac_header_compiler=no
12510 rm -f conftest.$ac_objext conftest.$ac_ext
12511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12512 echo "${ECHO_T}$ac_header_compiler" >&6
12514 # Is the header present?
12515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12517 cat >conftest.$ac_ext <<_ACEOF
12518 #line $LINENO "configure"
12519 #include "confdefs.h"
12520 #include <$ac_header>
12521 _ACEOF
12522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12524 ac_status=$?
12525 egrep -v '^ *\+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } >/dev/null; then
12530 if test -s conftest.err; then
12531 ac_cpp_err=$ac_c_preproc_warn_flag
12532 else
12533 ac_cpp_err=
12535 else
12536 ac_cpp_err=yes
12538 if test -z "$ac_cpp_err"; then
12539 ac_header_preproc=yes
12540 else
12541 echo "$as_me: failed program was:" >&5
12542 cat conftest.$ac_ext >&5
12543 ac_header_preproc=no
12545 rm -f conftest.err conftest.$ac_ext
12546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12547 echo "${ECHO_T}$ac_header_preproc" >&6
12549 # So? What about this header?
12550 case $ac_header_compiler:$ac_header_preproc in
12551 yes:no )
12552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12556 no:yes )
12557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12563 esac
12564 echo "$as_me:$LINENO: checking for $ac_header" >&5
12565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569 eval "$as_ac_Header=$ac_header_preproc"
12571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12576 cat >>confdefs.h <<_ACEOF
12577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12578 _ACEOF
12580 qte_CFLAGS="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
12581 qte_LDFLAGS="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
12582 if test "x${with_qte}" = "x"
12583 then
12584 PLUGINS="${PLUGINS} qte"
12585 else
12586 BUILTINS="${BUILTINS} qte"
12591 done
12593 CPPFLAGS="${save_CPPFLAGS}"
12596 # Check whether --enable-directx or --disable-directx was given.
12597 if test "${enable_directx+set}" = set; then
12598 enableval="$enable_directx"
12601 if test "x$enable_directx" != "xno"
12602 then
12603 if test x$SYS = xmingw32
12604 then
12606 # Check whether --with-directx or --without-directx was given.
12607 if test "${with_directx+set}" = set; then
12608 withval="$with_directx"
12611 if test "x$with_directx" = "x"
12612 then
12614 for ac_header in ddraw.h
12616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12618 echo "$as_me:$LINENO: checking for $ac_header" >&5
12619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12625 else
12626 # Is the header compilable?
12627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12629 cat >conftest.$ac_ext <<_ACEOF
12630 #line $LINENO "configure"
12631 #include "confdefs.h"
12632 $ac_includes_default
12633 #include <$ac_header>
12634 _ACEOF
12635 rm -f conftest.$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>&5
12638 ac_status=$?
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -s conftest.$ac_objext'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 ac_header_compiler=yes
12648 else
12649 echo "$as_me: failed program was:" >&5
12650 cat conftest.$ac_ext >&5
12651 ac_header_compiler=no
12653 rm -f conftest.$ac_objext conftest.$ac_ext
12654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12655 echo "${ECHO_T}$ac_header_compiler" >&6
12657 # Is the header present?
12658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12660 cat >conftest.$ac_ext <<_ACEOF
12661 #line $LINENO "configure"
12662 #include "confdefs.h"
12663 #include <$ac_header>
12664 _ACEOF
12665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12667 ac_status=$?
12668 egrep -v '^ *\+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } >/dev/null; then
12673 if test -s conftest.err; then
12674 ac_cpp_err=$ac_c_preproc_warn_flag
12675 else
12676 ac_cpp_err=
12678 else
12679 ac_cpp_err=yes
12681 if test -z "$ac_cpp_err"; then
12682 ac_header_preproc=yes
12683 else
12684 echo "$as_me: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 ac_header_preproc=no
12688 rm -f conftest.err conftest.$ac_ext
12689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12690 echo "${ECHO_T}$ac_header_preproc" >&6
12692 # So? What about this header?
12693 case $ac_header_compiler:$ac_header_preproc in
12694 yes:no )
12695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12699 no:yes )
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12706 esac
12707 echo "$as_me:$LINENO: checking for $ac_header" >&5
12708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712 eval "$as_ac_Header=$ac_header_preproc"
12714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12719 cat >>confdefs.h <<_ACEOF
12720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12721 _ACEOF
12722 PLUGINS="${PLUGINS} directx"
12723 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
12726 done
12728 else
12729 echo "$as_me:$LINENO: checking for directX headers in ${with_directx}" >&5
12730 echo $ECHO_N "checking for directX headers in ${with_directx}... $ECHO_C" >&6
12731 if test -f ${with_directx}/ddraw.h
12732 then
12733 PLUGINS="${PLUGINS} directx"
12734 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
12735 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
12736 echo "$as_me:$LINENO: result: yes" >&5
12737 echo "${ECHO_T}yes" >&6
12738 else
12739 echo "$as_me:$LINENO: result: no" >&5
12740 echo "${ECHO_T}no" >&6
12741 { { echo "$as_me:$LINENO: error: Cannot find ${with_directx}/ddraw.h!" >&5
12742 echo "$as_me: error: Cannot find ${with_directx}/ddraw.h!" >&2;}
12743 { (exit 1); exit 1; }; }
12749 # Check whether --enable-fb or --disable-fb was given.
12750 if test "${enable_fb+set}" = set; then
12751 enableval="$enable_fb"
12754 if test x$enable_fb != xno
12755 then
12757 for ac_header in linux/fb.h
12759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12761 echo "$as_me:$LINENO: checking for $ac_header" >&5
12762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12768 else
12769 # Is the header compilable?
12770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12772 cat >conftest.$ac_ext <<_ACEOF
12773 #line $LINENO "configure"
12774 #include "confdefs.h"
12775 $ac_includes_default
12776 #include <$ac_header>
12777 _ACEOF
12778 rm -f conftest.$ac_objext
12779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780 (eval $ac_compile) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try='test -s conftest.$ac_objext'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 ac_header_compiler=yes
12791 else
12792 echo "$as_me: failed program was:" >&5
12793 cat conftest.$ac_ext >&5
12794 ac_header_compiler=no
12796 rm -f conftest.$ac_objext conftest.$ac_ext
12797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12798 echo "${ECHO_T}$ac_header_compiler" >&6
12800 # Is the header present?
12801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12803 cat >conftest.$ac_ext <<_ACEOF
12804 #line $LINENO "configure"
12805 #include "confdefs.h"
12806 #include <$ac_header>
12807 _ACEOF
12808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12810 ac_status=$?
12811 egrep -v '^ *\+' conftest.er1 >conftest.err
12812 rm -f conftest.er1
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } >/dev/null; then
12816 if test -s conftest.err; then
12817 ac_cpp_err=$ac_c_preproc_warn_flag
12818 else
12819 ac_cpp_err=
12821 else
12822 ac_cpp_err=yes
12824 if test -z "$ac_cpp_err"; then
12825 ac_header_preproc=yes
12826 else
12827 echo "$as_me: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12829 ac_header_preproc=no
12831 rm -f conftest.err conftest.$ac_ext
12832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12833 echo "${ECHO_T}$ac_header_preproc" >&6
12835 # So? What about this header?
12836 case $ac_header_compiler:$ac_header_preproc in
12837 yes:no )
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12842 no:yes )
12843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12849 esac
12850 echo "$as_me:$LINENO: checking for $ac_header" >&5
12851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855 eval "$as_ac_Header=$ac_header_preproc"
12857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12862 cat >>confdefs.h <<_ACEOF
12863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12864 _ACEOF
12866 PLUGINS="${PLUGINS} fb"
12870 done
12874 # Check whether --enable-mga or --disable-mga was given.
12875 if test "${enable_mga+set}" = set; then
12876 enableval="$enable_mga"
12877 if test x$enable_mga = xyes
12878 then
12879 PLUGINS="${PLUGINS} mga xmga"
12883 # Check whether --enable-ggi or --disable-ggi was given.
12884 if test "${enable_ggi+set}" = set; then
12885 enableval="$enable_ggi"
12888 if test x$enable_ggi = xyes
12889 then
12890 PLUGINS="${PLUGINS} ggi"
12891 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
12893 # Check whether --with-ggi or --without-ggi was given.
12894 if test "${with_ggi+set}" = set; then
12895 withval="$with_ggi"
12896 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
12897 then
12898 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
12899 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
12904 # Check whether --enable-glide or --disable-glide was given.
12905 if test "${enable_glide+set}" = set; then
12906 enableval="$enable_glide"
12909 if test x$enable_glide = xyes
12910 then
12911 PLUGINS="${PLUGINS} glide"
12912 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
12913 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
12915 # Check whether --with-glide or --without-glide was given.
12916 if test "${with_glide+set}" = set; then
12917 withval="$with_glide"
12918 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
12919 then
12920 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
12921 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
12926 # Check whether --enable-aa or --disable-aa was given.
12927 if test "${enable_aa+set}" = set; then
12928 enableval="$enable_aa"
12931 if test x$enable_aa = xyes
12932 then
12933 if test "${ac_cv_header_aalib_h+set}" = set; then
12934 echo "$as_me:$LINENO: checking for aalib.h" >&5
12935 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
12936 if test "${ac_cv_header_aalib_h+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 echo "$as_me:$LINENO: result: $ac_cv_header_aalib_h" >&5
12940 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
12941 else
12942 # Is the header compilable?
12943 echo "$as_me:$LINENO: checking aalib.h usability" >&5
12944 echo $ECHO_N "checking aalib.h usability... $ECHO_C" >&6
12945 cat >conftest.$ac_ext <<_ACEOF
12946 #line $LINENO "configure"
12947 #include "confdefs.h"
12948 $ac_includes_default
12949 #include <aalib.h>
12950 _ACEOF
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -s conftest.$ac_objext'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 ac_header_compiler=yes
12964 else
12965 echo "$as_me: failed program was:" >&5
12966 cat conftest.$ac_ext >&5
12967 ac_header_compiler=no
12969 rm -f conftest.$ac_objext conftest.$ac_ext
12970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12971 echo "${ECHO_T}$ac_header_compiler" >&6
12973 # Is the header present?
12974 echo "$as_me:$LINENO: checking aalib.h presence" >&5
12975 echo $ECHO_N "checking aalib.h presence... $ECHO_C" >&6
12976 cat >conftest.$ac_ext <<_ACEOF
12977 #line $LINENO "configure"
12978 #include "confdefs.h"
12979 #include <aalib.h>
12980 _ACEOF
12981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12983 ac_status=$?
12984 egrep -v '^ *\+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } >/dev/null; then
12989 if test -s conftest.err; then
12990 ac_cpp_err=$ac_c_preproc_warn_flag
12991 else
12992 ac_cpp_err=
12994 else
12995 ac_cpp_err=yes
12997 if test -z "$ac_cpp_err"; then
12998 ac_header_preproc=yes
12999 else
13000 echo "$as_me: failed program was:" >&5
13001 cat conftest.$ac_ext >&5
13002 ac_header_preproc=no
13004 rm -f conftest.err conftest.$ac_ext
13005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13006 echo "${ECHO_T}$ac_header_preproc" >&6
13008 # So? What about this header?
13009 case $ac_header_compiler:$ac_header_preproc in
13010 yes:no )
13011 { echo "$as_me:$LINENO: WARNING: aalib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13012 echo "$as_me: WARNING: aalib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13013 { echo "$as_me:$LINENO: WARNING: aalib.h: proceeding with the preprocessor's result" >&5
13014 echo "$as_me: WARNING: aalib.h: proceeding with the preprocessor's result" >&2;};;
13015 no:yes )
13016 { echo "$as_me:$LINENO: WARNING: aalib.h: present but cannot be compiled" >&5
13017 echo "$as_me: WARNING: aalib.h: present but cannot be compiled" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: aalib.h: check for missing prerequisite headers?" >&5
13019 echo "$as_me: WARNING: aalib.h: check for missing prerequisite headers?" >&2;}
13020 { echo "$as_me:$LINENO: WARNING: aalib.h: proceeding with the preprocessor's result" >&5
13021 echo "$as_me: WARNING: aalib.h: proceeding with the preprocessor's result" >&2;};;
13022 esac
13023 echo "$as_me:$LINENO: checking for aalib.h" >&5
13024 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
13025 if test "${ac_cv_header_aalib_h+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028 ac_cv_header_aalib_h=$ac_header_preproc
13030 echo "$as_me:$LINENO: result: $ac_cv_header_aalib_h" >&5
13031 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
13034 if test $ac_cv_header_aalib_h = yes; then
13035 have_aa="true"
13036 else
13037 have_aa="false"
13041 if test x$have_aa = xtrue
13042 then
13043 PLUGINS="${PLUGINS} aa"
13044 aa_LDFLAGS="${aa_LDFLAGS} -laa"
13050 # Check whether --with- or --without- was given.
13051 if test "${with_+set}" = set; then
13052 withval="$with_"
13056 # Check whether --enable-dsp or --disable-dsp was given.
13057 if test "${enable_dsp+set}" = set; then
13058 enableval="$enable_dsp"
13062 if test x$enable_dsp != xno &&
13063 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
13064 then
13068 for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h
13070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13072 echo "$as_me:$LINENO: checking for $ac_header" >&5
13073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13079 else
13080 # Is the header compilable?
13081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13083 cat >conftest.$ac_ext <<_ACEOF
13084 #line $LINENO "configure"
13085 #include "confdefs.h"
13086 $ac_includes_default
13087 #include <$ac_header>
13088 _ACEOF
13089 rm -f conftest.$ac_objext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13091 (eval $ac_compile) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try='test -s conftest.$ac_objext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_header_compiler=yes
13102 else
13103 echo "$as_me: failed program was:" >&5
13104 cat conftest.$ac_ext >&5
13105 ac_header_compiler=no
13107 rm -f conftest.$ac_objext conftest.$ac_ext
13108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13109 echo "${ECHO_T}$ac_header_compiler" >&6
13111 # Is the header present?
13112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13114 cat >conftest.$ac_ext <<_ACEOF
13115 #line $LINENO "configure"
13116 #include "confdefs.h"
13117 #include <$ac_header>
13118 _ACEOF
13119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13121 ac_status=$?
13122 egrep -v '^ *\+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } >/dev/null; then
13127 if test -s conftest.err; then
13128 ac_cpp_err=$ac_c_preproc_warn_flag
13129 else
13130 ac_cpp_err=
13132 else
13133 ac_cpp_err=yes
13135 if test -z "$ac_cpp_err"; then
13136 ac_header_preproc=yes
13137 else
13138 echo "$as_me: failed program was:" >&5
13139 cat conftest.$ac_ext >&5
13140 ac_header_preproc=no
13142 rm -f conftest.err conftest.$ac_ext
13143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13144 echo "${ECHO_T}$ac_header_preproc" >&6
13146 # So? What about this header?
13147 case $ac_header_compiler:$ac_header_preproc in
13148 yes:no )
13149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13153 no:yes )
13154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13160 esac
13161 echo "$as_me:$LINENO: checking for $ac_header" >&5
13162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166 eval "$as_ac_Header=$ac_header_preproc"
13168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13173 cat >>confdefs.h <<_ACEOF
13174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13175 _ACEOF
13177 PLUGINS="${PLUGINS} dsp"
13178 echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
13179 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6
13180 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183 ac_check_lib_save_LIBS=$LIBS
13184 LIBS="-lossaudio $LIBS"
13185 cat >conftest.$ac_ext <<_ACEOF
13186 #line $LINENO "configure"
13187 #include "confdefs.h"
13190 #ifdef F77_DUMMY_MAIN
13191 # ifdef __cplusplus
13192 extern "C"
13193 # endif
13194 int F77_DUMMY_MAIN() { return 1; }
13195 #endif
13197 main ()
13199 main ();
13201 return 0;
13203 _ACEOF
13204 rm -f conftest.$ac_objext conftest$ac_exeext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13206 (eval $ac_link) 2>&5
13207 ac_status=$?
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -s conftest$ac_exeext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216 ac_cv_lib_ossaudio_main=yes
13217 else
13218 echo "$as_me: failed program was:" >&5
13219 cat conftest.$ac_ext >&5
13220 ac_cv_lib_ossaudio_main=no
13222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13223 LIBS=$ac_check_lib_save_LIBS
13225 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
13226 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6
13227 if test $ac_cv_lib_ossaudio_main = yes; then
13228 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
13234 done
13238 # Check whether --enable-esd or --disable-esd was given.
13239 if test "${enable_esd+set}" = set; then
13240 enableval="$enable_esd"
13241 if test x$enable_esd = xyes
13242 then
13243 # Extract the first word of "esd-config", so it can be a program name with args.
13244 set dummy esd-config; ac_word=$2
13245 echo "$as_me:$LINENO: checking for $ac_word" >&5
13246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13247 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250 case $ESD_CONFIG in
13251 [\\/]* | ?:[\\/]*)
13252 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13262 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13266 done
13267 done
13269 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
13271 esac
13273 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
13275 if test -n "$ESD_CONFIG"; then
13276 echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
13277 echo "${ECHO_T}$ESD_CONFIG" >&6
13278 else
13279 echo "$as_me:$LINENO: result: no" >&5
13280 echo "${ECHO_T}no" >&6
13283 if test x${ESD_CONFIG} != xno
13284 then
13285 PLUGINS="${PLUGINS} esd"
13286 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
13287 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
13292 # Check whether --enable-arts or --disable-arts was given.
13293 if test "${enable_arts+set}" = set; then
13294 enableval="$enable_arts"
13295 if test x$enable_arts = xyes
13296 then
13297 # Extract the first word of "artsc-config", so it can be a program name with args.
13298 set dummy artsc-config; ac_word=$2
13299 echo "$as_me:$LINENO: checking for $ac_word" >&5
13300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13301 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 else
13304 case $ARTS_CONFIG in
13305 [\\/]* | ?:[\\/]*)
13306 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
13309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
13315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13316 ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 break 2
13320 done
13321 done
13323 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
13325 esac
13327 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
13329 if test -n "$ARTS_CONFIG"; then
13330 echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
13331 echo "${ECHO_T}$ARTS_CONFIG" >&6
13332 else
13333 echo "$as_me:$LINENO: result: no" >&5
13334 echo "${ECHO_T}no" >&6
13337 if test x${ARTS_CONFIG} != xno
13338 then
13339 PLUGINS="${PLUGINS} arts"
13340 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
13341 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
13346 # Check whether --enable-alsa or --disable-alsa was given.
13347 if test "${enable_alsa+set}" = set; then
13348 enableval="$enable_alsa"
13349 if test x$enable_alsa = xyes
13350 then
13351 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
13352 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
13353 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
13354 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
13358 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
13359 else
13360 # Is the header compilable?
13361 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
13362 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
13363 cat >conftest.$ac_ext <<_ACEOF
13364 #line $LINENO "configure"
13365 #include "confdefs.h"
13366 $ac_includes_default
13367 #include <alsa/asoundlib.h>
13368 _ACEOF
13369 rm -f conftest.$ac_objext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371 (eval $ac_compile) 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try='test -s conftest.$ac_objext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_header_compiler=yes
13382 else
13383 echo "$as_me: failed program was:" >&5
13384 cat conftest.$ac_ext >&5
13385 ac_header_compiler=no
13387 rm -f conftest.$ac_objext conftest.$ac_ext
13388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13389 echo "${ECHO_T}$ac_header_compiler" >&6
13391 # Is the header present?
13392 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
13393 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
13394 cat >conftest.$ac_ext <<_ACEOF
13395 #line $LINENO "configure"
13396 #include "confdefs.h"
13397 #include <alsa/asoundlib.h>
13398 _ACEOF
13399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13401 ac_status=$?
13402 egrep -v '^ *\+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } >/dev/null; then
13407 if test -s conftest.err; then
13408 ac_cpp_err=$ac_c_preproc_warn_flag
13409 else
13410 ac_cpp_err=
13412 else
13413 ac_cpp_err=yes
13415 if test -z "$ac_cpp_err"; then
13416 ac_header_preproc=yes
13417 else
13418 echo "$as_me: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13420 ac_header_preproc=no
13422 rm -f conftest.err conftest.$ac_ext
13423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13424 echo "${ECHO_T}$ac_header_preproc" >&6
13426 # So? What about this header?
13427 case $ac_header_compiler:$ac_header_preproc in
13428 yes:no )
13429 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13430 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13431 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
13432 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;};;
13433 no:yes )
13434 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
13435 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
13436 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
13437 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
13439 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;};;
13440 esac
13441 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
13442 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
13443 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
13448 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
13449 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
13452 if test $ac_cv_header_alsa_asoundlib_h = yes; then
13453 echo "$as_me:$LINENO: checking for main in -lasound" >&5
13454 echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6
13455 if test "${ac_cv_lib_asound_main+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458 ac_check_lib_save_LIBS=$LIBS
13459 LIBS="-lasound $LIBS"
13460 cat >conftest.$ac_ext <<_ACEOF
13461 #line $LINENO "configure"
13462 #include "confdefs.h"
13465 #ifdef F77_DUMMY_MAIN
13466 # ifdef __cplusplus
13467 extern "C"
13468 # endif
13469 int F77_DUMMY_MAIN() { return 1; }
13470 #endif
13472 main ()
13474 main ();
13476 return 0;
13478 _ACEOF
13479 rm -f conftest.$ac_objext conftest$ac_exeext
13480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13481 (eval $ac_link) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try='test -s conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 ac_cv_lib_asound_main=yes
13492 else
13493 echo "$as_me: failed program was:" >&5
13494 cat conftest.$ac_ext >&5
13495 ac_cv_lib_asound_main=no
13497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13498 LIBS=$ac_check_lib_save_LIBS
13500 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_main" >&5
13501 echo "${ECHO_T}$ac_cv_lib_asound_main" >&6
13502 if test $ac_cv_lib_asound_main = yes; then
13503 have_alsa="true"
13504 else
13505 have_alsa="false"
13508 else
13509 have_alsa="false"
13513 if test x$have_alsa = xtrue
13514 then
13515 PLUGINS="${PLUGINS} alsa"
13516 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
13521 # Check whether --enable-waveout or --disable-waveout was given.
13522 if test "${enable_waveout+set}" = set; then
13523 enableval="$enable_waveout"
13526 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
13527 then
13528 PLUGINS="${PLUGINS} waveout"
13529 waveout_LDFLAGS="-lwinmm"
13534 # Check whether --with- or --without- was given.
13535 if test "${with_+set}" = set; then
13536 withval="$with_"
13540 # Check whether --enable-gtk or --disable-gtk was given.
13541 if test "${enable_gtk+set}" = set; then
13542 enableval="$enable_gtk"
13545 if test x$enable_gtk != xno
13546 then
13547 GTK_PATH=$PATH
13549 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
13550 if test "${with_gtk_config_path+set}" = set; then
13551 withval="$with_gtk_config_path"
13552 if test "x$with_gtk_config_path" != "xno"
13553 then
13554 GTK_PATH="$with_gtk_config_path:$PATH"
13557 # look for gtk-config
13558 # Extract the first word of "gtk12-config", so it can be a program name with args.
13559 set dummy gtk12-config; ac_word=$2
13560 echo "$as_me:$LINENO: checking for $ac_word" >&5
13561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13562 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
13563 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 else
13565 case $GTK12_CONFIG in
13566 [\\/]* | ?:[\\/]*)
13567 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $GTK_PATH
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13577 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13579 break 2
13581 done
13582 done
13584 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
13586 esac
13588 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
13590 if test -n "$GTK12_CONFIG"; then
13591 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
13592 echo "${ECHO_T}$GTK12_CONFIG" >&6
13593 else
13594 echo "$as_me:$LINENO: result: no" >&5
13595 echo "${ECHO_T}no" >&6
13598 GTK_CONFIG=${GTK12_CONFIG}
13599 if test x${GTK_CONFIG} = xno
13600 then
13601 # Extract the first word of "gtk-config", so it can be a program name with args.
13602 set dummy gtk-config; ac_word=$2
13603 echo "$as_me:$LINENO: checking for $ac_word" >&5
13604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13605 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608 case $GTK_CONFIG in
13609 [\\/]* | ?:[\\/]*)
13610 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $GTK_PATH
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13624 done
13625 done
13627 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13629 esac
13631 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
13633 if test -n "$GTK_CONFIG"; then
13634 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
13635 echo "${ECHO_T}$GTK_CONFIG" >&6
13636 else
13637 echo "$as_me:$LINENO: result: no" >&5
13638 echo "${ECHO_T}no" >&6
13642 if test x${GTK_CONFIG} != xno
13643 then
13644 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
13645 then
13646 { { echo "$as_me:$LINENO: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." >&5
13647 echo "$as_me: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." >&2;}
13648 { (exit 1); exit 1; }; }
13650 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
13651 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
13652 # now look for the gtk.h header
13653 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
13654 ac_cv_gtk_headers=yes
13658 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
13660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13662 echo "$as_me:$LINENO: checking for $ac_header" >&5
13663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13669 else
13670 # Is the header compilable?
13671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13673 cat >conftest.$ac_ext <<_ACEOF
13674 #line $LINENO "configure"
13675 #include "confdefs.h"
13676 $ac_includes_default
13677 #include <$ac_header>
13678 _ACEOF
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -s conftest.$ac_objext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_header_compiler=yes
13692 else
13693 echo "$as_me: failed program was:" >&5
13694 cat conftest.$ac_ext >&5
13695 ac_header_compiler=no
13697 rm -f conftest.$ac_objext conftest.$ac_ext
13698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13699 echo "${ECHO_T}$ac_header_compiler" >&6
13701 # Is the header present?
13702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13704 cat >conftest.$ac_ext <<_ACEOF
13705 #line $LINENO "configure"
13706 #include "confdefs.h"
13707 #include <$ac_header>
13708 _ACEOF
13709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13711 ac_status=$?
13712 egrep -v '^ *\+' conftest.er1 >conftest.err
13713 rm -f conftest.er1
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } >/dev/null; then
13717 if test -s conftest.err; then
13718 ac_cpp_err=$ac_c_preproc_warn_flag
13719 else
13720 ac_cpp_err=
13722 else
13723 ac_cpp_err=yes
13725 if test -z "$ac_cpp_err"; then
13726 ac_header_preproc=yes
13727 else
13728 echo "$as_me: failed program was:" >&5
13729 cat conftest.$ac_ext >&5
13730 ac_header_preproc=no
13732 rm -f conftest.err conftest.$ac_ext
13733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13734 echo "${ECHO_T}$ac_header_preproc" >&6
13736 # So? What about this header?
13737 case $ac_header_compiler:$ac_header_preproc in
13738 yes:no )
13739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13743 no:yes )
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13750 esac
13751 echo "$as_me:$LINENO: checking for $ac_header" >&5
13752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756 eval "$as_ac_Header=$ac_header_preproc"
13758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13763 cat >>confdefs.h <<_ACEOF
13764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13765 _ACEOF
13767 else
13769 ac_cv_gtk_headers=no
13770 echo "Cannot find gtk development headers."
13774 done
13776 if test "x$ac_cv_gtk_headers" = xyes
13777 then
13778 PLUGINS="${PLUGINS} gtk"
13779 ALIASES="${ALIASES} gvlc"
13781 CPPFLAGS="$save_CPPFLAGS"
13785 # Check whether --enable-familiar or --disable-familiar was given.
13786 if test "${enable_familiar+set}" = set; then
13787 enableval="$enable_familiar"
13790 if test "x${enable_familiar}" = "xyes"
13791 then
13792 GTK_PATH="${PATH}"
13794 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
13795 if test "${with_gtk_config_path+set}" = set; then
13796 withval="$with_gtk_config_path"
13797 if test "x${with_gtk_config_path}" != "xno"
13798 then
13799 GTK_PATH="${with_gtk_config_path}:${PATH}"
13802 # look for gtk-config
13803 # Extract the first word of "gtk12-config", so it can be a program name with args.
13804 set dummy gtk12-config; ac_word=$2
13805 echo "$as_me:$LINENO: checking for $ac_word" >&5
13806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13807 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810 case $GTK12_CONFIG in
13811 [\\/]* | ?:[\\/]*)
13812 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
13815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816 for as_dir in ${GTK_PATH}
13818 IFS=$as_save_IFS
13819 test -z "$as_dir" && as_dir=.
13820 for ac_exec_ext in '' $ac_executable_extensions; do
13821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13822 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13824 break 2
13826 done
13827 done
13829 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
13831 esac
13833 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
13835 if test -n "$GTK12_CONFIG"; then
13836 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
13837 echo "${ECHO_T}$GTK12_CONFIG" >&6
13838 else
13839 echo "$as_me:$LINENO: result: no" >&5
13840 echo "${ECHO_T}no" >&6
13843 GTK_CONFIG=${GTK12_CONFIG}
13844 if test "x${GTK_CONFIG}" = "xno"
13845 then
13846 # Extract the first word of "gtk-config", so it can be a program name with args.
13847 set dummy gtk-config; ac_word=$2
13848 echo "$as_me:$LINENO: checking for $ac_word" >&5
13849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13850 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853 case $GTK_CONFIG in
13854 [\\/]* | ?:[\\/]*)
13855 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
13858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859 for as_dir in ${GTK_PATH}
13861 IFS=$as_save_IFS
13862 test -z "$as_dir" && as_dir=.
13863 for ac_exec_ext in '' $ac_executable_extensions; do
13864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13865 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13867 break 2
13869 done
13870 done
13872 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13874 esac
13876 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
13878 if test -n "$GTK_CONFIG"; then
13879 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
13880 echo "${ECHO_T}$GTK_CONFIG" >&6
13881 else
13882 echo "$as_me:$LINENO: result: no" >&5
13883 echo "${ECHO_T}no" >&6
13887 # check for cross-compiling
13888 GTK_PREFIX=
13890 # Check whether --with-gtk or --without-gtk was given.
13891 if test "${with_gtk+set}" = set; then
13892 withval="$with_gtk"
13895 if test "x$with_gtk_prefix" != "xno" -a "x$with_gtk_prefix" != "x"
13896 then
13897 GTK_PREFIX="--prefix=$with_gtk_prefix"
13899 if test "x${GTK_CONFIG}" != "xno"
13900 then
13901 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
13902 then
13903 { { echo "$as_me:$LINENO: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-familiar." >&5
13904 echo "$as_me: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-familiar." >&2;}
13905 { (exit 1); exit 1; }; }
13907 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} ${GTK_PREFIX} --cflags gtk gthread`"
13908 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} ${GTK_PREFIX} --libs gtk gthread | sed 's,-rdynamic,,'`"
13909 # now look for the gtk.h header
13910 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
13911 ac_cv_gtk_headers=yes
13915 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
13917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13919 echo "$as_me:$LINENO: checking for $ac_header" >&5
13920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13926 else
13927 # Is the header compilable?
13928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13930 cat >conftest.$ac_ext <<_ACEOF
13931 #line $LINENO "configure"
13932 #include "confdefs.h"
13933 $ac_includes_default
13934 #include <$ac_header>
13935 _ACEOF
13936 rm -f conftest.$ac_objext
13937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13938 (eval $ac_compile) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -s conftest.$ac_objext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_header_compiler=yes
13949 else
13950 echo "$as_me: failed program was:" >&5
13951 cat conftest.$ac_ext >&5
13952 ac_header_compiler=no
13954 rm -f conftest.$ac_objext conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13956 echo "${ECHO_T}$ac_header_compiler" >&6
13958 # Is the header present?
13959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13961 cat >conftest.$ac_ext <<_ACEOF
13962 #line $LINENO "configure"
13963 #include "confdefs.h"
13964 #include <$ac_header>
13965 _ACEOF
13966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13968 ac_status=$?
13969 egrep -v '^ *\+' conftest.er1 >conftest.err
13970 rm -f conftest.er1
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } >/dev/null; then
13974 if test -s conftest.err; then
13975 ac_cpp_err=$ac_c_preproc_warn_flag
13976 else
13977 ac_cpp_err=
13979 else
13980 ac_cpp_err=yes
13982 if test -z "$ac_cpp_err"; then
13983 ac_header_preproc=yes
13984 else
13985 echo "$as_me: failed program was:" >&5
13986 cat conftest.$ac_ext >&5
13987 ac_header_preproc=no
13989 rm -f conftest.err conftest.$ac_ext
13990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13991 echo "${ECHO_T}$ac_header_preproc" >&6
13993 # So? What about this header?
13994 case $ac_header_compiler:$ac_header_preproc in
13995 yes:no )
13996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14000 no:yes )
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14007 esac
14008 echo "$as_me:$LINENO: checking for $ac_header" >&5
14009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013 eval "$as_ac_Header=$ac_header_preproc"
14015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14020 cat >>confdefs.h <<_ACEOF
14021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14022 _ACEOF
14024 else
14026 ac_cv_gtk_headers=no
14027 echo "Cannot find gtk development headers."
14031 done
14034 # now look for gpe support
14036 # Check whether --with-gpe-prefix or --without-gpe-prefix was given.
14037 if test "${with_gpe_prefix+set}" = set; then
14038 withval="$with_gpe_prefix"
14041 if test "x$with_gpe_prefix" != "xno" -a "x$with_gpe_prefix" != "x"
14042 then
14043 gpe_CFLAGS="-I$with_gpe_prefix/include"
14044 gpe_LDFLAGS="-lXi -lgdk_pixbuf -L$with_gpe_prefix/lib"
14046 # now look for gpe/init.h header file
14047 save_CFLAGS=$CFLAGS
14048 save_LDFLAGS=$LDFLAGS
14049 # CFLAGS="${familiar_CFLAGS} ${gpe_CFLAGS}"
14050 LDFLAGS="${familiar_LDFLAGS} ${gpe_LDFLAGS}"
14051 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS} ${gpe_CFLAGS}"
14052 ac_cv_gpe_headers=yes
14054 for ac_header in gpe/init.h
14056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14058 echo "$as_me:$LINENO: checking for $ac_header" >&5
14059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14065 else
14066 # Is the header compilable?
14067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14069 cat >conftest.$ac_ext <<_ACEOF
14070 #line $LINENO "configure"
14071 #include "confdefs.h"
14072 $ac_includes_default
14073 #include <$ac_header>
14074 _ACEOF
14075 rm -f conftest.$ac_objext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14077 (eval $ac_compile) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
14081 { ac_try='test -s conftest.$ac_objext'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 ac_header_compiler=yes
14088 else
14089 echo "$as_me: failed program was:" >&5
14090 cat conftest.$ac_ext >&5
14091 ac_header_compiler=no
14093 rm -f conftest.$ac_objext conftest.$ac_ext
14094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14095 echo "${ECHO_T}$ac_header_compiler" >&6
14097 # Is the header present?
14098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14100 cat >conftest.$ac_ext <<_ACEOF
14101 #line $LINENO "configure"
14102 #include "confdefs.h"
14103 #include <$ac_header>
14104 _ACEOF
14105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14107 ac_status=$?
14108 egrep -v '^ *\+' conftest.er1 >conftest.err
14109 rm -f conftest.er1
14110 cat conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } >/dev/null; then
14113 if test -s conftest.err; then
14114 ac_cpp_err=$ac_c_preproc_warn_flag
14115 else
14116 ac_cpp_err=
14118 else
14119 ac_cpp_err=yes
14121 if test -z "$ac_cpp_err"; then
14122 ac_header_preproc=yes
14123 else
14124 echo "$as_me: failed program was:" >&5
14125 cat conftest.$ac_ext >&5
14126 ac_header_preproc=no
14128 rm -f conftest.err conftest.$ac_ext
14129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14130 echo "${ECHO_T}$ac_header_preproc" >&6
14132 # So? What about this header?
14133 case $ac_header_compiler:$ac_header_preproc in
14134 yes:no )
14135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14139 no:yes )
14140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14146 esac
14147 echo "$as_me:$LINENO: checking for $ac_header" >&5
14148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152 eval "$as_ac_Header=$ac_header_preproc"
14154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14159 cat >>confdefs.h <<_ACEOF
14160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14161 _ACEOF
14163 else
14164 ac_cv_gpe_headers=no
14165 { { echo "$as_me:$LINENO: error: Cannot find development headers for libgpewidget..." >&5
14166 echo "$as_me: error: Cannot find development headers for libgpewidget..." >&2;}
14167 { (exit 1); exit 1; }; }
14170 done
14172 echo "$as_me:$LINENO: checking for gpe_application_init in -lgpewidget" >&5
14173 echo $ECHO_N "checking for gpe_application_init in -lgpewidget... $ECHO_C" >&6
14174 if test "${ac_cv_lib_gpewidget_gpe_application_init+set}" = set; then
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 else
14177 ac_check_lib_save_LIBS=$LIBS
14178 LIBS="-lgpewidget $LIBS"
14179 cat >conftest.$ac_ext <<_ACEOF
14180 #line $LINENO "configure"
14181 #include "confdefs.h"
14183 /* Override any gcc2 internal prototype to avoid an error. */
14184 #ifdef __cplusplus
14185 extern "C"
14186 #endif
14187 /* We use char because int might match the return type of a gcc2
14188 builtin and then its argument prototype would still apply. */
14189 char gpe_application_init ();
14190 #ifdef F77_DUMMY_MAIN
14191 # ifdef __cplusplus
14192 extern "C"
14193 # endif
14194 int F77_DUMMY_MAIN() { return 1; }
14195 #endif
14197 main ()
14199 gpe_application_init ();
14201 return 0;
14203 _ACEOF
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14206 (eval $ac_link) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try='test -s conftest$ac_exeext'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 ac_cv_lib_gpewidget_gpe_application_init=yes
14217 else
14218 echo "$as_me: failed program was:" >&5
14219 cat conftest.$ac_ext >&5
14220 ac_cv_lib_gpewidget_gpe_application_init=no
14222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14223 LIBS=$ac_check_lib_save_LIBS
14225 echo "$as_me:$LINENO: result: $ac_cv_lib_gpewidget_gpe_application_init" >&5
14226 echo "${ECHO_T}$ac_cv_lib_gpewidget_gpe_application_init" >&6
14227 if test $ac_cv_lib_gpewidget_gpe_application_init = yes; then
14228 gpe_LDFLAGS="${gpe_LDFLAGS} -lgpewidget"
14229 else
14230 { { echo "$as_me:$LINENO: error: Cannot find libgpewidget library..." >&5
14231 echo "$as_me: error: Cannot find libgpewidget library..." >&2;}
14232 { (exit 1); exit 1; }; }
14235 CFLAGS=$save_CFLAGS
14236 LDFLAGS=$save_LDFLAG
14237 if test "x${ac_cv_gpe_headers}" = "xyes"
14238 then
14239 familiar_CFLAGS="${familiar_CFLAGS} ${gpe_CFLAGS}"
14240 familiar_LDFLAGS="${familiar_LDFLAGS} ${gpe_LDFLAGS}"
14243 if test "x${ac_cv_gtk_headers}" = "xyes"
14244 then
14245 PLUGINS="${PLUGINS} familiar"
14247 CPPFLAGS="${save_CPPFLAGS}"
14251 # Check whether --enable-gnome or --disable-gnome was given.
14252 if test "${enable_gnome+set}" = set; then
14253 enableval="$enable_gnome"
14254 if test x$enable_gnome = xyes; then
14255 # look for gnome-config
14256 # Extract the first word of "gnome-config", so it can be a program name with args.
14257 set dummy gnome-config; ac_word=$2
14258 echo "$as_me:$LINENO: checking for $ac_word" >&5
14259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14260 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 else
14263 case $GNOME_CONFIG in
14264 [\\/]* | ?:[\\/]*)
14265 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
14268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269 for as_dir in $PATH
14271 IFS=$as_save_IFS
14272 test -z "$as_dir" && as_dir=.
14273 for ac_exec_ext in '' $ac_executable_extensions; do
14274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14275 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14277 break 2
14279 done
14280 done
14282 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
14284 esac
14286 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
14288 if test -n "$GNOME_CONFIG"; then
14289 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
14290 echo "${ECHO_T}$GNOME_CONFIG" >&6
14291 else
14292 echo "$as_me:$LINENO: result: no" >&5
14293 echo "${ECHO_T}no" >&6
14296 if test -x ${GNOME_CONFIG}
14297 then
14298 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
14299 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
14301 # now look for the gnome.h header
14302 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
14304 for ac_header in gnome.h
14306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14308 echo "$as_me:$LINENO: checking for $ac_header" >&5
14309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14315 else
14316 # Is the header compilable?
14317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14319 cat >conftest.$ac_ext <<_ACEOF
14320 #line $LINENO "configure"
14321 #include "confdefs.h"
14322 $ac_includes_default
14323 #include <$ac_header>
14324 _ACEOF
14325 rm -f conftest.$ac_objext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14327 (eval $ac_compile) 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
14331 { ac_try='test -s conftest.$ac_objext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_header_compiler=yes
14338 else
14339 echo "$as_me: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14341 ac_header_compiler=no
14343 rm -f conftest.$ac_objext conftest.$ac_ext
14344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14345 echo "${ECHO_T}$ac_header_compiler" >&6
14347 # Is the header present?
14348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14350 cat >conftest.$ac_ext <<_ACEOF
14351 #line $LINENO "configure"
14352 #include "confdefs.h"
14353 #include <$ac_header>
14354 _ACEOF
14355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14357 ac_status=$?
14358 egrep -v '^ *\+' conftest.er1 >conftest.err
14359 rm -f conftest.er1
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } >/dev/null; then
14363 if test -s conftest.err; then
14364 ac_cpp_err=$ac_c_preproc_warn_flag
14365 else
14366 ac_cpp_err=
14368 else
14369 ac_cpp_err=yes
14371 if test -z "$ac_cpp_err"; then
14372 ac_header_preproc=yes
14373 else
14374 echo "$as_me: failed program was:" >&5
14375 cat conftest.$ac_ext >&5
14376 ac_header_preproc=no
14378 rm -f conftest.err conftest.$ac_ext
14379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14380 echo "${ECHO_T}$ac_header_preproc" >&6
14382 # So? What about this header?
14383 case $ac_header_compiler:$ac_header_preproc in
14384 yes:no )
14385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14389 no:yes )
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14396 esac
14397 echo "$as_me:$LINENO: checking for $ac_header" >&5
14398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 else
14402 eval "$as_ac_Header=$ac_header_preproc"
14404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14409 cat >>confdefs.h <<_ACEOF
14410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14411 _ACEOF
14413 PLUGINS="${PLUGINS} gnome"
14414 ALIASES="${ALIASES} gnome-vlc"
14416 else
14418 { { echo "$as_me:$LINENO: error: Can't find gnome headers. Please install the gnome
14419 developement tools or remove the --enable-gnome option" >&5
14420 echo "$as_me: error: Can't find gnome headers. Please install the gnome
14421 developement tools or remove the --enable-gnome option" >&2;}
14422 { (exit 1); exit 1; }; }
14426 done
14428 CPPFLAGS="$save_CPPFLAGS"
14432 # Check whether --enable-qt or --disable-qt was given.
14433 if test "${enable_qt+set}" = set; then
14434 enableval="$enable_qt"
14435 if test x$enable_qt = xyes; then
14436 PLUGINS="${PLUGINS} qt"
14437 ALIASES="${ALIASES} qvlc"
14438 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
14439 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
14440 if test -x ${QTDIR}/bin/moc
14441 then
14442 MOC=${QTDIR}/bin/moc
14443 else
14444 MOC=moc
14449 # Check whether --enable-kde or --disable-kde was given.
14450 if test "${enable_kde+set}" = set; then
14451 enableval="$enable_kde"
14452 if test x$enable_kde = xyes; then
14453 PLUGINS="${PLUGINS} kde"
14454 ALIASES="${ALIASES} kvlc"
14455 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
14456 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
14457 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
14458 if test -x ${QTDIR}/bin/moc
14459 then
14460 MOC=${QTDIR}/bin/moc
14461 else
14462 MOC=moc
14467 # Check whether --enable-opie or --disable-opie was given.
14468 if test "${enable_opie+set}" = set; then
14469 enableval="$enable_opie"
14470 if test "x${enable_opie}" = "xyes"; then
14472 # Check whether --with-qte or --without-qte was given.
14473 if test "${with_qte+set}" = set; then
14474 withval="$with_qte"
14477 if test "x${with_qte}" = "x"
14478 then
14479 test_LDFLAGS="-L${QTDIR}/lib"
14480 test_CFLAGS="-I${QTDIR}/include"
14481 else
14482 test_LDFLAGS="-L${with_qte}/lib"
14483 test_CFLAGS="-I${with_qte}/include"
14486 PLUGINS="${PLUGINS} opie"
14487 opie_LDFLAGS="${opie_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
14488 opie_CFLAGS="${opie_CFLAGS} ${test_CFLAGS}-DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
14489 if test -x ${QTDIR}/bin/moc
14490 then
14491 MOC=${QTDIR}/bin/moc
14492 else
14493 MOC=moc
14498 # Check whether --enable-macosx or --disable-macosx was given.
14499 if test "${enable_macosx+set}" = set; then
14500 enableval="$enable_macosx"
14501 if test x$enable_macosx = xyes
14502 then
14503 BUILTINS="${BUILTINS} macosx"
14504 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
14506 else
14508 for ac_header in Cocoa/Cocoa.h
14510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14512 echo "$as_me:$LINENO: checking for $ac_header" >&5
14513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14519 else
14520 # Is the header compilable?
14521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14523 cat >conftest.$ac_ext <<_ACEOF
14524 #line $LINENO "configure"
14525 #include "confdefs.h"
14526 $ac_includes_default
14527 #include <$ac_header>
14528 _ACEOF
14529 rm -f conftest.$ac_objext
14530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14531 (eval $ac_compile) 2>&5
14532 ac_status=$?
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try='test -s conftest.$ac_objext'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14541 ac_header_compiler=yes
14542 else
14543 echo "$as_me: failed program was:" >&5
14544 cat conftest.$ac_ext >&5
14545 ac_header_compiler=no
14547 rm -f conftest.$ac_objext conftest.$ac_ext
14548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14549 echo "${ECHO_T}$ac_header_compiler" >&6
14551 # Is the header present?
14552 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14554 cat >conftest.$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14556 #include "confdefs.h"
14557 #include <$ac_header>
14558 _ACEOF
14559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14561 ac_status=$?
14562 egrep -v '^ *\+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } >/dev/null; then
14567 if test -s conftest.err; then
14568 ac_cpp_err=$ac_c_preproc_warn_flag
14569 else
14570 ac_cpp_err=
14572 else
14573 ac_cpp_err=yes
14575 if test -z "$ac_cpp_err"; then
14576 ac_header_preproc=yes
14577 else
14578 echo "$as_me: failed program was:" >&5
14579 cat conftest.$ac_ext >&5
14580 ac_header_preproc=no
14582 rm -f conftest.err conftest.$ac_ext
14583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14584 echo "${ECHO_T}$ac_header_preproc" >&6
14586 # So? What about this header?
14587 case $ac_header_compiler:$ac_header_preproc in
14588 yes:no )
14589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14593 no:yes )
14594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14600 esac
14601 echo "$as_me:$LINENO: checking for $ac_header" >&5
14602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606 eval "$as_ac_Header=$ac_header_preproc"
14608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14613 cat >>confdefs.h <<_ACEOF
14614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14615 _ACEOF
14616 BUILTINS="${BUILTINS} macosx"
14617 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
14621 done
14625 # Check whether --enable-qnx or --disable-qnx was given.
14626 if test "${enable_qnx+set}" = set; then
14627 enableval="$enable_qnx"
14630 if test x$enable_qnx != xno
14631 then
14633 for ac_header in Ph.h
14635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14637 echo "$as_me:$LINENO: checking for $ac_header" >&5
14638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14644 else
14645 # Is the header compilable?
14646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14648 cat >conftest.$ac_ext <<_ACEOF
14649 #line $LINENO "configure"
14650 #include "confdefs.h"
14651 $ac_includes_default
14652 #include <$ac_header>
14653 _ACEOF
14654 rm -f conftest.$ac_objext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14656 (eval $ac_compile) 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -s conftest.$ac_objext'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14666 ac_header_compiler=yes
14667 else
14668 echo "$as_me: failed program was:" >&5
14669 cat conftest.$ac_ext >&5
14670 ac_header_compiler=no
14672 rm -f conftest.$ac_objext conftest.$ac_ext
14673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14674 echo "${ECHO_T}$ac_header_compiler" >&6
14676 # Is the header present?
14677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14679 cat >conftest.$ac_ext <<_ACEOF
14680 #line $LINENO "configure"
14681 #include "confdefs.h"
14682 #include <$ac_header>
14683 _ACEOF
14684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14686 ac_status=$?
14687 egrep -v '^ *\+' conftest.er1 >conftest.err
14688 rm -f conftest.er1
14689 cat conftest.err >&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } >/dev/null; then
14692 if test -s conftest.err; then
14693 ac_cpp_err=$ac_c_preproc_warn_flag
14694 else
14695 ac_cpp_err=
14697 else
14698 ac_cpp_err=yes
14700 if test -z "$ac_cpp_err"; then
14701 ac_header_preproc=yes
14702 else
14703 echo "$as_me: failed program was:" >&5
14704 cat conftest.$ac_ext >&5
14705 ac_header_preproc=no
14707 rm -f conftest.err conftest.$ac_ext
14708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14709 echo "${ECHO_T}$ac_header_preproc" >&6
14711 # So? What about this header?
14712 case $ac_header_compiler:$ac_header_preproc in
14713 yes:no )
14714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14718 no:yes )
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14725 esac
14726 echo "$as_me:$LINENO: checking for $ac_header" >&5
14727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14730 else
14731 eval "$as_ac_Header=$ac_header_preproc"
14733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14738 cat >>confdefs.h <<_ACEOF
14739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14740 _ACEOF
14742 PLUGINS="${PLUGINS} qnx"
14743 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
14747 done
14751 # Check whether --enable-intfwin or --disable-intfwin was given.
14752 if test "${enable_intfwin+set}" = set; then
14753 enableval="$enable_intfwin"
14754 if test "x$enable_intfwin" != "xno"
14755 then
14757 # Check whether --with-bcbuilder or --without-bcbuilder was given.
14758 if test "${with_bcbuilder+set}" = set; then
14759 withval="$with_bcbuilder"
14762 if test "x$with_bcbuilder" != "x"
14763 then
14764 BCBUILDER="$with_bcbuilder"
14766 PLUGINS="${PLUGINS} intfwin"
14770 # Check whether --enable-ncurses or --disable-ncurses was given.
14771 if test "${enable_ncurses+set}" = set; then
14772 enableval="$enable_ncurses"
14773 if test x$enable_ncurses = xyes; then
14774 PLUGINS="${PLUGINS} ncurses"
14775 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
14779 # Check whether --enable-lirc or --disable-lirc was given.
14780 if test "${enable_lirc+set}" = set; then
14781 enableval="$enable_lirc"
14784 if test x$enable_lirc = xyes
14785 then
14786 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14787 echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14788 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
14789 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14793 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
14794 else
14795 # Is the header compilable?
14796 echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
14797 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6
14798 cat >conftest.$ac_ext <<_ACEOF
14799 #line $LINENO "configure"
14800 #include "confdefs.h"
14801 $ac_includes_default
14802 #include <lirc/lirc_client.h>
14803 _ACEOF
14804 rm -f conftest.$ac_objext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14806 (eval $ac_compile) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } &&
14810 { ac_try='test -s conftest.$ac_objext'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }; then
14816 ac_header_compiler=yes
14817 else
14818 echo "$as_me: failed program was:" >&5
14819 cat conftest.$ac_ext >&5
14820 ac_header_compiler=no
14822 rm -f conftest.$ac_objext conftest.$ac_ext
14823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14824 echo "${ECHO_T}$ac_header_compiler" >&6
14826 # Is the header present?
14827 echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
14828 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6
14829 cat >conftest.$ac_ext <<_ACEOF
14830 #line $LINENO "configure"
14831 #include "confdefs.h"
14832 #include <lirc/lirc_client.h>
14833 _ACEOF
14834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14836 ac_status=$?
14837 egrep -v '^ *\+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } >/dev/null; then
14842 if test -s conftest.err; then
14843 ac_cpp_err=$ac_c_preproc_warn_flag
14844 else
14845 ac_cpp_err=
14847 else
14848 ac_cpp_err=yes
14850 if test -z "$ac_cpp_err"; then
14851 ac_header_preproc=yes
14852 else
14853 echo "$as_me: failed program was:" >&5
14854 cat conftest.$ac_ext >&5
14855 ac_header_preproc=no
14857 rm -f conftest.err conftest.$ac_ext
14858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14859 echo "${ECHO_T}$ac_header_preproc" >&6
14861 # So? What about this header?
14862 case $ac_header_compiler:$ac_header_preproc in
14863 yes:no )
14864 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
14865 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14867 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;};;
14868 no:yes )
14869 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
14870 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
14872 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14874 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;};;
14875 esac
14876 echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14877 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
14878 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
14883 echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14884 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
14887 if test $ac_cv_header_lirc_lirc_client_h = yes; then
14888 echo "$as_me:$LINENO: checking for lirc_init in -llirc_client" >&5
14889 echo $ECHO_N "checking for lirc_init in -llirc_client... $ECHO_C" >&6
14890 if test "${ac_cv_lib_lirc_client_lirc_init+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 else
14893 ac_check_lib_save_LIBS=$LIBS
14894 LIBS="-llirc_client $LIBS"
14895 cat >conftest.$ac_ext <<_ACEOF
14896 #line $LINENO "configure"
14897 #include "confdefs.h"
14899 /* Override any gcc2 internal prototype to avoid an error. */
14900 #ifdef __cplusplus
14901 extern "C"
14902 #endif
14903 /* We use char because int might match the return type of a gcc2
14904 builtin and then its argument prototype would still apply. */
14905 char lirc_init ();
14906 #ifdef F77_DUMMY_MAIN
14907 # ifdef __cplusplus
14908 extern "C"
14909 # endif
14910 int F77_DUMMY_MAIN() { return 1; }
14911 #endif
14913 main ()
14915 lirc_init ();
14917 return 0;
14919 _ACEOF
14920 rm -f conftest.$ac_objext conftest$ac_exeext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14922 (eval $ac_link) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try='test -s conftest$ac_exeext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14932 ac_cv_lib_lirc_client_lirc_init=yes
14933 else
14934 echo "$as_me: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14936 ac_cv_lib_lirc_client_lirc_init=no
14938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14939 LIBS=$ac_check_lib_save_LIBS
14941 echo "$as_me:$LINENO: result: $ac_cv_lib_lirc_client_lirc_init" >&5
14942 echo "${ECHO_T}$ac_cv_lib_lirc_client_lirc_init" >&6
14943 if test $ac_cv_lib_lirc_client_lirc_init = yes; then
14944 have_lirc="true"
14945 else
14946 have_lirc="false"
14949 else
14950 have_lirc="false"
14954 if test x$have_lirc = xtrue
14955 then
14956 PLUGINS="${PLUGINS} lirc"
14957 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
14962 # Check whether --with- or --without- was given.
14963 if test "${with_+set}" = set; then
14964 withval="$with_"
14969 # Check whether --with-words or --without-words was given.
14970 if test "${with_words+set}" = set; then
14971 withval="$with_words"
14974 case "x$with_words" in
14975 xbig)
14976 ac_cv_c_bigendian=yes
14978 xlittle)
14979 ac_cv_c_bigendian=no
14982 echo "$as_me:$LINENO: checking whether the byte order is big-endian" >&5
14983 echo $ECHO_N "checking whether the byte order is big-endian... $ECHO_C" >&6
14984 if test "${ac_cv_c_bigendian+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987 ac_cv_c_bigendian=unknown
14988 cat >conftest.c <<EOF
14989 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
14990 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
14991 void _a(void) { char*s = (char*)am; s = (char *)ai; }
14992 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
14993 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
14994 void _e(void) { char*s = (char*)em; s = (char*)ei; }
14995 int main(void) { _a(); _e(); return 0; }
14998 if test -f conftest.c
14999 then
15000 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
15001 && test -f conftest.o
15002 then
15003 if test "`strings conftest.o | grep BIGenDianSyS`"
15004 then
15005 ac_cv_c_bigendian=yes
15007 if test "`strings conftest.o | grep LiTTleEnDian`"
15008 then
15009 ac_cv_c_bigendian=no
15015 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15016 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15017 if test x$ac_cv_c_bigendian = xunknown
15018 then
15019 { { echo "$as_me:$LINENO: error: Could not guess endianness, please use --with-words" >&5
15020 echo "$as_me: error: Could not guess endianness, please use --with-words" >&2;}
15021 { (exit 1); exit 1; }; }
15024 esac
15025 if test $ac_cv_c_bigendian = yes
15026 then
15028 cat >>confdefs.h <<\_ACEOF
15029 #define WORDS_BIGENDIAN 1
15030 _ACEOF
15034 GPROF=0
15035 # Check whether --enable-gprof or --disable-gprof was given.
15036 if test "${enable_gprof+set}" = set; then
15037 enableval="$enable_gprof"
15038 if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
15041 CPROF=0
15042 # Check whether --enable-cprof or --disable-cprof was given.
15043 if test "${enable_cprof+set}" = set; then
15044 enableval="$enable_cprof"
15045 if test "x$enable_cprof" = "xyes";
15046 then
15047 LDFLAGS="${LDFLAGS} -lcprof"
15048 CPROF=1
15053 # Check whether --enable-pth or --disable-pth was given.
15054 if test "${enable_pth+set}" = set; then
15055 enableval="$enable_pth"
15056 if test "x$enable_pth" = "xyes"; then
15058 echo "$as_me:$LINENO: checking for pth_init in -lpth" >&5
15059 echo $ECHO_N "checking for pth_init in -lpth... $ECHO_C" >&6
15060 if test "${ac_cv_lib_pth_pth_init+set}" = set; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 else
15063 ac_check_lib_save_LIBS=$LIBS
15064 LIBS="-lpth $LIBS"
15065 cat >conftest.$ac_ext <<_ACEOF
15066 #line $LINENO "configure"
15067 #include "confdefs.h"
15069 /* Override any gcc2 internal prototype to avoid an error. */
15070 #ifdef __cplusplus
15071 extern "C"
15072 #endif
15073 /* We use char because int might match the return type of a gcc2
15074 builtin and then its argument prototype would still apply. */
15075 char pth_init ();
15076 #ifdef F77_DUMMY_MAIN
15077 # ifdef __cplusplus
15078 extern "C"
15079 # endif
15080 int F77_DUMMY_MAIN() { return 1; }
15081 #endif
15083 main ()
15085 pth_init ();
15087 return 0;
15089 _ACEOF
15090 rm -f conftest.$ac_objext conftest$ac_exeext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15092 (eval $ac_link) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -s conftest$ac_exeext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_cv_lib_pth_pth_init=yes
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 cat conftest.$ac_ext >&5
15106 ac_cv_lib_pth_pth_init=no
15108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15109 LIBS=$ac_check_lib_save_LIBS
15111 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_init" >&5
15112 echo "${ECHO_T}$ac_cv_lib_pth_pth_init" >&6
15113 if test $ac_cv_lib_pth_pth_init = yes; then
15114 cat >>confdefs.h <<_ACEOF
15115 #define HAVE_LIBPTH 1
15116 _ACEOF
15118 LIBS="-lpth $LIBS"
15122 cat >conftest.$ac_ext <<_ACEOF
15123 #line $LINENO "configure"
15124 #include "confdefs.h"
15125 #include <pth.h>
15127 _ACEOF
15128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15129 egrep "pth_init" >/dev/null 2>&1; then
15132 cat >>confdefs.h <<\_ACEOF
15133 #define PTH_INIT_IN_PTH_H 1
15134 _ACEOF
15136 THREAD_LIB="-lpth"
15139 rm -f conftest*
15144 # Check whether --enable-st or --disable-st was given.
15145 if test "${enable_st+set}" = set; then
15146 enableval="$enable_st"
15147 if test "x$enable_st" = "xyes"; then
15149 echo "$as_me:$LINENO: checking for st_init in -lst" >&5
15150 echo $ECHO_N "checking for st_init in -lst... $ECHO_C" >&6
15151 if test "${ac_cv_lib_st_st_init+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15153 else
15154 ac_check_lib_save_LIBS=$LIBS
15155 LIBS="-lst $LIBS"
15156 cat >conftest.$ac_ext <<_ACEOF
15157 #line $LINENO "configure"
15158 #include "confdefs.h"
15160 /* Override any gcc2 internal prototype to avoid an error. */
15161 #ifdef __cplusplus
15162 extern "C"
15163 #endif
15164 /* We use char because int might match the return type of a gcc2
15165 builtin and then its argument prototype would still apply. */
15166 char st_init ();
15167 #ifdef F77_DUMMY_MAIN
15168 # ifdef __cplusplus
15169 extern "C"
15170 # endif
15171 int F77_DUMMY_MAIN() { return 1; }
15172 #endif
15174 main ()
15176 st_init ();
15178 return 0;
15180 _ACEOF
15181 rm -f conftest.$ac_objext conftest$ac_exeext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15183 (eval $ac_link) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
15187 { ac_try='test -s conftest$ac_exeext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_cv_lib_st_st_init=yes
15194 else
15195 echo "$as_me: failed program was:" >&5
15196 cat conftest.$ac_ext >&5
15197 ac_cv_lib_st_st_init=no
15199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15200 LIBS=$ac_check_lib_save_LIBS
15202 echo "$as_me:$LINENO: result: $ac_cv_lib_st_st_init" >&5
15203 echo "${ECHO_T}$ac_cv_lib_st_st_init" >&6
15204 if test $ac_cv_lib_st_st_init = yes; then
15205 cat >>confdefs.h <<_ACEOF
15206 #define HAVE_LIBST 1
15207 _ACEOF
15209 LIBS="-lst $LIBS"
15213 cat >conftest.$ac_ext <<_ACEOF
15214 #line $LINENO "configure"
15215 #include "confdefs.h"
15216 #include <st.h>
15218 _ACEOF
15219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15220 egrep "st_init" >/dev/null 2>&1; then
15223 cat >>confdefs.h <<\_ACEOF
15224 #define ST_INIT_IN_ST_H 1
15225 _ACEOF
15227 THREAD_LIB="-lst"
15230 rm -f conftest*
15235 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
15237 # Check whether --enable-plugins or --disable-plugins was given.
15238 if test "${enable_plugins+set}" = set; then
15239 enableval="$enable_plugins"
15240 if test x$enable_plugins = xno
15241 then
15242 BUILTINS="${BUILTINS} ${PLUGINS}"
15243 PLUGINS=
15247 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
15248 then
15249 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
15250 echo "as built-in"
15251 BUILTINS="${BUILTINS} ${PLUGINS}"
15252 PLUGINS=
15256 cat >>confdefs.h <<_ACEOF
15257 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
15258 _ACEOF
15261 cat >>confdefs.h <<_ACEOF
15262 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
15263 _ACEOF
15266 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
15268 cat >>confdefs.h <<_ACEOF
15269 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
15270 _ACEOF
15273 cat >>confdefs.h <<_ACEOF
15274 #define MODULE_SYMBOL $VLC_SYMBOL
15275 _ACEOF
15278 DATA_PATH="${ac_tool_prefix}/share/videolan"
15280 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
15384 ac_config_files="$ac_config_files Makefile.config Makefile.opts po/Makefile.in"
15385 cat >confcache <<\_ACEOF
15386 # This file is a shell script that caches the results of configure
15387 # tests run on this system so they can be shared between configure
15388 # scripts and configure runs, see configure's option --config-cache.
15389 # It is not useful on other systems. If it contains results you don't
15390 # want to keep, you may remove or edit it.
15392 # config.status only pays attention to the cache file if you give it
15393 # the --recheck option to rerun configure.
15395 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15396 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15397 # following values.
15399 _ACEOF
15401 # The following way of writing the cache mishandles newlines in values,
15402 # but we know of no workaround that is simple, portable, and efficient.
15403 # So, don't put newlines in cache variables' values.
15404 # Ultrix sh set writes to stderr and can't be redirected directly,
15405 # and sets the high bit in the cache file unless we assign to the vars.
15407 (set) 2>&1 |
15408 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15409 *ac_space=\ *)
15410 # `set' does not quote correctly, so add quotes (double-quote
15411 # substitution turns \\\\ into \\, and sed turns \\ into \).
15412 sed -n \
15413 "s/'/'\\\\''/g;
15414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15417 # `set' quotes correctly as required by POSIX, so do not add quotes.
15418 sed -n \
15419 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15421 esac;
15423 sed '
15424 t clear
15425 : clear
15426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15427 t end
15428 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15429 : end' >>confcache
15430 if cmp -s $cache_file confcache; then :; else
15431 if test -w $cache_file; then
15432 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15433 cat confcache >$cache_file
15434 else
15435 echo "not updating unwritable cache $cache_file"
15438 rm -f confcache
15440 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15441 # Let make expand exec_prefix.
15442 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15444 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15445 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15446 # trailing colons and then remove the whole line if VPATH becomes empty
15447 # (actually we leave an empty line to preserve line numbers).
15448 if test "x$srcdir" = x.; then
15449 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15450 s/:*\$(srcdir):*/:/;
15451 s/:*\${srcdir}:*/:/;
15452 s/:*@srcdir@:*/:/;
15453 s/^\([^=]*=[ ]*\):*/\1/;
15454 s/:*$//;
15455 s/^[^=]*=[ ]*$//;
15459 DEFS=-DHAVE_CONFIG_H
15462 : ${CONFIG_STATUS=./config.status}
15463 ac_clean_files_save=$ac_clean_files
15464 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15465 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15466 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15467 cat >$CONFIG_STATUS <<_ACEOF
15468 #! $SHELL
15469 # Generated by $as_me.
15470 # Run this file to recreate the current configuration.
15471 # Compiler output produced by configure, useful for debugging
15472 # configure, is in config.log if it exists.
15474 debug=false
15475 SHELL=\${CONFIG_SHELL-$SHELL}
15476 _ACEOF
15478 cat >>$CONFIG_STATUS <<\_ACEOF
15480 ## --------------------- ##
15481 ## M4sh Initialization. ##
15482 ## --------------------- ##
15484 # Be Bourne compatible
15485 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15486 emulate sh
15487 NULLCMD=:
15488 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15489 set -o posix
15492 # NLS nuisances.
15493 # Support unset when possible.
15494 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15495 as_unset=unset
15496 else
15497 as_unset=false
15500 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15501 { $as_unset LANG || test "${LANG+set}" != set; } ||
15502 { LANG=C; export LANG; }
15503 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15504 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15505 { LC_ALL=C; export LC_ALL; }
15506 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15507 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15508 { LC_TIME=C; export LC_TIME; }
15509 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15510 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15511 { LC_CTYPE=C; export LC_CTYPE; }
15512 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15513 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15514 { LANGUAGE=C; export LANGUAGE; }
15515 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15516 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15517 { LC_COLLATE=C; export LC_COLLATE; }
15518 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15519 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15520 { LC_NUMERIC=C; export LC_NUMERIC; }
15521 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15522 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15523 { LC_MESSAGES=C; export LC_MESSAGES; }
15526 # Name of the executable.
15527 as_me=`(basename "$0") 2>/dev/null ||
15528 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15529 X"$0" : 'X\(//\)$' \| \
15530 X"$0" : 'X\(/\)$' \| \
15531 . : '\(.\)' 2>/dev/null ||
15532 echo X/"$0" |
15533 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15534 /^X\/\(\/\/\)$/{ s//\1/; q; }
15535 /^X\/\(\/\).*/{ s//\1/; q; }
15536 s/.*/./; q'`
15538 # PATH needs CR, and LINENO needs CR and PATH.
15539 # Avoid depending upon Character Ranges.
15540 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15541 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15542 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15543 as_cr_digits='0123456789'
15544 as_cr_alnum=$as_cr_Letters$as_cr_digits
15546 # The user is always right.
15547 if test "${PATH_SEPARATOR+set}" != set; then
15548 echo "#! /bin/sh" >conftest.sh
15549 echo "exit 0" >>conftest.sh
15550 chmod +x conftest.sh
15551 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15552 PATH_SEPARATOR=';'
15553 else
15554 PATH_SEPARATOR=:
15556 rm -f conftest.sh
15560 as_lineno_1=$LINENO
15561 as_lineno_2=$LINENO
15562 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15563 test "x$as_lineno_1" != "x$as_lineno_2" &&
15564 test "x$as_lineno_3" = "x$as_lineno_2" || {
15565 # Find who we are. Look in the path if we contain no path at all
15566 # relative or not.
15567 case $0 in
15568 *[\\/]* ) as_myself=$0 ;;
15569 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15570 for as_dir in $PATH
15572 IFS=$as_save_IFS
15573 test -z "$as_dir" && as_dir=.
15574 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15575 done
15578 esac
15579 # We did not find ourselves, most probably we were run as `sh COMMAND'
15580 # in which case we are not to be found in the path.
15581 if test "x$as_myself" = x; then
15582 as_myself=$0
15584 if test ! -f "$as_myself"; then
15585 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15586 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15587 { (exit 1); exit 1; }; }
15589 case $CONFIG_SHELL in
15591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15594 IFS=$as_save_IFS
15595 test -z "$as_dir" && as_dir=.
15596 for as_base in sh bash ksh sh5; do
15597 case $as_dir in
15599 if ("$as_dir/$as_base" -c '
15600 as_lineno_1=$LINENO
15601 as_lineno_2=$LINENO
15602 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15603 test "x$as_lineno_1" != "x$as_lineno_2" &&
15604 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15605 CONFIG_SHELL=$as_dir/$as_base
15606 export CONFIG_SHELL
15607 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15608 fi;;
15609 esac
15610 done
15611 done
15613 esac
15615 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15616 # uniformly replaced by the line number. The first 'sed' inserts a
15617 # line-number line before each line; the second 'sed' does the real
15618 # work. The second script uses 'N' to pair each line-number line
15619 # with the numbered line, and appends trailing '-' during
15620 # substitution so that $LINENO is not a special case at line end.
15621 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15622 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15623 sed '=' <$as_myself |
15624 sed '
15626 s,$,-,
15627 : loop
15628 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15629 t loop
15630 s,-$,,
15631 s,^['$as_cr_digits']*\n,,
15632 ' >$as_me.lineno &&
15633 chmod +x $as_me.lineno ||
15634 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15635 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15636 { (exit 1); exit 1; }; }
15638 # Don't try to exec as it changes $[0], causing all sort of problems
15639 # (the dirname of $[0] is not the place where we might find the
15640 # original and so on. Autoconf is especially sensible to this).
15641 . ./$as_me.lineno
15642 # Exit status is that of the last command.
15643 exit
15647 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15648 *c*,-n*) ECHO_N= ECHO_C='
15649 ' ECHO_T=' ' ;;
15650 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15651 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15652 esac
15654 if expr a : '\(a\)' >/dev/null 2>&1; then
15655 as_expr=expr
15656 else
15657 as_expr=false
15660 rm -f conf$$ conf$$.exe conf$$.file
15661 echo >conf$$.file
15662 if ln -s conf$$.file conf$$ 2>/dev/null; then
15663 # We could just check for DJGPP; but this test a) works b) is more generic
15664 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15665 if test -f conf$$.exe; then
15666 # Don't use ln at all; we don't have any links
15667 as_ln_s='cp -p'
15668 else
15669 as_ln_s='ln -s'
15671 elif ln conf$$.file conf$$ 2>/dev/null; then
15672 as_ln_s=ln
15673 else
15674 as_ln_s='cp -p'
15676 rm -f conf$$ conf$$.exe conf$$.file
15678 as_executable_p="test -f"
15680 # Sed expression to map a string onto a valid CPP name.
15681 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15683 # Sed expression to map a string onto a valid variable name.
15684 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15687 # IFS
15688 # We need space, tab and new line, in precisely that order.
15689 as_nl='
15691 IFS=" $as_nl"
15693 # CDPATH.
15694 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
15696 exec 6>&1
15698 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15699 # report actual input values of CONFIG_FILES etc. instead of their
15700 # values after options handling. Logging --version etc. is OK.
15701 exec 5>>config.log
15703 echo
15704 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15705 ## Running $as_me. ##
15706 _ASBOX
15707 } >&5
15708 cat >&5 <<_CSEOF
15710 This file was extended by $as_me, which was
15711 generated by GNU Autoconf 2.53. Invocation command line was
15713 CONFIG_FILES = $CONFIG_FILES
15714 CONFIG_HEADERS = $CONFIG_HEADERS
15715 CONFIG_LINKS = $CONFIG_LINKS
15716 CONFIG_COMMANDS = $CONFIG_COMMANDS
15717 $ $0 $@
15719 _CSEOF
15720 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15721 echo >&5
15722 _ACEOF
15724 # Files that config.status was made for.
15725 if test -n "$ac_config_files"; then
15726 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15729 if test -n "$ac_config_headers"; then
15730 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15733 if test -n "$ac_config_links"; then
15734 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15737 if test -n "$ac_config_commands"; then
15738 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15741 cat >>$CONFIG_STATUS <<\_ACEOF
15743 ac_cs_usage="\
15744 \`$as_me' instantiates files from templates according to the
15745 current configuration.
15747 Usage: $0 [OPTIONS] [FILE]...
15749 -h, --help print this help, then exit
15750 -V, --version print version number, then exit
15751 -d, --debug don't remove temporary files
15752 --recheck update $as_me by reconfiguring in the same conditions
15753 --file=FILE[:TEMPLATE]
15754 instantiate the configuration file FILE
15755 --header=FILE[:TEMPLATE]
15756 instantiate the configuration header FILE
15758 Configuration files:
15759 $config_files
15761 Configuration headers:
15762 $config_headers
15764 Configuration commands:
15765 $config_commands
15767 Report bugs to <bug-autoconf@gnu.org>."
15768 _ACEOF
15770 cat >>$CONFIG_STATUS <<_ACEOF
15771 ac_cs_version="\\
15772 config.status
15773 configured by $0, generated by GNU Autoconf 2.53,
15774 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15776 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15777 Free Software Foundation, Inc.
15778 This config.status script is free software; the Free Software Foundation
15779 gives unlimited permission to copy, distribute and modify it."
15780 srcdir=$srcdir
15781 INSTALL="$INSTALL"
15782 _ACEOF
15784 cat >>$CONFIG_STATUS <<\_ACEOF
15785 # If no file are specified by the user, then we need to provide default
15786 # value. By we need to know if files were specified by the user.
15787 ac_need_defaults=:
15788 while test $# != 0
15790 case $1 in
15791 --*=*)
15792 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15793 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15794 shift
15795 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
15796 shift
15798 -*);;
15799 *) # This is not an option, so the user has probably given explicit
15800 # arguments.
15801 ac_need_defaults=false;;
15802 esac
15804 case $1 in
15805 # Handling of the options.
15806 _ACEOF
15807 cat >>$CONFIG_STATUS <<_ACEOF
15808 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15809 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15810 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15811 _ACEOF
15812 cat >>$CONFIG_STATUS <<\_ACEOF
15813 --version | --vers* | -V )
15814 echo "$ac_cs_version"; exit 0 ;;
15815 --he | --h)
15816 # Conflict between --help and --header
15817 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15818 Try \`$0 --help' for more information." >&5
15819 echo "$as_me: error: ambiguous option: $1
15820 Try \`$0 --help' for more information." >&2;}
15821 { (exit 1); exit 1; }; };;
15822 --help | --hel | -h )
15823 echo "$ac_cs_usage"; exit 0 ;;
15824 --debug | --d* | -d )
15825 debug=: ;;
15826 --file | --fil | --fi | --f )
15827 shift
15828 CONFIG_FILES="$CONFIG_FILES $1"
15829 ac_need_defaults=false;;
15830 --header | --heade | --head | --hea )
15831 shift
15832 CONFIG_HEADERS="$CONFIG_HEADERS $1"
15833 ac_need_defaults=false;;
15835 # This is an error.
15836 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15837 Try \`$0 --help' for more information." >&5
15838 echo "$as_me: error: unrecognized option: $1
15839 Try \`$0 --help' for more information." >&2;}
15840 { (exit 1); exit 1; }; } ;;
15842 *) ac_config_targets="$ac_config_targets $1" ;;
15844 esac
15845 shift
15846 done
15848 _ACEOF
15850 cat >>$CONFIG_STATUS <<_ACEOF
15852 # INIT-COMMANDS section.
15857 _ACEOF
15861 cat >>$CONFIG_STATUS <<\_ACEOF
15862 for ac_config_target in $ac_config_targets
15864 case "$ac_config_target" in
15865 # Handling of arguments.
15866 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
15867 "Makefile.opts" ) CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
15868 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15869 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15870 "include/defs.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/defs.h" ;;
15871 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15872 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15873 { (exit 1); exit 1; }; };;
15874 esac
15875 done
15877 # If the user did not use the arguments to specify the items to instantiate,
15878 # then the envvar interface is used. Set only those that are not.
15879 # We use the long form for the default assignment because of an extremely
15880 # bizarre bug on SunOS 4.1.3.
15881 if $ac_need_defaults; then
15882 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15883 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15884 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15887 # Create a temporary directory, and hook for its removal unless debugging.
15888 $debug ||
15890 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15891 trap '{ (exit 1); exit 1; }' 1 2 13 15
15894 # Create a (secure) tmp directory for tmp files.
15895 : ${TMPDIR=/tmp}
15897 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15898 test -n "$tmp" && test -d "$tmp"
15899 } ||
15901 tmp=$TMPDIR/cs$$-$RANDOM
15902 (umask 077 && mkdir $tmp)
15903 } ||
15905 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15906 { (exit 1); exit 1; }
15909 _ACEOF
15911 cat >>$CONFIG_STATUS <<_ACEOF
15914 # CONFIG_FILES section.
15917 # No need to generate the scripts if there are no CONFIG_FILES.
15918 # This happens for instance when ./config.status config.h
15919 if test -n "\$CONFIG_FILES"; then
15920 # Protect against being on the right side of a sed subst in config.status.
15921 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15922 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15923 s,@SHELL@,$SHELL,;t t
15924 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15925 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15926 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15927 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15928 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15929 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15930 s,@exec_prefix@,$exec_prefix,;t t
15931 s,@prefix@,$prefix,;t t
15932 s,@program_transform_name@,$program_transform_name,;t t
15933 s,@bindir@,$bindir,;t t
15934 s,@sbindir@,$sbindir,;t t
15935 s,@libexecdir@,$libexecdir,;t t
15936 s,@datadir@,$datadir,;t t
15937 s,@sysconfdir@,$sysconfdir,;t t
15938 s,@sharedstatedir@,$sharedstatedir,;t t
15939 s,@localstatedir@,$localstatedir,;t t
15940 s,@libdir@,$libdir,;t t
15941 s,@includedir@,$includedir,;t t
15942 s,@oldincludedir@,$oldincludedir,;t t
15943 s,@infodir@,$infodir,;t t
15944 s,@mandir@,$mandir,;t t
15945 s,@build_alias@,$build_alias,;t t
15946 s,@host_alias@,$host_alias,;t t
15947 s,@target_alias@,$target_alias,;t t
15948 s,@DEFS@,$DEFS,;t t
15949 s,@ECHO_C@,$ECHO_C,;t t
15950 s,@ECHO_N@,$ECHO_N,;t t
15951 s,@ECHO_T@,$ECHO_T,;t t
15952 s,@LIBS@,$LIBS,;t t
15953 s,@build@,$build,;t t
15954 s,@build_cpu@,$build_cpu,;t t
15955 s,@build_vendor@,$build_vendor,;t t
15956 s,@build_os@,$build_os,;t t
15957 s,@host@,$host,;t t
15958 s,@host_cpu@,$host_cpu,;t t
15959 s,@host_vendor@,$host_vendor,;t t
15960 s,@host_os@,$host_os,;t t
15961 s,@target@,$target,;t t
15962 s,@target_cpu@,$target_cpu,;t t
15963 s,@target_vendor@,$target_vendor,;t t
15964 s,@target_os@,$target_os,;t t
15965 s,@SET_MAKE@,$SET_MAKE,;t t
15966 s,@CC@,$CC,;t t
15967 s,@CFLAGS@,$CFLAGS,;t t
15968 s,@LDFLAGS@,$LDFLAGS,;t t
15969 s,@CPPFLAGS@,$CPPFLAGS,;t t
15970 s,@ac_ct_CC@,$ac_ct_CC,;t t
15971 s,@EXEEXT@,$EXEEXT,;t t
15972 s,@OBJEXT@,$OBJEXT,;t t
15973 s,@CPP@,$CPP,;t t
15974 s,@RANLIB@,$RANLIB,;t t
15975 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15976 s,@STRIP@,$STRIP,;t t
15977 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15978 s,@AR@,$AR,;t t
15979 s,@ac_ct_AR@,$ac_ct_AR,;t t
15980 s,@LD@,$LD,;t t
15981 s,@ac_ct_LD@,$ac_ct_LD,;t t
15982 s,@GMAKE@,$GMAKE,;t t
15983 s,@ALLOCA@,$ALLOCA,;t t
15984 s,@GLIBC21@,$GLIBC21,;t t
15985 s,@LIBICONV@,$LIBICONV,;t t
15986 s,@USE_NLS@,$USE_NLS,;t t
15987 s,@MSGFMT@,$MSGFMT,;t t
15988 s,@GMSGFMT@,$GMSGFMT,;t t
15989 s,@XGETTEXT@,$XGETTEXT,;t t
15990 s,@INTLBISON@,$INTLBISON,;t t
15991 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15992 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15993 s,@CATALOGS@,$CATALOGS,;t t
15994 s,@CATOBJEXT@,$CATOBJEXT,;t t
15995 s,@GMOFILES@,$GMOFILES,;t t
15996 s,@INTLLIBS@,$INTLLIBS,;t t
15997 s,@INTLOBJS@,$INTLOBJS,;t t
15998 s,@POFILES@,$POFILES,;t t
15999 s,@POSUB@,$POSUB,;t t
16000 s,@DATADIRNAME@,$DATADIRNAME,;t t
16001 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16002 s,@GENCAT@,$GENCAT,;t t
16003 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16004 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16005 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16006 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16007 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16008 s,@WINDRES@,$WINDRES,;t t
16009 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
16010 s,@SDL12_CONFIG@,$SDL12_CONFIG,;t t
16011 s,@SDL11_CONFIG@,$SDL11_CONFIG,;t t
16012 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
16013 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
16014 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
16015 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16016 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16017 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16018 s,@DATA_PATH@,$DATA_PATH,;t t
16019 s,@PLUGIN_PATH@,$PLUGIN_PATH,;t t
16020 s,@SYS@,$SYS,;t t
16021 s,@ARCH@,$ARCH,;t t
16022 s,@PLUGINS@,$PLUGINS,;t t
16023 s,@BUILTINS@,$BUILTINS,;t t
16024 s,@ALIASES@,$ALIASES,;t t
16025 s,@DEBUG@,$DEBUG,;t t
16026 s,@ASM@,$ASM,;t t
16027 s,@CPROF@,$CPROF,;t t
16028 s,@GPROF@,$GPROF,;t t
16029 s,@OPTIMS@,$OPTIMS,;t t
16030 s,@TUNING@,$TUNING,;t t
16031 s,@RELEASE@,$RELEASE,;t t
16032 s,@MOC@,$MOC,;t t
16033 s,@BCBUILDER@,$BCBUILDER,;t t
16034 s,@PACKAGE@,$PACKAGE,;t t
16035 s,@VERSION@,$VERSION,;t t
16036 s,@NEED_GETOPT@,$NEED_GETOPT,;t t
16037 s,@CFLAGS_OPTIM@,$CFLAGS_OPTIM,;t t
16038 s,@CFLAGS_OPTIM_NODEBUG@,$CFLAGS_OPTIM_NODEBUG,;t t
16039 s,@vlc_CFLAGS@,$vlc_CFLAGS,;t t
16040 s,@plugins_CFLAGS@,$plugins_CFLAGS,;t t
16041 s,@builtins_CFLAGS@,$builtins_CFLAGS,;t t
16042 s,@a52_CFLAGS@,$a52_CFLAGS,;t t
16043 s,@arts_CFLAGS@,$arts_CFLAGS,;t t
16044 s,@dvd_CFLAGS@,$dvd_CFLAGS,;t t
16045 s,@dvdread_CFLAGS@,$dvdread_CFLAGS,;t t
16046 s,@mpeg_ts_dvbpsi_CFLAGS@,$mpeg_ts_dvbpsi_CFLAGS,;t t
16047 s,@directx_CFLAGS@,$directx_CFLAGS,;t t
16048 s,@esd_CFLAGS@,$esd_CFLAGS,;t t
16049 s,@familiar_CFLAGS@,$familiar_CFLAGS,;t t
16050 s,@ffmpeg_CFLAGS@,$ffmpeg_CFLAGS,;t t
16051 s,@glide_CFLAGS@,$glide_CFLAGS,;t t
16052 s,@gnome_CFLAGS@,$gnome_CFLAGS,;t t
16053 s,@gtk_CFLAGS@,$gtk_CFLAGS,;t t
16054 s,@kde_CFLAGS@,$kde_CFLAGS,;t t
16055 s,@idctaltivec_CFLAGS@,$idctaltivec_CFLAGS,;t t
16056 s,@macosx_CFLAGS@,$macosx_CFLAGS,;t t
16057 s,@mad_CFLAGS@,$mad_CFLAGS,;t t
16058 s,@memcpyaltivec_CFLAGS@,$memcpyaltivec_CFLAGS,;t t
16059 s,@motionaltivec_CFLAGS@,$motionaltivec_CFLAGS,;t t
16060 s,@opie_CFLAGS@,$opie_CFLAGS,;t t
16061 s,@qt_CFLAGS@,$qt_CFLAGS,;t t
16062 s,@qte_CFLAGS@,$qte_CFLAGS,;t t
16063 s,@sdl_CFLAGS@,$sdl_CFLAGS,;t t
16064 s,@x11_CFLAGS@,$x11_CFLAGS,;t t
16065 s,@xvideo_CFLAGS@,$xvideo_CFLAGS,;t t
16066 s,@vlc_LDFLAGS@,$vlc_LDFLAGS,;t t
16067 s,@plugins_LDFLAGS@,$plugins_LDFLAGS,;t t
16068 s,@builtins_LDFLAGS@,$builtins_LDFLAGS,;t t
16069 s,@a52_LDFLAGS@,$a52_LDFLAGS,;t t
16070 s,@aa_LDFLAGS@,$aa_LDFLAGS,;t t
16071 s,@alsa_LDFLAGS@,$alsa_LDFLAGS,;t t
16072 s,@arts_LDFLAGS@,$arts_LDFLAGS,;t t
16073 s,@beos_LDFLAGS@,$beos_LDFLAGS,;t t
16074 s,@chroma_i420_rgb_LDFLAGS@,$chroma_i420_rgb_LDFLAGS,;t t
16075 s,@directx_LDFLAGS@,$directx_LDFLAGS,;t t
16076 s,@dsp_LDFLAGS@,$dsp_LDFLAGS,;t t
16077 s,@dvd_LDFLAGS@,$dvd_LDFLAGS,;t t
16078 s,@dvdread_LDFLAGS@,$dvdread_LDFLAGS,;t t
16079 s,@mpeg_ts_dvbpsi_LDFLAGS@,$mpeg_ts_dvbpsi_LDFLAGS,;t t
16080 s,@esd_LDFLAGS@,$esd_LDFLAGS,;t t
16081 s,@familiar_LDFLAGS@,$familiar_LDFLAGS,;t t
16082 s,@filter_distort_LDFLAGS@,$filter_distort_LDFLAGS,;t t
16083 s,@ffmpeg_LDFLAGS@,$ffmpeg_LDFLAGS,;t t
16084 s,@ggi_LDFLAGS@,$ggi_LDFLAGS,;t t
16085 s,@glide_LDFLAGS@,$glide_LDFLAGS,;t t
16086 s,@gnome_LDFLAGS@,$gnome_LDFLAGS,;t t
16087 s,@gtk_LDFLAGS@,$gtk_LDFLAGS,;t t
16088 s,@http_LDFLAGS@,$http_LDFLAGS,;t t
16089 s,@idctaltivec_LDFLAGS@,$idctaltivec_LDFLAGS,;t t
16090 s,@imdct_LDFLAGS@,$imdct_LDFLAGS,;t t
16091 s,@imdct3dn_LDFLAGS@,$imdct3dn_LDFLAGS,;t t
16092 s,@imdctsse_LDFLAGS@,$imdctsse_LDFLAGS,;t t
16093 s,@ipv4_LDFLAGS@,$ipv4_LDFLAGS,;t t
16094 s,@ipv6_LDFLAGS@,$ipv6_LDFLAGS,;t t
16095 s,@kde_LDFLAGS@,$kde_LDFLAGS,;t t
16096 s,@lirc_LDFLAGS@,$lirc_LDFLAGS,;t t
16097 s,@macosx_LDFLAGS@,$macosx_LDFLAGS,;t t
16098 s,@mad_LDFLAGS@,$mad_LDFLAGS,;t t
16099 s,@memcpyaltivec_LDFLAGS@,$memcpyaltivec_LDFLAGS,;t t
16100 s,@motionaltivec_LDFLAGS@,$motionaltivec_LDFLAGS,;t t
16101 s,@ncurses_LDFLAGS@,$ncurses_LDFLAGS,;t t
16102 s,@opie_LDFLAGS@,$opie_LDFLAGS,;t t
16103 s,@qnx_LDFLAGS@,$qnx_LDFLAGS,;t t
16104 s,@qt_LDFLAGS@,$qt_LDFLAGS,;t t
16105 s,@qte_LDFLAGS@,$qte_LDFLAGS,;t t
16106 s,@rc_LDFLAGS@,$rc_LDFLAGS,;t t
16107 s,@sdl_LDFLAGS@,$sdl_LDFLAGS,;t t
16108 s,@vcd_LDFLAGS@,$vcd_LDFLAGS,;t t
16109 s,@vorbis_LDFLAGS@,$vorbis_LDFLAGS,;t t
16110 s,@waveout_LDFLAGS@,$waveout_LDFLAGS,;t t
16111 s,@x11_LDFLAGS@,$x11_LDFLAGS,;t t
16112 s,@xvideo_LDFLAGS@,$xvideo_LDFLAGS,;t t
16113 CEOF
16115 _ACEOF
16117 cat >>$CONFIG_STATUS <<\_ACEOF
16118 # Split the substitutions into bite-sized pieces for seds with
16119 # small command number limits, like on Digital OSF/1 and HP-UX.
16120 ac_max_sed_lines=48
16121 ac_sed_frag=1 # Number of current file.
16122 ac_beg=1 # First line for current file.
16123 ac_end=$ac_max_sed_lines # Line after last line for current file.
16124 ac_more_lines=:
16125 ac_sed_cmds=
16126 while $ac_more_lines; do
16127 if test $ac_beg -gt 1; then
16128 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16129 else
16130 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16132 if test ! -s $tmp/subs.frag; then
16133 ac_more_lines=false
16134 else
16135 # The purpose of the label and of the branching condition is to
16136 # speed up the sed processing (if there are no `@' at all, there
16137 # is no need to browse any of the substitutions).
16138 # These are the two extra sed commands mentioned above.
16139 (echo ':t
16140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16141 if test -z "$ac_sed_cmds"; then
16142 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16143 else
16144 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16146 ac_sed_frag=`expr $ac_sed_frag + 1`
16147 ac_beg=$ac_end
16148 ac_end=`expr $ac_end + $ac_max_sed_lines`
16150 done
16151 if test -z "$ac_sed_cmds"; then
16152 ac_sed_cmds=cat
16154 fi # test -n "$CONFIG_FILES"
16156 _ACEOF
16157 cat >>$CONFIG_STATUS <<\_ACEOF
16158 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16159 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16160 case $ac_file in
16161 - | *:- | *:-:* ) # input from stdin
16162 cat >$tmp/stdin
16163 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16164 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16165 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16166 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16167 * ) ac_file_in=$ac_file.in ;;
16168 esac
16170 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16171 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16172 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16173 X"$ac_file" : 'X\(//\)[^/]' \| \
16174 X"$ac_file" : 'X\(//\)$' \| \
16175 X"$ac_file" : 'X\(/\)' \| \
16176 . : '\(.\)' 2>/dev/null ||
16177 echo X"$ac_file" |
16178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16180 /^X\(\/\/\)$/{ s//\1/; q; }
16181 /^X\(\/\).*/{ s//\1/; q; }
16182 s/.*/./; q'`
16183 { case "$ac_dir" in
16184 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16185 *) as_incr_dir=.;;
16186 esac
16187 as_dummy="$ac_dir"
16188 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16189 case $as_mkdir_dir in
16190 # Skip DOS drivespec
16191 ?:) as_incr_dir=$as_mkdir_dir ;;
16193 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16194 test -d "$as_incr_dir" ||
16195 mkdir "$as_incr_dir" ||
16196 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16197 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16198 { (exit 1); exit 1; }; }
16200 esac
16201 done; }
16203 ac_builddir=.
16205 if test "$ac_dir" != .; then
16206 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16207 # A "../" for each directory in $ac_dir_suffix.
16208 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16209 else
16210 ac_dir_suffix= ac_top_builddir=
16213 case $srcdir in
16214 .) # No --srcdir option. We are building in place.
16215 ac_srcdir=.
16216 if test -z "$ac_top_builddir"; then
16217 ac_top_srcdir=.
16218 else
16219 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16220 fi ;;
16221 [\\/]* | ?:[\\/]* ) # Absolute path.
16222 ac_srcdir=$srcdir$ac_dir_suffix;
16223 ac_top_srcdir=$srcdir ;;
16224 *) # Relative path.
16225 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16226 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16227 esac
16228 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16229 # absolute.
16230 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16231 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16232 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16233 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16236 case $INSTALL in
16237 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16238 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16239 esac
16241 if test x"$ac_file" != x-; then
16242 { echo "$as_me:$LINENO: creating $ac_file" >&5
16243 echo "$as_me: creating $ac_file" >&6;}
16244 rm -f "$ac_file"
16246 # Let's still pretend it is `configure' which instantiates (i.e., don't
16247 # use $as_me), people would be surprised to read:
16248 # /* config.h. Generated by config.status. */
16249 if test x"$ac_file" = x-; then
16250 configure_input=
16251 else
16252 configure_input="$ac_file. "
16254 configure_input=$configure_input"Generated from `echo $ac_file_in |
16255 sed 's,.*/,,'` by configure."
16257 # First look for the input files in the build tree, otherwise in the
16258 # src tree.
16259 ac_file_inputs=`IFS=:
16260 for f in $ac_file_in; do
16261 case $f in
16262 -) echo $tmp/stdin ;;
16263 [\\/$]*)
16264 # Absolute (can't be DOS-style, as IFS=:)
16265 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16266 echo "$as_me: error: cannot find input file: $f" >&2;}
16267 { (exit 1); exit 1; }; }
16268 echo $f;;
16269 *) # Relative
16270 if test -f "$f"; then
16271 # Build tree
16272 echo $f
16273 elif test -f "$srcdir/$f"; then
16274 # Source tree
16275 echo $srcdir/$f
16276 else
16277 # /dev/null tree
16278 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16279 echo "$as_me: error: cannot find input file: $f" >&2;}
16280 { (exit 1); exit 1; }; }
16281 fi;;
16282 esac
16283 done` || { (exit 1); exit 1; }
16284 _ACEOF
16285 cat >>$CONFIG_STATUS <<_ACEOF
16286 sed "$ac_vpsub
16287 $extrasub
16288 _ACEOF
16289 cat >>$CONFIG_STATUS <<\_ACEOF
16291 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16292 s,@configure_input@,$configure_input,;t t
16293 s,@srcdir@,$ac_srcdir,;t t
16294 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16295 s,@top_srcdir@,$ac_top_srcdir,;t t
16296 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16297 s,@builddir@,$ac_builddir,;t t
16298 s,@abs_builddir@,$ac_abs_builddir,;t t
16299 s,@top_builddir@,$ac_top_builddir,;t t
16300 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16301 s,@INSTALL@,$ac_INSTALL,;t t
16302 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16303 rm -f $tmp/stdin
16304 if test x"$ac_file" != x-; then
16305 mv $tmp/out $ac_file
16306 else
16307 cat $tmp/out
16308 rm -f $tmp/out
16311 done
16312 _ACEOF
16313 cat >>$CONFIG_STATUS <<\_ACEOF
16316 # CONFIG_HEADER section.
16319 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16320 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16322 # ac_d sets the value in "#define NAME VALUE" lines.
16323 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16324 ac_dB='[ ].*$,\1#\2'
16325 ac_dC=' '
16326 ac_dD=',;t'
16327 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16328 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16329 ac_uB='$,\1#\2define\3'
16330 ac_uC=' '
16331 ac_uD=',;t'
16333 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16334 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16335 case $ac_file in
16336 - | *:- | *:-:* ) # input from stdin
16337 cat >$tmp/stdin
16338 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16340 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16341 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16342 * ) ac_file_in=$ac_file.in ;;
16343 esac
16345 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16346 echo "$as_me: creating $ac_file" >&6;}
16348 # First look for the input files in the build tree, otherwise in the
16349 # src tree.
16350 ac_file_inputs=`IFS=:
16351 for f in $ac_file_in; do
16352 case $f in
16353 -) echo $tmp/stdin ;;
16354 [\\/$]*)
16355 # Absolute (can't be DOS-style, as IFS=:)
16356 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16357 echo "$as_me: error: cannot find input file: $f" >&2;}
16358 { (exit 1); exit 1; }; }
16359 echo $f;;
16360 *) # Relative
16361 if test -f "$f"; then
16362 # Build tree
16363 echo $f
16364 elif test -f "$srcdir/$f"; then
16365 # Source tree
16366 echo $srcdir/$f
16367 else
16368 # /dev/null tree
16369 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16370 echo "$as_me: error: cannot find input file: $f" >&2;}
16371 { (exit 1); exit 1; }; }
16372 fi;;
16373 esac
16374 done` || { (exit 1); exit 1; }
16375 # Remove the trailing spaces.
16376 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16378 _ACEOF
16380 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16381 # `conftest.undefs', that substitutes the proper values into
16382 # config.h.in to produce config.h. The first handles `#define'
16383 # templates, and the second `#undef' templates.
16384 # And first: Protect against being on the right side of a sed subst in
16385 # config.status. Protect against being in an unquoted here document
16386 # in config.status.
16387 rm -f conftest.defines conftest.undefs
16388 # Using a here document instead of a string reduces the quoting nightmare.
16389 # Putting comments in sed scripts is not portable.
16391 # `end' is used to avoid that the second main sed command (meant for
16392 # 0-ary CPP macros) applies to n-ary macro definitions.
16393 # See the Autoconf documentation for `clear'.
16394 cat >confdef2sed.sed <<\_ACEOF
16395 s/[\\&,]/\\&/g
16396 s,[\\$`],\\&,g
16397 t clear
16398 : clear
16399 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16400 t end
16401 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16402 : end
16403 _ACEOF
16404 # If some macros were called several times there might be several times
16405 # the same #defines, which is useless. Nevertheless, we may not want to
16406 # sort them, since we want the *last* AC-DEFINE to be honored.
16407 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16408 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16409 rm -f confdef2sed.sed
16411 # This sed command replaces #undef with comments. This is necessary, for
16412 # example, in the case of _POSIX_SOURCE, which is predefined and required
16413 # on some systems where configure will not decide to define it.
16414 cat >>conftest.undefs <<\_ACEOF
16415 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16416 _ACEOF
16418 # Break up conftest.defines because some shells have a limit on the size
16419 # of here documents, and old seds have small limits too (100 cmds).
16420 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16421 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16422 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16423 echo ' :' >>$CONFIG_STATUS
16424 rm -f conftest.tail
16425 while grep . conftest.defines >/dev/null
16427 # Write a limited-size here document to $tmp/defines.sed.
16428 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16429 # Speed up: don't consider the non `#define' lines.
16430 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16431 # Work around the forget-to-reset-the-flag bug.
16432 echo 't clr' >>$CONFIG_STATUS
16433 echo ': clr' >>$CONFIG_STATUS
16434 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16435 echo 'CEOF
16436 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16437 rm -f $tmp/in
16438 mv $tmp/out $tmp/in
16439 ' >>$CONFIG_STATUS
16440 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16441 rm -f conftest.defines
16442 mv conftest.tail conftest.defines
16443 done
16444 rm -f conftest.defines
16445 echo ' fi # egrep' >>$CONFIG_STATUS
16446 echo >>$CONFIG_STATUS
16448 # Break up conftest.undefs because some shells have a limit on the size
16449 # of here documents, and old seds have small limits too (100 cmds).
16450 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16451 rm -f conftest.tail
16452 while grep . conftest.undefs >/dev/null
16454 # Write a limited-size here document to $tmp/undefs.sed.
16455 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16456 # Speed up: don't consider the non `#undef'
16457 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16458 # Work around the forget-to-reset-the-flag bug.
16459 echo 't clr' >>$CONFIG_STATUS
16460 echo ': clr' >>$CONFIG_STATUS
16461 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16462 echo 'CEOF
16463 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16464 rm -f $tmp/in
16465 mv $tmp/out $tmp/in
16466 ' >>$CONFIG_STATUS
16467 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16468 rm -f conftest.undefs
16469 mv conftest.tail conftest.undefs
16470 done
16471 rm -f conftest.undefs
16473 cat >>$CONFIG_STATUS <<\_ACEOF
16474 # Let's still pretend it is `configure' which instantiates (i.e., don't
16475 # use $as_me), people would be surprised to read:
16476 # /* config.h. Generated by config.status. */
16477 if test x"$ac_file" = x-; then
16478 echo "/* Generated by configure. */" >$tmp/config.h
16479 else
16480 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16482 cat $tmp/in >>$tmp/config.h
16483 rm -f $tmp/in
16484 if test x"$ac_file" != x-; then
16485 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16486 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16487 echo "$as_me: $ac_file is unchanged" >&6;}
16488 else
16489 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16491 X"$ac_file" : 'X\(//\)[^/]' \| \
16492 X"$ac_file" : 'X\(//\)$' \| \
16493 X"$ac_file" : 'X\(/\)' \| \
16494 . : '\(.\)' 2>/dev/null ||
16495 echo X"$ac_file" |
16496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16498 /^X\(\/\/\)$/{ s//\1/; q; }
16499 /^X\(\/\).*/{ s//\1/; q; }
16500 s/.*/./; q'`
16501 { case "$ac_dir" in
16502 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16503 *) as_incr_dir=.;;
16504 esac
16505 as_dummy="$ac_dir"
16506 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16507 case $as_mkdir_dir in
16508 # Skip DOS drivespec
16509 ?:) as_incr_dir=$as_mkdir_dir ;;
16511 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16512 test -d "$as_incr_dir" ||
16513 mkdir "$as_incr_dir" ||
16514 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16515 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16516 { (exit 1); exit 1; }; }
16518 esac
16519 done; }
16521 rm -f $ac_file
16522 mv $tmp/config.h $ac_file
16524 else
16525 cat $tmp/config.h
16526 rm -f $tmp/config.h
16528 done
16529 _ACEOF
16530 cat >>$CONFIG_STATUS <<\_ACEOF
16533 # CONFIG_COMMANDS section.
16535 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16536 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16537 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16538 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16539 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16540 X"$ac_dest" : 'X\(//\)[^/]' \| \
16541 X"$ac_dest" : 'X\(//\)$' \| \
16542 X"$ac_dest" : 'X\(/\)' \| \
16543 . : '\(.\)' 2>/dev/null ||
16544 echo X"$ac_dest" |
16545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16547 /^X\(\/\/\)$/{ s//\1/; q; }
16548 /^X\(\/\).*/{ s//\1/; q; }
16549 s/.*/./; q'`
16550 ac_builddir=.
16552 if test "$ac_dir" != .; then
16553 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16554 # A "../" for each directory in $ac_dir_suffix.
16555 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16556 else
16557 ac_dir_suffix= ac_top_builddir=
16560 case $srcdir in
16561 .) # No --srcdir option. We are building in place.
16562 ac_srcdir=.
16563 if test -z "$ac_top_builddir"; then
16564 ac_top_srcdir=.
16565 else
16566 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16567 fi ;;
16568 [\\/]* | ?:[\\/]* ) # Absolute path.
16569 ac_srcdir=$srcdir$ac_dir_suffix;
16570 ac_top_srcdir=$srcdir ;;
16571 *) # Relative path.
16572 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16573 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16574 esac
16575 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16576 # absolute.
16577 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16578 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16579 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16580 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16583 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16584 echo "$as_me: executing $ac_dest commands" >&6;}
16585 case $ac_dest in
16586 default-1 ) for ac_file in $CONFIG_FILES; do
16587 # Support "outfile[:infile[:infile...]]"
16588 case "$ac_file" in
16589 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16590 esac
16591 # PO directories have a Makefile.in generated from Makefile.in.in.
16592 case "$ac_file" in */Makefile.in)
16593 # Adjust a relative srcdir.
16594 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16595 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16596 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16597 # In autoconf-2.13 it is called $ac_given_srcdir.
16598 # In autoconf-2.50 it is called $srcdir.
16599 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16600 case "$ac_given_srcdir" in
16601 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16602 /*) top_srcdir="$ac_given_srcdir" ;;
16603 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16604 esac
16605 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16606 rm -f "$ac_dir/POTFILES"
16607 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16608 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16609 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16610 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16613 esac
16614 done ;;
16615 esac
16616 done
16617 _ACEOF
16619 cat >>$CONFIG_STATUS <<\_ACEOF
16621 { (exit 0); exit 0; }
16622 _ACEOF
16623 chmod +x $CONFIG_STATUS
16624 ac_clean_files=$ac_clean_files_save
16627 # configure is writing to config.log, and then calls config.status.
16628 # config.status does its own redirection, appending to config.log.
16629 # Unfortunately, on DOS this fails, as config.log is still kept open
16630 # by configure, so config.status won't be able to write to it; its
16631 # output is simply discarded. So we exec the FD to /dev/null,
16632 # effectively closing config.log, so it can be properly (re)opened and
16633 # appended to by config.status. When coming back to configure, we
16634 # need to make the FD available again.
16635 if test "$no_create" != yes; then
16636 ac_cs_success=:
16637 exec 5>/dev/null
16638 $SHELL $CONFIG_STATUS || ac_cs_success=false
16639 exec 5>>config.log
16640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16641 # would make configure fail if this is the last instruction.
16642 $ac_cs_success || { (exit 1); exit 1; }
16646 echo "
16647 vlc configuration
16648 --------------------
16649 vlc version : ${VERSION}
16650 system : ${SYS}
16651 architecture : ${ARCH}
16652 optimizations : ${OPTIMS}
16653 tuning : ${TUNING}
16654 debug mode : ${DEBUG}
16655 release : ${RELEASE}
16656 cprof/gprof support : ${CPROF}/${GPROF}
16657 need builtin getopt : ${NEED_GETOPT}
16658 built-in modules :${BUILTINS}
16659 plug-in modules :${PLUGINS}
16660 vlc aliases :${ALIASES}
16662 You may now tune Makefile.opts at your convenience, for instance to choose
16663 which modules get compiled as plugins.
16665 To build vlc and its plugins, type \`$VLC_MAKE'.