]> git.sesse.net Git - vlc/blob - configure
BUGS to solve:
[vlc] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
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.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
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
27 fi
28
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
35 fi
36
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; }
61
62
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'`
74
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
82
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=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
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
108 do
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
113
114        ;;
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
120   fi
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; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
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
134          /*)
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
148 ;;
149   esac
150
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 '
161       N
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; }; }
172
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
179 }
180
181
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
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
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'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
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"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
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`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
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}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
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"
298
299
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
319
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'
337
338 ac_prev=
339 for ac_option
340 do
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
346   fi
347
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
363
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 ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
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 ;;
379
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" ;;
388
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'" ;;
401
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 ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
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 ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
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 ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
443
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 ;;
450
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 ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
465   -nfp | --nfp | --nf)
466     # Obsolete; use --without-fp.
467     with_fp=no ;;
468
469   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470   | --no-cr | --no-c | -n)
471     no_create=yes ;;
472
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 ;;
476
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 ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
490
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 ;;
497
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 ;;
504
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 ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
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 ;;
531
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 ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
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 ;;
559
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 ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
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'" ;;
583
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" ;;
592
593   --x)
594     # Obsolete; use --with-x.
595     with_x=yes ;;
596
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 ;;
603
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 ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
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 ;;
625
626   *)
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}
632     ;;
633
634   esac
635 done
636
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; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
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
653
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
657 do
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
665
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
672
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
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
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=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
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; }; }
720   fi
721 fi
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
755
756 #
757 # Report the --help message.
758 #
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.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
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.
769
770 Defaults for the options are specified in brackets.
771
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 \`..']
782
783 _ACEOF
784
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]
791
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'.
796
797 For better control, use the options below.
798
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
813
814   cat <<\_ACEOF
815
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
821 fi
822
823 if test -n "$ac_init_help"; then
824
825   cat <<\_ACEOF
826
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)
876
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
882
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-qte=PATH    Qt Embedded headers and libraries
901     --with-directx=PATH   Win32 DirectX headers and libraries
902     --with-ggi=PATH       path to libggi
903     --with-glide=PATH     path to libglide
904 Audio plugins:
905 Interface plugins:
906     --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)
907     --with-bcbuilder=PATH Borland C++ Builder installation path
908 Misc options:
909   --with-words=endianness set endianness (big or little)
910
911 Some influential environment variables:
912   CC          C compiler command
913   CFLAGS      C compiler flags
914   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
915               nonstandard directory <lib dir>
916   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
917               headers in a nonstandard directory <include dir>
918   CPP         C preprocessor
919
920 Use these variables to override the choices made by `configure' or to help
921 it to find libraries and programs with nonstandard names/locations.
922
923 _ACEOF
924 fi
925
926 if test "$ac_init_help" = "recursive"; then
927   # If there are subdirs, report their specific --help.
928   ac_popdir=`pwd`
929   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
930     test -d $ac_dir || continue
931     ac_builddir=.
932
933 if test "$ac_dir" != .; then
934   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
935   # A "../" for each directory in $ac_dir_suffix.
936   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
937 else
938   ac_dir_suffix= ac_top_builddir=
939 fi
940
941 case $srcdir in
942   .)  # No --srcdir option.  We are building in place.
943     ac_srcdir=.
944     if test -z "$ac_top_builddir"; then
945        ac_top_srcdir=.
946     else
947        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
948     fi ;;
949   [\\/]* | ?:[\\/]* )  # Absolute path.
950     ac_srcdir=$srcdir$ac_dir_suffix;
951     ac_top_srcdir=$srcdir ;;
952   *) # Relative path.
953     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
954     ac_top_srcdir=$ac_top_builddir$srcdir ;;
955 esac
956 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
957 # absolute.
958 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
959 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
960 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
961 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
962
963     cd $ac_dir
964     # Check for guested configure; otherwise get Cygnus style configure.
965     if test -f $ac_srcdir/configure.gnu; then
966       echo
967       $SHELL $ac_srcdir/configure.gnu  --help=recursive
968     elif test -f $ac_srcdir/configure; then
969       echo
970       $SHELL $ac_srcdir/configure  --help=recursive
971     elif test -f $ac_srcdir/configure.ac ||
972            test -f $ac_srcdir/configure.in; then
973       echo
974       $ac_configure --help
975     else
976       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977     fi
978     cd $ac_popdir
979   done
980 fi
981
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984   cat <<\_ACEOF
985
986 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
987 Free Software Foundation, Inc.
988 This configure script is free software; the Free Software Foundation
989 gives unlimited permission to copy, distribute and modify it.
990 _ACEOF
991   exit 0
992 fi
993 exec 5>config.log
994 cat >&5 <<_ACEOF
995 This file contains any messages produced by compilers while
996 running configure, to aid debugging if configure makes a mistake.
997
998 It was created by $as_me, which was
999 generated by GNU Autoconf 2.53.  Invocation command line was
1000
1001   $ $0 $@
1002
1003 _ACEOF
1004 {
1005 cat <<_ASUNAME
1006 ## --------- ##
1007 ## Platform. ##
1008 ## --------- ##
1009
1010 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1015
1016 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1018
1019 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1020 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1021 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1023 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1024 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1025 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1026
1027 _ASUNAME
1028
1029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 for as_dir in $PATH
1031 do
1032   IFS=$as_save_IFS
1033   test -z "$as_dir" && as_dir=.
1034   echo "PATH: $as_dir"
1035 done
1036
1037 } >&5
1038
1039 cat >&5 <<_ACEOF
1040
1041
1042 ## ----------- ##
1043 ## Core tests. ##
1044 ## ----------- ##
1045
1046 _ACEOF
1047
1048
1049 # Keep a trace of the command line.
1050 # Strip out --no-create and --no-recursion so they do not pile up.
1051 # Also quote any args containing shell meta-characters.
1052 ac_configure_args=
1053 ac_sep=
1054 for ac_arg
1055 do
1056   case $ac_arg in
1057   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058   | --no-cr | --no-c | -n ) continue ;;
1059   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061     continue ;;
1062   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064   esac
1065   case " $ac_configure_args " in
1066     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1067     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1068        ac_sep=" " ;;
1069   esac
1070   # Get rid of the leading space.
1071 done
1072
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log.  We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close' the trap.
1078 trap 'exit_status=$?
1079   # Save into config.log some information that might help in debugging.
1080   {
1081     echo
1082     cat <<\_ASBOX
1083 ## ---------------- ##
1084 ## Cache variables. ##
1085 ## ---------------- ##
1086 _ASBOX
1087     echo
1088     # The following way of writing the cache mishandles newlines in values,
1089 {
1090   (set) 2>&1 |
1091     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1092     *ac_space=\ *)
1093       sed -n \
1094         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1096       ;;
1097     *)
1098       sed -n \
1099         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1100       ;;
1101     esac;
1102 }
1103     echo
1104     if test -s confdefs.h; then
1105       cat <<\_ASBOX
1106 ## ----------- ##
1107 ## confdefs.h. ##
1108 ## ----------- ##
1109 _ASBOX
1110       echo
1111       sed "/^$/d" confdefs.h
1112       echo
1113     fi
1114     test "$ac_signal" != 0 &&
1115       echo "$as_me: caught signal $ac_signal"
1116     echo "$as_me: exit $exit_status"
1117   } >&5
1118   rm -f core core.* *.core &&
1119   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1120     exit $exit_status
1121      ' 0
1122 for ac_signal in 1 2 13 15; do
1123   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1124 done
1125 ac_signal=0
1126
1127 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1128 rm -rf conftest* confdefs.h
1129 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1130 echo >confdefs.h
1131
1132 # Predefined preprocessor variables.
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_NAME "$PACKAGE_NAME"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1141 _ACEOF
1142
1143
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1146 _ACEOF
1147
1148
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_STRING "$PACKAGE_STRING"
1151 _ACEOF
1152
1153
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1156 _ACEOF
1157
1158
1159 # Let the site file select an alternate cache file if it wants to.
1160 # Prefer explicitly selected file to automatically selected ones.
1161 if test -z "$CONFIG_SITE"; then
1162   if test "x$prefix" != xNONE; then
1163     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1164   else
1165     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1166   fi
1167 fi
1168 for ac_site_file in $CONFIG_SITE; do
1169   if test -r "$ac_site_file"; then
1170     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1171 echo "$as_me: loading site script $ac_site_file" >&6;}
1172     sed 's/^/| /' "$ac_site_file" >&5
1173     . "$ac_site_file"
1174   fi
1175 done
1176
1177 if test -r "$cache_file"; then
1178   # Some versions of bash will fail to source /dev/null (special
1179   # files actually), so we avoid doing that.
1180   if test -f "$cache_file"; then
1181     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1182 echo "$as_me: loading cache $cache_file" >&6;}
1183     case $cache_file in
1184       [\\/]* | ?:[\\/]* ) . $cache_file;;
1185       *)                      . ./$cache_file;;
1186     esac
1187   fi
1188 else
1189   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1190 echo "$as_me: creating cache $cache_file" >&6;}
1191   >$cache_file
1192 fi
1193
1194 # Check that the precious variables saved in the cache have kept the same
1195 # value.
1196 ac_cache_corrupted=false
1197 for ac_var in `(set) 2>&1 |
1198                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1199   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1200   eval ac_new_set=\$ac_env_${ac_var}_set
1201   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1202   eval ac_new_val="\$ac_env_${ac_var}_value"
1203   case $ac_old_set,$ac_new_set in
1204     set,)
1205       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1206 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1207       ac_cache_corrupted=: ;;
1208     ,set)
1209       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1210 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1211       ac_cache_corrupted=: ;;
1212     ,);;
1213     *)
1214       if test "x$ac_old_val" != "x$ac_new_val"; then
1215         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1216 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1217         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1218 echo "$as_me:   former value:  $ac_old_val" >&2;}
1219         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1220 echo "$as_me:   current value: $ac_new_val" >&2;}
1221         ac_cache_corrupted=:
1222       fi;;
1223   esac
1224   # Pass precious variables to config.status.
1225   if test "$ac_new_set" = set; then
1226     case $ac_new_val in
1227     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1229     *) ac_arg=$ac_var=$ac_new_val ;;
1230     esac
1231     case " $ac_configure_args " in
1232       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1233       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1234     esac
1235   fi
1236 done
1237 if $ac_cache_corrupted; then
1238   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1239 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1240   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1241 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1242    { (exit 1); exit 1; }; }
1243 fi
1244
1245 ac_ext=c
1246 ac_cpp='$CPP $CPPFLAGS'
1247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268 ac_config_headers="$ac_config_headers include/defs.h"
1269
1270 ac_aux_dir=
1271 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1272   if test -f $ac_dir/install-sh; then
1273     ac_aux_dir=$ac_dir
1274     ac_install_sh="$ac_aux_dir/install-sh -c"
1275     break
1276   elif test -f $ac_dir/install.sh; then
1277     ac_aux_dir=$ac_dir
1278     ac_install_sh="$ac_aux_dir/install.sh -c"
1279     break
1280   elif test -f $ac_dir/shtool; then
1281     ac_aux_dir=$ac_dir
1282     ac_install_sh="$ac_aux_dir/shtool install -c"
1283     break
1284   fi
1285 done
1286 if test -z "$ac_aux_dir"; then
1287   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1288 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1289    { (exit 1); exit 1; }; }
1290 fi
1291 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1292 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1293 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1294
1295 # Make sure we can run config.sub.
1296 $ac_config_sub sun4 >/dev/null 2>&1 ||
1297   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1298 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1299    { (exit 1); exit 1; }; }
1300
1301 echo "$as_me:$LINENO: checking build system type" >&5
1302 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1303 if test "${ac_cv_build+set}" = set; then
1304   echo $ECHO_N "(cached) $ECHO_C" >&6
1305 else
1306   ac_cv_build_alias=$build_alias
1307 test -z "$ac_cv_build_alias" &&
1308   ac_cv_build_alias=`$ac_config_guess`
1309 test -z "$ac_cv_build_alias" &&
1310   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1311 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1312    { (exit 1); exit 1; }; }
1313 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1314   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1315 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1316    { (exit 1); exit 1; }; }
1317
1318 fi
1319 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1320 echo "${ECHO_T}$ac_cv_build" >&6
1321 build=$ac_cv_build
1322 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1323 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1324 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1325
1326
1327 echo "$as_me:$LINENO: checking host system type" >&5
1328 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1329 if test "${ac_cv_host+set}" = set; then
1330   echo $ECHO_N "(cached) $ECHO_C" >&6
1331 else
1332   ac_cv_host_alias=$host_alias
1333 test -z "$ac_cv_host_alias" &&
1334   ac_cv_host_alias=$ac_cv_build_alias
1335 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1336   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1337 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1338    { (exit 1); exit 1; }; }
1339
1340 fi
1341 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1342 echo "${ECHO_T}$ac_cv_host" >&6
1343 host=$ac_cv_host
1344 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1345 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1346 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1347
1348
1349 echo "$as_me:$LINENO: checking target system type" >&5
1350 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1351 if test "${ac_cv_target+set}" = set; then
1352   echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354   ac_cv_target_alias=$target_alias
1355 test "x$ac_cv_target_alias" = "x" &&
1356   ac_cv_target_alias=$ac_cv_host_alias
1357 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1358   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1359 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1360    { (exit 1); exit 1; }; }
1361
1362 fi
1363 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1364 echo "${ECHO_T}$ac_cv_target" >&6
1365 target=$ac_cv_target
1366 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1367 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1368 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1369
1370
1371 # The aliases save the names the user supplied, while $host etc.
1372 # will get canonicalized.
1373 test -n "$target_alias" &&
1374   test "$program_prefix$program_suffix$program_transform_name" = \
1375     NONENONEs,x,x, &&
1376   program_prefix=${target_alias}-
1377
1378 PACKAGE="vlc"
1379 VERSION="0.4.4"
1380 CODENAME=Ourumov
1381
1382 save_CFLAGS="${CFLAGS}"
1383 save_CPPFLAGS="${CPPFLAGS}"
1384 save_LDFLAGS="${LDFLAGS}"
1385
1386 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1387 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1388 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1389 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1390   echo $ECHO_N "(cached) $ECHO_C" >&6
1391 else
1392   cat >conftest.make <<\_ACEOF
1393 all:
1394         @echo 'ac_maketemp="${MAKE}"'
1395 _ACEOF
1396 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1397 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1398 if test -n "$ac_maketemp"; then
1399   eval ac_cv_prog_make_${ac_make}_set=yes
1400 else
1401   eval ac_cv_prog_make_${ac_make}_set=no
1402 fi
1403 rm -f conftest.make
1404 fi
1405 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1406   echo "$as_me:$LINENO: result: yes" >&5
1407 echo "${ECHO_T}yes" >&6
1408   SET_MAKE=
1409 else
1410   echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412   SET_MAKE="MAKE=${MAKE-make}"
1413 fi
1414
1415 ac_ext=c
1416 ac_cpp='$CPP $CPPFLAGS'
1417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1420 if test -n "$ac_tool_prefix"; then
1421   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1422 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_prog_CC+set}" = set; then
1426   echo $ECHO_N "(cached) $ECHO_C" >&6
1427 else
1428   if test -n "$CC"; then
1429   ac_cv_prog_CC="$CC" # Let the user override the test.
1430 else
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434   IFS=$as_save_IFS
1435   test -z "$as_dir" && as_dir=.
1436   for ac_exec_ext in '' $ac_executable_extensions; do
1437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440     break 2
1441   fi
1442 done
1443 done
1444
1445 fi
1446 fi
1447 CC=$ac_cv_prog_CC
1448 if test -n "$CC"; then
1449   echo "$as_me:$LINENO: result: $CC" >&5
1450 echo "${ECHO_T}$CC" >&6
1451 else
1452   echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1454 fi
1455
1456 fi
1457 if test -z "$ac_cv_prog_CC"; then
1458   ac_ct_CC=$CC
1459   # Extract the first word of "gcc", so it can be a program name with args.
1460 set dummy gcc; ac_word=$2
1461 echo "$as_me:$LINENO: checking for $ac_word" >&5
1462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1464   echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466   if test -n "$ac_ct_CC"; then
1467   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1468 else
1469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 for as_dir in $PATH
1471 do
1472   IFS=$as_save_IFS
1473   test -z "$as_dir" && as_dir=.
1474   for ac_exec_ext in '' $ac_executable_extensions; do
1475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1476     ac_cv_prog_ac_ct_CC="gcc"
1477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1478     break 2
1479   fi
1480 done
1481 done
1482
1483 fi
1484 fi
1485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1486 if test -n "$ac_ct_CC"; then
1487   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1488 echo "${ECHO_T}$ac_ct_CC" >&6
1489 else
1490   echo "$as_me:$LINENO: result: no" >&5
1491 echo "${ECHO_T}no" >&6
1492 fi
1493
1494   CC=$ac_ct_CC
1495 else
1496   CC="$ac_cv_prog_CC"
1497 fi
1498
1499 if test -z "$CC"; then
1500   if test -n "$ac_tool_prefix"; then
1501   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1502 set dummy ${ac_tool_prefix}cc; ac_word=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_CC+set}" = set; then
1506   echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508   if test -n "$CC"; then
1509   ac_cv_prog_CC="$CC" # Let the user override the test.
1510 else
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1513 do
1514   IFS=$as_save_IFS
1515   test -z "$as_dir" && as_dir=.
1516   for ac_exec_ext in '' $ac_executable_extensions; do
1517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518     ac_cv_prog_CC="${ac_tool_prefix}cc"
1519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520     break 2
1521   fi
1522 done
1523 done
1524
1525 fi
1526 fi
1527 CC=$ac_cv_prog_CC
1528 if test -n "$CC"; then
1529   echo "$as_me:$LINENO: result: $CC" >&5
1530 echo "${ECHO_T}$CC" >&6
1531 else
1532   echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1534 fi
1535
1536 fi
1537 if test -z "$ac_cv_prog_CC"; then
1538   ac_ct_CC=$CC
1539   # Extract the first word of "cc", so it can be a program name with args.
1540 set dummy cc; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1544   echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546   if test -n "$ac_ct_CC"; then
1547   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1548 else
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552   IFS=$as_save_IFS
1553   test -z "$as_dir" && as_dir=.
1554   for ac_exec_ext in '' $ac_executable_extensions; do
1555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556     ac_cv_prog_ac_ct_CC="cc"
1557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558     break 2
1559   fi
1560 done
1561 done
1562
1563 fi
1564 fi
1565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1566 if test -n "$ac_ct_CC"; then
1567   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1568 echo "${ECHO_T}$ac_ct_CC" >&6
1569 else
1570   echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1572 fi
1573
1574   CC=$ac_ct_CC
1575 else
1576   CC="$ac_cv_prog_CC"
1577 fi
1578
1579 fi
1580 if test -z "$CC"; then
1581   # Extract the first word of "cc", so it can be a program name with args.
1582 set dummy cc; ac_word=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_CC+set}" = set; then
1586   echo $ECHO_N "(cached) $ECHO_C" >&6
1587 else
1588   if test -n "$CC"; then
1589   ac_cv_prog_CC="$CC" # Let the user override the test.
1590 else
1591   ac_prog_rejected=no
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595   IFS=$as_save_IFS
1596   test -z "$as_dir" && as_dir=.
1597   for ac_exec_ext in '' $ac_executable_extensions; do
1598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1600        ac_prog_rejected=yes
1601        continue
1602      fi
1603     ac_cv_prog_CC="cc"
1604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605     break 2
1606   fi
1607 done
1608 done
1609
1610 if test $ac_prog_rejected = yes; then
1611   # We found a bogon in the path, so make sure we never use it.
1612   set dummy $ac_cv_prog_CC
1613   shift
1614   if test $# != 0; then
1615     # We chose a different compiler from the bogus one.
1616     # However, it has the same basename, so the bogon will be chosen
1617     # first if we set CC to just the basename; use the full file name.
1618     shift
1619     set dummy "$as_dir/$ac_word" ${1+"$@"}
1620     shift
1621     ac_cv_prog_CC="$@"
1622   fi
1623 fi
1624 fi
1625 fi
1626 CC=$ac_cv_prog_CC
1627 if test -n "$CC"; then
1628   echo "$as_me:$LINENO: result: $CC" >&5
1629 echo "${ECHO_T}$CC" >&6
1630 else
1631   echo "$as_me:$LINENO: result: no" >&5
1632 echo "${ECHO_T}no" >&6
1633 fi
1634
1635 fi
1636 if test -z "$CC"; then
1637   if test -n "$ac_tool_prefix"; then
1638   for ac_prog in cl
1639   do
1640     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1642 echo "$as_me:$LINENO: checking for $ac_word" >&5
1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644 if test "${ac_cv_prog_CC+set}" = set; then
1645   echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647   if test -n "$CC"; then
1648   ac_cv_prog_CC="$CC" # Let the user override the test.
1649 else
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1652 do
1653   IFS=$as_save_IFS
1654   test -z "$as_dir" && as_dir=.
1655   for ac_exec_ext in '' $ac_executable_extensions; do
1656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659     break 2
1660   fi
1661 done
1662 done
1663
1664 fi
1665 fi
1666 CC=$ac_cv_prog_CC
1667 if test -n "$CC"; then
1668   echo "$as_me:$LINENO: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1670 else
1671   echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1673 fi
1674
1675     test -n "$CC" && break
1676   done
1677 fi
1678 if test -z "$CC"; then
1679   ac_ct_CC=$CC
1680   for ac_prog in cl
1681 do
1682   # Extract the first word of "$ac_prog", so it can be a program name with args.
1683 set dummy $ac_prog; ac_word=$2
1684 echo "$as_me:$LINENO: checking for $ac_word" >&5
1685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1687   echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689   if test -n "$ac_ct_CC"; then
1690   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1691 else
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 for as_dir in $PATH
1694 do
1695   IFS=$as_save_IFS
1696   test -z "$as_dir" && as_dir=.
1697   for ac_exec_ext in '' $ac_executable_extensions; do
1698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699     ac_cv_prog_ac_ct_CC="$ac_prog"
1700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701     break 2
1702   fi
1703 done
1704 done
1705
1706 fi
1707 fi
1708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1709 if test -n "$ac_ct_CC"; then
1710   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1711 echo "${ECHO_T}$ac_ct_CC" >&6
1712 else
1713   echo "$as_me:$LINENO: result: no" >&5
1714 echo "${ECHO_T}no" >&6
1715 fi
1716
1717   test -n "$ac_ct_CC" && break
1718 done
1719
1720   CC=$ac_ct_CC
1721 fi
1722
1723 fi
1724
1725
1726 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1727 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1728    { (exit 1); exit 1; }; }
1729
1730 # Provide some information about the compiler.
1731 echo "$as_me:$LINENO:" \
1732      "checking for C compiler version" >&5
1733 ac_compiler=`set X $ac_compile; echo $2`
1734 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1735   (eval $ac_compiler --version </dev/null >&5) 2>&5
1736   ac_status=$?
1737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738   (exit $ac_status); }
1739 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1740   (eval $ac_compiler -v </dev/null >&5) 2>&5
1741   ac_status=$?
1742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743   (exit $ac_status); }
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1745   (eval $ac_compiler -V </dev/null >&5) 2>&5
1746   ac_status=$?
1747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748   (exit $ac_status); }
1749
1750 cat >conftest.$ac_ext <<_ACEOF
1751 #line $LINENO "configure"
1752 #include "confdefs.h"
1753
1754 #ifdef F77_DUMMY_MAIN
1755 #  ifdef __cplusplus
1756      extern "C"
1757 #  endif
1758    int F77_DUMMY_MAIN() { return 1; }
1759 #endif
1760 int
1761 main ()
1762 {
1763
1764   ;
1765   return 0;
1766 }
1767 _ACEOF
1768 ac_clean_files_save=$ac_clean_files
1769 ac_clean_files="$ac_clean_files a.out a.exe"
1770 # Try to create an executable without -o first, disregard a.out.
1771 # It will help us diagnose broken compilers, and finding out an intuition
1772 # of exeext.
1773 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1774 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1775 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1776 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1777   (eval $ac_link_default) 2>&5
1778   ac_status=$?
1779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780   (exit $ac_status); }; then
1781   # Find the output, starting from the most likely.  This scheme is
1782 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1783 # resort.
1784
1785 # Be careful to initialize this variable, since it used to be cached.
1786 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1787 ac_cv_exeext=
1788 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1789                 ls a.out conftest 2>/dev/null;
1790                 ls a.* conftest.* 2>/dev/null`; do
1791   case $ac_file in
1792     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1793     a.out ) # We found the default executable, but exeext='' is most
1794             # certainly right.
1795             break;;
1796     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1797           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1798           export ac_cv_exeext
1799           break;;
1800     * ) break;;
1801   esac
1802 done
1803 else
1804   echo "$as_me: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1806 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1807 echo "$as_me: error: C compiler cannot create executables" >&2;}
1808    { (exit 77); exit 77; }; }
1809 fi
1810
1811 ac_exeext=$ac_cv_exeext
1812 echo "$as_me:$LINENO: result: $ac_file" >&5
1813 echo "${ECHO_T}$ac_file" >&6
1814
1815 # Check the compiler produces executables we can run.  If not, either
1816 # the compiler is broken, or we cross compile.
1817 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1818 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1819 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1820 # If not cross compiling, check that we can run a simple program.
1821 if test "$cross_compiling" != yes; then
1822   if { ac_try='./$ac_file'
1823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1824   (eval $ac_try) 2>&5
1825   ac_status=$?
1826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827   (exit $ac_status); }; }; then
1828     cross_compiling=no
1829   else
1830     if test "$cross_compiling" = maybe; then
1831         cross_compiling=yes
1832     else
1833         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1834 If you meant to cross compile, use \`--host'." >&5
1835 echo "$as_me: error: cannot run C compiled programs.
1836 If you meant to cross compile, use \`--host'." >&2;}
1837    { (exit 1); exit 1; }; }
1838     fi
1839   fi
1840 fi
1841 echo "$as_me:$LINENO: result: yes" >&5
1842 echo "${ECHO_T}yes" >&6
1843
1844 rm -f a.out a.exe conftest$ac_cv_exeext
1845 ac_clean_files=$ac_clean_files_save
1846 # Check the compiler produces executables we can run.  If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1849 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1850 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1851 echo "${ECHO_T}$cross_compiling" >&6
1852
1853 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1854 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1856   (eval $ac_link) 2>&5
1857   ac_status=$?
1858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859   (exit $ac_status); }; then
1860   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1861 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1862 # work properly (i.e., refer to `conftest.exe'), while it won't with
1863 # `rm'.
1864 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1865   case $ac_file in
1866     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1867     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1868           export ac_cv_exeext
1869           break;;
1870     * ) break;;
1871   esac
1872 done
1873 else
1874   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1875 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1876    { (exit 1); exit 1; }; }
1877 fi
1878
1879 rm -f conftest$ac_cv_exeext
1880 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1881 echo "${ECHO_T}$ac_cv_exeext" >&6
1882
1883 rm -f conftest.$ac_ext
1884 EXEEXT=$ac_cv_exeext
1885 ac_exeext=$EXEEXT
1886 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1887 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1888 if test "${ac_cv_objext+set}" = set; then
1889   echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891   cat >conftest.$ac_ext <<_ACEOF
1892 #line $LINENO "configure"
1893 #include "confdefs.h"
1894
1895 #ifdef F77_DUMMY_MAIN
1896 #  ifdef __cplusplus
1897      extern "C"
1898 #  endif
1899    int F77_DUMMY_MAIN() { return 1; }
1900 #endif
1901 int
1902 main ()
1903 {
1904
1905   ;
1906   return 0;
1907 }
1908 _ACEOF
1909 rm -f conftest.o conftest.obj
1910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1911   (eval $ac_compile) 2>&5
1912   ac_status=$?
1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914   (exit $ac_status); }; then
1915   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1916   case $ac_file in
1917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1918     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1919        break;;
1920   esac
1921 done
1922 else
1923   echo "$as_me: failed program was:" >&5
1924 cat conftest.$ac_ext >&5
1925 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1926 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1927    { (exit 1); exit 1; }; }
1928 fi
1929
1930 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1931 fi
1932 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1933 echo "${ECHO_T}$ac_cv_objext" >&6
1934 OBJEXT=$ac_cv_objext
1935 ac_objext=$OBJEXT
1936 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1937 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1938 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   cat >conftest.$ac_ext <<_ACEOF
1942 #line $LINENO "configure"
1943 #include "confdefs.h"
1944
1945 #ifdef F77_DUMMY_MAIN
1946 #  ifdef __cplusplus
1947      extern "C"
1948 #  endif
1949    int F77_DUMMY_MAIN() { return 1; }
1950 #endif
1951 int
1952 main ()
1953 {
1954 #ifndef __GNUC__
1955        choke me
1956 #endif
1957
1958   ;
1959   return 0;
1960 }
1961 _ACEOF
1962 rm -f conftest.$ac_objext
1963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1964   (eval $ac_compile) 2>&5
1965   ac_status=$?
1966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967   (exit $ac_status); } &&
1968          { ac_try='test -s conftest.$ac_objext'
1969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1970   (eval $ac_try) 2>&5
1971   ac_status=$?
1972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973   (exit $ac_status); }; }; then
1974   ac_compiler_gnu=yes
1975 else
1976   echo "$as_me: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1978 ac_compiler_gnu=no
1979 fi
1980 rm -f conftest.$ac_objext conftest.$ac_ext
1981 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1982
1983 fi
1984 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1985 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1986 GCC=`test $ac_compiler_gnu = yes && echo yes`
1987 ac_test_CFLAGS=${CFLAGS+set}
1988 ac_save_CFLAGS=$CFLAGS
1989 CFLAGS="-g"
1990 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1991 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1992 if test "${ac_cv_prog_cc_g+set}" = set; then
1993   echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995   cat >conftest.$ac_ext <<_ACEOF
1996 #line $LINENO "configure"
1997 #include "confdefs.h"
1998
1999 #ifdef F77_DUMMY_MAIN
2000 #  ifdef __cplusplus
2001      extern "C"
2002 #  endif
2003    int F77_DUMMY_MAIN() { return 1; }
2004 #endif
2005 int
2006 main ()
2007 {
2008
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 rm -f conftest.$ac_objext
2014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2015   (eval $ac_compile) 2>&5
2016   ac_status=$?
2017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018   (exit $ac_status); } &&
2019          { ac_try='test -s conftest.$ac_objext'
2020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021   (eval $ac_try) 2>&5
2022   ac_status=$?
2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024   (exit $ac_status); }; }; then
2025   ac_cv_prog_cc_g=yes
2026 else
2027   echo "$as_me: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2029 ac_cv_prog_cc_g=no
2030 fi
2031 rm -f conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2034 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2035 if test "$ac_test_CFLAGS" = set; then
2036   CFLAGS=$ac_save_CFLAGS
2037 elif test $ac_cv_prog_cc_g = yes; then
2038   if test "$GCC" = yes; then
2039     CFLAGS="-g -O2"
2040   else
2041     CFLAGS="-g"
2042   fi
2043 else
2044   if test "$GCC" = yes; then
2045     CFLAGS="-O2"
2046   else
2047     CFLAGS=
2048   fi
2049 fi
2050 # Some people use a C++ compiler to compile C.  Since we use `exit',
2051 # in C++ we need to declare it.  In case someone uses the same compiler
2052 # for both compiling C and C++ we need to have the C++ compiler decide
2053 # the declaration of exit, since it's the most demanding environment.
2054 cat >conftest.$ac_ext <<_ACEOF
2055 #ifndef __cplusplus
2056   choke me
2057 #endif
2058 _ACEOF
2059 rm -f conftest.$ac_objext
2060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2061   (eval $ac_compile) 2>&5
2062   ac_status=$?
2063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064   (exit $ac_status); } &&
2065          { ac_try='test -s conftest.$ac_objext'
2066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067   (eval $ac_try) 2>&5
2068   ac_status=$?
2069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070   (exit $ac_status); }; }; then
2071   for ac_declaration in \
2072    ''\
2073    '#include <stdlib.h>' \
2074    'extern "C" void std::exit (int) throw (); using std::exit;' \
2075    'extern "C" void std::exit (int); using std::exit;' \
2076    'extern "C" void exit (int) throw ();' \
2077    'extern "C" void exit (int);' \
2078    'void exit (int);'
2079 do
2080   cat >conftest.$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2082 #include "confdefs.h"
2083 #include <stdlib.h>
2084 $ac_declaration
2085 #ifdef F77_DUMMY_MAIN
2086 #  ifdef __cplusplus
2087      extern "C"
2088 #  endif
2089    int F77_DUMMY_MAIN() { return 1; }
2090 #endif
2091 int
2092 main ()
2093 {
2094 exit (42);
2095   ;
2096   return 0;
2097 }
2098 _ACEOF
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101   (eval $ac_compile) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); } &&
2105          { ac_try='test -s conftest.$ac_objext'
2106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107   (eval $ac_try) 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }; }; then
2111   :
2112 else
2113   echo "$as_me: failed program was:" >&5
2114 cat conftest.$ac_ext >&5
2115 continue
2116 fi
2117 rm -f conftest.$ac_objext conftest.$ac_ext
2118   cat >conftest.$ac_ext <<_ACEOF
2119 #line $LINENO "configure"
2120 #include "confdefs.h"
2121 $ac_declaration
2122 #ifdef F77_DUMMY_MAIN
2123 #  ifdef __cplusplus
2124      extern "C"
2125 #  endif
2126    int F77_DUMMY_MAIN() { return 1; }
2127 #endif
2128 int
2129 main ()
2130 {
2131 exit (42);
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 rm -f conftest.$ac_objext
2137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138   (eval $ac_compile) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); } &&
2142          { ac_try='test -s conftest.$ac_objext'
2143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144   (eval $ac_try) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }; }; then
2148   break
2149 else
2150   echo "$as_me: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2152 fi
2153 rm -f conftest.$ac_objext conftest.$ac_ext
2154 done
2155 rm -f conftest*
2156 if test -n "$ac_declaration"; then
2157   echo '#ifdef __cplusplus' >>confdefs.h
2158   echo $ac_declaration      >>confdefs.h
2159   echo '#endif'             >>confdefs.h
2160 fi
2161
2162 else
2163   echo "$as_me: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2165 fi
2166 rm -f conftest.$ac_objext conftest.$ac_ext
2167 ac_ext=c
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172
2173 ac_ext=c
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2179 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2180 # On Suns, sometimes $CPP names a directory.
2181 if test -n "$CPP" && test -d "$CPP"; then
2182   CPP=
2183 fi
2184 if test -z "$CPP"; then
2185   if test "${ac_cv_prog_CPP+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188       # Double quotes because CPP needs to be expanded
2189     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2190     do
2191       ac_preproc_ok=false
2192 for ac_c_preproc_warn_flag in '' yes
2193 do
2194   # Use a header file that comes with gcc, so configuring glibc
2195   # with a fresh cross-compiler works.
2196   # On the NeXT, cc -E runs the code through the compiler's parser,
2197   # not just through cpp. "Syntax error" is here to catch this case.
2198   cat >conftest.$ac_ext <<_ACEOF
2199 #line $LINENO "configure"
2200 #include "confdefs.h"
2201 #include <assert.h>
2202                      Syntax error
2203 _ACEOF
2204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2206   ac_status=$?
2207   egrep -v '^ *\+' conftest.er1 >conftest.err
2208   rm -f conftest.er1
2209   cat conftest.err >&5
2210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211   (exit $ac_status); } >/dev/null; then
2212   if test -s conftest.err; then
2213     ac_cpp_err=$ac_c_preproc_warn_flag
2214   else
2215     ac_cpp_err=
2216   fi
2217 else
2218   ac_cpp_err=yes
2219 fi
2220 if test -z "$ac_cpp_err"; then
2221   :
2222 else
2223   echo "$as_me: failed program was:" >&5
2224   cat conftest.$ac_ext >&5
2225   # Broken: fails on valid input.
2226 continue
2227 fi
2228 rm -f conftest.err conftest.$ac_ext
2229
2230   # OK, works on sane cases.  Now check whether non-existent headers
2231   # can be detected and how.
2232   cat >conftest.$ac_ext <<_ACEOF
2233 #line $LINENO "configure"
2234 #include "confdefs.h"
2235 #include <ac_nonexistent.h>
2236 _ACEOF
2237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2238   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2239   ac_status=$?
2240   egrep -v '^ *\+' conftest.er1 >conftest.err
2241   rm -f conftest.er1
2242   cat conftest.err >&5
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); } >/dev/null; then
2245   if test -s conftest.err; then
2246     ac_cpp_err=$ac_c_preproc_warn_flag
2247   else
2248     ac_cpp_err=
2249   fi
2250 else
2251   ac_cpp_err=yes
2252 fi
2253 if test -z "$ac_cpp_err"; then
2254   # Broken: success on invalid input.
2255 continue
2256 else
2257   echo "$as_me: failed program was:" >&5
2258   cat conftest.$ac_ext >&5
2259   # Passes both tests.
2260 ac_preproc_ok=:
2261 break
2262 fi
2263 rm -f conftest.err conftest.$ac_ext
2264
2265 done
2266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2267 rm -f conftest.err conftest.$ac_ext
2268 if $ac_preproc_ok; then
2269   break
2270 fi
2271
2272     done
2273     ac_cv_prog_CPP=$CPP
2274
2275 fi
2276   CPP=$ac_cv_prog_CPP
2277 else
2278   ac_cv_prog_CPP=$CPP
2279 fi
2280 echo "$as_me:$LINENO: result: $CPP" >&5
2281 echo "${ECHO_T}$CPP" >&6
2282 ac_preproc_ok=false
2283 for ac_c_preproc_warn_flag in '' yes
2284 do
2285   # Use a header file that comes with gcc, so configuring glibc
2286   # with a fresh cross-compiler works.
2287   # On the NeXT, cc -E runs the code through the compiler's parser,
2288   # not just through cpp. "Syntax error" is here to catch this case.
2289   cat >conftest.$ac_ext <<_ACEOF
2290 #line $LINENO "configure"
2291 #include "confdefs.h"
2292 #include <assert.h>
2293                      Syntax error
2294 _ACEOF
2295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2296   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2297   ac_status=$?
2298   egrep -v '^ *\+' conftest.er1 >conftest.err
2299   rm -f conftest.er1
2300   cat conftest.err >&5
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } >/dev/null; then
2303   if test -s conftest.err; then
2304     ac_cpp_err=$ac_c_preproc_warn_flag
2305   else
2306     ac_cpp_err=
2307   fi
2308 else
2309   ac_cpp_err=yes
2310 fi
2311 if test -z "$ac_cpp_err"; then
2312   :
2313 else
2314   echo "$as_me: failed program was:" >&5
2315   cat conftest.$ac_ext >&5
2316   # Broken: fails on valid input.
2317 continue
2318 fi
2319 rm -f conftest.err conftest.$ac_ext
2320
2321   # OK, works on sane cases.  Now check whether non-existent headers
2322   # can be detected and how.
2323   cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 #include "confdefs.h"
2326 #include <ac_nonexistent.h>
2327 _ACEOF
2328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2329   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2330   ac_status=$?
2331   egrep -v '^ *\+' conftest.er1 >conftest.err
2332   rm -f conftest.er1
2333   cat conftest.err >&5
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); } >/dev/null; then
2336   if test -s conftest.err; then
2337     ac_cpp_err=$ac_c_preproc_warn_flag
2338   else
2339     ac_cpp_err=
2340   fi
2341 else
2342   ac_cpp_err=yes
2343 fi
2344 if test -z "$ac_cpp_err"; then
2345   # Broken: success on invalid input.
2346 continue
2347 else
2348   echo "$as_me: failed program was:" >&5
2349   cat conftest.$ac_ext >&5
2350   # Passes both tests.
2351 ac_preproc_ok=:
2352 break
2353 fi
2354 rm -f conftest.err conftest.$ac_ext
2355
2356 done
2357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2358 rm -f conftest.err conftest.$ac_ext
2359 if $ac_preproc_ok; then
2360   :
2361 else
2362   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2363 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2364    { (exit 1); exit 1; }; }
2365 fi
2366
2367 ac_ext=c
2368 ac_cpp='$CPP $CPPFLAGS'
2369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372
2373
2374 if test -n "$ac_tool_prefix"; then
2375   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2377 echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2379 if test "${ac_cv_prog_RANLIB+set}" = set; then
2380   echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382   if test -n "$RANLIB"; then
2383   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2387 do
2388   IFS=$as_save_IFS
2389   test -z "$as_dir" && as_dir=.
2390   for ac_exec_ext in '' $ac_executable_extensions; do
2391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2392     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394     break 2
2395   fi
2396 done
2397 done
2398
2399 fi
2400 fi
2401 RANLIB=$ac_cv_prog_RANLIB
2402 if test -n "$RANLIB"; then
2403   echo "$as_me:$LINENO: result: $RANLIB" >&5
2404 echo "${ECHO_T}$RANLIB" >&6
2405 else
2406   echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2408 fi
2409
2410 fi
2411 if test -z "$ac_cv_prog_RANLIB"; then
2412   ac_ct_RANLIB=$RANLIB
2413   # Extract the first word of "ranlib", so it can be a program name with args.
2414 set dummy ranlib; ac_word=$2
2415 echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2418   echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420   if test -n "$ac_ct_RANLIB"; then
2421   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426   IFS=$as_save_IFS
2427   test -z "$as_dir" && as_dir=.
2428   for ac_exec_ext in '' $ac_executable_extensions; do
2429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2430     ac_cv_prog_ac_ct_RANLIB="ranlib"
2431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432     break 2
2433   fi
2434 done
2435 done
2436
2437   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2438 fi
2439 fi
2440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2441 if test -n "$ac_ct_RANLIB"; then
2442   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2443 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2444 else
2445   echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6
2447 fi
2448
2449   RANLIB=$ac_ct_RANLIB
2450 else
2451   RANLIB="$ac_cv_prog_RANLIB"
2452 fi
2453
2454 if test -n "$ac_tool_prefix"; then
2455   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2456 set dummy ${ac_tool_prefix}strip; ac_word=$2
2457 echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2459 if test "${ac_cv_prog_STRIP+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   if test -n "$STRIP"; then
2463   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468   IFS=$as_save_IFS
2469   test -z "$as_dir" && as_dir=.
2470   for ac_exec_ext in '' $ac_executable_extensions; do
2471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474     break 2
2475   fi
2476 done
2477 done
2478
2479 fi
2480 fi
2481 STRIP=$ac_cv_prog_STRIP
2482 if test -n "$STRIP"; then
2483   echo "$as_me:$LINENO: result: $STRIP" >&5
2484 echo "${ECHO_T}$STRIP" >&6
2485 else
2486   echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6
2488 fi
2489
2490 fi
2491 if test -z "$ac_cv_prog_STRIP"; then
2492   ac_ct_STRIP=$STRIP
2493   # Extract the first word of "strip", so it can be a program name with args.
2494 set dummy strip; ac_word=$2
2495 echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2497 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   if test -n "$ac_ct_STRIP"; then
2501   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2502 else
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 for as_dir in $PATH
2505 do
2506   IFS=$as_save_IFS
2507   test -z "$as_dir" && as_dir=.
2508   for ac_exec_ext in '' $ac_executable_extensions; do
2509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2510     ac_cv_prog_ac_ct_STRIP="strip"
2511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512     break 2
2513   fi
2514 done
2515 done
2516
2517   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2518 fi
2519 fi
2520 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2521 if test -n "$ac_ct_STRIP"; then
2522   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2523 echo "${ECHO_T}$ac_ct_STRIP" >&6
2524 else
2525   echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2527 fi
2528
2529   STRIP=$ac_ct_STRIP
2530 else
2531   STRIP="$ac_cv_prog_STRIP"
2532 fi
2533
2534
2535 # Extract the first word of "gmake", so it can be a program name with args.
2536 set dummy gmake; ac_word=$2
2537 echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2539 if test "${ac_cv_path_GMAKE+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   case $GMAKE in
2543   [\\/]* | ?:[\\/]*)
2544   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
2545   ;;
2546   *)
2547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552   for ac_exec_ext in '' $ac_executable_extensions; do
2553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
2555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559 done
2560
2561   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
2562   ;;
2563 esac
2564 fi
2565 GMAKE=$ac_cv_path_GMAKE
2566
2567 if test -n "$GMAKE"; then
2568   echo "$as_me:$LINENO: result: $GMAKE" >&5
2569 echo "${ECHO_T}$GMAKE" >&6
2570 else
2571   echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6
2573 fi
2574
2575 if test "x$GMAKE" = "xno"; then
2576   echo "$as_me:$LINENO: checking whether GNU make is installed" >&5
2577 echo $ECHO_N "checking whether GNU make is installed... $ECHO_C" >&6
2578 if test "${ac_cv_gmake+set}" = set; then
2579   echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581   if make --version | grep -q -i gnu; then
2582          ac_cv_gmake="yes"
2583        else
2584          echo "This software needs you to install GNU make to compile properly."
2585          echo "You can get it from http://www.gnu.org/."
2586          exit
2587        fi
2588 fi
2589 echo "$as_me:$LINENO: result: $ac_cv_gmake" >&5
2590 echo "${ECHO_T}$ac_cv_gmake" >&6
2591   VLC_MAKE="make"
2592 else
2593   VLC_MAKE="gmake"
2594 fi
2595
2596 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
2597
2598
2599 cat >>confdefs.h <<_ACEOF
2600 #define VLC_PACKAGE "$PACKAGE"
2601 _ACEOF
2602
2603
2604 cat >>confdefs.h <<_ACEOF
2605 #define VLC_VERSION "$VERSION"
2606 _ACEOF
2607
2608 if test -n "$ac_tool_prefix"; then
2609   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2611 echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613 if test "${ac_cv_prog_RANLIB+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   if test -n "$RANLIB"; then
2617   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622   IFS=$as_save_IFS
2623   test -z "$as_dir" && as_dir=.
2624   for ac_exec_ext in '' $ac_executable_extensions; do
2625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628     break 2
2629   fi
2630 done
2631 done
2632
2633 fi
2634 fi
2635 RANLIB=$ac_cv_prog_RANLIB
2636 if test -n "$RANLIB"; then
2637   echo "$as_me:$LINENO: result: $RANLIB" >&5
2638 echo "${ECHO_T}$RANLIB" >&6
2639 else
2640   echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6
2642 fi
2643
2644 fi
2645 if test -z "$ac_cv_prog_RANLIB"; then
2646   ac_ct_RANLIB=$RANLIB
2647   # Extract the first word of "ranlib", so it can be a program name with args.
2648 set dummy ranlib; ac_word=$2
2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   if test -n "$ac_ct_RANLIB"; then
2655   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662   for ac_exec_ext in '' $ac_executable_extensions; do
2663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664     ac_cv_prog_ac_ct_RANLIB="ranlib"
2665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666     break 2
2667   fi
2668 done
2669 done
2670
2671   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2672 fi
2673 fi
2674 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2675 if test -n "$ac_ct_RANLIB"; then
2676   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2677 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2678 else
2679   echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6
2681 fi
2682
2683   RANLIB=$ac_ct_RANLIB
2684 else
2685   RANLIB="$ac_cv_prog_RANLIB"
2686 fi
2687
2688
2689
2690         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2691 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2692 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2693   echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695   ac_check_lib_save_LIBS=$LIBS
2696 LIBS="-lcposix  $LIBS"
2697 cat >conftest.$ac_ext <<_ACEOF
2698 #line $LINENO "configure"
2699 #include "confdefs.h"
2700
2701 /* Override any gcc2 internal prototype to avoid an error.  */
2702 #ifdef __cplusplus
2703 extern "C"
2704 #endif
2705 /* We use char because int might match the return type of a gcc2
2706    builtin and then its argument prototype would still apply.  */
2707 char strerror ();
2708 #ifdef F77_DUMMY_MAIN
2709 #  ifdef __cplusplus
2710      extern "C"
2711 #  endif
2712    int F77_DUMMY_MAIN() { return 1; }
2713 #endif
2714 int
2715 main ()
2716 {
2717 strerror ();
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 rm -f conftest.$ac_objext conftest$ac_exeext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2724   (eval $ac_link) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } &&
2728          { ac_try='test -s conftest$ac_exeext'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; }; then
2734   ac_cv_lib_cposix_strerror=yes
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2738 ac_cv_lib_cposix_strerror=no
2739 fi
2740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2741 LIBS=$ac_check_lib_save_LIBS
2742 fi
2743 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2744 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2745 if test $ac_cv_lib_cposix_strerror = yes; then
2746   LIBS="$LIBS -lcposix"
2747 fi
2748
2749
2750
2751
2752 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2753 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2754 if test "${ac_cv_header_stdc+set}" = set; then
2755   echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757   cat >conftest.$ac_ext <<_ACEOF
2758 #line $LINENO "configure"
2759 #include "confdefs.h"
2760 #include <stdlib.h>
2761 #include <stdarg.h>
2762 #include <string.h>
2763 #include <float.h>
2764
2765 _ACEOF
2766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2767   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2768   ac_status=$?
2769   egrep -v '^ *\+' conftest.er1 >conftest.err
2770   rm -f conftest.er1
2771   cat conftest.err >&5
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); } >/dev/null; then
2774   if test -s conftest.err; then
2775     ac_cpp_err=$ac_c_preproc_warn_flag
2776   else
2777     ac_cpp_err=
2778   fi
2779 else
2780   ac_cpp_err=yes
2781 fi
2782 if test -z "$ac_cpp_err"; then
2783   ac_cv_header_stdc=yes
2784 else
2785   echo "$as_me: failed program was:" >&5
2786   cat conftest.$ac_ext >&5
2787   ac_cv_header_stdc=no
2788 fi
2789 rm -f conftest.err conftest.$ac_ext
2790
2791 if test $ac_cv_header_stdc = yes; then
2792   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2793   cat >conftest.$ac_ext <<_ACEOF
2794 #line $LINENO "configure"
2795 #include "confdefs.h"
2796 #include <string.h>
2797
2798 _ACEOF
2799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2800   egrep "memchr" >/dev/null 2>&1; then
2801   :
2802 else
2803   ac_cv_header_stdc=no
2804 fi
2805 rm -f conftest*
2806
2807 fi
2808
2809 if test $ac_cv_header_stdc = yes; then
2810   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2811   cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2813 #include "confdefs.h"
2814 #include <stdlib.h>
2815
2816 _ACEOF
2817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2818   egrep "free" >/dev/null 2>&1; then
2819   :
2820 else
2821   ac_cv_header_stdc=no
2822 fi
2823 rm -f conftest*
2824
2825 fi
2826
2827 if test $ac_cv_header_stdc = yes; then
2828   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2829   if test "$cross_compiling" = yes; then
2830   :
2831 else
2832   cat >conftest.$ac_ext <<_ACEOF
2833 #line $LINENO "configure"
2834 #include "confdefs.h"
2835 #include <ctype.h>
2836 #if ((' ' & 0x0FF) == 0x020)
2837 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2838 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2839 #else
2840 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2841                      || ('j' <= (c) && (c) <= 'r') \
2842                      || ('s' <= (c) && (c) <= 'z'))
2843 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2844 #endif
2845
2846 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2847 int
2848 main ()
2849 {
2850   int i;
2851   for (i = 0; i < 256; i++)
2852     if (XOR (islower (i), ISLOWER (i))
2853         || toupper (i) != TOUPPER (i))
2854       exit(2);
2855   exit (0);
2856 }
2857 _ACEOF
2858 rm -f conftest$ac_exeext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2860   (eval $ac_link) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; }; then
2869   :
2870 else
2871   echo "$as_me: program exited with status $ac_status" >&5
2872 echo "$as_me: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2874 ( exit $ac_status )
2875 ac_cv_header_stdc=no
2876 fi
2877 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2878 fi
2879 fi
2880 fi
2881 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2882 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2883 if test $ac_cv_header_stdc = yes; then
2884
2885 cat >>confdefs.h <<\_ACEOF
2886 #define STDC_HEADERS 1
2887 _ACEOF
2888
2889 fi
2890
2891 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2892 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2893 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2894   echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896   ac_cv_prog_cc_stdc=no
2897 ac_save_CC=$CC
2898 cat >conftest.$ac_ext <<_ACEOF
2899 #line $LINENO "configure"
2900 #include "confdefs.h"
2901 #include <stdarg.h>
2902 #include <stdio.h>
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2906 struct buf { int x; };
2907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908 static char *e (p, i)
2909      char **p;
2910      int i;
2911 {
2912   return p[i];
2913 }
2914 static char *f (char * (*g) (char **, int), char **p, ...)
2915 {
2916   char *s;
2917   va_list v;
2918   va_start (v,p);
2919   s = g (p, va_arg (v,int));
2920   va_end (v);
2921   return s;
2922 }
2923 int test (int i, double x);
2924 struct s1 {int (*f) (int a);};
2925 struct s2 {int (*f) (double a);};
2926 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2927 int argc;
2928 char **argv;
2929 #ifdef F77_DUMMY_MAIN
2930 #  ifdef __cplusplus
2931      extern "C"
2932 #  endif
2933    int F77_DUMMY_MAIN() { return 1; }
2934 #endif
2935 int
2936 main ()
2937 {
2938 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 # Don't try gcc -ansi; that turns off useful extensions and
2944 # breaks some systems' header files.
2945 # AIX                   -qlanglvl=ansi
2946 # Ultrix and OSF/1      -std1
2947 # HP-UX 10.20 and later -Ae
2948 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2949 # SVR4                  -Xc -D__EXTENSIONS__
2950 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2951 do
2952   CC="$ac_save_CC $ac_arg"
2953   rm -f conftest.$ac_objext
2954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2955   (eval $ac_compile) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); } &&
2959          { ac_try='test -s conftest.$ac_objext'
2960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961   (eval $ac_try) 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; }; then
2965   ac_cv_prog_cc_stdc=$ac_arg
2966 break
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2970 fi
2971 rm -f conftest.$ac_objext
2972 done
2973 rm -f conftest.$ac_ext conftest.$ac_objext
2974 CC=$ac_save_CC
2975
2976 fi
2977
2978 case "x$ac_cv_prog_cc_stdc" in
2979   x|xno)
2980     echo "$as_me:$LINENO: result: none needed" >&5
2981 echo "${ECHO_T}none needed" >&6 ;;
2982   *)
2983     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2984 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2985     CC="$CC $ac_cv_prog_cc_stdc" ;;
2986 esac
2987
2988 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2989 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2990 if test "${ac_cv_c_const+set}" = set; then
2991   echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993   cat >conftest.$ac_ext <<_ACEOF
2994 #line $LINENO "configure"
2995 #include "confdefs.h"
2996
2997 #ifdef F77_DUMMY_MAIN
2998 #  ifdef __cplusplus
2999      extern "C"
3000 #  endif
3001    int F77_DUMMY_MAIN() { return 1; }
3002 #endif
3003 int
3004 main ()
3005 {
3006 /* FIXME: Include the comments suggested by Paul. */
3007 #ifndef __cplusplus
3008   /* Ultrix mips cc rejects this.  */
3009   typedef int charset[2];
3010   const charset x;
3011   /* SunOS 4.1.1 cc rejects this.  */
3012   char const *const *ccp;
3013   char **p;
3014   /* NEC SVR4.0.2 mips cc rejects this.  */
3015   struct point {int x, y;};
3016   static struct point const zero = {0,0};
3017   /* AIX XL C 1.02.0.0 rejects this.
3018      It does not let you subtract one const X* pointer from another in
3019      an arm of an if-expression whose if-part is not a constant
3020      expression */
3021   const char *g = "string";
3022   ccp = &g + (g ? g-g : 0);
3023   /* HPUX 7.0 cc rejects these. */
3024   ++ccp;
3025   p = (char**) ccp;
3026   ccp = (char const *const *) p;
3027   { /* SCO 3.2v4 cc rejects this.  */
3028     char *t;
3029     char const *s = 0 ? (char *) 0 : (char const *) 0;
3030
3031     *t++ = 0;
3032   }
3033   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3034     int x[] = {25, 17};
3035     const int *foo = &x[0];
3036     ++foo;
3037   }
3038   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3039     typedef const int *iptr;
3040     iptr p = 0;
3041     ++p;
3042   }
3043   { /* AIX XL C 1.02.0.0 rejects this saying
3044        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3045     struct s { int j; const int *ap[3]; };
3046     struct s *b; b->j = 5;
3047   }
3048   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3049     const int foo = 10;
3050   }
3051 #endif
3052
3053   ;
3054   return 0;
3055 }
3056 _ACEOF
3057 rm -f conftest.$ac_objext
3058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3059   (eval $ac_compile) 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } &&
3063          { ac_try='test -s conftest.$ac_objext'
3064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065   (eval $ac_try) 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; }; then
3069   ac_cv_c_const=yes
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3073 ac_cv_c_const=no
3074 fi
3075 rm -f conftest.$ac_objext conftest.$ac_ext
3076 fi
3077 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3078 echo "${ECHO_T}$ac_cv_c_const" >&6
3079 if test $ac_cv_c_const = no; then
3080
3081 cat >>confdefs.h <<\_ACEOF
3082 #define const
3083 _ACEOF
3084
3085 fi
3086
3087 echo "$as_me:$LINENO: checking for inline" >&5
3088 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3089 if test "${ac_cv_c_inline+set}" = set; then
3090   echo $ECHO_N "(cached) $ECHO_C" >&6
3091 else
3092   ac_cv_c_inline=no
3093 for ac_kw in inline __inline__ __inline; do
3094   cat >conftest.$ac_ext <<_ACEOF
3095 #line $LINENO "configure"
3096 #include "confdefs.h"
3097 #ifndef __cplusplus
3098 static $ac_kw int static_foo () {return 0; }
3099 $ac_kw int foo () {return 0; }
3100 #endif
3101
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105   (eval $ac_compile) 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } &&
3109          { ac_try='test -s conftest.$ac_objext'
3110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111   (eval $ac_try) 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; }; then
3115   ac_cv_c_inline=$ac_kw; break
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3119 fi
3120 rm -f conftest.$ac_objext conftest.$ac_ext
3121 done
3122
3123 fi
3124 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3125 echo "${ECHO_T}$ac_cv_c_inline" >&6
3126 case $ac_cv_c_inline in
3127   inline | yes) ;;
3128   no)
3129 cat >>confdefs.h <<\_ACEOF
3130 #define inline
3131 _ACEOF
3132  ;;
3133   *)  cat >>confdefs.h <<_ACEOF
3134 #define inline $ac_cv_c_inline
3135 _ACEOF
3136  ;;
3137 esac
3138
3139 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3150                   inttypes.h stdint.h unistd.h
3151 do
3152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3153 echo "$as_me:$LINENO: checking for $ac_header" >&5
3154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   cat >conftest.$ac_ext <<_ACEOF
3159 #line $LINENO "configure"
3160 #include "confdefs.h"
3161 $ac_includes_default
3162
3163 #include <$ac_header>
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167   (eval $ac_compile) 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } &&
3171          { ac_try='test -s conftest.$ac_objext'
3172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173   (eval $ac_try) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; }; then
3177   eval "$as_ac_Header=yes"
3178 else
3179   echo "$as_me: failed program was:" >&5
3180 cat conftest.$ac_ext >&5
3181 eval "$as_ac_Header=no"
3182 fi
3183 rm -f conftest.$ac_objext conftest.$ac_ext
3184 fi
3185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3188   cat >>confdefs.h <<_ACEOF
3189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3190 _ACEOF
3191
3192 fi
3193
3194 done
3195
3196
3197 echo "$as_me:$LINENO: checking for off_t" >&5
3198 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3199 if test "${ac_cv_type_off_t+set}" = set; then
3200   echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202   cat >conftest.$ac_ext <<_ACEOF
3203 #line $LINENO "configure"
3204 #include "confdefs.h"
3205 $ac_includes_default
3206 #ifdef F77_DUMMY_MAIN
3207 #  ifdef __cplusplus
3208      extern "C"
3209 #  endif
3210    int F77_DUMMY_MAIN() { return 1; }
3211 #endif
3212 int
3213 main ()
3214 {
3215 if ((off_t *) 0)
3216   return 0;
3217 if (sizeof (off_t))
3218   return 0;
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225   (eval $ac_compile) 2>&5
3226   ac_status=$?
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } &&
3229          { ac_try='test -s conftest.$ac_objext'
3230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231   (eval $ac_try) 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }; }; then
3235   ac_cv_type_off_t=yes
3236 else
3237   echo "$as_me: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3239 ac_cv_type_off_t=no
3240 fi
3241 rm -f conftest.$ac_objext conftest.$ac_ext
3242 fi
3243 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3244 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3245 if test $ac_cv_type_off_t = yes; then
3246   :
3247 else
3248
3249 cat >>confdefs.h <<_ACEOF
3250 #define off_t long
3251 _ACEOF
3252
3253 fi
3254
3255 echo "$as_me:$LINENO: checking for size_t" >&5
3256 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3257 if test "${ac_cv_type_size_t+set}" = set; then
3258   echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260   cat >conftest.$ac_ext <<_ACEOF
3261 #line $LINENO "configure"
3262 #include "confdefs.h"
3263 $ac_includes_default
3264 #ifdef F77_DUMMY_MAIN
3265 #  ifdef __cplusplus
3266      extern "C"
3267 #  endif
3268    int F77_DUMMY_MAIN() { return 1; }
3269 #endif
3270 int
3271 main ()
3272 {
3273 if ((size_t *) 0)
3274   return 0;
3275 if (sizeof (size_t))
3276   return 0;
3277   ;
3278   return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283   (eval $ac_compile) 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } &&
3287          { ac_try='test -s conftest.$ac_objext'
3288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289   (eval $ac_try) 2>&5
3290   ac_status=$?
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); }; }; then
3293   ac_cv_type_size_t=yes
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 cat conftest.$ac_ext >&5
3297 ac_cv_type_size_t=no
3298 fi
3299 rm -f conftest.$ac_objext conftest.$ac_ext
3300 fi
3301 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3302 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3303 if test $ac_cv_type_size_t = yes; then
3304   :
3305 else
3306
3307 cat >>confdefs.h <<_ACEOF
3308 #define size_t unsigned
3309 _ACEOF
3310
3311 fi
3312
3313 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3314 # for constant arguments.  Useless!
3315 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3316 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3317 if test "${ac_cv_working_alloca_h+set}" = set; then
3318   echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320   cat >conftest.$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3322 #include "confdefs.h"
3323 #include <alloca.h>
3324 #ifdef F77_DUMMY_MAIN
3325 #  ifdef __cplusplus
3326      extern "C"
3327 #  endif
3328    int F77_DUMMY_MAIN() { return 1; }
3329 #endif
3330 int
3331 main ()
3332 {
3333 char *p = (char *) alloca (2 * sizeof (int));
3334   ;
3335   return 0;
3336 }
3337 _ACEOF
3338 rm -f conftest.$ac_objext conftest$ac_exeext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3340   (eval $ac_link) 2>&5
3341   ac_status=$?
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); } &&
3344          { ac_try='test -s conftest$ac_exeext'
3345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346   (eval $ac_try) 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }; }; then
3350   ac_cv_working_alloca_h=yes
3351 else
3352   echo "$as_me: failed program was:" >&5
3353 cat conftest.$ac_ext >&5
3354 ac_cv_working_alloca_h=no
3355 fi
3356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3357 fi
3358 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3359 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3360 if test $ac_cv_working_alloca_h = yes; then
3361
3362 cat >>confdefs.h <<\_ACEOF
3363 #define HAVE_ALLOCA_H 1
3364 _ACEOF
3365
3366 fi
3367
3368 echo "$as_me:$LINENO: checking for alloca" >&5
3369 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3370 if test "${ac_cv_func_alloca_works+set}" = set; then
3371   echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373   cat >conftest.$ac_ext <<_ACEOF
3374 #line $LINENO "configure"
3375 #include "confdefs.h"
3376 #ifdef __GNUC__
3377 # define alloca __builtin_alloca
3378 #else
3379 # ifdef _MSC_VER
3380 #  include <malloc.h>
3381 #  define alloca _alloca
3382 # else
3383 #  if HAVE_ALLOCA_H
3384 #   include <alloca.h>
3385 #  else
3386 #   ifdef _AIX
3387  #pragma alloca
3388 #   else
3389 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3390 char *alloca ();
3391 #    endif
3392 #   endif
3393 #  endif
3394 # endif
3395 #endif
3396
3397 #ifdef F77_DUMMY_MAIN
3398 #  ifdef __cplusplus
3399      extern "C"
3400 #  endif
3401    int F77_DUMMY_MAIN() { return 1; }
3402 #endif
3403 int
3404 main ()
3405 {
3406 char *p = (char *) alloca (1);
3407   ;
3408   return 0;
3409 }
3410 _ACEOF
3411 rm -f conftest.$ac_objext conftest$ac_exeext
3412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3413   (eval $ac_link) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); } &&
3417          { ac_try='test -s conftest$ac_exeext'
3418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419   (eval $ac_try) 2>&5
3420   ac_status=$?
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); }; }; then
3423   ac_cv_func_alloca_works=yes
3424 else
3425   echo "$as_me: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3427 ac_cv_func_alloca_works=no
3428 fi
3429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3430 fi
3431 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3432 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3433
3434 if test $ac_cv_func_alloca_works = yes; then
3435
3436 cat >>confdefs.h <<\_ACEOF
3437 #define HAVE_ALLOCA 1
3438 _ACEOF
3439
3440 else
3441   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3442 # that cause trouble.  Some versions do not even contain alloca or
3443 # contain a buggy version.  If you still want to use their alloca,
3444 # use ar to extract alloca.o from them instead of compiling alloca.c.
3445
3446 ALLOCA=alloca.$ac_objext
3447
3448 cat >>confdefs.h <<\_ACEOF
3449 #define C_ALLOCA 1
3450 _ACEOF
3451
3452
3453 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3454 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3455 if test "${ac_cv_os_cray+set}" = set; then
3456   echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458   cat >conftest.$ac_ext <<_ACEOF
3459 #line $LINENO "configure"
3460 #include "confdefs.h"
3461 #if defined(CRAY) && ! defined(CRAY2)
3462 webecray
3463 #else
3464 wenotbecray
3465 #endif
3466
3467 _ACEOF
3468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3469   egrep "webecray" >/dev/null 2>&1; then
3470   ac_cv_os_cray=yes
3471 else
3472   ac_cv_os_cray=no
3473 fi
3474 rm -f conftest*
3475
3476 fi
3477 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3478 echo "${ECHO_T}$ac_cv_os_cray" >&6
3479 if test $ac_cv_os_cray = yes; then
3480   for ac_func in _getb67 GETB67 getb67; do
3481     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3482 echo "$as_me:$LINENO: checking for $ac_func" >&5
3483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3484 if eval "test \"\${$as_ac_var+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 /* System header to define __stub macros and hopefully few prototypes,
3491     which can conflict with char $ac_func (); below.  */
3492 #include <assert.h>
3493 /* Override any gcc2 internal prototype to avoid an error.  */
3494 #ifdef __cplusplus
3495 extern "C"
3496 #endif
3497 /* We use char because int might match the return type of a gcc2
3498    builtin and then its argument prototype would still apply.  */
3499 char $ac_func ();
3500 char (*f) ();
3501
3502 #ifdef F77_DUMMY_MAIN
3503 #  ifdef __cplusplus
3504      extern "C"
3505 #  endif
3506    int F77_DUMMY_MAIN() { return 1; }
3507 #endif
3508 int
3509 main ()
3510 {
3511 /* The GNU C library defines this for functions which it implements
3512     to always fail with ENOSYS.  Some functions are actually named
3513     something starting with __ and the normal name is an alias.  */
3514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3515 choke me
3516 #else
3517 f = $ac_func;
3518 #endif
3519
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 rm -f conftest.$ac_objext conftest$ac_exeext
3525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3526   (eval $ac_link) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); } &&
3530          { ac_try='test -s conftest$ac_exeext'
3531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532   (eval $ac_try) 2>&5
3533   ac_status=$?
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); }; }; then
3536   eval "$as_ac_var=yes"
3537 else
3538   echo "$as_me: failed program was:" >&5
3539 cat conftest.$ac_ext >&5
3540 eval "$as_ac_var=no"
3541 fi
3542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3543 fi
3544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3546 if test `eval echo '${'$as_ac_var'}'` = yes; then
3547
3548 cat >>confdefs.h <<_ACEOF
3549 #define CRAY_STACKSEG_END $ac_func
3550 _ACEOF
3551
3552     break
3553 fi
3554
3555   done
3556 fi
3557
3558 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3559 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3560 if test "${ac_cv_c_stack_direction+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   if test "$cross_compiling" = yes; then
3564   ac_cv_c_stack_direction=0
3565 else
3566   cat >conftest.$ac_ext <<_ACEOF
3567 #line $LINENO "configure"
3568 #include "confdefs.h"
3569 int
3570 find_stack_direction ()
3571 {
3572   static char *addr = 0;
3573   auto char dummy;
3574   if (addr == 0)
3575     {
3576       addr = &dummy;
3577       return find_stack_direction ();
3578     }
3579   else
3580     return (&dummy > addr) ? 1 : -1;
3581 }
3582
3583 int
3584 main ()
3585 {
3586   exit (find_stack_direction () < 0);
3587 }
3588 _ACEOF
3589 rm -f conftest$ac_exeext
3590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3591   (eval $ac_link) 2>&5
3592   ac_status=$?
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596   (eval $ac_try) 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); }; }; then
3600   ac_cv_c_stack_direction=1
3601 else
3602   echo "$as_me: program exited with status $ac_status" >&5
3603 echo "$as_me: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3605 ( exit $ac_status )
3606 ac_cv_c_stack_direction=-1
3607 fi
3608 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3609 fi
3610 fi
3611 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3612 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3613
3614 cat >>confdefs.h <<_ACEOF
3615 #define STACK_DIRECTION $ac_cv_c_stack_direction
3616 _ACEOF
3617
3618
3619 fi
3620
3621
3622
3623 for ac_header in stdlib.h unistd.h
3624 do
3625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3627   echo "$as_me:$LINENO: checking for $ac_header" >&5
3628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 fi
3632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3634 else
3635   # Is the header compilable?
3636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3638 cat >conftest.$ac_ext <<_ACEOF
3639 #line $LINENO "configure"
3640 #include "confdefs.h"
3641 $ac_includes_default
3642 #include <$ac_header>
3643 _ACEOF
3644 rm -f conftest.$ac_objext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646   (eval $ac_compile) 2>&5
3647   ac_status=$?
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); } &&
3650          { ac_try='test -s conftest.$ac_objext'
3651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652   (eval $ac_try) 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; }; then
3656   ac_header_compiler=yes
3657 else
3658   echo "$as_me: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3660 ac_header_compiler=no
3661 fi
3662 rm -f conftest.$ac_objext conftest.$ac_ext
3663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3664 echo "${ECHO_T}$ac_header_compiler" >&6
3665
3666 # Is the header present?
3667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3669 cat >conftest.$ac_ext <<_ACEOF
3670 #line $LINENO "configure"
3671 #include "confdefs.h"
3672 #include <$ac_header>
3673 _ACEOF
3674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3675   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3676   ac_status=$?
3677   egrep -v '^ *\+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } >/dev/null; then
3682   if test -s conftest.err; then
3683     ac_cpp_err=$ac_c_preproc_warn_flag
3684   else
3685     ac_cpp_err=
3686   fi
3687 else
3688   ac_cpp_err=yes
3689 fi
3690 if test -z "$ac_cpp_err"; then
3691   ac_header_preproc=yes
3692 else
3693   echo "$as_me: failed program was:" >&5
3694   cat conftest.$ac_ext >&5
3695   ac_header_preproc=no
3696 fi
3697 rm -f conftest.err conftest.$ac_ext
3698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3699 echo "${ECHO_T}$ac_header_preproc" >&6
3700
3701 # So?  What about this header?
3702 case $ac_header_compiler:$ac_header_preproc in
3703   yes:no )
3704     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3708   no:yes )
3709     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3711     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3715 esac
3716 echo "$as_me:$LINENO: checking for $ac_header" >&5
3717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   eval "$as_ac_Header=$ac_header_preproc"
3722 fi
3723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3725
3726 fi
3727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3728   cat >>confdefs.h <<_ACEOF
3729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3730 _ACEOF
3731
3732 fi
3733
3734 done
3735
3736
3737 for ac_func in getpagesize
3738 do
3739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3740 echo "$as_me:$LINENO: checking for $ac_func" >&5
3741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3742 if eval "test \"\${$as_ac_var+set}\" = set"; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   cat >conftest.$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3747 #include "confdefs.h"
3748 /* System header to define __stub macros and hopefully few prototypes,
3749     which can conflict with char $ac_func (); below.  */
3750 #include <assert.h>
3751 /* Override any gcc2 internal prototype to avoid an error.  */
3752 #ifdef __cplusplus
3753 extern "C"
3754 #endif
3755 /* We use char because int might match the return type of a gcc2
3756    builtin and then its argument prototype would still apply.  */
3757 char $ac_func ();
3758 char (*f) ();
3759
3760 #ifdef F77_DUMMY_MAIN
3761 #  ifdef __cplusplus
3762      extern "C"
3763 #  endif
3764    int F77_DUMMY_MAIN() { return 1; }
3765 #endif
3766 int
3767 main ()
3768 {
3769 /* The GNU C library defines this for functions which it implements
3770     to always fail with ENOSYS.  Some functions are actually named
3771     something starting with __ and the normal name is an alias.  */
3772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3773 choke me
3774 #else
3775 f = $ac_func;
3776 #endif
3777
3778   ;
3779   return 0;
3780 }
3781 _ACEOF
3782 rm -f conftest.$ac_objext conftest$ac_exeext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3784   (eval $ac_link) 2>&5
3785   ac_status=$?
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); } &&
3788          { ac_try='test -s conftest$ac_exeext'
3789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790   (eval $ac_try) 2>&5
3791   ac_status=$?
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); }; }; then
3794   eval "$as_ac_var=yes"
3795 else
3796   echo "$as_me: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3798 eval "$as_ac_var=no"
3799 fi
3800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3801 fi
3802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3804 if test `eval echo '${'$as_ac_var'}'` = yes; then
3805   cat >>confdefs.h <<_ACEOF
3806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3807 _ACEOF
3808
3809 fi
3810 done
3811
3812 echo "$as_me:$LINENO: checking for working mmap" >&5
3813 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3814 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   if test "$cross_compiling" = yes; then
3818   ac_cv_func_mmap_fixed_mapped=no
3819 else
3820   cat >conftest.$ac_ext <<_ACEOF
3821 #line $LINENO "configure"
3822 #include "confdefs.h"
3823 $ac_includes_default
3824 /* malloc might have been renamed as rpl_malloc. */
3825 #undef malloc
3826
3827 /* Thanks to Mike Haertel and Jim Avera for this test.
3828    Here is a matrix of mmap possibilities:
3829         mmap private not fixed
3830         mmap private fixed at somewhere currently unmapped
3831         mmap private fixed at somewhere already mapped
3832         mmap shared not fixed
3833         mmap shared fixed at somewhere currently unmapped
3834         mmap shared fixed at somewhere already mapped
3835    For private mappings, we should verify that changes cannot be read()
3836    back from the file, nor mmap's back from the file at a different
3837    address.  (There have been systems where private was not correctly
3838    implemented like the infamous i386 svr4.0, and systems where the
3839    VM page cache was not coherent with the file system buffer cache
3840    like early versions of FreeBSD and possibly contemporary NetBSD.)
3841    For shared mappings, we should conversely verify that changes get
3842    propagated back to all the places they're supposed to be.
3843
3844    Grep wants private fixed already mapped.
3845    The main things grep needs to know about mmap are:
3846    * does it exist and is it safe to write into the mmap'd area
3847    * how to use it (BSD variants)  */
3848
3849 #include <fcntl.h>
3850 #include <sys/mman.h>
3851
3852 #if !STDC_HEADERS && !HAVE_STDLIB_H
3853 char *malloc ();
3854 #endif
3855
3856 /* This mess was copied from the GNU getpagesize.h.  */
3857 #if !HAVE_GETPAGESIZE
3858 /* Assume that all systems that can run configure have sys/param.h.  */
3859 # if !HAVE_SYS_PARAM_H
3860 #  define HAVE_SYS_PARAM_H 1
3861 # endif
3862
3863 # ifdef _SC_PAGESIZE
3864 #  define getpagesize() sysconf(_SC_PAGESIZE)
3865 # else /* no _SC_PAGESIZE */
3866 #  if HAVE_SYS_PARAM_H
3867 #   include <sys/param.h>
3868 #   ifdef EXEC_PAGESIZE
3869 #    define getpagesize() EXEC_PAGESIZE
3870 #   else /* no EXEC_PAGESIZE */
3871 #    ifdef NBPG
3872 #     define getpagesize() NBPG * CLSIZE
3873 #     ifndef CLSIZE
3874 #      define CLSIZE 1
3875 #     endif /* no CLSIZE */
3876 #    else /* no NBPG */
3877 #     ifdef NBPC
3878 #      define getpagesize() NBPC
3879 #     else /* no NBPC */
3880 #      ifdef PAGESIZE
3881 #       define getpagesize() PAGESIZE
3882 #      endif /* PAGESIZE */
3883 #     endif /* no NBPC */
3884 #    endif /* no NBPG */
3885 #   endif /* no EXEC_PAGESIZE */
3886 #  else /* no HAVE_SYS_PARAM_H */
3887 #   define getpagesize() 8192   /* punt totally */
3888 #  endif /* no HAVE_SYS_PARAM_H */
3889 # endif /* no _SC_PAGESIZE */
3890
3891 #endif /* no HAVE_GETPAGESIZE */
3892
3893 int
3894 main ()
3895 {
3896   char *data, *data2, *data3;
3897   int i, pagesize;
3898   int fd;
3899
3900   pagesize = getpagesize ();
3901
3902   /* First, make a file with some known garbage in it. */
3903   data = (char *) malloc (pagesize);
3904   if (!data)
3905     exit (1);
3906   for (i = 0; i < pagesize; ++i)
3907     *(data + i) = rand ();
3908   umask (0);
3909   fd = creat ("conftest.mmap", 0600);
3910   if (fd < 0)
3911     exit (1);
3912   if (write (fd, data, pagesize) != pagesize)
3913     exit (1);
3914   close (fd);
3915
3916   /* Next, try to mmap the file at a fixed address which already has
3917      something else allocated at it.  If we can, also make sure that
3918      we see the same garbage.  */
3919   fd = open ("conftest.mmap", O_RDWR);
3920   if (fd < 0)
3921     exit (1);
3922   data2 = (char *) malloc (2 * pagesize);
3923   if (!data2)
3924     exit (1);
3925   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3926   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3927                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
3928     exit (1);
3929   for (i = 0; i < pagesize; ++i)
3930     if (*(data + i) != *(data2 + i))
3931       exit (1);
3932
3933   /* Finally, make sure that changes to the mapped area do not
3934      percolate back to the file as seen by read().  (This is a bug on
3935      some variants of i386 svr4.0.)  */
3936   for (i = 0; i < pagesize; ++i)
3937     *(data2 + i) = *(data2 + i) + 1;
3938   data3 = (char *) malloc (pagesize);
3939   if (!data3)
3940     exit (1);
3941   if (read (fd, data3, pagesize) != pagesize)
3942     exit (1);
3943   for (i = 0; i < pagesize; ++i)
3944     if (*(data + i) != *(data3 + i))
3945       exit (1);
3946   close (fd);
3947   exit (0);
3948 }
3949 _ACEOF
3950 rm -f conftest$ac_exeext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3952   (eval $ac_link) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); } && { ac_try='./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   ac_cv_func_mmap_fixed_mapped=yes
3962 else
3963   echo "$as_me: program exited with status $ac_status" >&5
3964 echo "$as_me: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3966 ( exit $ac_status )
3967 ac_cv_func_mmap_fixed_mapped=no
3968 fi
3969 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3970 fi
3971 fi
3972 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3973 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3974 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3975
3976 cat >>confdefs.h <<\_ACEOF
3977 #define HAVE_MMAP 1
3978 _ACEOF
3979
3980 fi
3981 rm -f conftest.mmap
3982
3983
3984     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
3985 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
3986 if test "${ac_cv_gnu_library_2_1+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   cat >conftest.$ac_ext <<_ACEOF
3990 #line $LINENO "configure"
3991 #include "confdefs.h"
3992
3993 #include <features.h>
3994 #ifdef __GNU_LIBRARY__
3995  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
3996   Lucky GNU user
3997  #endif
3998 #endif
3999
4000 _ACEOF
4001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4002   egrep "Lucky GNU user" >/dev/null 2>&1; then
4003   ac_cv_gnu_library_2_1=yes
4004 else
4005   ac_cv_gnu_library_2_1=no
4006 fi
4007 rm -f conftest*
4008
4009
4010
4011 fi
4012 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
4013 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4014
4015     GLIBC21="$ac_cv_gnu_library_2_1"
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
4030 stdlib.h string.h unistd.h sys/param.h
4031 do
4032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4034   echo "$as_me:$LINENO: checking for $ac_header" >&5
4035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 fi
4039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4041 else
4042   # Is the header compilable?
4043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4045 cat >conftest.$ac_ext <<_ACEOF
4046 #line $LINENO "configure"
4047 #include "confdefs.h"
4048 $ac_includes_default
4049 #include <$ac_header>
4050 _ACEOF
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053   (eval $ac_compile) 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); } &&
4057          { ac_try='test -s conftest.$ac_objext'
4058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059   (eval $ac_try) 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); }; }; then
4063   ac_header_compiler=yes
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 ac_header_compiler=no
4068 fi
4069 rm -f conftest.$ac_objext conftest.$ac_ext
4070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4071 echo "${ECHO_T}$ac_header_compiler" >&6
4072
4073 # Is the header present?
4074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4076 cat >conftest.$ac_ext <<_ACEOF
4077 #line $LINENO "configure"
4078 #include "confdefs.h"
4079 #include <$ac_header>
4080 _ACEOF
4081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083   ac_status=$?
4084   egrep -v '^ *\+' conftest.er1 >conftest.err
4085   rm -f conftest.er1
4086   cat conftest.err >&5
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); } >/dev/null; then
4089   if test -s conftest.err; then
4090     ac_cpp_err=$ac_c_preproc_warn_flag
4091   else
4092     ac_cpp_err=
4093   fi
4094 else
4095   ac_cpp_err=yes
4096 fi
4097 if test -z "$ac_cpp_err"; then
4098   ac_header_preproc=yes
4099 else
4100   echo "$as_me: failed program was:" >&5
4101   cat conftest.$ac_ext >&5
4102   ac_header_preproc=no
4103 fi
4104 rm -f conftest.err conftest.$ac_ext
4105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4106 echo "${ECHO_T}$ac_header_preproc" >&6
4107
4108 # So?  What about this header?
4109 case $ac_header_compiler:$ac_header_preproc in
4110   yes:no )
4111     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4115   no:yes )
4116     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4118     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4122 esac
4123 echo "$as_me:$LINENO: checking for $ac_header" >&5
4124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   eval "$as_ac_Header=$ac_header_preproc"
4129 fi
4130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4132
4133 fi
4134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4135   cat >>confdefs.h <<_ACEOF
4136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4137 _ACEOF
4138
4139 fi
4140
4141 done
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
4165 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
4166 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
4167 do
4168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4169 echo "$as_me:$LINENO: checking for $ac_func" >&5
4170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4171 if eval "test \"\${$as_ac_var+set}\" = set"; then
4172   echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174   cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4176 #include "confdefs.h"
4177 /* System header to define __stub macros and hopefully few prototypes,
4178     which can conflict with char $ac_func (); below.  */
4179 #include <assert.h>
4180 /* Override any gcc2 internal prototype to avoid an error.  */
4181 #ifdef __cplusplus
4182 extern "C"
4183 #endif
4184 /* We use char because int might match the return type of a gcc2
4185    builtin and then its argument prototype would still apply.  */
4186 char $ac_func ();
4187 char (*f) ();
4188
4189 #ifdef F77_DUMMY_MAIN
4190 #  ifdef __cplusplus
4191      extern "C"
4192 #  endif
4193    int F77_DUMMY_MAIN() { return 1; }
4194 #endif
4195 int
4196 main ()
4197 {
4198 /* The GNU C library defines this for functions which it implements
4199     to always fail with ENOSYS.  Some functions are actually named
4200     something starting with __ and the normal name is an alias.  */
4201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4202 choke me
4203 #else
4204 f = $ac_func;
4205 #endif
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 rm -f conftest.$ac_objext conftest$ac_exeext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213   (eval $ac_link) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); } &&
4217          { ac_try='test -s conftest$ac_exeext'
4218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219   (eval $ac_try) 2>&5
4220   ac_status=$?
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); }; }; then
4223   eval "$as_ac_var=yes"
4224 else
4225   echo "$as_me: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4227 eval "$as_ac_var=no"
4228 fi
4229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4230 fi
4231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4233 if test `eval echo '${'$as_ac_var'}'` = yes; then
4234   cat >>confdefs.h <<_ACEOF
4235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4236 _ACEOF
4237
4238 fi
4239 done
4240
4241
4242
4243
4244
4245 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4246 if test "${with_libiconv_prefix+set}" = set; then
4247   withval="$with_libiconv_prefix"
4248
4249     for dir in `echo "$withval" | tr : ' '`; do
4250       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
4251       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
4252     done
4253
4254 fi;
4255
4256   echo "$as_me:$LINENO: checking for iconv" >&5
4257 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
4258 if test "${am_cv_func_iconv+set}" = set; then
4259   echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261
4262     am_cv_func_iconv="no, consider installing GNU libiconv"
4263     am_cv_lib_iconv=no
4264     cat >conftest.$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4266 #include "confdefs.h"
4267 #include <stdlib.h>
4268 #include <iconv.h>
4269 #ifdef F77_DUMMY_MAIN
4270 #  ifdef __cplusplus
4271      extern "C"
4272 #  endif
4273    int F77_DUMMY_MAIN() { return 1; }
4274 #endif
4275 int
4276 main ()
4277 {
4278 iconv_t cd = iconv_open("","");
4279        iconv(cd,NULL,NULL,NULL,NULL);
4280        iconv_close(cd);
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 rm -f conftest.$ac_objext conftest$ac_exeext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4287   (eval $ac_link) 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); } &&
4291          { ac_try='test -s conftest$ac_exeext'
4292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293   (eval $ac_try) 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; }; then
4297   am_cv_func_iconv=yes
4298 else
4299   echo "$as_me: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4301 fi
4302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4303     if test "$am_cv_func_iconv" != yes; then
4304       am_save_LIBS="$LIBS"
4305       LIBS="$LIBS -liconv"
4306       cat >conftest.$ac_ext <<_ACEOF
4307 #line $LINENO "configure"
4308 #include "confdefs.h"
4309 #include <stdlib.h>
4310 #include <iconv.h>
4311 #ifdef F77_DUMMY_MAIN
4312 #  ifdef __cplusplus
4313      extern "C"
4314 #  endif
4315    int F77_DUMMY_MAIN() { return 1; }
4316 #endif
4317 int
4318 main ()
4319 {
4320 iconv_t cd = iconv_open("","");
4321          iconv(cd,NULL,NULL,NULL,NULL);
4322          iconv_close(cd);
4323   ;
4324   return 0;
4325 }
4326 _ACEOF
4327 rm -f conftest.$ac_objext conftest$ac_exeext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4329   (eval $ac_link) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } &&
4333          { ac_try='test -s conftest$ac_exeext'
4334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335   (eval $ac_try) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; }; then
4339   am_cv_lib_iconv=yes
4340         am_cv_func_iconv=yes
4341 else
4342   echo "$as_me: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4344 fi
4345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4346       LIBS="$am_save_LIBS"
4347     fi
4348
4349 fi
4350 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4351 echo "${ECHO_T}$am_cv_func_iconv" >&6
4352   if test "$am_cv_func_iconv" = yes; then
4353
4354 cat >>confdefs.h <<\_ACEOF
4355 #define HAVE_ICONV 1
4356 _ACEOF
4357
4358     echo "$as_me:$LINENO: checking for iconv declaration" >&5
4359 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
4360     if test "${am_cv_proto_iconv+set}" = set; then
4361   echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363
4364       cat >conftest.$ac_ext <<_ACEOF
4365 #line $LINENO "configure"
4366 #include "confdefs.h"
4367
4368 #include <stdlib.h>
4369 #include <iconv.h>
4370 extern
4371 #ifdef __cplusplus
4372 "C"
4373 #endif
4374 #if defined(__STDC__) || defined(__cplusplus)
4375 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4376 #else
4377 size_t iconv();
4378 #endif
4379
4380 #ifdef F77_DUMMY_MAIN
4381 #  ifdef __cplusplus
4382      extern "C"
4383 #  endif
4384    int F77_DUMMY_MAIN() { return 1; }
4385 #endif
4386 int
4387 main ()
4388 {
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396   (eval $ac_compile) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); } &&
4400          { ac_try='test -s conftest.$ac_objext'
4401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402   (eval $ac_try) 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; }; then
4406   am_cv_proto_iconv_arg1=""
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4410 am_cv_proto_iconv_arg1="const"
4411 fi
4412 rm -f conftest.$ac_objext conftest.$ac_ext
4413       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);"
4414 fi
4415
4416     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4417     echo "$as_me:$LINENO: result: ${ac_t:-
4418          }$am_cv_proto_iconv" >&5
4419 echo "${ECHO_T}${ac_t:-
4420          }$am_cv_proto_iconv" >&6
4421
4422 cat >>confdefs.h <<_ACEOF
4423 #define ICONV_CONST $am_cv_proto_iconv_arg1
4424 _ACEOF
4425
4426   fi
4427   LIBICONV=
4428   if test "$am_cv_lib_iconv" = yes; then
4429     LIBICONV="-liconv"
4430   fi
4431
4432
4433
4434   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
4435 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4436 if test "${am_cv_langinfo_codeset+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   cat >conftest.$ac_ext <<_ACEOF
4440 #line $LINENO "configure"
4441 #include "confdefs.h"
4442 #include <langinfo.h>
4443 #ifdef F77_DUMMY_MAIN
4444 #  ifdef __cplusplus
4445      extern "C"
4446 #  endif
4447    int F77_DUMMY_MAIN() { return 1; }
4448 #endif
4449 int
4450 main ()
4451 {
4452 char* cs = nl_langinfo(CODESET);
4453   ;
4454   return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459   (eval $ac_link) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); } &&
4463          { ac_try='test -s conftest$ac_exeext'
4464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465   (eval $ac_try) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; }; then
4469   am_cv_langinfo_codeset=yes
4470 else
4471   echo "$as_me: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4473 am_cv_langinfo_codeset=no
4474 fi
4475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4476
4477 fi
4478 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
4479 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4480   if test $am_cv_langinfo_codeset = yes; then
4481
4482 cat >>confdefs.h <<\_ACEOF
4483 #define HAVE_LANGINFO_CODESET 1
4484 _ACEOF
4485
4486   fi
4487
4488    if test $ac_cv_header_locale_h = yes; then
4489     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4490 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4491 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4492   echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494   cat >conftest.$ac_ext <<_ACEOF
4495 #line $LINENO "configure"
4496 #include "confdefs.h"
4497 #include <locale.h>
4498 #ifdef F77_DUMMY_MAIN
4499 #  ifdef __cplusplus
4500      extern "C"
4501 #  endif
4502    int F77_DUMMY_MAIN() { return 1; }
4503 #endif
4504 int
4505 main ()
4506 {
4507 return LC_MESSAGES
4508   ;
4509   return 0;
4510 }
4511 _ACEOF
4512 rm -f conftest.$ac_objext conftest$ac_exeext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4514   (eval $ac_link) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); } &&
4518          { ac_try='test -s conftest$ac_exeext'
4519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520   (eval $ac_try) 2>&5
4521   ac_status=$?
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); }; }; then
4524   am_cv_val_LC_MESSAGES=yes
4525 else
4526   echo "$as_me: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4528 am_cv_val_LC_MESSAGES=no
4529 fi
4530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4531 fi
4532 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4533 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4534     if test $am_cv_val_LC_MESSAGES = yes; then
4535
4536 cat >>confdefs.h <<\_ACEOF
4537 #define HAVE_LC_MESSAGES 1
4538 _ACEOF
4539
4540     fi
4541   fi
4542    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4543 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4544         # Check whether --enable-nls or --disable-nls was given.
4545 if test "${enable_nls+set}" = set; then
4546   enableval="$enable_nls"
4547   USE_NLS=$enableval
4548 else
4549   USE_NLS=yes
4550 fi;
4551     echo "$as_me:$LINENO: result: $USE_NLS" >&5
4552 echo "${ECHO_T}$USE_NLS" >&6
4553
4554
4555     BUILD_INCLUDED_LIBINTL=no
4556     USE_INCLUDED_LIBINTL=no
4557     INTLLIBS=
4558
4559         if test "$USE_NLS" = "yes"; then
4560
4561 cat >>confdefs.h <<\_ACEOF
4562 #define ENABLE_NLS 1
4563 _ACEOF
4564
4565       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4566 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4567
4568 # Check whether --with-included-gettext or --without-included-gettext was given.
4569 if test "${with_included_gettext+set}" = set; then
4570   withval="$with_included_gettext"
4571   nls_cv_force_use_gnu_gettext=$withval
4572 else
4573   nls_cv_force_use_gnu_gettext=no
4574 fi;
4575       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4576 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4577
4578       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4579       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4580                                 CATOBJEXT=NONE
4581
4582
4583
4584
4585         if test "${ac_cv_header_libintl_h+set}" = set; then
4586   echo "$as_me:$LINENO: checking for libintl.h" >&5
4587 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4588 if test "${ac_cv_header_libintl_h+set}" = set; then
4589   echo $ECHO_N "(cached) $ECHO_C" >&6
4590 fi
4591 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4592 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4593 else
4594   # Is the header compilable?
4595 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4596 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4597 cat >conftest.$ac_ext <<_ACEOF
4598 #line $LINENO "configure"
4599 #include "confdefs.h"
4600 $ac_includes_default
4601 #include <libintl.h>
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605   (eval $ac_compile) 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } &&
4609          { ac_try='test -s conftest.$ac_objext'
4610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611   (eval $ac_try) 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); }; }; then
4615   ac_header_compiler=yes
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4619 ac_header_compiler=no
4620 fi
4621 rm -f conftest.$ac_objext conftest.$ac_ext
4622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4623 echo "${ECHO_T}$ac_header_compiler" >&6
4624
4625 # Is the header present?
4626 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4627 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4628 cat >conftest.$ac_ext <<_ACEOF
4629 #line $LINENO "configure"
4630 #include "confdefs.h"
4631 #include <libintl.h>
4632 _ACEOF
4633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4634   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4635   ac_status=$?
4636   egrep -v '^ *\+' conftest.er1 >conftest.err
4637   rm -f conftest.er1
4638   cat conftest.err >&5
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); } >/dev/null; then
4641   if test -s conftest.err; then
4642     ac_cpp_err=$ac_c_preproc_warn_flag
4643   else
4644     ac_cpp_err=
4645   fi
4646 else
4647   ac_cpp_err=yes
4648 fi
4649 if test -z "$ac_cpp_err"; then
4650   ac_header_preproc=yes
4651 else
4652   echo "$as_me: failed program was:" >&5
4653   cat conftest.$ac_ext >&5
4654   ac_header_preproc=no
4655 fi
4656 rm -f conftest.err conftest.$ac_ext
4657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4658 echo "${ECHO_T}$ac_header_preproc" >&6
4659
4660 # So?  What about this header?
4661 case $ac_header_compiler:$ac_header_preproc in
4662   yes:no )
4663     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4664 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4665     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4666 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4667   no:yes )
4668     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4669 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4670     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4671 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4672     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4673 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4674 esac
4675 echo "$as_me:$LINENO: checking for libintl.h" >&5
4676 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4677 if test "${ac_cv_header_libintl_h+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   ac_cv_header_libintl_h=$ac_header_preproc
4681 fi
4682 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4683 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4684
4685 fi
4686 if test $ac_cv_header_libintl_h = yes; then
4687   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4688 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
4689 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4690   echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692   cat >conftest.$ac_ext <<_ACEOF
4693 #line $LINENO "configure"
4694 #include "confdefs.h"
4695 #include <libintl.h>
4696 extern int _nl_msg_cat_cntr;
4697 #ifdef F77_DUMMY_MAIN
4698 #  ifdef __cplusplus
4699      extern "C"
4700 #  endif
4701    int F77_DUMMY_MAIN() { return 1; }
4702 #endif
4703 int
4704 main ()
4705 {
4706 bindtextdomain ("", "");
4707 return (int) gettext ("") + _nl_msg_cat_cntr
4708   ;
4709   return 0;
4710 }
4711 _ACEOF
4712 rm -f conftest.$ac_objext conftest$ac_exeext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4714   (eval $ac_link) 2>&5
4715   ac_status=$?
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); } &&
4718          { ac_try='test -s conftest$ac_exeext'
4719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720   (eval $ac_try) 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); }; }; then
4724   gt_cv_func_gnugettext1_libc=yes
4725 else
4726   echo "$as_me: failed program was:" >&5
4727 cat conftest.$ac_ext >&5
4728 gt_cv_func_gnugettext1_libc=no
4729 fi
4730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4731 fi
4732 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4733 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
4734
4735            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4736              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4737 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4738 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   gt_save_LIBS="$LIBS"
4742                 LIBS="$LIBS -lintl $LIBICONV"
4743                 cat >conftest.$ac_ext <<_ACEOF
4744 #line $LINENO "configure"
4745 #include "confdefs.h"
4746 #include <libintl.h>
4747 extern int _nl_msg_cat_cntr;
4748 #ifdef F77_DUMMY_MAIN
4749 #  ifdef __cplusplus
4750      extern "C"
4751 #  endif
4752    int F77_DUMMY_MAIN() { return 1; }
4753 #endif
4754 int
4755 main ()
4756 {
4757 bindtextdomain ("", "");
4758 return (int) gettext ("") + _nl_msg_cat_cntr
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 rm -f conftest.$ac_objext conftest$ac_exeext
4764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4765   (eval $ac_link) 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); } &&
4769          { ac_try='test -s conftest$ac_exeext'
4770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771   (eval $ac_try) 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); }; }; then
4775   gt_cv_func_gnugettext1_libintl=yes
4776 else
4777   echo "$as_me: failed program was:" >&5
4778 cat conftest.$ac_ext >&5
4779 gt_cv_func_gnugettext1_libintl=no
4780 fi
4781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4782                 LIBS="$gt_save_LIBS"
4783 fi
4784 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
4785 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
4786            fi
4787
4788                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4789               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4790                    && test "$PACKAGE" != gettext; }; then
4791
4792 cat >>confdefs.h <<\_ACEOF
4793 #define HAVE_GETTEXT 1
4794 _ACEOF
4795
4796
4797              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4798                                        INTLLIBS="-lintl $LIBICONV"
4799              fi
4800
4801              gt_save_LIBS="$LIBS"
4802              LIBS="$LIBS $INTLLIBS"
4803
4804 for ac_func in dcgettext
4805 do
4806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4807 echo "$as_me:$LINENO: checking for $ac_func" >&5
4808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4809 if eval "test \"\${$as_ac_var+set}\" = set"; then
4810   echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812   cat >conftest.$ac_ext <<_ACEOF
4813 #line $LINENO "configure"
4814 #include "confdefs.h"
4815 /* System header to define __stub macros and hopefully few prototypes,
4816     which can conflict with char $ac_func (); below.  */
4817 #include <assert.h>
4818 /* Override any gcc2 internal prototype to avoid an error.  */
4819 #ifdef __cplusplus
4820 extern "C"
4821 #endif
4822 /* We use char because int might match the return type of a gcc2
4823    builtin and then its argument prototype would still apply.  */
4824 char $ac_func ();
4825 char (*f) ();
4826
4827 #ifdef F77_DUMMY_MAIN
4828 #  ifdef __cplusplus
4829      extern "C"
4830 #  endif
4831    int F77_DUMMY_MAIN() { return 1; }
4832 #endif
4833 int
4834 main ()
4835 {
4836 /* The GNU C library defines this for functions which it implements
4837     to always fail with ENOSYS.  Some functions are actually named
4838     something starting with __ and the normal name is an alias.  */
4839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4840 choke me
4841 #else
4842 f = $ac_func;
4843 #endif
4844
4845   ;
4846   return 0;
4847 }
4848 _ACEOF
4849 rm -f conftest.$ac_objext conftest$ac_exeext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4851   (eval $ac_link) 2>&5
4852   ac_status=$?
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); } &&
4855          { ac_try='test -s conftest$ac_exeext'
4856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857   (eval $ac_try) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; }; then
4861   eval "$as_ac_var=yes"
4862 else
4863   echo "$as_me: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4865 eval "$as_ac_var=no"
4866 fi
4867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4868 fi
4869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4871 if test `eval echo '${'$as_ac_var'}'` = yes; then
4872   cat >>confdefs.h <<_ACEOF
4873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4874 _ACEOF
4875
4876 fi
4877 done
4878
4879              LIBS="$gt_save_LIBS"
4880
4881                      # Extract the first word of "msgfmt", so it can be a program name with args.
4882 set dummy msgfmt; ac_word=$2
4883 echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885 if test "${ac_cv_path_MSGFMT+set}" = set; then
4886   echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888   case "$MSGFMT" in
4889   /*)
4890   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4891   ;;
4892   *)
4893   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4894   for ac_dir in $PATH; do
4895     test -z "$ac_dir" && ac_dir=.
4896     if test -f $ac_dir/$ac_word; then
4897       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
4898         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4899         break
4900       fi
4901     fi
4902   done
4903   IFS="$ac_save_ifs"
4904   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4905   ;;
4906 esac
4907 fi
4908 MSGFMT="$ac_cv_path_MSGFMT"
4909 if test "$MSGFMT" != ":"; then
4910   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4911 echo "${ECHO_T}$MSGFMT" >&6
4912 else
4913   echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4915 fi
4916
4917              # Extract the first word of "gmsgfmt", so it can be a program name with args.
4918 set dummy gmsgfmt; ac_word=$2
4919 echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4921 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   case $GMSGFMT in
4925   [\\/]* | ?:[\\/]*)
4926   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4927   ;;
4928   *)
4929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934   for ac_exec_ext in '' $ac_executable_extensions; do
4935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941 done
4942
4943   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4944   ;;
4945 esac
4946 fi
4947 GMSGFMT=$ac_cv_path_GMSGFMT
4948
4949 if test -n "$GMSGFMT"; then
4950   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4951 echo "${ECHO_T}$GMSGFMT" >&6
4952 else
4953   echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4955 fi
4956
4957
4958                      # Extract the first word of "xgettext", so it can be a program name with args.
4959 set dummy xgettext; ac_word=$2
4960 echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4962 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4963   echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965   case "$XGETTEXT" in
4966   /*)
4967   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4968   ;;
4969   *)
4970   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4971   for ac_dir in $PATH; do
4972     test -z "$ac_dir" && ac_dir=.
4973     if test -f $ac_dir/$ac_word; then
4974       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
4975         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4976         break
4977       fi
4978     fi
4979   done
4980   IFS="$ac_save_ifs"
4981   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4982   ;;
4983 esac
4984 fi
4985 XGETTEXT="$ac_cv_path_XGETTEXT"
4986 if test "$XGETTEXT" != ":"; then
4987   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4988 echo "${ECHO_T}$XGETTEXT" >&6
4989 else
4990   echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4992 fi
4993
4994
4995              CATOBJEXT=.gmo
4996            fi
4997
4998 fi
4999
5000
5001
5002         if test "$CATOBJEXT" = "NONE"; then
5003                           nls_cv_use_gnu_gettext=yes
5004         fi
5005       fi
5006
5007       if test "$nls_cv_use_gnu_gettext" = "yes"; then
5008                 INTLOBJS="\$(GETTOBJS)"
5009         # Extract the first word of "msgfmt", so it can be a program name with args.
5010 set dummy msgfmt; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_path_MSGFMT+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   case "$MSGFMT" in
5017   /*)
5018   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5019   ;;
5020   *)
5021   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5022   for ac_dir in $PATH; do
5023     test -z "$ac_dir" && ac_dir=.
5024     if test -f $ac_dir/$ac_word; then
5025       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
5026         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5027         break
5028       fi
5029     fi
5030   done
5031   IFS="$ac_save_ifs"
5032   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5033   ;;
5034 esac
5035 fi
5036 MSGFMT="$ac_cv_path_MSGFMT"
5037 if test "$MSGFMT" != ":"; then
5038   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5039 echo "${ECHO_T}$MSGFMT" >&6
5040 else
5041   echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6
5043 fi
5044
5045         # Extract the first word of "gmsgfmt", so it can be a program name with args.
5046 set dummy gmsgfmt; ac_word=$2
5047 echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5049 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5050   echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052   case $GMSGFMT in
5053   [\\/]* | ?:[\\/]*)
5054   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5055   ;;
5056   *)
5057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062   for ac_exec_ext in '' $ac_executable_extensions; do
5063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069 done
5070
5071   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5072   ;;
5073 esac
5074 fi
5075 GMSGFMT=$ac_cv_path_GMSGFMT
5076
5077 if test -n "$GMSGFMT"; then
5078   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5079 echo "${ECHO_T}$GMSGFMT" >&6
5080 else
5081   echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6
5083 fi
5084
5085         # Extract the first word of "xgettext", so it can be a program name with args.
5086 set dummy xgettext; ac_word=$2
5087 echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5089 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5090   echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092   case "$XGETTEXT" in
5093   /*)
5094   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5095   ;;
5096   *)
5097   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5098   for ac_dir in $PATH; do
5099     test -z "$ac_dir" && ac_dir=.
5100     if test -f $ac_dir/$ac_word; then
5101       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
5102         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5103         break
5104       fi
5105     fi
5106   done
5107   IFS="$ac_save_ifs"
5108   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5109   ;;
5110 esac
5111 fi
5112 XGETTEXT="$ac_cv_path_XGETTEXT"
5113 if test "$XGETTEXT" != ":"; then
5114   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5115 echo "${ECHO_T}$XGETTEXT" >&6
5116 else
5117   echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6
5119 fi
5120
5121
5122         BUILD_INCLUDED_LIBINTL=yes
5123         USE_INCLUDED_LIBINTL=yes
5124         CATOBJEXT=.gmo
5125         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
5126         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
5127       fi
5128
5129                   if test "$GMSGFMT" != ":"; then
5130                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
5131           : ;
5132         else
5133           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
5134 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
5135           GMSGFMT=":"
5136         fi
5137       fi
5138
5139                   if test "$XGETTEXT" != ":"; then
5140                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
5141           : ;
5142         else
5143           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5144 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5145           XGETTEXT=":"
5146         fi
5147       fi
5148
5149             POSUB=po
5150     fi
5151     ac_config_commands="$ac_config_commands default-1"
5152
5153
5154
5155             if test "$PACKAGE" = gettext; then
5156       BUILD_INCLUDED_LIBINTL=yes
5157     fi
5158
5159                                             for ac_prog in bison
5160 do
5161   # Extract the first word of "$ac_prog", so it can be a program name with args.
5162 set dummy $ac_prog; ac_word=$2
5163 echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5165 if test "${ac_cv_prog_INTLBISON+set}" = set; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   if test -n "$INTLBISON"; then
5169   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174   IFS=$as_save_IFS
5175   test -z "$as_dir" && as_dir=.
5176   for ac_exec_ext in '' $ac_executable_extensions; do
5177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178     ac_cv_prog_INTLBISON="$ac_prog"
5179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180     break 2
5181   fi
5182 done
5183 done
5184
5185 fi
5186 fi
5187 INTLBISON=$ac_cv_prog_INTLBISON
5188 if test -n "$INTLBISON"; then
5189   echo "$as_me:$LINENO: result: $INTLBISON" >&5
5190 echo "${ECHO_T}$INTLBISON" >&6
5191 else
5192   echo "$as_me:$LINENO: result: no" >&5
5193 echo "${ECHO_T}no" >&6
5194 fi
5195
5196   test -n "$INTLBISON" && break
5197 done
5198
5199     if test -z "$INTLBISON"; then
5200       ac_verc_fail=yes
5201     else
5202             echo "$as_me:$LINENO: checking version of bison" >&5
5203 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
5204       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5205       case $ac_prog_version in
5206         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5207         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5208            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5209         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5210       esac
5211       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5212 echo "${ECHO_T}$ac_prog_version" >&6
5213     fi
5214     if test $ac_verc_fail = yes; then
5215       INTLBISON=:
5216     fi
5217
5218                 for lang in $ALL_LINGUAS; do
5219       GMOFILES="$GMOFILES $lang.gmo"
5220       POFILES="$POFILES $lang.po"
5221     done
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233         nls_cv_header_intl=
5234     nls_cv_header_libgt=
5235
5236         DATADIRNAME=share
5237
5238
5239         INSTOBJEXT=.mo
5240
5241
5242         GENCAT=gencat
5243
5244
5245
5246    if test "x$CATOBJEXT" != "x"; then
5247      if test "x$ALL_LINGUAS" = "x"; then
5248        LINGUAS=
5249      else
5250        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5251 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5252        NEW_LINGUAS=
5253        for presentlang in $ALL_LINGUAS; do
5254          useit=no
5255          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
5256            # Use the presentlang catalog if desiredlang is
5257            #   a. equal to presentlang, or
5258            #   b. a variant of presentlang (because in this case,
5259            #      presentlang can be used as a fallback for messages
5260            #      which are not translated in the desiredlang catalog).
5261            case "$desiredlang" in
5262              "$presentlang"*) useit=yes;;
5263            esac
5264          done
5265          if test $useit = yes; then
5266            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5267          fi
5268        done
5269        LINGUAS=$NEW_LINGUAS
5270        echo "$as_me:$LINENO: result: $LINGUAS" >&5
5271 echo "${ECHO_T}$LINGUAS" >&6
5272      fi
5273
5274           if test -n "$LINGUAS"; then
5275        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5276      fi
5277    fi
5278
5279             MKINSTALLDIRS=
5280    if test -n "$ac_aux_dir"; then
5281      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5282    fi
5283    if test -z "$MKINSTALLDIRS"; then
5284      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5285    fi
5286
5287
5288       INTL_LIBTOOL_SUFFIX_PREFIX=
5289
5290
5291
5292 # Find a good install program.  We prefer a C program (faster),
5293 # so one script is as good as another.  But avoid the broken or
5294 # incompatible versions:
5295 # SysV /etc/install, /usr/sbin/install
5296 # SunOS /usr/etc/install
5297 # IRIX /sbin/install
5298 # AIX /bin/install
5299 # AmigaOS /C/install, which installs bootblocks on floppy discs
5300 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5301 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5302 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5303 # ./install, which can be erroneously created by make from ./install.sh.
5304 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5305 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5306 if test -z "$INSTALL"; then
5307 if test "${ac_cv_path_install+set}" = set; then
5308   echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315   # Account for people who put trailing slashes in PATH elements.
5316 case $as_dir/ in
5317   ./ | .// | /cC/* | \
5318   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5319   /usr/ucb/* ) ;;
5320   *)
5321     # OSF1 and SCO ODT 3.0 have their own names for install.
5322     # Don't use installbsd from OSF since it installs stuff as root
5323     # by default.
5324     for ac_prog in ginstall scoinst install; do
5325       for ac_exec_ext in '' $ac_executable_extensions; do
5326         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5327           if test $ac_prog = install &&
5328             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5329             # AIX install.  It has an incompatible calling convention.
5330             :
5331           elif test $ac_prog = install &&
5332             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5333             # program-specific install script used by HP pwplus--don't use.
5334             :
5335           else
5336             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5337             break 3
5338           fi
5339         fi
5340       done
5341     done
5342     ;;
5343 esac
5344 done
5345
5346
5347 fi
5348   if test "${ac_cv_path_install+set}" = set; then
5349     INSTALL=$ac_cv_path_install
5350   else
5351     # As a last resort, use the slow shell script.  We don't cache a
5352     # path for INSTALL within a source directory, because that will
5353     # break other packages using the cache if that directory is
5354     # removed, or if the path is relative.
5355     INSTALL=$ac_install_sh
5356   fi
5357 fi
5358 echo "$as_me:$LINENO: result: $INSTALL" >&5
5359 echo "${ECHO_T}$INSTALL" >&6
5360
5361 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5362 # It thinks the first close brace ends the variable substitution.
5363 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5364
5365 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5366
5367 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5368
5369
5370 case x"${target_os}" in
5371   x)
5372     SYS=unknown
5373     ;;
5374   xlinux*)
5375     SYS=linux
5376     ;;
5377   xbsdi*)
5378     SYS=bsdi
5379     save_CFLAGS="${save_CFLAGS} -pthread"
5380     dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
5381     vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
5382     ;;
5383   x*bsd*)
5384     SYS="${target_os}"
5385     save_CFLAGS="${save_CFLAGS} -pthread"
5386     ;;
5387   xdarwin*)
5388     SYS=darwin
5389     save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
5390     ;;
5391   x*mingw32*)
5392     SYS=mingw32
5393     if test -n "$ac_tool_prefix"; then
5394   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5395 set dummy ${ac_tool_prefix}windres; ac_word=$2
5396 echo "$as_me:$LINENO: checking for $ac_word" >&5
5397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5398 if test "${ac_cv_prog_WINDRES+set}" = set; then
5399   echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401   if test -n "$WINDRES"; then
5402   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409   for ac_exec_ext in '' $ac_executable_extensions; do
5410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416 done
5417
5418 fi
5419 fi
5420 WINDRES=$ac_cv_prog_WINDRES
5421 if test -n "$WINDRES"; then
5422   echo "$as_me:$LINENO: result: $WINDRES" >&5
5423 echo "${ECHO_T}$WINDRES" >&6
5424 else
5425   echo "$as_me:$LINENO: result: no" >&5
5426 echo "${ECHO_T}no" >&6
5427 fi
5428
5429 fi
5430 if test -z "$ac_cv_prog_WINDRES"; then
5431   ac_ct_WINDRES=$WINDRES
5432   # Extract the first word of "windres", so it can be a program name with args.
5433 set dummy windres; ac_word=$2
5434 echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439   if test -n "$ac_ct_WINDRES"; then
5440   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447   for ac_exec_ext in '' $ac_executable_extensions; do
5448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449     ac_cv_prog_ac_ct_WINDRES="windres"
5450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452   fi
5453 done
5454 done
5455
5456   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
5457 fi
5458 fi
5459 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5460 if test -n "$ac_ct_WINDRES"; then
5461   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5462 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5463 else
5464   echo "$as_me:$LINENO: result: no" >&5
5465 echo "${ECHO_T}no" >&6
5466 fi
5467
5468   WINDRES=$ac_ct_WINDRES
5469 else
5470   WINDRES="$ac_cv_prog_WINDRES"
5471 fi
5472
5473     save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
5474     vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
5475     vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
5476     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
5477     ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
5478     http_LDFLAGS="${http_LDFLAGS} -lws2_32"
5479     rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
5480     ;;
5481   x*nto*)
5482     SYS=nto
5483     x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
5484     xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
5485     ;;
5486   xbeos)
5487     SYS=beos
5488     save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
5489     vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
5490     plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
5491     beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker -ltranslation -lstdc++.r4"
5492     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
5493     ;;
5494   x*)
5495     SYS="${target_os}"
5496     ;;
5497 esac
5498
5499 if test x"${SYS}" = xmingw32
5500 then
5501   plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
5502 else
5503   plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
5504 fi
5505
5506 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
5523 do
5524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5525 echo "$as_me:$LINENO: checking for $ac_func" >&5
5526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5527 if eval "test \"\${$as_ac_var+set}\" = set"; then
5528   echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530   cat >conftest.$ac_ext <<_ACEOF
5531 #line $LINENO "configure"
5532 #include "confdefs.h"
5533 /* System header to define __stub macros and hopefully few prototypes,
5534     which can conflict with char $ac_func (); below.  */
5535 #include <assert.h>
5536 /* Override any gcc2 internal prototype to avoid an error.  */
5537 #ifdef __cplusplus
5538 extern "C"
5539 #endif
5540 /* We use char because int might match the return type of a gcc2
5541    builtin and then its argument prototype would still apply.  */
5542 char $ac_func ();
5543 char (*f) ();
5544
5545 #ifdef F77_DUMMY_MAIN
5546 #  ifdef __cplusplus
5547      extern "C"
5548 #  endif
5549    int F77_DUMMY_MAIN() { return 1; }
5550 #endif
5551 int
5552 main ()
5553 {
5554 /* The GNU C library defines this for functions which it implements
5555     to always fail with ENOSYS.  Some functions are actually named
5556     something starting with __ and the normal name is an alias.  */
5557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5558 choke me
5559 #else
5560 f = $ac_func;
5561 #endif
5562
5563   ;
5564   return 0;
5565 }
5566 _ACEOF
5567 rm -f conftest.$ac_objext conftest$ac_exeext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5569   (eval $ac_link) 2>&5
5570   ac_status=$?
5571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); } &&
5573          { ac_try='test -s conftest$ac_exeext'
5574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575   (eval $ac_try) 2>&5
5576   ac_status=$?
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); }; }; then
5579   eval "$as_ac_var=yes"
5580 else
5581   echo "$as_me: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5583 eval "$as_ac_var=no"
5584 fi
5585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5586 fi
5587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5589 if test `eval echo '${'$as_ac_var'}'` = yes; then
5590   cat >>confdefs.h <<_ACEOF
5591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5592 _ACEOF
5593
5594 fi
5595 done
5596
5597
5598 echo "$as_me:$LINENO: checking for connect" >&5
5599 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5600 if test "${ac_cv_func_connect+set}" = set; then
5601   echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603   cat >conftest.$ac_ext <<_ACEOF
5604 #line $LINENO "configure"
5605 #include "confdefs.h"
5606 /* System header to define __stub macros and hopefully few prototypes,
5607     which can conflict with char connect (); below.  */
5608 #include <assert.h>
5609 /* Override any gcc2 internal prototype to avoid an error.  */
5610 #ifdef __cplusplus
5611 extern "C"
5612 #endif
5613 /* We use char because int might match the return type of a gcc2
5614    builtin and then its argument prototype would still apply.  */
5615 char connect ();
5616 char (*f) ();
5617
5618 #ifdef F77_DUMMY_MAIN
5619 #  ifdef __cplusplus
5620      extern "C"
5621 #  endif
5622    int F77_DUMMY_MAIN() { return 1; }
5623 #endif
5624 int
5625 main ()
5626 {
5627 /* The GNU C library defines this for functions which it implements
5628     to always fail with ENOSYS.  Some functions are actually named
5629     something starting with __ and the normal name is an alias.  */
5630 #if defined (__stub_connect) || defined (__stub___connect)
5631 choke me
5632 #else
5633 f = connect;
5634 #endif
5635
5636   ;
5637   return 0;
5638 }
5639 _ACEOF
5640 rm -f conftest.$ac_objext conftest$ac_exeext
5641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5642   (eval $ac_link) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); } &&
5646          { ac_try='test -s conftest$ac_exeext'
5647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648   (eval $ac_try) 2>&5
5649   ac_status=$?
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); }; }; then
5652   ac_cv_func_connect=yes
5653 else
5654   echo "$as_me: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5656 ac_cv_func_connect=no
5657 fi
5658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5659 fi
5660 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5661 echo "${ECHO_T}$ac_cv_func_connect" >&6
5662 if test $ac_cv_func_connect = yes; then
5663   :
5664 else
5665
5666   echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5667 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5668 if test "${ac_cv_lib_socket_connect+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   ac_check_lib_save_LIBS=$LIBS
5672 LIBS="-lsocket  $LIBS"
5673 cat >conftest.$ac_ext <<_ACEOF
5674 #line $LINENO "configure"
5675 #include "confdefs.h"
5676
5677 /* Override any gcc2 internal prototype to avoid an error.  */
5678 #ifdef __cplusplus
5679 extern "C"
5680 #endif
5681 /* We use char because int might match the return type of a gcc2
5682    builtin and then its argument prototype would still apply.  */
5683 char connect ();
5684 #ifdef F77_DUMMY_MAIN
5685 #  ifdef __cplusplus
5686      extern "C"
5687 #  endif
5688    int F77_DUMMY_MAIN() { return 1; }
5689 #endif
5690 int
5691 main ()
5692 {
5693 connect ();
5694   ;
5695   return 0;
5696 }
5697 _ACEOF
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700   (eval $ac_link) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); } &&
5704          { ac_try='test -s conftest$ac_exeext'
5705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706   (eval $ac_try) 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); }; }; then
5710   ac_cv_lib_socket_connect=yes
5711 else
5712   echo "$as_me: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5714 ac_cv_lib_socket_connect=no
5715 fi
5716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5717 LIBS=$ac_check_lib_save_LIBS
5718 fi
5719 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5720 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5721 if test $ac_cv_lib_socket_connect = yes; then
5722   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
5723     vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
5724
5725 fi
5726
5727 fi
5728
5729 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5730 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5731 if test "${ac_cv_func_gethostbyname+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   cat >conftest.$ac_ext <<_ACEOF
5735 #line $LINENO "configure"
5736 #include "confdefs.h"
5737 /* System header to define __stub macros and hopefully few prototypes,
5738     which can conflict with char gethostbyname (); below.  */
5739 #include <assert.h>
5740 /* Override any gcc2 internal prototype to avoid an error.  */
5741 #ifdef __cplusplus
5742 extern "C"
5743 #endif
5744 /* We use char because int might match the return type of a gcc2
5745    builtin and then its argument prototype would still apply.  */
5746 char gethostbyname ();
5747 char (*f) ();
5748
5749 #ifdef F77_DUMMY_MAIN
5750 #  ifdef __cplusplus
5751      extern "C"
5752 #  endif
5753    int F77_DUMMY_MAIN() { return 1; }
5754 #endif
5755 int
5756 main ()
5757 {
5758 /* The GNU C library defines this for functions which it implements
5759     to always fail with ENOSYS.  Some functions are actually named
5760     something starting with __ and the normal name is an alias.  */
5761 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5762 choke me
5763 #else
5764 f = gethostbyname;
5765 #endif
5766
5767   ;
5768   return 0;
5769 }
5770 _ACEOF
5771 rm -f conftest.$ac_objext conftest$ac_exeext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5773   (eval $ac_link) 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); } &&
5777          { ac_try='test -s conftest$ac_exeext'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; }; then
5783   ac_cv_func_gethostbyname=yes
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5787 ac_cv_func_gethostbyname=no
5788 fi
5789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5790 fi
5791 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5792 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5793 if test $ac_cv_func_gethostbyname = yes; then
5794   :
5795 else
5796
5797   echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5798 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5799 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   ac_check_lib_save_LIBS=$LIBS
5803 LIBS="-lnsl  $LIBS"
5804 cat >conftest.$ac_ext <<_ACEOF
5805 #line $LINENO "configure"
5806 #include "confdefs.h"
5807
5808 /* Override any gcc2 internal prototype to avoid an error.  */
5809 #ifdef __cplusplus
5810 extern "C"
5811 #endif
5812 /* We use char because int might match the return type of a gcc2
5813    builtin and then its argument prototype would still apply.  */
5814 char gethostbyname ();
5815 #ifdef F77_DUMMY_MAIN
5816 #  ifdef __cplusplus
5817      extern "C"
5818 #  endif
5819    int F77_DUMMY_MAIN() { return 1; }
5820 #endif
5821 int
5822 main ()
5823 {
5824 gethostbyname ();
5825   ;
5826   return 0;
5827 }
5828 _ACEOF
5829 rm -f conftest.$ac_objext conftest$ac_exeext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5831   (eval $ac_link) 2>&5
5832   ac_status=$?
5833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); } &&
5835          { ac_try='test -s conftest$ac_exeext'
5836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837   (eval $ac_try) 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); }; }; then
5841   ac_cv_lib_nsl_gethostbyname=yes
5842 else
5843   echo "$as_me: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5845 ac_cv_lib_nsl_gethostbyname=no
5846 fi
5847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5848 LIBS=$ac_check_lib_save_LIBS
5849 fi
5850 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5851 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5852 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5853   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
5854 fi
5855
5856
5857 fi
5858
5859 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5860 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5861 if test "${ac_cv_func_gethostbyname+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   cat >conftest.$ac_ext <<_ACEOF
5865 #line $LINENO "configure"
5866 #include "confdefs.h"
5867 /* System header to define __stub macros and hopefully few prototypes,
5868     which can conflict with char gethostbyname (); below.  */
5869 #include <assert.h>
5870 /* Override any gcc2 internal prototype to avoid an error.  */
5871 #ifdef __cplusplus
5872 extern "C"
5873 #endif
5874 /* We use char because int might match the return type of a gcc2
5875    builtin and then its argument prototype would still apply.  */
5876 char gethostbyname ();
5877 char (*f) ();
5878
5879 #ifdef F77_DUMMY_MAIN
5880 #  ifdef __cplusplus
5881      extern "C"
5882 #  endif
5883    int F77_DUMMY_MAIN() { return 1; }
5884 #endif
5885 int
5886 main ()
5887 {
5888 /* The GNU C library defines this for functions which it implements
5889     to always fail with ENOSYS.  Some functions are actually named
5890     something starting with __ and the normal name is an alias.  */
5891 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5892 choke me
5893 #else
5894 f = gethostbyname;
5895 #endif
5896
5897   ;
5898   return 0;
5899 }
5900 _ACEOF
5901 rm -f conftest.$ac_objext conftest$ac_exeext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5903   (eval $ac_link) 2>&5
5904   ac_status=$?
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); } &&
5907          { ac_try='test -s conftest$ac_exeext'
5908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909   (eval $ac_try) 2>&5
5910   ac_status=$?
5911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912   (exit $ac_status); }; }; then
5913   ac_cv_func_gethostbyname=yes
5914 else
5915   echo "$as_me: failed program was:" >&5
5916 cat conftest.$ac_ext >&5
5917 ac_cv_func_gethostbyname=no
5918 fi
5919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5920 fi
5921 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5922 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5923 if test $ac_cv_func_gethostbyname = yes; then
5924   :
5925 else
5926
5927   echo "$as_me:$LINENO: checking for gethostbyname in -lbind" >&5
5928 echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6
5929 if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   ac_check_lib_save_LIBS=$LIBS
5933 LIBS="-lbind  $LIBS"
5934 cat >conftest.$ac_ext <<_ACEOF
5935 #line $LINENO "configure"
5936 #include "confdefs.h"
5937
5938 /* Override any gcc2 internal prototype to avoid an error.  */
5939 #ifdef __cplusplus
5940 extern "C"
5941 #endif
5942 /* We use char because int might match the return type of a gcc2
5943    builtin and then its argument prototype would still apply.  */
5944 char gethostbyname ();
5945 #ifdef F77_DUMMY_MAIN
5946 #  ifdef __cplusplus
5947      extern "C"
5948 #  endif
5949    int F77_DUMMY_MAIN() { return 1; }
5950 #endif
5951 int
5952 main ()
5953 {
5954 gethostbyname ();
5955   ;
5956   return 0;
5957 }
5958 _ACEOF
5959 rm -f conftest.$ac_objext conftest$ac_exeext
5960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5961   (eval $ac_link) 2>&5
5962   ac_status=$?
5963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964   (exit $ac_status); } &&
5965          { ac_try='test -s conftest$ac_exeext'
5966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967   (eval $ac_try) 2>&5
5968   ac_status=$?
5969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970   (exit $ac_status); }; }; then
5971   ac_cv_lib_bind_gethostbyname=yes
5972 else
5973   echo "$as_me: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5975 ac_cv_lib_bind_gethostbyname=no
5976 fi
5977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5978 LIBS=$ac_check_lib_save_LIBS
5979 fi
5980 echo "$as_me:$LINENO: result: $ac_cv_lib_bind_gethostbyname" >&5
5981 echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6
5982 if test $ac_cv_lib_bind_gethostbyname = yes; then
5983   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
5984 fi
5985
5986
5987 fi
5988
5989 have_nanosleep=0
5990 echo "$as_me:$LINENO: checking for nanosleep" >&5
5991 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
5992 if test "${ac_cv_func_nanosleep+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   cat >conftest.$ac_ext <<_ACEOF
5996 #line $LINENO "configure"
5997 #include "confdefs.h"
5998 /* System header to define __stub macros and hopefully few prototypes,
5999     which can conflict with char nanosleep (); below.  */
6000 #include <assert.h>
6001 /* Override any gcc2 internal prototype to avoid an error.  */
6002 #ifdef __cplusplus
6003 extern "C"
6004 #endif
6005 /* We use char because int might match the return type of a gcc2
6006    builtin and then its argument prototype would still apply.  */
6007 char nanosleep ();
6008 char (*f) ();
6009
6010 #ifdef F77_DUMMY_MAIN
6011 #  ifdef __cplusplus
6012      extern "C"
6013 #  endif
6014    int F77_DUMMY_MAIN() { return 1; }
6015 #endif
6016 int
6017 main ()
6018 {
6019 /* The GNU C library defines this for functions which it implements
6020     to always fail with ENOSYS.  Some functions are actually named
6021     something starting with __ and the normal name is an alias.  */
6022 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
6023 choke me
6024 #else
6025 f = nanosleep;
6026 #endif
6027
6028   ;
6029   return 0;
6030 }
6031 _ACEOF
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034   (eval $ac_link) 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); } &&
6038          { ac_try='test -s conftest$ac_exeext'
6039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040   (eval $ac_try) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); }; }; then
6044   ac_cv_func_nanosleep=yes
6045 else
6046   echo "$as_me: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6048 ac_cv_func_nanosleep=no
6049 fi
6050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6051 fi
6052 echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
6053 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
6054 if test $ac_cv_func_nanosleep = yes; then
6055   have_nanosleep=1
6056 else
6057
6058   echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
6059 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
6060 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
6061   echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063   ac_check_lib_save_LIBS=$LIBS
6064 LIBS="-lrt  $LIBS"
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6067 #include "confdefs.h"
6068
6069 /* Override any gcc2 internal prototype to avoid an error.  */
6070 #ifdef __cplusplus
6071 extern "C"
6072 #endif
6073 /* We use char because int might match the return type of a gcc2
6074    builtin and then its argument prototype would still apply.  */
6075 char nanosleep ();
6076 #ifdef F77_DUMMY_MAIN
6077 #  ifdef __cplusplus
6078      extern "C"
6079 #  endif
6080    int F77_DUMMY_MAIN() { return 1; }
6081 #endif
6082 int
6083 main ()
6084 {
6085 nanosleep ();
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092   (eval $ac_link) 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); } &&
6096          { ac_try='test -s conftest$ac_exeext'
6097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098   (eval $ac_try) 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }; }; then
6102   ac_cv_lib_rt_nanosleep=yes
6103 else
6104   echo "$as_me: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6106 ac_cv_lib_rt_nanosleep=no
6107 fi
6108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6109 LIBS=$ac_check_lib_save_LIBS
6110 fi
6111 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
6112 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
6113 if test $ac_cv_lib_rt_nanosleep = yes; then
6114   vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
6115 else
6116   echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
6117 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
6118 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121   ac_check_lib_save_LIBS=$LIBS
6122 LIBS="-lposix4  $LIBS"
6123 cat >conftest.$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6125 #include "confdefs.h"
6126
6127 /* Override any gcc2 internal prototype to avoid an error.  */
6128 #ifdef __cplusplus
6129 extern "C"
6130 #endif
6131 /* We use char because int might match the return type of a gcc2
6132    builtin and then its argument prototype would still apply.  */
6133 char nanosleep ();
6134 #ifdef F77_DUMMY_MAIN
6135 #  ifdef __cplusplus
6136      extern "C"
6137 #  endif
6138    int F77_DUMMY_MAIN() { return 1; }
6139 #endif
6140 int
6141 main ()
6142 {
6143 nanosleep ();
6144   ;
6145   return 0;
6146 }
6147 _ACEOF
6148 rm -f conftest.$ac_objext conftest$ac_exeext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150   (eval $ac_link) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); } &&
6154          { ac_try='test -s conftest$ac_exeext'
6155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156   (eval $ac_try) 2>&5
6157   ac_status=$?
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); }; }; then
6160   ac_cv_lib_posix4_nanosleep=yes
6161 else
6162   echo "$as_me: failed program was:" >&5
6163 cat conftest.$ac_ext >&5
6164 ac_cv_lib_posix4_nanosleep=no
6165 fi
6166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6167 LIBS=$ac_check_lib_save_LIBS
6168 fi
6169 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
6170 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
6171 if test $ac_cv_lib_posix4_nanosleep = yes; then
6172   vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
6173 fi
6174
6175
6176 fi
6177
6178
6179 fi
6180
6181 if test x$have_nanosleep = x1; then
6182
6183 cat >>confdefs.h <<\_ACEOF
6184 #define HAVE_NANOSLEEP 1
6185 _ACEOF
6186
6187 fi
6188 echo "$as_me:$LINENO: checking for inet_aton" >&5
6189 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
6190 if test "${ac_cv_func_inet_aton+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   cat >conftest.$ac_ext <<_ACEOF
6194 #line $LINENO "configure"
6195 #include "confdefs.h"
6196 /* System header to define __stub macros and hopefully few prototypes,
6197     which can conflict with char inet_aton (); below.  */
6198 #include <assert.h>
6199 /* Override any gcc2 internal prototype to avoid an error.  */
6200 #ifdef __cplusplus
6201 extern "C"
6202 #endif
6203 /* We use char because int might match the return type of a gcc2
6204    builtin and then its argument prototype would still apply.  */
6205 char inet_aton ();
6206 char (*f) ();
6207
6208 #ifdef F77_DUMMY_MAIN
6209 #  ifdef __cplusplus
6210      extern "C"
6211 #  endif
6212    int F77_DUMMY_MAIN() { return 1; }
6213 #endif
6214 int
6215 main ()
6216 {
6217 /* The GNU C library defines this for functions which it implements
6218     to always fail with ENOSYS.  Some functions are actually named
6219     something starting with __ and the normal name is an alias.  */
6220 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6221 choke me
6222 #else
6223 f = inet_aton;
6224 #endif
6225
6226   ;
6227   return 0;
6228 }
6229 _ACEOF
6230 rm -f conftest.$ac_objext conftest$ac_exeext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6232   (eval $ac_link) 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); } &&
6236          { ac_try='test -s conftest$ac_exeext'
6237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238   (eval $ac_try) 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }; }; then
6242   ac_cv_func_inet_aton=yes
6243 else
6244   echo "$as_me: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6246 ac_cv_func_inet_aton=no
6247 fi
6248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6249 fi
6250 echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
6251 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
6252 if test $ac_cv_func_inet_aton = yes; then
6253   :
6254 else
6255
6256   echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6257 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6258 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6259   echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261   ac_check_lib_save_LIBS=$LIBS
6262 LIBS="-lresolv  $LIBS"
6263 cat >conftest.$ac_ext <<_ACEOF
6264 #line $LINENO "configure"
6265 #include "confdefs.h"
6266
6267 /* Override any gcc2 internal prototype to avoid an error.  */
6268 #ifdef __cplusplus
6269 extern "C"
6270 #endif
6271 /* We use char because int might match the return type of a gcc2
6272    builtin and then its argument prototype would still apply.  */
6273 char inet_aton ();
6274 #ifdef F77_DUMMY_MAIN
6275 #  ifdef __cplusplus
6276      extern "C"
6277 #  endif
6278    int F77_DUMMY_MAIN() { return 1; }
6279 #endif
6280 int
6281 main ()
6282 {
6283 inet_aton ();
6284   ;
6285   return 0;
6286 }
6287 _ACEOF
6288 rm -f conftest.$ac_objext conftest$ac_exeext
6289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6290   (eval $ac_link) 2>&5
6291   ac_status=$?
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); } &&
6294          { ac_try='test -s conftest$ac_exeext'
6295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296   (eval $ac_try) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; }; then
6300   ac_cv_lib_resolv_inet_aton=yes
6301 else
6302   echo "$as_me: failed program was:" >&5
6303 cat conftest.$ac_ext >&5
6304 ac_cv_lib_resolv_inet_aton=no
6305 fi
6306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6307 LIBS=$ac_check_lib_save_LIBS
6308 fi
6309 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6310 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6311 if test $ac_cv_lib_resolv_inet_aton = yes; then
6312   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
6313 fi
6314
6315
6316 fi
6317
6318 echo "$as_me:$LINENO: checking for textdomain" >&5
6319 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
6320 if test "${ac_cv_func_textdomain+set}" = set; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   cat >conftest.$ac_ext <<_ACEOF
6324 #line $LINENO "configure"
6325 #include "confdefs.h"
6326 /* System header to define __stub macros and hopefully few prototypes,
6327     which can conflict with char textdomain (); below.  */
6328 #include <assert.h>
6329 /* Override any gcc2 internal prototype to avoid an error.  */
6330 #ifdef __cplusplus
6331 extern "C"
6332 #endif
6333 /* We use char because int might match the return type of a gcc2
6334    builtin and then its argument prototype would still apply.  */
6335 char textdomain ();
6336 char (*f) ();
6337
6338 #ifdef F77_DUMMY_MAIN
6339 #  ifdef __cplusplus
6340      extern "C"
6341 #  endif
6342    int F77_DUMMY_MAIN() { return 1; }
6343 #endif
6344 int
6345 main ()
6346 {
6347 /* The GNU C library defines this for functions which it implements
6348     to always fail with ENOSYS.  Some functions are actually named
6349     something starting with __ and the normal name is an alias.  */
6350 #if defined (__stub_textdomain) || defined (__stub___textdomain)
6351 choke me
6352 #else
6353 f = textdomain;
6354 #endif
6355
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362   (eval $ac_link) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); } &&
6366          { ac_try='test -s conftest$ac_exeext'
6367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368   (eval $ac_try) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; }; then
6372   ac_cv_func_textdomain=yes
6373 else
6374   echo "$as_me: failed program was:" >&5
6375 cat conftest.$ac_ext >&5
6376 ac_cv_func_textdomain=no
6377 fi
6378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6379 fi
6380 echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
6381 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
6382 if test $ac_cv_func_textdomain = yes; then
6383   :
6384 else
6385
6386   echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
6387 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
6388 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   ac_check_lib_save_LIBS=$LIBS
6392 LIBS="-lintl  $LIBS"
6393 cat >conftest.$ac_ext <<_ACEOF
6394 #line $LINENO "configure"
6395 #include "confdefs.h"
6396
6397 /* Override any gcc2 internal prototype to avoid an error.  */
6398 #ifdef __cplusplus
6399 extern "C"
6400 #endif
6401 /* We use char because int might match the return type of a gcc2
6402    builtin and then its argument prototype would still apply.  */
6403 char textdomain ();
6404 #ifdef F77_DUMMY_MAIN
6405 #  ifdef __cplusplus
6406      extern "C"
6407 #  endif
6408    int F77_DUMMY_MAIN() { return 1; }
6409 #endif
6410 int
6411 main ()
6412 {
6413 textdomain ();
6414   ;
6415   return 0;
6416 }
6417 _ACEOF
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6420   (eval $ac_link) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); } &&
6424          { ac_try='test -s conftest$ac_exeext'
6425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426   (eval $ac_try) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; }; then
6430   ac_cv_lib_intl_textdomain=yes
6431 else
6432   echo "$as_me: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6434 ac_cv_lib_intl_textdomain=no
6435 fi
6436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6437 LIBS=$ac_check_lib_save_LIBS
6438 fi
6439 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
6440 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
6441 if test $ac_cv_lib_intl_textdomain = yes; then
6442   save_LDFLAGS="${save_LDFLAGS} -lintl"
6443 fi
6444
6445
6446 fi
6447
6448
6449 NEED_GETOPT=0
6450 echo "$as_me:$LINENO: checking for getopt_long" >&5
6451 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
6452 if test "${ac_cv_func_getopt_long+set}" = set; then
6453   echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455   cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6457 #include "confdefs.h"
6458 /* System header to define __stub macros and hopefully few prototypes,
6459     which can conflict with char getopt_long (); below.  */
6460 #include <assert.h>
6461 /* Override any gcc2 internal prototype to avoid an error.  */
6462 #ifdef __cplusplus
6463 extern "C"
6464 #endif
6465 /* We use char because int might match the return type of a gcc2
6466    builtin and then its argument prototype would still apply.  */
6467 char getopt_long ();
6468 char (*f) ();
6469
6470 #ifdef F77_DUMMY_MAIN
6471 #  ifdef __cplusplus
6472      extern "C"
6473 #  endif
6474    int F77_DUMMY_MAIN() { return 1; }
6475 #endif
6476 int
6477 main ()
6478 {
6479 /* The GNU C library defines this for functions which it implements
6480     to always fail with ENOSYS.  Some functions are actually named
6481     something starting with __ and the normal name is an alias.  */
6482 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
6483 choke me
6484 #else
6485 f = getopt_long;
6486 #endif
6487
6488   ;
6489   return 0;
6490 }
6491 _ACEOF
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494   (eval $ac_link) 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); } &&
6498          { ac_try='test -s conftest$ac_exeext'
6499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500   (eval $ac_try) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); }; }; then
6504   ac_cv_func_getopt_long=yes
6505 else
6506   echo "$as_me: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6508 ac_cv_func_getopt_long=no
6509 fi
6510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6511 fi
6512 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
6513 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
6514 if test $ac_cv_func_getopt_long = yes; then
6515
6516 cat >>confdefs.h <<\_ACEOF
6517 #define HAVE_GETOPT_LONG 1
6518 _ACEOF
6519
6520 else
6521    # FreeBSD has a gnugetopt library for this:
6522   echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
6523 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
6524 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
6525   echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527   ac_check_lib_save_LIBS=$LIBS
6528 LIBS="-lgnugetopt  $LIBS"
6529 cat >conftest.$ac_ext <<_ACEOF
6530 #line $LINENO "configure"
6531 #include "confdefs.h"
6532
6533 /* Override any gcc2 internal prototype to avoid an error.  */
6534 #ifdef __cplusplus
6535 extern "C"
6536 #endif
6537 /* We use char because int might match the return type of a gcc2
6538    builtin and then its argument prototype would still apply.  */
6539 char getopt_long ();
6540 #ifdef F77_DUMMY_MAIN
6541 #  ifdef __cplusplus
6542      extern "C"
6543 #  endif
6544    int F77_DUMMY_MAIN() { return 1; }
6545 #endif
6546 int
6547 main ()
6548 {
6549 getopt_long ();
6550   ;
6551   return 0;
6552 }
6553 _ACEOF
6554 rm -f conftest.$ac_objext conftest$ac_exeext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6556   (eval $ac_link) 2>&5
6557   ac_status=$?
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); } &&
6560          { ac_try='test -s conftest$ac_exeext'
6561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562   (eval $ac_try) 2>&5
6563   ac_status=$?
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); }; }; then
6566   ac_cv_lib_gnugetopt_getopt_long=yes
6567 else
6568   echo "$as_me: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6570 ac_cv_lib_gnugetopt_getopt_long=no
6571 fi
6572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6573 LIBS=$ac_check_lib_save_LIBS
6574 fi
6575 echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
6576 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
6577 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
6578
6579 cat >>confdefs.h <<\_ACEOF
6580 #define HAVE_GETOPT_LONG 1
6581 _ACEOF
6582  vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
6583 else
6584   NEED_GETOPT=1
6585 fi
6586
6587 fi
6588
6589
6590 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6591 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6592 if test "${ac_cv_type_signal+set}" = set; then
6593   echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595   cat >conftest.$ac_ext <<_ACEOF
6596 #line $LINENO "configure"
6597 #include "confdefs.h"
6598 #include <sys/types.h>
6599 #include <signal.h>
6600 #ifdef signal
6601 # undef signal
6602 #endif
6603 #ifdef __cplusplus
6604 extern "C" void (*signal (int, void (*)(int)))(int);
6605 #else
6606 void (*signal ()) ();
6607 #endif
6608
6609 #ifdef F77_DUMMY_MAIN
6610 #  ifdef __cplusplus
6611      extern "C"
6612 #  endif
6613    int F77_DUMMY_MAIN() { return 1; }
6614 #endif
6615 int
6616 main ()
6617 {
6618 int i;
6619   ;
6620   return 0;
6621 }
6622 _ACEOF
6623 rm -f conftest.$ac_objext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625   (eval $ac_compile) 2>&5
6626   ac_status=$?
6627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628   (exit $ac_status); } &&
6629          { ac_try='test -s conftest.$ac_objext'
6630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631   (eval $ac_try) 2>&5
6632   ac_status=$?
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); }; }; then
6635   ac_cv_type_signal=void
6636 else
6637   echo "$as_me: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 ac_cv_type_signal=int
6640 fi
6641 rm -f conftest.$ac_objext conftest.$ac_ext
6642 fi
6643 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6644 echo "${ECHO_T}$ac_cv_type_signal" >&6
6645
6646 cat >>confdefs.h <<_ACEOF
6647 #define RETSIGTYPE $ac_cv_type_signal
6648 _ACEOF
6649
6650
6651 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6652 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6653 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   ac_check_lib_save_LIBS=$LIBS
6657 LIBS="-ldl  $LIBS"
6658 cat >conftest.$ac_ext <<_ACEOF
6659 #line $LINENO "configure"
6660 #include "confdefs.h"
6661
6662 /* Override any gcc2 internal prototype to avoid an error.  */
6663 #ifdef __cplusplus
6664 extern "C"
6665 #endif
6666 /* We use char because int might match the return type of a gcc2
6667    builtin and then its argument prototype would still apply.  */
6668 char dlopen ();
6669 #ifdef F77_DUMMY_MAIN
6670 #  ifdef __cplusplus
6671      extern "C"
6672 #  endif
6673    int F77_DUMMY_MAIN() { return 1; }
6674 #endif
6675 int
6676 main ()
6677 {
6678 dlopen ();
6679   ;
6680   return 0;
6681 }
6682 _ACEOF
6683 rm -f conftest.$ac_objext conftest$ac_exeext
6684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6685   (eval $ac_link) 2>&5
6686   ac_status=$?
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); } &&
6689          { ac_try='test -s conftest$ac_exeext'
6690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691   (eval $ac_try) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; }; then
6695   ac_cv_lib_dl_dlopen=yes
6696 else
6697   echo "$as_me: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6699 ac_cv_lib_dl_dlopen=no
6700 fi
6701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6702 LIBS=$ac_check_lib_save_LIBS
6703 fi
6704 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6705 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6706 if test $ac_cv_lib_dl_dlopen = yes; then
6707   vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
6708 fi
6709
6710 echo "$as_me:$LINENO: checking for cos in -lm" >&5
6711 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
6712 if test "${ac_cv_lib_m_cos+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   ac_check_lib_save_LIBS=$LIBS
6716 LIBS="-lm  $LIBS"
6717 cat >conftest.$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6719 #include "confdefs.h"
6720
6721 /* Override any gcc2 internal prototype to avoid an error.  */
6722 #ifdef __cplusplus
6723 extern "C"
6724 #endif
6725 /* We use char because int might match the return type of a gcc2
6726    builtin and then its argument prototype would still apply.  */
6727 char cos ();
6728 #ifdef F77_DUMMY_MAIN
6729 #  ifdef __cplusplus
6730      extern "C"
6731 #  endif
6732    int F77_DUMMY_MAIN() { return 1; }
6733 #endif
6734 int
6735 main ()
6736 {
6737 cos ();
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 rm -f conftest.$ac_objext conftest$ac_exeext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744   (eval $ac_link) 2>&5
6745   ac_status=$?
6746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747   (exit $ac_status); } &&
6748          { ac_try='test -s conftest$ac_exeext'
6749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750   (eval $ac_try) 2>&5
6751   ac_status=$?
6752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753   (exit $ac_status); }; }; then
6754   ac_cv_lib_m_cos=yes
6755 else
6756   echo "$as_me: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6758 ac_cv_lib_m_cos=no
6759 fi
6760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6761 LIBS=$ac_check_lib_save_LIBS
6762 fi
6763 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
6764 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
6765 if test $ac_cv_lib_m_cos = yes; then
6766   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
6767   filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
6768 fi
6769
6770 echo "$as_me:$LINENO: checking for pow in -lm" >&5
6771 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
6772 if test "${ac_cv_lib_m_pow+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   ac_check_lib_save_LIBS=$LIBS
6776 LIBS="-lm  $LIBS"
6777 cat >conftest.$ac_ext <<_ACEOF
6778 #line $LINENO "configure"
6779 #include "confdefs.h"
6780
6781 /* Override any gcc2 internal prototype to avoid an error.  */
6782 #ifdef __cplusplus
6783 extern "C"
6784 #endif
6785 /* We use char because int might match the return type of a gcc2
6786    builtin and then its argument prototype would still apply.  */
6787 char pow ();
6788 #ifdef F77_DUMMY_MAIN
6789 #  ifdef __cplusplus
6790      extern "C"
6791 #  endif
6792    int F77_DUMMY_MAIN() { return 1; }
6793 #endif
6794 int
6795 main ()
6796 {
6797 pow ();
6798   ;
6799   return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest.$ac_objext conftest$ac_exeext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804   (eval $ac_link) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); } &&
6808          { ac_try='test -s conftest$ac_exeext'
6809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810   (eval $ac_try) 2>&5
6811   ac_status=$?
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); }; }; then
6814   ac_cv_lib_m_pow=yes
6815 else
6816   echo "$as_me: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6818 ac_cv_lib_m_pow=no
6819 fi
6820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6821 LIBS=$ac_check_lib_save_LIBS
6822 fi
6823 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
6824 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
6825 if test $ac_cv_lib_m_pow = yes; then
6826   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
6827   imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
6828   imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
6829   chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
6830
6831 fi
6832
6833
6834 THREAD_LIB=error
6835 if test "x${THREAD_LIB}" = xerror; then
6836   echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
6837 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
6838 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
6839   echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841   ac_check_lib_save_LIBS=$LIBS
6842 LIBS="-lpthread  $LIBS"
6843 cat >conftest.$ac_ext <<_ACEOF
6844 #line $LINENO "configure"
6845 #include "confdefs.h"
6846
6847 /* Override any gcc2 internal prototype to avoid an error.  */
6848 #ifdef __cplusplus
6849 extern "C"
6850 #endif
6851 /* We use char because int might match the return type of a gcc2
6852    builtin and then its argument prototype would still apply.  */
6853 char pthread_attr_init ();
6854 #ifdef F77_DUMMY_MAIN
6855 #  ifdef __cplusplus
6856      extern "C"
6857 #  endif
6858    int F77_DUMMY_MAIN() { return 1; }
6859 #endif
6860 int
6861 main ()
6862 {
6863 pthread_attr_init ();
6864   ;
6865   return 0;
6866 }
6867 _ACEOF
6868 rm -f conftest.$ac_objext conftest$ac_exeext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6870   (eval $ac_link) 2>&5
6871   ac_status=$?
6872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); } &&
6874          { ac_try='test -s conftest$ac_exeext'
6875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876   (eval $ac_try) 2>&5
6877   ac_status=$?
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); }; }; then
6880   ac_cv_lib_pthread_pthread_attr_init=yes
6881 else
6882   echo "$as_me: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6884 ac_cv_lib_pthread_pthread_attr_init=no
6885 fi
6886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6887 LIBS=$ac_check_lib_save_LIBS
6888 fi
6889 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
6890 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
6891 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
6892   THREAD_LIB="-lpthread"
6893 fi
6894
6895 fi
6896 if test "x${THREAD_LIB}" = xerror; then
6897   echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthreads" >&5
6898 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
6899 if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902   ac_check_lib_save_LIBS=$LIBS
6903 LIBS="-lpthreads  $LIBS"
6904 cat >conftest.$ac_ext <<_ACEOF
6905 #line $LINENO "configure"
6906 #include "confdefs.h"
6907
6908 /* Override any gcc2 internal prototype to avoid an error.  */
6909 #ifdef __cplusplus
6910 extern "C"
6911 #endif
6912 /* We use char because int might match the return type of a gcc2
6913    builtin and then its argument prototype would still apply.  */
6914 char pthread_attr_init ();
6915 #ifdef F77_DUMMY_MAIN
6916 #  ifdef __cplusplus
6917      extern "C"
6918 #  endif
6919    int F77_DUMMY_MAIN() { return 1; }
6920 #endif
6921 int
6922 main ()
6923 {
6924 pthread_attr_init ();
6925   ;
6926   return 0;
6927 }
6928 _ACEOF
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931   (eval $ac_link) 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); } &&
6935          { ac_try='test -s conftest$ac_exeext'
6936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937   (eval $ac_try) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); }; }; then
6941   ac_cv_lib_pthreads_pthread_attr_init=yes
6942 else
6943   echo "$as_me: failed program was:" >&5
6944 cat conftest.$ac_ext >&5
6945 ac_cv_lib_pthreads_pthread_attr_init=no
6946 fi
6947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6948 LIBS=$ac_check_lib_save_LIBS
6949 fi
6950 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
6951 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
6952 if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
6953   THREAD_LIB="-lpthreads"
6954 fi
6955
6956 fi
6957 if test "x${THREAD_LIB}" = xerror; then
6958   echo "$as_me:$LINENO: checking for pthread_attr_init in -lc_r" >&5
6959 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6
6960 if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
6961   echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963   ac_check_lib_save_LIBS=$LIBS
6964 LIBS="-lc_r  $LIBS"
6965 cat >conftest.$ac_ext <<_ACEOF
6966 #line $LINENO "configure"
6967 #include "confdefs.h"
6968
6969 /* Override any gcc2 internal prototype to avoid an error.  */
6970 #ifdef __cplusplus
6971 extern "C"
6972 #endif
6973 /* We use char because int might match the return type of a gcc2
6974    builtin and then its argument prototype would still apply.  */
6975 char pthread_attr_init ();
6976 #ifdef F77_DUMMY_MAIN
6977 #  ifdef __cplusplus
6978      extern "C"
6979 #  endif
6980    int F77_DUMMY_MAIN() { return 1; }
6981 #endif
6982 int
6983 main ()
6984 {
6985 pthread_attr_init ();
6986   ;
6987   return 0;
6988 }
6989 _ACEOF
6990 rm -f conftest.$ac_objext conftest$ac_exeext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6992   (eval $ac_link) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); } &&
6996          { ac_try='test -s conftest$ac_exeext'
6997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998   (eval $ac_try) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); }; }; then
7002   ac_cv_lib_c_r_pthread_attr_init=yes
7003 else
7004   echo "$as_me: failed program was:" >&5
7005 cat conftest.$ac_ext >&5
7006 ac_cv_lib_c_r_pthread_attr_init=no
7007 fi
7008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7009 LIBS=$ac_check_lib_save_LIBS
7010 fi
7011 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
7012 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6
7013 if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
7014   THREAD_LIB="-lc_r"
7015 fi
7016
7017 fi
7018 if test "x${THREAD_LIB}" = xerror; then
7019   echo "$as_me:$LINENO: checking for pthread_attr_init" >&5
7020 echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6
7021 if test "${ac_cv_func_pthread_attr_init+set}" = set; then
7022   echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024   cat >conftest.$ac_ext <<_ACEOF
7025 #line $LINENO "configure"
7026 #include "confdefs.h"
7027 /* System header to define __stub macros and hopefully few prototypes,
7028     which can conflict with char pthread_attr_init (); below.  */
7029 #include <assert.h>
7030 /* Override any gcc2 internal prototype to avoid an error.  */
7031 #ifdef __cplusplus
7032 extern "C"
7033 #endif
7034 /* We use char because int might match the return type of a gcc2
7035    builtin and then its argument prototype would still apply.  */
7036 char pthread_attr_init ();
7037 char (*f) ();
7038
7039 #ifdef F77_DUMMY_MAIN
7040 #  ifdef __cplusplus
7041      extern "C"
7042 #  endif
7043    int F77_DUMMY_MAIN() { return 1; }
7044 #endif
7045 int
7046 main ()
7047 {
7048 /* The GNU C library defines this for functions which it implements
7049     to always fail with ENOSYS.  Some functions are actually named
7050     something starting with __ and the normal name is an alias.  */
7051 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
7052 choke me
7053 #else
7054 f = pthread_attr_init;
7055 #endif
7056
7057   ;
7058   return 0;
7059 }
7060 _ACEOF
7061 rm -f conftest.$ac_objext conftest$ac_exeext
7062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7063   (eval $ac_link) 2>&5
7064   ac_status=$?
7065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066   (exit $ac_status); } &&
7067          { ac_try='test -s conftest$ac_exeext'
7068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069   (eval $ac_try) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; }; then
7073   ac_cv_func_pthread_attr_init=yes
7074 else
7075   echo "$as_me: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7077 ac_cv_func_pthread_attr_init=no
7078 fi
7079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7080 fi
7081 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_init" >&5
7082 echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6
7083
7084   THREAD_LIB=""
7085 fi
7086
7087 echo "$as_me:$LINENO: checking for cthread_fork in -lthreads" >&5
7088 echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
7089 if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   ac_check_lib_save_LIBS=$LIBS
7093 LIBS="-lthreads  $LIBS"
7094 cat >conftest.$ac_ext <<_ACEOF
7095 #line $LINENO "configure"
7096 #include "confdefs.h"
7097
7098 /* Override any gcc2 internal prototype to avoid an error.  */
7099 #ifdef __cplusplus
7100 extern "C"
7101 #endif
7102 /* We use char because int might match the return type of a gcc2
7103    builtin and then its argument prototype would still apply.  */
7104 char cthread_fork ();
7105 #ifdef F77_DUMMY_MAIN
7106 #  ifdef __cplusplus
7107      extern "C"
7108 #  endif
7109    int F77_DUMMY_MAIN() { return 1; }
7110 #endif
7111 int
7112 main ()
7113 {
7114 cthread_fork ();
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121   (eval $ac_link) 2>&5
7122   ac_status=$?
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } &&
7125          { ac_try='test -s conftest$ac_exeext'
7126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127   (eval $ac_try) 2>&5
7128   ac_status=$?
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); }; }; then
7131   ac_cv_lib_threads_cthread_fork=yes
7132 else
7133   echo "$as_me: failed program was:" >&5
7134 cat conftest.$ac_ext >&5
7135 ac_cv_lib_threads_cthread_fork=no
7136 fi
7137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7138 LIBS=$ac_check_lib_save_LIBS
7139 fi
7140 echo "$as_me:$LINENO: result: $ac_cv_lib_threads_cthread_fork" >&5
7141 echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6
7142 if test $ac_cv_lib_threads_cthread_fork = yes; then
7143   THREAD_LIB="-lthreads"
7144 fi
7145
7146
7147 cat >conftest.$ac_ext <<_ACEOF
7148 #line $LINENO "configure"
7149 #include "confdefs.h"
7150 #include <pthread.h>
7151
7152 _ACEOF
7153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7154   egrep "pthread_cond_t" >/dev/null 2>&1; then
7155
7156
7157 cat >>confdefs.h <<\_ACEOF
7158 #define PTHREAD_COND_T_IN_PTHREAD_H 1
7159 _ACEOF
7160
7161 fi
7162 rm -f conftest*
7163
7164 cat >conftest.$ac_ext <<_ACEOF
7165 #line $LINENO "configure"
7166 #include "confdefs.h"
7167 #include <strings.h>
7168
7169 _ACEOF
7170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7171   egrep "strncasecmp" >/dev/null 2>&1; then
7172
7173
7174 cat >>confdefs.h <<\_ACEOF
7175 #define STRNCASECMP_IN_STRINGS_H 1
7176 _ACEOF
7177
7178 fi
7179 rm -f conftest*
7180
7181
7182
7183
7184
7185
7186
7187 for ac_header in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
7188 do
7189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7191   echo "$as_me:$LINENO: checking for $ac_header" >&5
7192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 fi
7196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7198 else
7199   # Is the header compilable?
7200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7202 cat >conftest.$ac_ext <<_ACEOF
7203 #line $LINENO "configure"
7204 #include "confdefs.h"
7205 $ac_includes_default
7206 #include <$ac_header>
7207 _ACEOF
7208 rm -f conftest.$ac_objext
7209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7210   (eval $ac_compile) 2>&5
7211   ac_status=$?
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); } &&
7214          { ac_try='test -s conftest.$ac_objext'
7215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216   (eval $ac_try) 2>&5
7217   ac_status=$?
7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); }; }; then
7220   ac_header_compiler=yes
7221 else
7222   echo "$as_me: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7224 ac_header_compiler=no
7225 fi
7226 rm -f conftest.$ac_objext conftest.$ac_ext
7227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7228 echo "${ECHO_T}$ac_header_compiler" >&6
7229
7230 # Is the header present?
7231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7233 cat >conftest.$ac_ext <<_ACEOF
7234 #line $LINENO "configure"
7235 #include "confdefs.h"
7236 #include <$ac_header>
7237 _ACEOF
7238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7240   ac_status=$?
7241   egrep -v '^ *\+' conftest.er1 >conftest.err
7242   rm -f conftest.er1
7243   cat conftest.err >&5
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); } >/dev/null; then
7246   if test -s conftest.err; then
7247     ac_cpp_err=$ac_c_preproc_warn_flag
7248   else
7249     ac_cpp_err=
7250   fi
7251 else
7252   ac_cpp_err=yes
7253 fi
7254 if test -z "$ac_cpp_err"; then
7255   ac_header_preproc=yes
7256 else
7257   echo "$as_me: failed program was:" >&5
7258   cat conftest.$ac_ext >&5
7259   ac_header_preproc=no
7260 fi
7261 rm -f conftest.err conftest.$ac_ext
7262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7263 echo "${ECHO_T}$ac_header_preproc" >&6
7264
7265 # So?  What about this header?
7266 case $ac_header_compiler:$ac_header_preproc in
7267   yes:no )
7268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7272   no:yes )
7273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7275     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7279 esac
7280 echo "$as_me:$LINENO: checking for $ac_header" >&5
7281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   eval "$as_ac_Header=$ac_header_preproc"
7286 fi
7287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7289
7290 fi
7291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7292   cat >>confdefs.h <<_ACEOF
7293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7294 _ACEOF
7295
7296 fi
7297
7298 done
7299
7300
7301
7302
7303
7304
7305 for ac_header in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
7306 do
7307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7309   echo "$as_me:$LINENO: checking for $ac_header" >&5
7310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7312   echo $ECHO_N "(cached) $ECHO_C" >&6
7313 fi
7314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7316 else
7317   # Is the header compilable?
7318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7320 cat >conftest.$ac_ext <<_ACEOF
7321 #line $LINENO "configure"
7322 #include "confdefs.h"
7323 $ac_includes_default
7324 #include <$ac_header>
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328   (eval $ac_compile) 2>&5
7329   ac_status=$?
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); } &&
7332          { ac_try='test -s conftest.$ac_objext'
7333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334   (eval $ac_try) 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); }; }; then
7338   ac_header_compiler=yes
7339 else
7340   echo "$as_me: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7342 ac_header_compiler=no
7343 fi
7344 rm -f conftest.$ac_objext conftest.$ac_ext
7345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7346 echo "${ECHO_T}$ac_header_compiler" >&6
7347
7348 # Is the header present?
7349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7351 cat >conftest.$ac_ext <<_ACEOF
7352 #line $LINENO "configure"
7353 #include "confdefs.h"
7354 #include <$ac_header>
7355 _ACEOF
7356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7358   ac_status=$?
7359   egrep -v '^ *\+' conftest.er1 >conftest.err
7360   rm -f conftest.er1
7361   cat conftest.err >&5
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); } >/dev/null; then
7364   if test -s conftest.err; then
7365     ac_cpp_err=$ac_c_preproc_warn_flag
7366   else
7367     ac_cpp_err=
7368   fi
7369 else
7370   ac_cpp_err=yes
7371 fi
7372 if test -z "$ac_cpp_err"; then
7373   ac_header_preproc=yes
7374 else
7375   echo "$as_me: failed program was:" >&5
7376   cat conftest.$ac_ext >&5
7377   ac_header_preproc=no
7378 fi
7379 rm -f conftest.err conftest.$ac_ext
7380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7381 echo "${ECHO_T}$ac_header_preproc" >&6
7382
7383 # So?  What about this header?
7384 case $ac_header_compiler:$ac_header_preproc in
7385   yes:no )
7386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7390   no:yes )
7391     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7393     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7397 esac
7398 echo "$as_me:$LINENO: checking for $ac_header" >&5
7399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403   eval "$as_ac_Header=$ac_header_preproc"
7404 fi
7405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7407
7408 fi
7409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7410   cat >>confdefs.h <<_ACEOF
7411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7412 _ACEOF
7413
7414 fi
7415
7416 done
7417
7418
7419
7420 for ac_header in dlfcn.h image.h
7421 do
7422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7424   echo "$as_me:$LINENO: checking for $ac_header" >&5
7425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7427   echo $ECHO_N "(cached) $ECHO_C" >&6
7428 fi
7429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7431 else
7432   # Is the header compilable?
7433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7435 cat >conftest.$ac_ext <<_ACEOF
7436 #line $LINENO "configure"
7437 #include "confdefs.h"
7438 $ac_includes_default
7439 #include <$ac_header>
7440 _ACEOF
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443   (eval $ac_compile) 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } &&
7447          { ac_try='test -s conftest.$ac_objext'
7448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449   (eval $ac_try) 2>&5
7450   ac_status=$?
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); }; }; then
7453   ac_header_compiler=yes
7454 else
7455   echo "$as_me: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7457 ac_header_compiler=no
7458 fi
7459 rm -f conftest.$ac_objext conftest.$ac_ext
7460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7461 echo "${ECHO_T}$ac_header_compiler" >&6
7462
7463 # Is the header present?
7464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7466 cat >conftest.$ac_ext <<_ACEOF
7467 #line $LINENO "configure"
7468 #include "confdefs.h"
7469 #include <$ac_header>
7470 _ACEOF
7471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7473   ac_status=$?
7474   egrep -v '^ *\+' conftest.er1 >conftest.err
7475   rm -f conftest.er1
7476   cat conftest.err >&5
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); } >/dev/null; then
7479   if test -s conftest.err; then
7480     ac_cpp_err=$ac_c_preproc_warn_flag
7481   else
7482     ac_cpp_err=
7483   fi
7484 else
7485   ac_cpp_err=yes
7486 fi
7487 if test -z "$ac_cpp_err"; then
7488   ac_header_preproc=yes
7489 else
7490   echo "$as_me: failed program was:" >&5
7491   cat conftest.$ac_ext >&5
7492   ac_header_preproc=no
7493 fi
7494 rm -f conftest.err conftest.$ac_ext
7495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7496 echo "${ECHO_T}$ac_header_preproc" >&6
7497
7498 # So?  What about this header?
7499 case $ac_header_compiler:$ac_header_preproc in
7500   yes:no )
7501     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7505   no:yes )
7506     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7508     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7512 esac
7513 echo "$as_me:$LINENO: checking for $ac_header" >&5
7514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   eval "$as_ac_Header=$ac_header_preproc"
7519 fi
7520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7522
7523 fi
7524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525   cat >>confdefs.h <<_ACEOF
7526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7527 _ACEOF
7528
7529 fi
7530
7531 done
7532
7533
7534
7535
7536
7537 for ac_header in arpa/inet.h net/if.h netinet/in.h sys/socket.h
7538 do
7539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7541   echo "$as_me:$LINENO: checking for $ac_header" >&5
7542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 fi
7546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7548 else
7549   # Is the header compilable?
7550 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7552 cat >conftest.$ac_ext <<_ACEOF
7553 #line $LINENO "configure"
7554 #include "confdefs.h"
7555 $ac_includes_default
7556 #include <$ac_header>
7557 _ACEOF
7558 rm -f conftest.$ac_objext
7559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7560   (eval $ac_compile) 2>&5
7561   ac_status=$?
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); } &&
7564          { ac_try='test -s conftest.$ac_objext'
7565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566   (eval $ac_try) 2>&5
7567   ac_status=$?
7568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); }; }; then
7570   ac_header_compiler=yes
7571 else
7572   echo "$as_me: failed program was:" >&5
7573 cat conftest.$ac_ext >&5
7574 ac_header_compiler=no
7575 fi
7576 rm -f conftest.$ac_objext conftest.$ac_ext
7577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7578 echo "${ECHO_T}$ac_header_compiler" >&6
7579
7580 # Is the header present?
7581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7583 cat >conftest.$ac_ext <<_ACEOF
7584 #line $LINENO "configure"
7585 #include "confdefs.h"
7586 #include <$ac_header>
7587 _ACEOF
7588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7590   ac_status=$?
7591   egrep -v '^ *\+' conftest.er1 >conftest.err
7592   rm -f conftest.er1
7593   cat conftest.err >&5
7594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595   (exit $ac_status); } >/dev/null; then
7596   if test -s conftest.err; then
7597     ac_cpp_err=$ac_c_preproc_warn_flag
7598   else
7599     ac_cpp_err=
7600   fi
7601 else
7602   ac_cpp_err=yes
7603 fi
7604 if test -z "$ac_cpp_err"; then
7605   ac_header_preproc=yes
7606 else
7607   echo "$as_me: failed program was:" >&5
7608   cat conftest.$ac_ext >&5
7609   ac_header_preproc=no
7610 fi
7611 rm -f conftest.err conftest.$ac_ext
7612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7613 echo "${ECHO_T}$ac_header_preproc" >&6
7614
7615 # So?  What about this header?
7616 case $ac_header_compiler:$ac_header_preproc in
7617   yes:no )
7618     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7622   no:yes )
7623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7625     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7629 esac
7630 echo "$as_me:$LINENO: checking for $ac_header" >&5
7631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635   eval "$as_ac_Header=$ac_header_preproc"
7636 fi
7637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7639
7640 fi
7641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7642   cat >>confdefs.h <<_ACEOF
7643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7644 _ACEOF
7645
7646 fi
7647
7648 done
7649
7650
7651
7652 for ac_header in machine/param.h sys/shm.h
7653 do
7654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7656   echo "$as_me:$LINENO: checking for $ac_header" >&5
7657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7659   echo $ECHO_N "(cached) $ECHO_C" >&6
7660 fi
7661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7663 else
7664   # Is the header compilable?
7665 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7667 cat >conftest.$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7669 #include "confdefs.h"
7670 $ac_includes_default
7671 #include <$ac_header>
7672 _ACEOF
7673 rm -f conftest.$ac_objext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7675   (eval $ac_compile) 2>&5
7676   ac_status=$?
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); } &&
7679          { ac_try='test -s conftest.$ac_objext'
7680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681   (eval $ac_try) 2>&5
7682   ac_status=$?
7683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684   (exit $ac_status); }; }; then
7685   ac_header_compiler=yes
7686 else
7687   echo "$as_me: failed program was:" >&5
7688 cat conftest.$ac_ext >&5
7689 ac_header_compiler=no
7690 fi
7691 rm -f conftest.$ac_objext conftest.$ac_ext
7692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7693 echo "${ECHO_T}$ac_header_compiler" >&6
7694
7695 # Is the header present?
7696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7698 cat >conftest.$ac_ext <<_ACEOF
7699 #line $LINENO "configure"
7700 #include "confdefs.h"
7701 #include <$ac_header>
7702 _ACEOF
7703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7705   ac_status=$?
7706   egrep -v '^ *\+' conftest.er1 >conftest.err
7707   rm -f conftest.er1
7708   cat conftest.err >&5
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); } >/dev/null; then
7711   if test -s conftest.err; then
7712     ac_cpp_err=$ac_c_preproc_warn_flag
7713   else
7714     ac_cpp_err=
7715   fi
7716 else
7717   ac_cpp_err=yes
7718 fi
7719 if test -z "$ac_cpp_err"; then
7720   ac_header_preproc=yes
7721 else
7722   echo "$as_me: failed program was:" >&5
7723   cat conftest.$ac_ext >&5
7724   ac_header_preproc=no
7725 fi
7726 rm -f conftest.err conftest.$ac_ext
7727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7728 echo "${ECHO_T}$ac_header_preproc" >&6
7729
7730 # So?  What about this header?
7731 case $ac_header_compiler:$ac_header_preproc in
7732   yes:no )
7733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7737   no:yes )
7738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7740     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7744 esac
7745 echo "$as_me:$LINENO: checking for $ac_header" >&5
7746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750   eval "$as_ac_Header=$ac_header_preproc"
7751 fi
7752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7754
7755 fi
7756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7757   cat >>confdefs.h <<_ACEOF
7758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7759 _ACEOF
7760
7761 fi
7762
7763 done
7764
7765
7766 for ac_header in linux/version.h
7767 do
7768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7770   echo "$as_me:$LINENO: checking for $ac_header" >&5
7771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 fi
7775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7777 else
7778   # Is the header compilable?
7779 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7781 cat >conftest.$ac_ext <<_ACEOF
7782 #line $LINENO "configure"
7783 #include "confdefs.h"
7784 $ac_includes_default
7785 #include <$ac_header>
7786 _ACEOF
7787 rm -f conftest.$ac_objext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7789   (eval $ac_compile) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); } &&
7793          { ac_try='test -s conftest.$ac_objext'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; }; then
7799   ac_header_compiler=yes
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 cat conftest.$ac_ext >&5
7803 ac_header_compiler=no
7804 fi
7805 rm -f conftest.$ac_objext conftest.$ac_ext
7806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7807 echo "${ECHO_T}$ac_header_compiler" >&6
7808
7809 # Is the header present?
7810 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7812 cat >conftest.$ac_ext <<_ACEOF
7813 #line $LINENO "configure"
7814 #include "confdefs.h"
7815 #include <$ac_header>
7816 _ACEOF
7817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7818   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7819   ac_status=$?
7820   egrep -v '^ *\+' conftest.er1 >conftest.err
7821   rm -f conftest.er1
7822   cat conftest.err >&5
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); } >/dev/null; then
7825   if test -s conftest.err; then
7826     ac_cpp_err=$ac_c_preproc_warn_flag
7827   else
7828     ac_cpp_err=
7829   fi
7830 else
7831   ac_cpp_err=yes
7832 fi
7833 if test -z "$ac_cpp_err"; then
7834   ac_header_preproc=yes
7835 else
7836   echo "$as_me: failed program was:" >&5
7837   cat conftest.$ac_ext >&5
7838   ac_header_preproc=no
7839 fi
7840 rm -f conftest.err conftest.$ac_ext
7841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7842 echo "${ECHO_T}$ac_header_preproc" >&6
7843
7844 # So?  What about this header?
7845 case $ac_header_compiler:$ac_header_preproc in
7846   yes:no )
7847     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7851   no:yes )
7852     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7854     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7858 esac
7859 echo "$as_me:$LINENO: checking for $ac_header" >&5
7860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7862   echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864   eval "$as_ac_Header=$ac_header_preproc"
7865 fi
7866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868
7869 fi
7870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7871   cat >>confdefs.h <<_ACEOF
7872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7873 _ACEOF
7874
7875 fi
7876
7877 done
7878
7879
7880 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7881 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7882 if test "${ac_cv_header_time+set}" = set; then
7883   echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885   cat >conftest.$ac_ext <<_ACEOF
7886 #line $LINENO "configure"
7887 #include "confdefs.h"
7888 #include <sys/types.h>
7889 #include <sys/time.h>
7890 #include <time.h>
7891
7892 #ifdef F77_DUMMY_MAIN
7893 #  ifdef __cplusplus
7894      extern "C"
7895 #  endif
7896    int F77_DUMMY_MAIN() { return 1; }
7897 #endif
7898 int
7899 main ()
7900 {
7901 if ((struct tm *) 0)
7902 return 0;
7903   ;
7904   return 0;
7905 }
7906 _ACEOF
7907 rm -f conftest.$ac_objext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7909   (eval $ac_compile) 2>&5
7910   ac_status=$?
7911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912   (exit $ac_status); } &&
7913          { ac_try='test -s conftest.$ac_objext'
7914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915   (eval $ac_try) 2>&5
7916   ac_status=$?
7917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); }; }; then
7919   ac_cv_header_time=yes
7920 else
7921   echo "$as_me: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7923 ac_cv_header_time=no
7924 fi
7925 rm -f conftest.$ac_objext conftest.$ac_ext
7926 fi
7927 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7928 echo "${ECHO_T}$ac_cv_header_time" >&6
7929 if test $ac_cv_header_time = yes; then
7930
7931 cat >>confdefs.h <<\_ACEOF
7932 #define TIME_WITH_SYS_TIME 1
7933 _ACEOF
7934
7935 fi
7936
7937
7938 cat >conftest.$ac_ext <<_ACEOF
7939 #line $LINENO "configure"
7940 #include "confdefs.h"
7941 #include <time.h>
7942
7943 _ACEOF
7944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7945   egrep "nanosleep" >/dev/null 2>&1; then
7946
7947
7948 cat >>confdefs.h <<\_ACEOF
7949 #define HAVE_DECL_NANOSLEEP 1
7950 _ACEOF
7951
7952
7953 fi
7954 rm -f conftest*
7955
7956
7957 cat >conftest.$ac_ext <<_ACEOF
7958 #line $LINENO "configure"
7959 #include "confdefs.h"
7960 #include <sys/time.h>
7961
7962 _ACEOF
7963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7964   egrep "timespec" >/dev/null 2>&1; then
7965
7966
7967 cat >>confdefs.h <<\_ACEOF
7968 #define HAVE_STRUCT_TIMESPEC 1
7969 _ACEOF
7970
7971
7972 fi
7973 rm -f conftest*
7974
7975
7976
7977
7978
7979
7980 for ac_header in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
7981 do
7982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7984   echo "$as_me:$LINENO: checking for $ac_header" >&5
7985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7987   echo $ECHO_N "(cached) $ECHO_C" >&6
7988 fi
7989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7991 else
7992   # Is the header compilable?
7993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7995 cat >conftest.$ac_ext <<_ACEOF
7996 #line $LINENO "configure"
7997 #include "confdefs.h"
7998 $ac_includes_default
7999 #include <$ac_header>
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003   (eval $ac_compile) 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } &&
8007          { ac_try='test -s conftest.$ac_objext'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; }; then
8013   ac_header_compiler=yes
8014 else
8015   echo "$as_me: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8017 ac_header_compiler=no
8018 fi
8019 rm -f conftest.$ac_objext conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8021 echo "${ECHO_T}$ac_header_compiler" >&6
8022
8023 # Is the header present?
8024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8027 #line $LINENO "configure"
8028 #include "confdefs.h"
8029 #include <$ac_header>
8030 _ACEOF
8031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8033   ac_status=$?
8034   egrep -v '^ *\+' conftest.er1 >conftest.err
8035   rm -f conftest.er1
8036   cat conftest.err >&5
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); } >/dev/null; then
8039   if test -s conftest.err; then
8040     ac_cpp_err=$ac_c_preproc_warn_flag
8041   else
8042     ac_cpp_err=
8043   fi
8044 else
8045   ac_cpp_err=yes
8046 fi
8047 if test -z "$ac_cpp_err"; then
8048   ac_header_preproc=yes
8049 else
8050   echo "$as_me: failed program was:" >&5
8051   cat conftest.$ac_ext >&5
8052   ac_header_preproc=no
8053 fi
8054 rm -f conftest.err conftest.$ac_ext
8055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8056 echo "${ECHO_T}$ac_header_preproc" >&6
8057
8058 # So?  What about this header?
8059 case $ac_header_compiler:$ac_header_preproc in
8060   yes:no )
8061     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8065   no:yes )
8066     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8068     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8072 esac
8073 echo "$as_me:$LINENO: checking for $ac_header" >&5
8074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8076   echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078   eval "$as_ac_Header=$ac_header_preproc"
8079 fi
8080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8082
8083 fi
8084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8085   cat >>confdefs.h <<_ACEOF
8086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8087 _ACEOF
8088
8089 fi
8090
8091 done
8092
8093
8094 if test x$SYS != xmingw32
8095 then
8096   if test x$x_includes = xNONE; then
8097     x_includes=/usr/X11R6/include
8098   fi
8099   if test x$x_libraries = xNONE; then
8100     x_libraries=/usr/X11R6/lib
8101   fi
8102   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
8103
8104 for ac_header in X11/extensions/dpms.h
8105 do
8106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8108   echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 fi
8113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8115 else
8116   # Is the header compilable?
8117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 #include "confdefs.h"
8122 $ac_includes_default
8123 #include <$ac_header>
8124 _ACEOF
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127   (eval $ac_compile) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } &&
8131          { ac_try='test -s conftest.$ac_objext'
8132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133   (eval $ac_try) 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); }; }; then
8137   ac_header_compiler=yes
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8141 ac_header_compiler=no
8142 fi
8143 rm -f conftest.$ac_objext conftest.$ac_ext
8144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145 echo "${ECHO_T}$ac_header_compiler" >&6
8146
8147 # Is the header present?
8148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line $LINENO "configure"
8152 #include "confdefs.h"
8153 #include <$ac_header>
8154 _ACEOF
8155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157   ac_status=$?
8158   egrep -v '^ *\+' conftest.er1 >conftest.err
8159   rm -f conftest.er1
8160   cat conftest.err >&5
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); } >/dev/null; then
8163   if test -s conftest.err; then
8164     ac_cpp_err=$ac_c_preproc_warn_flag
8165   else
8166     ac_cpp_err=
8167   fi
8168 else
8169   ac_cpp_err=yes
8170 fi
8171 if test -z "$ac_cpp_err"; then
8172   ac_header_preproc=yes
8173 else
8174   echo "$as_me: failed program was:" >&5
8175   cat conftest.$ac_ext >&5
8176   ac_header_preproc=no
8177 fi
8178 rm -f conftest.err conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8180 echo "${ECHO_T}$ac_header_preproc" >&6
8181
8182 # So?  What about this header?
8183 case $ac_header_compiler:$ac_header_preproc in
8184   yes:no )
8185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8189   no:yes )
8190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8196 esac
8197 echo "$as_me:$LINENO: checking for $ac_header" >&5
8198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   eval "$as_ac_Header=$ac_header_preproc"
8203 fi
8204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8206
8207 fi
8208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8209   cat >>confdefs.h <<_ACEOF
8210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8211 _ACEOF
8212
8213     cat >conftest.$ac_ext <<_ACEOF
8214 #line $LINENO "configure"
8215 #include "confdefs.h"
8216 #include <X11/extensions/dpms.h>
8217
8218 _ACEOF
8219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8220   egrep "DPMSInfo" >/dev/null 2>&1; then
8221
8222
8223 cat >>confdefs.h <<\_ACEOF
8224 #define DPMSINFO_IN_DPMS_H 1
8225 _ACEOF
8226
8227
8228 fi
8229 rm -f conftest*
8230
8231
8232 fi
8233
8234 done
8235
8236   CPPFLAGS="$save_CPPFLAGS"
8237 fi
8238
8239 echo "$as_me:$LINENO: checking for ntohl in sys/param.h" >&5
8240 echo $ECHO_N "checking for ntohl in sys/param.h... $ECHO_C" >&6
8241 if test "${ac_cv_c_ntohl_sys_param_h+set}" = set; then
8242   echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244   CFLAGS="${save_CFLAGS} -Wall -Werror"
8245      cat >conftest.$ac_ext <<_ACEOF
8246 #line $LINENO "configure"
8247 #include "confdefs.h"
8248 #include <sys/param.h>
8249 #ifdef F77_DUMMY_MAIN
8250 #  ifdef __cplusplus
8251      extern "C"
8252 #  endif
8253    int F77_DUMMY_MAIN() { return 1; }
8254 #endif
8255 int
8256 main ()
8257 {
8258 void foo() { int meuh; ntohl(meuh); }
8259   ;
8260   return 0;
8261 }
8262 _ACEOF
8263 rm -f conftest.$ac_objext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8265   (eval $ac_compile) 2>&5
8266   ac_status=$?
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); } &&
8269          { ac_try='test -s conftest.$ac_objext'
8270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271   (eval $ac_try) 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; }; then
8275   ac_cv_c_ntohl_sys_param_h=yes
8276 else
8277   echo "$as_me: failed program was:" >&5
8278 cat conftest.$ac_ext >&5
8279 ac_cv_c_ntohl_sys_param_h=no
8280 fi
8281 rm -f conftest.$ac_objext conftest.$ac_ext
8282 fi
8283 echo "$as_me:$LINENO: result: $ac_cv_c_ntohl_sys_param_h" >&5
8284 echo "${ECHO_T}$ac_cv_c_ntohl_sys_param_h" >&6
8285 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
8286
8287 cat >>confdefs.h <<\_ACEOF
8288 #define NTOHL_IN_SYS_PARAM_H 1
8289 _ACEOF
8290
8291 fi
8292
8293 echo "$as_me:$LINENO: checking if \$CC accepts -finline-limit" >&5
8294 echo $ECHO_N "checking if \$CC accepts -finline-limit... $ECHO_C" >&6
8295 if test "${ac_cv_c_inline_limit+set}" = set; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   CFLAGS="${save_CFLAGS} -finline-limit-30000"
8299      cat >conftest.$ac_ext <<_ACEOF
8300 #line $LINENO "configure"
8301 #include "confdefs.h"
8302
8303 #ifdef F77_DUMMY_MAIN
8304 #  ifdef __cplusplus
8305      extern "C"
8306 #  endif
8307    int F77_DUMMY_MAIN() { return 1; }
8308 #endif
8309 int
8310 main ()
8311 {
8312
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 rm -f conftest.$ac_objext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8319   (eval $ac_compile) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); } &&
8323          { ac_try='test -s conftest.$ac_objext'
8324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325   (eval $ac_try) 2>&5
8326   ac_status=$?
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); }; }; then
8329   ac_cv_c_inline_limit=yes
8330 else
8331   echo "$as_me: failed program was:" >&5
8332 cat conftest.$ac_ext >&5
8333 ac_cv_c_inline_limit=no
8334 fi
8335 rm -f conftest.$ac_objext conftest.$ac_ext
8336 fi
8337 echo "$as_me:$LINENO: result: $ac_cv_c_inline_limit" >&5
8338 echo "${ECHO_T}$ac_cv_c_inline_limit" >&6
8339 if test x"$ac_cv_c_inline_limit" != x"no"; then
8340     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
8341 fi
8342
8343 echo "$as_me:$LINENO: checking if \$CC accepts -Wall -Winline" >&5
8344 echo $ECHO_N "checking if \$CC accepts -Wall -Winline... $ECHO_C" >&6
8345 if test "${ac_cv_c_Wall_Winline+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   CFLAGS="${save_CFLAGS} -Wall -Winline"
8349      cat >conftest.$ac_ext <<_ACEOF
8350 #line $LINENO "configure"
8351 #include "confdefs.h"
8352
8353 #ifdef F77_DUMMY_MAIN
8354 #  ifdef __cplusplus
8355      extern "C"
8356 #  endif
8357    int F77_DUMMY_MAIN() { return 1; }
8358 #endif
8359 int
8360 main ()
8361 {
8362
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8369   (eval $ac_compile) 2>&5
8370   ac_status=$?
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } &&
8373          { ac_try='test -s conftest.$ac_objext'
8374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375   (eval $ac_try) 2>&5
8376   ac_status=$?
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); }; }; then
8379   ac_cv_c_Wall_Winline=yes
8380 else
8381   echo "$as_me: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8383 ac_cv_c_Wall_Winline=no
8384 fi
8385 rm -f conftest.$ac_objext conftest.$ac_ext
8386 fi
8387 echo "$as_me:$LINENO: result: $ac_cv_c_Wall_Winline" >&5
8388 echo "${ECHO_T}$ac_cv_c_Wall_Winline" >&6
8389 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
8390     save_CFLAGS="${save_CFLAGS} -Wall -Winline"
8391 else
8392     echo "$as_me:$LINENO: checking if \$CC accepts -wall -winline" >&5
8393 echo $ECHO_N "checking if \$CC accepts -wall -winline... $ECHO_C" >&6
8394 if test "${ac_cv_c_wall_winline+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   CFLAGS="${save_CFLAGS} -wall -winline"
8398          cat >conftest.$ac_ext <<_ACEOF
8399 #line $LINENO "configure"
8400 #include "confdefs.h"
8401
8402 #ifdef F77_DUMMY_MAIN
8403 #  ifdef __cplusplus
8404      extern "C"
8405 #  endif
8406    int F77_DUMMY_MAIN() { return 1; }
8407 #endif
8408 int
8409 main ()
8410 {
8411
8412   ;
8413   return 0;
8414 }
8415 _ACEOF
8416 rm -f conftest.$ac_objext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418   (eval $ac_compile) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); } &&
8422          { ac_try='test -s conftest.$ac_objext'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; }; then
8428   ac_cv_c_wall_winline=yes
8429 else
8430   echo "$as_me: failed program was:" >&5
8431 cat conftest.$ac_ext >&5
8432 ac_cv_c_wall_winline=no
8433 fi
8434 rm -f conftest.$ac_objext conftest.$ac_ext
8435 fi
8436 echo "$as_me:$LINENO: result: $ac_cv_c_wall_winline" >&5
8437 echo "${ECHO_T}$ac_cv_c_wall_winline" >&6
8438     if test x"$ac_cv_c_wall_winline" != x"no"; then
8439         save_CFLAGS="${save_CFLAGS} -wall -winline"
8440     fi
8441 fi
8442
8443 echo "$as_me:$LINENO: checking if \$CC accepts -pipe" >&5
8444 echo $ECHO_N "checking if \$CC accepts -pipe... $ECHO_C" >&6
8445 if test "${ac_cv_c_pipe+set}" = set; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448   CFLAGS="${save_CFLAGS} -pipe"
8449      cat >conftest.$ac_ext <<_ACEOF
8450 #line $LINENO "configure"
8451 #include "confdefs.h"
8452
8453 #ifdef F77_DUMMY_MAIN
8454 #  ifdef __cplusplus
8455      extern "C"
8456 #  endif
8457    int F77_DUMMY_MAIN() { return 1; }
8458 #endif
8459 int
8460 main ()
8461 {
8462
8463   ;
8464   return 0;
8465 }
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8469   (eval $ac_compile) 2>&5
8470   ac_status=$?
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); } &&
8473          { ac_try='test -s conftest.$ac_objext'
8474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475   (eval $ac_try) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); }; }; then
8479   ac_cv_c_pipe=yes
8480 else
8481   echo "$as_me: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8483 ac_cv_c_pipe=no
8484 fi
8485 rm -f conftest.$ac_objext conftest.$ac_ext
8486 fi
8487 echo "$as_me:$LINENO: result: $ac_cv_c_pipe" >&5
8488 echo "${ECHO_T}$ac_cv_c_pipe" >&6
8489 if test x"$ac_cv_c_pipe" != x"no"; then
8490     save_CFLAGS="${save_CFLAGS} -pipe"
8491 fi
8492
8493 echo "$as_me:$LINENO: checking if \$CC accepts -O3" >&5
8494 echo $ECHO_N "checking if \$CC accepts -O3... $ECHO_C" >&6
8495 if test "${ac_cv_c_o3+set}" = set; then
8496   echo $ECHO_N "(cached) $ECHO_C" >&6
8497 else
8498   CFLAGS="${save_CFLAGS} -O3"
8499      cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 #include "confdefs.h"
8502
8503 #ifdef F77_DUMMY_MAIN
8504 #  ifdef __cplusplus
8505      extern "C"
8506 #  endif
8507    int F77_DUMMY_MAIN() { return 1; }
8508 #endif
8509 int
8510 main ()
8511 {
8512
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519   (eval $ac_compile) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -s conftest.$ac_objext'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; }; then
8529   ac_cv_c_o3=yes
8530 else
8531   echo "$as_me: failed program was:" >&5
8532 cat conftest.$ac_ext >&5
8533 ac_cv_c_o3=no
8534 fi
8535 rm -f conftest.$ac_objext conftest.$ac_ext
8536 fi
8537 echo "$as_me:$LINENO: result: $ac_cv_c_o3" >&5
8538 echo "${ECHO_T}$ac_cv_c_o3" >&6
8539 if test x"$ac_cv_c_o3" != x"no"; then
8540     CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
8541 else
8542     echo "$as_me:$LINENO: checking if \$CC accepts -O2" >&5
8543 echo $ECHO_N "checking if \$CC accepts -O2... $ECHO_C" >&6
8544 if test "${ac_cv_c_o2+set}" = set; then
8545   echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547   CFLAGS="${save_CFLAGS} -O2"
8548          cat >conftest.$ac_ext <<_ACEOF
8549 #line $LINENO "configure"
8550 #include "confdefs.h"
8551
8552 #ifdef F77_DUMMY_MAIN
8553 #  ifdef __cplusplus
8554      extern "C"
8555 #  endif
8556    int F77_DUMMY_MAIN() { return 1; }
8557 #endif
8558 int
8559 main ()
8560 {
8561
8562   ;
8563   return 0;
8564 }
8565 _ACEOF
8566 rm -f conftest.$ac_objext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568   (eval $ac_compile) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); } &&
8572          { ac_try='test -s conftest.$ac_objext'
8573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574   (eval $ac_try) 2>&5
8575   ac_status=$?
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); }; }; then
8578   ac_cv_c_o2=yes
8579 else
8580   echo "$as_me: failed program was:" >&5
8581 cat conftest.$ac_ext >&5
8582 ac_cv_c_o2=no
8583 fi
8584 rm -f conftest.$ac_objext conftest.$ac_ext
8585 fi
8586 echo "$as_me:$LINENO: result: $ac_cv_c_o2" >&5
8587 echo "${ECHO_T}$ac_cv_c_o2" >&6
8588     if test x"$ac_cv_c_o2" != x"no"; then
8589         CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
8590     else
8591         echo "$as_me:$LINENO: checking if \$CC accepts -O" >&5
8592 echo $ECHO_N "checking if \$CC accepts -O... $ECHO_C" >&6
8593 if test "${ac_cv_c_o+set}" = set; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596   CFLAGS="${save_CFLAGS} -O"
8597              cat >conftest.$ac_ext <<_ACEOF
8598 #line $LINENO "configure"
8599 #include "confdefs.h"
8600
8601 #ifdef F77_DUMMY_MAIN
8602 #  ifdef __cplusplus
8603      extern "C"
8604 #  endif
8605    int F77_DUMMY_MAIN() { return 1; }
8606 #endif
8607 int
8608 main ()
8609 {
8610
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 rm -f conftest.$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617   (eval $ac_compile) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -s conftest.$ac_objext'
8622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623   (eval $ac_try) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; }; then
8627   ac_cv_c_o=yes
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8631 ac_cv_c_o=no
8632 fi
8633 rm -f conftest.$ac_objext conftest.$ac_ext
8634 fi
8635 echo "$as_me:$LINENO: result: $ac_cv_c_o" >&5
8636 echo "${ECHO_T}$ac_cv_c_o" >&6
8637         if test x"$ac_cv_c_o" != x"no"; then
8638             CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
8639         fi
8640     fi
8641 fi
8642
8643 echo "$as_me:$LINENO: checking if \$CC accepts -ffast-math" >&5
8644 echo $ECHO_N "checking if \$CC accepts -ffast-math... $ECHO_C" >&6
8645 if test "${ac_cv_c_fast_math+set}" = set; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   CFLAGS="${save_CFLAGS} -ffast-math"
8649      cat >conftest.$ac_ext <<_ACEOF
8650 #line $LINENO "configure"
8651 #include "confdefs.h"
8652
8653 #ifdef F77_DUMMY_MAIN
8654 #  ifdef __cplusplus
8655      extern "C"
8656 #  endif
8657    int F77_DUMMY_MAIN() { return 1; }
8658 #endif
8659 int
8660 main ()
8661 {
8662
8663   ;
8664   return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8669   (eval $ac_compile) 2>&5
8670   ac_status=$?
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); } &&
8673          { ac_try='test -s conftest.$ac_objext'
8674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675   (eval $ac_try) 2>&5
8676   ac_status=$?
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); }; }; then
8679   ac_cv_c_fast_math=yes
8680 else
8681   echo "$as_me: failed program was:" >&5
8682 cat conftest.$ac_ext >&5
8683 ac_cv_c_fast_math=no
8684 fi
8685 rm -f conftest.$ac_objext conftest.$ac_ext
8686 fi
8687 echo "$as_me:$LINENO: result: $ac_cv_c_fast_math" >&5
8688 echo "${ECHO_T}$ac_cv_c_fast_math" >&6
8689 if test x"$ac_cv_c_fast_math" != x"no"; then
8690     CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
8691 fi
8692
8693 echo "$as_me:$LINENO: checking if \$CC accepts -funroll-loops" >&5
8694 echo $ECHO_N "checking if \$CC accepts -funroll-loops... $ECHO_C" >&6
8695 if test "${ac_cv_c_unroll_loops+set}" = set; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698   CFLAGS="${save_CFLAGS} -funroll-loops"
8699      cat >conftest.$ac_ext <<_ACEOF
8700 #line $LINENO "configure"
8701 #include "confdefs.h"
8702
8703 #ifdef F77_DUMMY_MAIN
8704 #  ifdef __cplusplus
8705      extern "C"
8706 #  endif
8707    int F77_DUMMY_MAIN() { return 1; }
8708 #endif
8709 int
8710 main ()
8711 {
8712
8713   ;
8714   return 0;
8715 }
8716 _ACEOF
8717 rm -f conftest.$ac_objext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8719   (eval $ac_compile) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); } &&
8723          { ac_try='test -s conftest.$ac_objext'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; }; then
8729   ac_cv_c_unroll_loops=yes
8730 else
8731   echo "$as_me: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8733 ac_cv_c_unroll_loops=no
8734 fi
8735 rm -f conftest.$ac_objext conftest.$ac_ext
8736 fi
8737 echo "$as_me:$LINENO: result: $ac_cv_c_unroll_loops" >&5
8738 echo "${ECHO_T}$ac_cv_c_unroll_loops" >&6
8739 if test x"$ac_cv_c_unroll_loops" != x"no"; then
8740     CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
8741 fi
8742
8743 echo "$as_me:$LINENO: checking if \$CC accepts -fomit-frame-pointer" >&5
8744 echo $ECHO_N "checking if \$CC accepts -fomit-frame-pointer... $ECHO_C" >&6
8745 if test "${ac_cv_c_omit_frame_pointer+set}" = set; then
8746   echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748   CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
8749      cat >conftest.$ac_ext <<_ACEOF
8750 #line $LINENO "configure"
8751 #include "confdefs.h"
8752
8753 #ifdef F77_DUMMY_MAIN
8754 #  ifdef __cplusplus
8755      extern "C"
8756 #  endif
8757    int F77_DUMMY_MAIN() { return 1; }
8758 #endif
8759 int
8760 main ()
8761 {
8762
8763   ;
8764   return 0;
8765 }
8766 _ACEOF
8767 rm -f conftest.$ac_objext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8769   (eval $ac_compile) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } &&
8773          { ac_try='test -s conftest.$ac_objext'
8774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775   (eval $ac_try) 2>&5
8776   ac_status=$?
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); }; }; then
8779   ac_cv_c_omit_frame_pointer=yes
8780 else
8781   echo "$as_me: failed program was:" >&5
8782 cat conftest.$ac_ext >&5
8783 ac_cv_c_omit_frame_pointer=no
8784 fi
8785 rm -f conftest.$ac_objext conftest.$ac_ext
8786 fi
8787 echo "$as_me:$LINENO: result: $ac_cv_c_omit_frame_pointer" >&5
8788 echo "${ECHO_T}$ac_cv_c_omit_frame_pointer" >&6
8789 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
8790     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
8791 fi
8792
8793 echo "$as_me:$LINENO: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
8794 echo $ECHO_N "checking if \$CC accepts -bundle -undefined error -lcc_dynamic... $ECHO_C" >&6
8795 if test "${ac_cv_ld_darwin+set}" = set; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798   CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
8799      cat >conftest.$ac_ext <<_ACEOF
8800 #line $LINENO "configure"
8801 #include "confdefs.h"
8802
8803 #ifdef F77_DUMMY_MAIN
8804 #  ifdef __cplusplus
8805      extern "C"
8806 #  endif
8807    int F77_DUMMY_MAIN() { return 1; }
8808 #endif
8809 int
8810 main ()
8811 {
8812
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 rm -f conftest.$ac_objext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819   (eval $ac_compile) 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } &&
8823          { ac_try='test -s conftest.$ac_objext'
8824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825   (eval $ac_try) 2>&5
8826   ac_status=$?
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); }; }; then
8829   ac_cv_ld_darwin=yes
8830 else
8831   echo "$as_me: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8833 ac_cv_ld_darwin=no
8834 fi
8835 rm -f conftest.$ac_objext conftest.$ac_ext
8836 fi
8837 echo "$as_me:$LINENO: result: $ac_cv_ld_darwin" >&5
8838 echo "${ECHO_T}$ac_cv_ld_darwin" >&6
8839 if test x"$ac_cv_ld_darwin" != x"no"; then
8840     plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
8841 fi
8842
8843 echo "$as_me:$LINENO: checking if \$CC accepts -shared" >&5
8844 echo $ECHO_N "checking if \$CC accepts -shared... $ECHO_C" >&6
8845 if test "${ac_cv_ld_plugins+set}" = set; then
8846   echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848   CFLAGS="${save_CFLAGS} -shared"
8849      cat >conftest.$ac_ext <<_ACEOF
8850 #line $LINENO "configure"
8851 #include "confdefs.h"
8852
8853 #ifdef F77_DUMMY_MAIN
8854 #  ifdef __cplusplus
8855      extern "C"
8856 #  endif
8857    int F77_DUMMY_MAIN() { return 1; }
8858 #endif
8859 int
8860 main ()
8861 {
8862
8863   ;
8864   return 0;
8865 }
8866 _ACEOF
8867 rm -f conftest.$ac_objext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8869   (eval $ac_compile) 2>&5
8870   ac_status=$?
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); } &&
8873          { ac_try='test -s conftest.$ac_objext'
8874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875   (eval $ac_try) 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); }; }; then
8879   ac_cv_ld_plugins=yes
8880 else
8881   echo "$as_me: failed program was:" >&5
8882 cat conftest.$ac_ext >&5
8883 ac_cv_ld_plugins=no
8884 fi
8885 rm -f conftest.$ac_objext conftest.$ac_ext
8886 fi
8887 echo "$as_me:$LINENO: result: $ac_cv_ld_plugins" >&5
8888 echo "${ECHO_T}$ac_cv_ld_plugins" >&6
8889 if test x"$ac_cv_ld_plugins" != x"no"; then
8890     plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
8891 fi
8892
8893 echo "$as_me:$LINENO: checking for variadic cpp macros" >&5
8894 echo $ECHO_N "checking for variadic cpp macros... $ECHO_C" >&6
8895 if test "${ac_cv_cpp_variadic_macros+set}" = set; then
8896   echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898   CFLAGS="${save_CFLAGS}"
8899      cat >conftest.$ac_ext <<_ACEOF
8900 #line $LINENO "configure"
8901 #include "confdefs.h"
8902 #include <stdio.h>
8903           #define a(b,c...) printf(b,##c)
8904 #ifdef F77_DUMMY_MAIN
8905 #  ifdef __cplusplus
8906      extern "C"
8907 #  endif
8908    int F77_DUMMY_MAIN() { return 1; }
8909 #endif
8910 int
8911 main ()
8912 {
8913 a("foo");a("%s","bar");a("%s%s","baz","quux");
8914   ;
8915   return 0;
8916 }
8917 _ACEOF
8918 rm -f conftest.$ac_objext
8919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8920   (eval $ac_compile) 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); } &&
8924          { ac_try='test -s conftest.$ac_objext'
8925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926   (eval $ac_try) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); }; }; then
8930   ac_cv_cpp_variadic_macros=yes
8931 else
8932   echo "$as_me: failed program was:" >&5
8933 cat conftest.$ac_ext >&5
8934 ac_cv_cpp_variadic_macros=no
8935 fi
8936 rm -f conftest.$ac_objext conftest.$ac_ext
8937 fi
8938 echo "$as_me:$LINENO: result: $ac_cv_cpp_variadic_macros" >&5
8939 echo "${ECHO_T}$ac_cv_cpp_variadic_macros" >&6
8940 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
8941
8942 cat >>confdefs.h <<\_ACEOF
8943 #define HAVE_VARIADIC_MACROS 1
8944 _ACEOF
8945
8946 fi
8947
8948 echo "$as_me:$LINENO: checking __attribute__ ((aligned ())) support" >&5
8949 echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6
8950 if test "${ac_cv_c_attribute_aligned+set}" = set; then
8951   echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953   ac_cv_c_attribute_aligned=0
8954         CFLAGS="${save_CFLAGS} -Werror"
8955     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
8956         cat >conftest.$ac_ext <<_ACEOF
8957 #line $LINENO "configure"
8958 #include "confdefs.h"
8959
8960 #ifdef F77_DUMMY_MAIN
8961 #  ifdef __cplusplus
8962      extern "C"
8963 #  endif
8964    int F77_DUMMY_MAIN() { return 1; }
8965 #endif
8966 int
8967 main ()
8968 {
8969 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
8970   ;
8971   return 0;
8972 }
8973 _ACEOF
8974 rm -f conftest.$ac_objext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8976   (eval $ac_compile) 2>&5
8977   ac_status=$?
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); } &&
8980          { ac_try='test -s conftest.$ac_objext'
8981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982   (eval $ac_try) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); }; }; then
8986   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
8987 else
8988   echo "$as_me: failed program was:" >&5
8989 cat conftest.$ac_ext >&5
8990 fi
8991 rm -f conftest.$ac_objext conftest.$ac_ext
8992     done
8993 fi
8994 echo "$as_me:$LINENO: result: $ac_cv_c_attribute_aligned" >&5
8995 echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6
8996 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
8997
8998 cat >>confdefs.h <<_ACEOF
8999 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
9000 _ACEOF
9001
9002 fi
9003
9004 CFLAGS="${save_CFLAGS}"
9005 CPPFLAGS="${save_CPPFLAGS}"
9006 LDFLAGS="${save_LDFLAGS}"
9007
9008 echo "$as_me:$LINENO: checking for boolean_t in sys/types.h" >&5
9009 echo $ECHO_N "checking for boolean_t in sys/types.h... $ECHO_C" >&6
9010 if test "${ac_cv_c_boolean_t_sys_types_h+set}" = set; then
9011   echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013   cat >conftest.$ac_ext <<_ACEOF
9014 #line $LINENO "configure"
9015 #include "confdefs.h"
9016 #include <sys/types.h>
9017 #ifdef F77_DUMMY_MAIN
9018 #  ifdef __cplusplus
9019      extern "C"
9020 #  endif
9021    int F77_DUMMY_MAIN() { return 1; }
9022 #endif
9023 int
9024 main ()
9025 {
9026 boolean_t foo;
9027   ;
9028   return 0;
9029 }
9030 _ACEOF
9031 rm -f conftest.$ac_objext
9032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9033   (eval $ac_compile) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); } &&
9037          { ac_try='test -s conftest.$ac_objext'
9038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039   (eval $ac_try) 2>&5
9040   ac_status=$?
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); }; }; then
9043   ac_cv_c_boolean_t_sys_types_h=yes
9044 else
9045   echo "$as_me: failed program was:" >&5
9046 cat conftest.$ac_ext >&5
9047 ac_cv_c_boolean_t_sys_types_h=no
9048 fi
9049 rm -f conftest.$ac_objext conftest.$ac_ext
9050 fi
9051 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_sys_types_h" >&5
9052 echo "${ECHO_T}$ac_cv_c_boolean_t_sys_types_h" >&6
9053 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
9054
9055 cat >>confdefs.h <<\_ACEOF
9056 #define BOOLEAN_T_IN_SYS_TYPES_H 1
9057 _ACEOF
9058
9059 fi
9060
9061 echo "$as_me:$LINENO: checking for boolean_t in pthread.h" >&5
9062 echo $ECHO_N "checking for boolean_t in pthread.h... $ECHO_C" >&6
9063 if test "${ac_cv_c_boolean_t_pthread_h+set}" = set; then
9064   echo $ECHO_N "(cached) $ECHO_C" >&6
9065 else
9066   cat >conftest.$ac_ext <<_ACEOF
9067 #line $LINENO "configure"
9068 #include "confdefs.h"
9069 #include <pthread.h>
9070 #ifdef F77_DUMMY_MAIN
9071 #  ifdef __cplusplus
9072      extern "C"
9073 #  endif
9074    int F77_DUMMY_MAIN() { return 1; }
9075 #endif
9076 int
9077 main ()
9078 {
9079 boolean_t foo;
9080   ;
9081   return 0;
9082 }
9083 _ACEOF
9084 rm -f conftest.$ac_objext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9086   (eval $ac_compile) 2>&5
9087   ac_status=$?
9088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089   (exit $ac_status); } &&
9090          { ac_try='test -s conftest.$ac_objext'
9091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092   (eval $ac_try) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; }; then
9096   ac_cv_c_boolean_t_pthread_h=yes
9097 else
9098   echo "$as_me: failed program was:" >&5
9099 cat conftest.$ac_ext >&5
9100 ac_cv_c_boolean_t_pthread_h=no
9101 fi
9102 rm -f conftest.$ac_objext conftest.$ac_ext
9103 fi
9104 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_pthread_h" >&5
9105 echo "${ECHO_T}$ac_cv_c_boolean_t_pthread_h" >&6
9106 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
9107
9108 cat >>confdefs.h <<\_ACEOF
9109 #define BOOLEAN_T_IN_PTHREAD_H 1
9110 _ACEOF
9111
9112 fi
9113
9114 echo "$as_me:$LINENO: checking for boolean_t in cthreads.h" >&5
9115 echo $ECHO_N "checking for boolean_t in cthreads.h... $ECHO_C" >&6
9116 if test "${ac_cv_c_boolean_t_cthreads_h+set}" = set; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119   cat >conftest.$ac_ext <<_ACEOF
9120 #line $LINENO "configure"
9121 #include "confdefs.h"
9122 #include <cthreads.h>
9123 #ifdef F77_DUMMY_MAIN
9124 #  ifdef __cplusplus
9125      extern "C"
9126 #  endif
9127    int F77_DUMMY_MAIN() { return 1; }
9128 #endif
9129 int
9130 main ()
9131 {
9132 boolean_t foo;
9133   ;
9134   return 0;
9135 }
9136 _ACEOF
9137 rm -f conftest.$ac_objext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9139   (eval $ac_compile) 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } &&
9143          { ac_try='test -s conftest.$ac_objext'
9144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145   (eval $ac_try) 2>&5
9146   ac_status=$?
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); }; }; then
9149   ac_cv_c_boolean_t_cthreads_h=yes
9150 else
9151   echo "$as_me: failed program was:" >&5
9152 cat conftest.$ac_ext >&5
9153 ac_cv_c_boolean_t_cthreads_h=no
9154 fi
9155 rm -f conftest.$ac_objext conftest.$ac_ext
9156 fi
9157 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_cthreads_h" >&5
9158 echo "${ECHO_T}$ac_cv_c_boolean_t_cthreads_h" >&6
9159 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
9160
9161 cat >>confdefs.h <<\_ACEOF
9162 #define BOOLEAN_T_IN_CTHREADS_H 1
9163 _ACEOF
9164
9165 fi
9166
9167 case x"${target_cpu}" in
9168   x)
9169     ARCH=unknown
9170     ;;
9171   *)
9172     ARCH="${target_cpu}"
9173     ;;
9174 esac
9175
9176 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"
9177 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"
9178
9179 NETWORK_MODULES="udp http ipv4"
9180
9181 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
9182 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
9183 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
9184 SSE_MODULES="imdctsse downmixsse"
9185 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
9186
9187 if test x$SYS != xbeos
9188 then
9189     PLUGINS="${PLUGINS} ${NETWORK_MODULES}"
9190 fi
9191
9192 echo "$as_me:$LINENO: checking if \$CC groks MMX inline assembly" >&5
9193 echo $ECHO_N "checking if \$CC groks MMX inline assembly... $ECHO_C" >&6
9194 if test "${ac_cv_mmx_inline+set}" = set; then
9195   echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197   cat >conftest.$ac_ext <<_ACEOF
9198 #line $LINENO "configure"
9199 #include "confdefs.h"
9200
9201 #ifdef F77_DUMMY_MAIN
9202 #  ifdef __cplusplus
9203      extern "C"
9204 #  endif
9205    int F77_DUMMY_MAIN() { return 1; }
9206 #endif
9207 int
9208 main ()
9209 {
9210 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
9211   ;
9212   return 0;
9213 }
9214 _ACEOF
9215 rm -f conftest.$ac_objext
9216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9217   (eval $ac_compile) 2>&5
9218   ac_status=$?
9219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220   (exit $ac_status); } &&
9221          { ac_try='test -s conftest.$ac_objext'
9222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223   (eval $ac_try) 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); }; }; then
9227   ac_cv_mmx_inline=yes
9228 else
9229   echo "$as_me: failed program was:" >&5
9230 cat conftest.$ac_ext >&5
9231 ac_cv_mmx_inline=no
9232 fi
9233 rm -f conftest.$ac_objext conftest.$ac_ext
9234 fi
9235 echo "$as_me:$LINENO: result: $ac_cv_mmx_inline" >&5
9236 echo "${ECHO_T}$ac_cv_mmx_inline" >&6
9237 if test x"$ac_cv_mmx_inline" != x"no"; then
9238   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
9239 fi
9240
9241 echo "$as_me:$LINENO: checking if \$CC groks MMX EXT inline assembly" >&5
9242 echo $ECHO_N "checking if \$CC groks MMX EXT inline assembly... $ECHO_C" >&6
9243 if test "${ac_cv_mmxext_inline+set}" = set; then
9244   echo $ECHO_N "(cached) $ECHO_C" >&6
9245 else
9246   cat >conftest.$ac_ext <<_ACEOF
9247 #line $LINENO "configure"
9248 #include "confdefs.h"
9249
9250 #ifdef F77_DUMMY_MAIN
9251 #  ifdef __cplusplus
9252      extern "C"
9253 #  endif
9254    int F77_DUMMY_MAIN() { return 1; }
9255 #endif
9256 int
9257 main ()
9258 {
9259 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
9260   ;
9261   return 0;
9262 }
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_mmxext_inline=yes
9277 else
9278   echo "$as_me: failed program was:" >&5
9279 cat conftest.$ac_ext >&5
9280 ac_cv_mmxext_inline=no
9281 fi
9282 rm -f conftest.$ac_objext conftest.$ac_ext
9283 fi
9284 echo "$as_me:$LINENO: result: $ac_cv_mmxext_inline" >&5
9285 echo "${ECHO_T}$ac_cv_mmxext_inline" >&6
9286 if test x"$ac_cv_mmxext_inline" != x"no"; then
9287   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
9288 fi
9289
9290 echo "$as_me:$LINENO: checking if \$CC groks 3D Now! inline assembly" >&5
9291 echo $ECHO_N "checking if \$CC groks 3D Now! inline assembly... $ECHO_C" >&6
9292 if test "${ac_cv_3dnow_inline+set}" = set; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295   cat >conftest.$ac_ext <<_ACEOF
9296 #line $LINENO "configure"
9297 #include "confdefs.h"
9298
9299 #ifdef F77_DUMMY_MAIN
9300 #  ifdef __cplusplus
9301      extern "C"
9302 #  endif
9303    int F77_DUMMY_MAIN() { return 1; }
9304 #endif
9305 int
9306 main ()
9307 {
9308 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 rm -f conftest.$ac_objext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9315   (eval $ac_compile) 2>&5
9316   ac_status=$?
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } &&
9319          { ac_try='test -s conftest.$ac_objext'
9320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321   (eval $ac_try) 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); }; }; then
9325   ac_cv_3dnow_inline=yes
9326 else
9327   echo "$as_me: failed program was:" >&5
9328 cat conftest.$ac_ext >&5
9329 ac_cv_3dnow_inline=no
9330 fi
9331 rm -f conftest.$ac_objext conftest.$ac_ext
9332 fi
9333 echo "$as_me:$LINENO: result: $ac_cv_3dnow_inline" >&5
9334 echo "${ECHO_T}$ac_cv_3dnow_inline" >&6
9335 if test x"$ac_cv_3dnow_inline" != x"no"; then
9336
9337 cat >>confdefs.h <<\_ACEOF
9338 #define CAN_COMPILE_3DNOW 1
9339 _ACEOF
9340
9341   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
9342 fi
9343
9344 echo "$as_me:$LINENO: checking if \$CC groks SSE inline assembly" >&5
9345 echo $ECHO_N "checking if \$CC groks SSE inline assembly... $ECHO_C" >&6
9346 if test "${ac_cv_sse_inline+set}" = set; then
9347   echo $ECHO_N "(cached) $ECHO_C" >&6
9348 else
9349   cat >conftest.$ac_ext <<_ACEOF
9350 #line $LINENO "configure"
9351 #include "confdefs.h"
9352
9353 #ifdef F77_DUMMY_MAIN
9354 #  ifdef __cplusplus
9355      extern "C"
9356 #  endif
9357    int F77_DUMMY_MAIN() { return 1; }
9358 #endif
9359 int
9360 main ()
9361 {
9362 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
9363   ;
9364   return 0;
9365 }
9366 _ACEOF
9367 rm -f conftest.$ac_objext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369   (eval $ac_compile) 2>&5
9370   ac_status=$?
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); } &&
9373          { ac_try='test -s conftest.$ac_objext'
9374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375   (eval $ac_try) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; }; then
9379   ac_cv_sse_inline=yes
9380 else
9381   echo "$as_me: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9383 ac_cv_sse_inline=no
9384 fi
9385 rm -f conftest.$ac_objext conftest.$ac_ext
9386 fi
9387 echo "$as_me:$LINENO: result: $ac_cv_sse_inline" >&5
9388 echo "${ECHO_T}$ac_cv_sse_inline" >&6
9389 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
9390
9391 cat >>confdefs.h <<\_ACEOF
9392 #define CAN_COMPILE_SSE 1
9393 _ACEOF
9394
9395   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
9396 fi
9397
9398 # don't try to grok altivec with native mingw32 it doesn't work right now
9399 # we should be able to remove this test with future versions of mingw32
9400 if test x$SYS != xmingw32; then
9401 echo "$as_me:$LINENO: checking if \$CC groks Altivec inline assembly" >&5
9402 echo $ECHO_N "checking if \$CC groks Altivec inline assembly... $ECHO_C" >&6
9403 if test "${ac_cv_altivec_inline+set}" = set; then
9404   echo $ECHO_N "(cached) $ECHO_C" >&6
9405 else
9406   cat >conftest.$ac_ext <<_ACEOF
9407 #line $LINENO "configure"
9408 #include "confdefs.h"
9409
9410 #ifdef F77_DUMMY_MAIN
9411 #  ifdef __cplusplus
9412      extern "C"
9413 #  endif
9414    int F77_DUMMY_MAIN() { return 1; }
9415 #endif
9416 int
9417 main ()
9418 {
9419 asm volatile("vperm 0,1,2,3");
9420   ;
9421   return 0;
9422 }
9423 _ACEOF
9424 rm -f conftest.$ac_objext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9426   (eval $ac_compile) 2>&5
9427   ac_status=$?
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); } &&
9430          { ac_try='test -s conftest.$ac_objext'
9431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432   (eval $ac_try) 2>&5
9433   ac_status=$?
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); }; }; then
9436   ac_cv_altivec_inline=yes
9437 else
9438   echo "$as_me: failed program was:" >&5
9439 cat conftest.$ac_ext >&5
9440 save_CFLAGS=$CFLAGS
9441           CFLAGS="$CFLAGS -Wa,-m7400"
9442           cat >conftest.$ac_ext <<_ACEOF
9443 #line $LINENO "configure"
9444 #include "confdefs.h"
9445
9446 #ifdef F77_DUMMY_MAIN
9447 #  ifdef __cplusplus
9448      extern "C"
9449 #  endif
9450    int F77_DUMMY_MAIN() { return 1; }
9451 #endif
9452 int
9453 main ()
9454 {
9455 asm volatile("vperm 0,1,2,3");
9456   ;
9457   return 0;
9458 }
9459 _ACEOF
9460 rm -f conftest.$ac_objext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462   (eval $ac_compile) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); } &&
9466          { ac_try='test -s conftest.$ac_objext'
9467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468   (eval $ac_try) 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); }; }; then
9472   ac_cv_altivec_inline="-Wa,-m7400"
9473 else
9474   echo "$as_me: failed program was:" >&5
9475 cat conftest.$ac_ext >&5
9476 ac_cv_altivec_inline=no
9477 fi
9478 rm -f conftest.$ac_objext conftest.$ac_ext
9479           CFLAGS=$save_CFLAGS
9480
9481 fi
9482 rm -f conftest.$ac_objext conftest.$ac_ext
9483 fi
9484 echo "$as_me:$LINENO: result: $ac_cv_altivec_inline" >&5
9485 echo "${ECHO_T}$ac_cv_altivec_inline" >&6
9486 if test x"$ac_cv_altivec_inline" != x"no"; then
9487
9488 cat >>confdefs.h <<\_ACEOF
9489 #define CAN_COMPILE_ALTIVEC 1
9490 _ACEOF
9491
9492   if test x"$ac_cv_altivec_inline" != x"yes"; then
9493     idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
9494     motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
9495     memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
9496     vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
9497   fi
9498   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
9499 fi
9500
9501 echo "$as_me:$LINENO: checking if \$CC groks Altivec C extensions" >&5
9502 echo $ECHO_N "checking if \$CC groks Altivec C extensions... $ECHO_C" >&6
9503 if test "${ac_cv_c_altivec+set}" = set; then
9504   echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506   save_CFLAGS=$CFLAGS
9507      CFLAGS="$CFLAGS -faltivec"
9508      # Darwin test
9509      cat >conftest.$ac_ext <<_ACEOF
9510 #line $LINENO "configure"
9511 #include "confdefs.h"
9512
9513 #ifdef F77_DUMMY_MAIN
9514 #  ifdef __cplusplus
9515      extern "C"
9516 #  endif
9517    int F77_DUMMY_MAIN() { return 1; }
9518 #endif
9519 int
9520 main ()
9521 {
9522 vec_mtvscr((vector unsigned int)(0));
9523   ;
9524   return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529   (eval $ac_compile) 2>&5
9530   ac_status=$?
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); } &&
9533          { ac_try='test -s conftest.$ac_objext'
9534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535   (eval $ac_try) 2>&5
9536   ac_status=$?
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); }; }; then
9539   ac_cv_c_altivec=-faltivec
9540 else
9541   echo "$as_me: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543
9544         # Linux/PPC test
9545         CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
9546         cat >conftest.$ac_ext <<_ACEOF
9547 #line $LINENO "configure"
9548 #include "confdefs.h"
9549
9550 #ifdef F77_DUMMY_MAIN
9551 #  ifdef __cplusplus
9552      extern "C"
9553 #  endif
9554    int F77_DUMMY_MAIN() { return 1; }
9555 #endif
9556 int
9557 main ()
9558 {
9559 vec_mtvscr((vector unsigned int)(0));
9560   ;
9561   return 0;
9562 }
9563 _ACEOF
9564 rm -f conftest.$ac_objext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9566   (eval $ac_compile) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); } &&
9570          { ac_try='test -s conftest.$ac_objext'
9571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572   (eval $ac_try) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; }; then
9576   ac_cv_c_altivec="-fvec"
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 cat conftest.$ac_ext >&5
9580 ac_cv_c_altivec=no
9581 fi
9582 rm -f conftest.$ac_objext conftest.$ac_ext
9583
9584 fi
9585 rm -f conftest.$ac_objext conftest.$ac_ext
9586      CFLAGS=$save_CFLAGS
9587
9588 fi
9589 echo "$as_me:$LINENO: result: $ac_cv_c_altivec" >&5
9590 echo "${ECHO_T}$ac_cv_c_altivec" >&6
9591 if test x"$ac_cv_c_altivec" != x"no"; then
9592
9593 cat >>confdefs.h <<\_ACEOF
9594 #define CAN_COMPILE_C_ALTIVEC 1
9595 _ACEOF
9596
9597   idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
9598   motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
9599   memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
9600   vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
9601   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
9602 fi
9603
9604 echo "$as_me:$LINENO: checking if linker needs -framework vecLib" >&5
9605 echo $ECHO_N "checking if linker needs -framework vecLib... $ECHO_C" >&6
9606 if test "${ac_cv_ld_altivec+set}" = set; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609   save_LDFLAGS=$LDFLAGS
9610      LDFLAGS="$LDFLAGS -framework vecLib"
9611      cat >conftest.$ac_ext <<_ACEOF
9612 #line $LINENO "configure"
9613 #include "confdefs.h"
9614
9615 #ifdef F77_DUMMY_MAIN
9616 #  ifdef __cplusplus
9617      extern "C"
9618 #  endif
9619    int F77_DUMMY_MAIN() { return 1; }
9620 #endif
9621 int
9622 main ()
9623 {
9624
9625   ;
9626   return 0;
9627 }
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631   (eval $ac_link) 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); } &&
9635          { ac_try='test -s conftest$ac_exeext'
9636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; }; then
9641   ac_cv_ld_altivec=yes
9642 else
9643   echo "$as_me: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 ac_cv_ld_altivec=no
9646 fi
9647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9648      LDFLAGS=$save_LDFLAGS
9649
9650 fi
9651 echo "$as_me:$LINENO: result: $ac_cv_ld_altivec" >&5
9652 echo "${ECHO_T}$ac_cv_ld_altivec" >&6
9653 if test x"$ac_cv_ld_altivec" != x"no"; then
9654   idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
9655   motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
9656   memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
9657   vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
9658 fi
9659 fi # end if mingw32
9660
9661
9662
9663 # Check whether --with- or --without- was given.
9664 if test "${with_+set}" = set; then
9665   withval="$with_"
9666
9667 fi;
9668
9669 # Check whether --with- or --without- was given.
9670 if test "${with_+set}" = set; then
9671   withval="$with_"
9672
9673 fi;
9674
9675
9676 # Check whether --with-tuning or --without-tuning was given.
9677 if test "${with_tuning+set}" = set; then
9678   withval="$with_tuning"
9679
9680 fi;
9681 if test "x$with_tuning" != "x"; then
9682     TUNING="$with_tuning"
9683 else
9684     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
9685     else
9686         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
9687     fi
9688 fi
9689
9690 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
9691 then
9692     ARCH="${ARCH} mmx"
9693     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
9694 fi
9695
9696 # Check whether --enable-optimizations or --disable-optimizations was given.
9697 if test "${enable_optimizations+set}" = set; then
9698   enableval="$enable_optimizations"
9699    if test x$enable_optimizations = xno; then OPTIMS=0; fi
9700 else
9701    OPTIMS=1
9702 fi;
9703
9704 # Check whether --enable-altivec or --disable-altivec was given.
9705 if test "${enable_altivec+set}" = set; then
9706   enableval="$enable_altivec"
9707    if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
9708     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
9709 else
9710    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
9711     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
9712 fi;
9713
9714 DEBUG=0
9715 # Check whether --enable-debug or --disable-debug was given.
9716 if test "${enable_debug+set}" = set; then
9717   enableval="$enable_debug"
9718    if test x$enable_debug = xyes; then DEBUG=1; fi
9719 fi;
9720
9721 RELEASE=0
9722 # Check whether --enable-release or --disable-release was given.
9723 if test "${enable_release+set}" = set; then
9724   enableval="$enable_release"
9725    if test x$enable_release = xyes; then RELEASE=1; fi
9726 else
9727    VERSION="${VERSION}_`date +%Y-%m-%d`"
9728 fi;
9729
9730
9731
9732 # Check whether --with- or --without- was given.
9733 if test "${with_+set}" = set; then
9734   withval="$with_"
9735
9736 fi;
9737
9738 # Check whether --enable-dvd or --disable-dvd was given.
9739 if test "${enable_dvd+set}" = set; then
9740   enableval="$enable_dvd"
9741
9742 fi;
9743 if test "x$enable_dvd" != "xno"
9744 then
9745
9746 # Check whether --with-dvdcss or --without-dvdcss was given.
9747 if test "${with_dvdcss+set}" = set; then
9748   withval="$with_dvdcss"
9749
9750 fi;
9751
9752 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
9753 if test "${with_dvdcss_tree+set}" = set; then
9754   withval="$with_dvdcss_tree"
9755
9756 fi;
9757   case "x$with_dvdcss" in
9758   x|xyes)
9759     if test "x$with_dvdcss_tree" = x
9760     then
9761
9762 for ac_header in dvdcss/dvdcss.h
9763 do
9764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9766   echo "$as_me:$LINENO: checking for $ac_header" >&5
9767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9769   echo $ECHO_N "(cached) $ECHO_C" >&6
9770 fi
9771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9773 else
9774   # Is the header compilable?
9775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9777 cat >conftest.$ac_ext <<_ACEOF
9778 #line $LINENO "configure"
9779 #include "confdefs.h"
9780 $ac_includes_default
9781 #include <$ac_header>
9782 _ACEOF
9783 rm -f conftest.$ac_objext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9785   (eval $ac_compile) 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); } &&
9789          { ac_try='test -s conftest.$ac_objext'
9790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791   (eval $ac_try) 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   ac_header_compiler=yes
9796 else
9797   echo "$as_me: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9799 ac_header_compiler=no
9800 fi
9801 rm -f conftest.$ac_objext conftest.$ac_ext
9802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9803 echo "${ECHO_T}$ac_header_compiler" >&6
9804
9805 # Is the header present?
9806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9808 cat >conftest.$ac_ext <<_ACEOF
9809 #line $LINENO "configure"
9810 #include "confdefs.h"
9811 #include <$ac_header>
9812 _ACEOF
9813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9815   ac_status=$?
9816   egrep -v '^ *\+' conftest.er1 >conftest.err
9817   rm -f conftest.er1
9818   cat conftest.err >&5
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } >/dev/null; then
9821   if test -s conftest.err; then
9822     ac_cpp_err=$ac_c_preproc_warn_flag
9823   else
9824     ac_cpp_err=
9825   fi
9826 else
9827   ac_cpp_err=yes
9828 fi
9829 if test -z "$ac_cpp_err"; then
9830   ac_header_preproc=yes
9831 else
9832   echo "$as_me: failed program was:" >&5
9833   cat conftest.$ac_ext >&5
9834   ac_header_preproc=no
9835 fi
9836 rm -f conftest.err conftest.$ac_ext
9837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9838 echo "${ECHO_T}$ac_header_preproc" >&6
9839
9840 # So?  What about this header?
9841 case $ac_header_compiler:$ac_header_preproc in
9842   yes:no )
9843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9847   no:yes )
9848     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9850     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9854 esac
9855 echo "$as_me:$LINENO: checking for $ac_header" >&5
9856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9858   echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860   eval "$as_ac_Header=$ac_header_preproc"
9861 fi
9862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9864
9865 fi
9866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9867   cat >>confdefs.h <<_ACEOF
9868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9869 _ACEOF
9870   PLUGINS="${PLUGINS} dvd"
9871           dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
9872 else
9873    { 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
9874 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;}
9875           { { echo "$as_me:$LINENO: error: cannot find libdvdcss headers" >&5
9876 echo "$as_me: error: cannot find libdvdcss headers" >&2;}
9877    { (exit 1); exit 1; }; }
9878 fi
9879
9880 done
9881
9882     else
9883       echo "$as_me:$LINENO: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
9884 echo $ECHO_N "checking for libdvdcss.a in ${with_dvdcss_tree}... $ECHO_C" >&6
9885       real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
9886       if test "x$real_dvdcss_tree" = x
9887       then
9888                 echo "$as_me:$LINENO: result: no" >&5
9889 echo "${ECHO_T}no" >&6
9890         { { echo "$as_me:$LINENO: error: cannot cd to ${with_dvdcss_tree}" >&5
9891 echo "$as_me: error: cannot cd to ${with_dvdcss_tree}" >&2;}
9892    { (exit 1); exit 1; }; }
9893       fi
9894       if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
9895       then
9896                 echo "$as_me:$LINENO: result: ${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&5
9897 echo "${ECHO_T}${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&6
9898         BUILTINS="${BUILTINS} dvd"
9899         dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
9900         dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
9901       else
9902                 echo "$as_me:$LINENO: result: no" >&5
9903 echo "${ECHO_T}no" >&6
9904         { { echo "$as_me:$LINENO: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&5
9905 echo "$as_me: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&2;}
9906    { (exit 1); exit 1; }; }
9907       fi
9908     fi
9909   ;;
9910   xno)
9911         PLUGINS="${PLUGINS} dvd"
9912     dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
9913     dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
9914   ;;
9915   *)
9916     echo "$as_me:$LINENO: checking for dvdcss headers in ${with_dvdcss}" >&5
9917 echo $ECHO_N "checking for dvdcss headers in ${with_dvdcss}... $ECHO_C" >&6
9918     if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
9919     then
9920             echo "$as_me:$LINENO: result: yes" >&5
9921 echo "${ECHO_T}yes" >&6
9922       PLUGINS="${PLUGINS} dvd"
9923       dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
9924       dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
9925     else
9926             echo "$as_me:$LINENO: result: no" >&5
9927 echo "${ECHO_T}no" >&6
9928       { { echo "$as_me:$LINENO: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&5
9929 echo "$as_me: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&2;}
9930    { (exit 1); exit 1; }; }
9931     fi
9932   ;;
9933   esac
9934 fi
9935
9936 # Check whether --enable-dvdread or --disable-dvdread was given.
9937 if test "${enable_dvdread+set}" = set; then
9938   enableval="$enable_dvdread"
9939
9940 fi;
9941 if test "x$enable_dvdread" != "xno"
9942 then
9943
9944 # Check whether --with-dvdread or --without-dvdread was given.
9945 if test "${with_dvdread+set}" = set; then
9946   withval="$with_dvdread"
9947
9948 fi;
9949   if test "x$with_dvdread" = x
9950   then
9951     test_LDFLAGS=""
9952     test_CFLAGS=""
9953   else
9954     test_LDFLAGS="-L${with_dvdread}/lib"
9955     test_CFLAGS="-I${with_dvdread}/include"
9956   fi
9957   CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
9958
9959 for ac_header in dvdread/dvd_reader.h
9960 do
9961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9963   echo "$as_me:$LINENO: checking for $ac_header" >&5
9964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9966   echo $ECHO_N "(cached) $ECHO_C" >&6
9967 fi
9968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9970 else
9971   # Is the header compilable?
9972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9974 cat >conftest.$ac_ext <<_ACEOF
9975 #line $LINENO "configure"
9976 #include "confdefs.h"
9977 $ac_includes_default
9978 #include <$ac_header>
9979 _ACEOF
9980 rm -f conftest.$ac_objext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982   (eval $ac_compile) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); } &&
9986          { ac_try='test -s conftest.$ac_objext'
9987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988   (eval $ac_try) 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; }; then
9992   ac_header_compiler=yes
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 cat conftest.$ac_ext >&5
9996 ac_header_compiler=no
9997 fi
9998 rm -f conftest.$ac_objext conftest.$ac_ext
9999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10000 echo "${ECHO_T}$ac_header_compiler" >&6
10001
10002 # Is the header present?
10003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10005 cat >conftest.$ac_ext <<_ACEOF
10006 #line $LINENO "configure"
10007 #include "confdefs.h"
10008 #include <$ac_header>
10009 _ACEOF
10010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10012   ac_status=$?
10013   egrep -v '^ *\+' conftest.er1 >conftest.err
10014   rm -f conftest.er1
10015   cat conftest.err >&5
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); } >/dev/null; then
10018   if test -s conftest.err; then
10019     ac_cpp_err=$ac_c_preproc_warn_flag
10020   else
10021     ac_cpp_err=
10022   fi
10023 else
10024   ac_cpp_err=yes
10025 fi
10026 if test -z "$ac_cpp_err"; then
10027   ac_header_preproc=yes
10028 else
10029   echo "$as_me: failed program was:" >&5
10030   cat conftest.$ac_ext >&5
10031   ac_header_preproc=no
10032 fi
10033 rm -f conftest.err conftest.$ac_ext
10034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10035 echo "${ECHO_T}$ac_header_preproc" >&6
10036
10037 # So?  What about this header?
10038 case $ac_header_compiler:$ac_header_preproc in
10039   yes:no )
10040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10044   no:yes )
10045     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10047     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10051 esac
10052 echo "$as_me:$LINENO: checking for $ac_header" >&5
10053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10055   echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057   eval "$as_ac_Header=$ac_header_preproc"
10058 fi
10059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10061
10062 fi
10063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10064   cat >>confdefs.h <<_ACEOF
10065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10066 _ACEOF
10067
10068      cat >conftest.$ac_ext <<_ACEOF
10069 #line $LINENO "configure"
10070 #include "confdefs.h"
10071 #include <dvdread/dvd_reader.h>
10072 #ifdef F77_DUMMY_MAIN
10073 #  ifdef __cplusplus
10074      extern "C"
10075 #  endif
10076    int F77_DUMMY_MAIN() { return 1; }
10077 #endif
10078 int
10079 main ()
10080 {
10081 void foo() { int i=DVD_VIDEO_LB_LEN; }
10082   ;
10083   return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10088   (eval $ac_compile) 2>&5
10089   ac_status=$?
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); } &&
10092          { ac_try='test -s conftest.$ac_objext'
10093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094   (eval $ac_try) 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); }; }; then
10098
10099           PLUGINS="${PLUGINS} dvdread"
10100           dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
10101           dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
10102
10103 else
10104   echo "$as_me: failed program was:" >&5
10105 cat conftest.$ac_ext >&5
10106
10107           if test "x$enable_dvdread" != x
10108           then
10109             { { 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
10110 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;}
10111    { (exit 1); exit 1; }; }
10112           fi
10113
10114 fi
10115 rm -f conftest.$ac_objext conftest.$ac_ext
10116
10117 else
10118
10119     if test "x$enable_dvdread" != x
10120     then
10121       if test "x$with_dvdread" != x
10122       then
10123         { { echo "$as_me:$LINENO: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&5
10124 echo "$as_me: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&2;}
10125    { (exit 1); exit 1; }; }
10126       else
10127         { { echo "$as_me:$LINENO: error: Cannot find dvdread/dvd_reader.h" >&5
10128 echo "$as_me: error: Cannot find dvdread/dvd_reader.h" >&2;}
10129    { (exit 1); exit 1; }; }
10130       fi
10131     fi
10132
10133 fi
10134
10135 done
10136
10137   CPPFLAGS="$save_CPPFLAGS"
10138 fi
10139
10140 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
10141 if test "${enable_dvbpsi+set}" = set; then
10142   enableval="$enable_dvbpsi"
10143
10144 fi;
10145 if test "x$enable_dvbpsi" != "xno"
10146 then
10147
10148 # Check whether --with-dvbpsi or --without-dvbpsi was given.
10149 if test "${with_dvbpsi+set}" = set; then
10150   withval="$with_dvbpsi"
10151
10152 fi;
10153
10154 # Check whether --with-dvbpsi or --without-dvbpsi was given.
10155 if test "${with_dvbpsi+set}" = set; then
10156   withval="$with_dvbpsi"
10157
10158 fi;
10159   case "x$with_dvbpsi" in
10160   x|xyes)
10161     if test "x$with_dvbpsi_tree" = x
10162     then
10163
10164 for ac_header in dvbpsi/dr.h
10165 do
10166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10167 echo "$as_me:$LINENO: checking for $ac_header" >&5
10168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10170   echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172   cat >conftest.$ac_ext <<_ACEOF
10173 #line $LINENO "configure"
10174 #include "confdefs.h"
10175   { { echo "$as_me:$LINENO: error: cannot find libdvbpsi headers" >&5
10176 echo "$as_me: error: cannot find libdvbpsi headers" >&2;}
10177    { (exit 1); exit 1; }; }
10178
10179 #include <$ac_header>
10180 _ACEOF
10181 rm -f conftest.$ac_objext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183   (eval $ac_compile) 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); } &&
10187          { ac_try='test -s conftest.$ac_objext'
10188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189   (eval $ac_try) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); }; }; then
10193   eval "$as_ac_Header=yes"
10194 else
10195   echo "$as_me: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10197 eval "$as_ac_Header=no"
10198 fi
10199 rm -f conftest.$ac_objext conftest.$ac_ext
10200 fi
10201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10204   cat >>confdefs.h <<_ACEOF
10205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10206 _ACEOF
10207   PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
10208           mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
10209 fi
10210
10211 done
10212
10213     else
10214       echo "$as_me:$LINENO: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
10215 echo $ECHO_N "checking for libdvbpsi.a in ${with_dvbpsi_tree}... $ECHO_C" >&6
10216       real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
10217       if test "x$real_dvbpsi_tree" = x
10218       then
10219                 echo "$as_me:$LINENO: result: no" >&5
10220 echo "${ECHO_T}no" >&6
10221         { { echo "$as_me:$LINENO: error: cannot cd to ${with_dvbpsi_tree}" >&5
10222 echo "$as_me: error: cannot cd to ${with_dvbpsi_tree}" >&2;}
10223    { (exit 1); exit 1; }; }
10224       fi
10225       if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
10226       then
10227                 echo "$as_me:$LINENO: result: ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&5
10228 echo "${ECHO_T}${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&6
10229         BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
10230         mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
10231         mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
10232       else
10233                 echo "$as_me:$LINENO: result: no" >&5
10234 echo "${ECHO_T}no" >&6
10235         { { echo "$as_me:$LINENO: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&5
10236 echo "$as_me: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&2;}
10237    { (exit 1); exit 1; }; }
10238       fi
10239     fi
10240   ;;
10241   xno)
10242       ;;
10243   *)
10244     echo "$as_me:$LINENO: checking for dvbpsi headers in ${with_dvbpsi}" >&5
10245 echo $ECHO_N "checking for dvbpsi headers in ${with_dvbpsi}... $ECHO_C" >&6
10246     if test "x$with_dvbpsi" = x
10247     then
10248       test_LDFLAGS=""
10249       test_CFLAGS=""
10250     else
10251       test_LDFLAGS="-L${with_dvbpsi}/lib"
10252       test_CFLAGS="-I${with_dvbpsi}/include"
10253     fi
10254     CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
10255     if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10256   echo "$as_me:$LINENO: checking for dvbpsi/dr.h" >&5
10257 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
10258 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10259   echo $ECHO_N "(cached) $ECHO_C" >&6
10260 fi
10261 echo "$as_me:$LINENO: result: $ac_cv_header_dvbpsi_dr_h" >&5
10262 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
10263 else
10264   # Is the header compilable?
10265 echo "$as_me:$LINENO: checking dvbpsi/dr.h usability" >&5
10266 echo $ECHO_N "checking dvbpsi/dr.h usability... $ECHO_C" >&6
10267 cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10269 #include "confdefs.h"
10270 $ac_includes_default
10271 #include <dvbpsi/dr.h>
10272 _ACEOF
10273 rm -f conftest.$ac_objext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10275   (eval $ac_compile) 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); } &&
10279          { ac_try='test -s conftest.$ac_objext'
10280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281   (eval $ac_try) 2>&5
10282   ac_status=$?
10283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); }; }; then
10285   ac_header_compiler=yes
10286 else
10287   echo "$as_me: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10289 ac_header_compiler=no
10290 fi
10291 rm -f conftest.$ac_objext conftest.$ac_ext
10292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10293 echo "${ECHO_T}$ac_header_compiler" >&6
10294
10295 # Is the header present?
10296 echo "$as_me:$LINENO: checking dvbpsi/dr.h presence" >&5
10297 echo $ECHO_N "checking dvbpsi/dr.h presence... $ECHO_C" >&6
10298 cat >conftest.$ac_ext <<_ACEOF
10299 #line $LINENO "configure"
10300 #include "confdefs.h"
10301 #include <dvbpsi/dr.h>
10302 _ACEOF
10303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10305   ac_status=$?
10306   egrep -v '^ *\+' conftest.er1 >conftest.err
10307   rm -f conftest.er1
10308   cat conftest.err >&5
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } >/dev/null; then
10311   if test -s conftest.err; then
10312     ac_cpp_err=$ac_c_preproc_warn_flag
10313   else
10314     ac_cpp_err=
10315   fi
10316 else
10317   ac_cpp_err=yes
10318 fi
10319 if test -z "$ac_cpp_err"; then
10320   ac_header_preproc=yes
10321 else
10322   echo "$as_me: failed program was:" >&5
10323   cat conftest.$ac_ext >&5
10324   ac_header_preproc=no
10325 fi
10326 rm -f conftest.err conftest.$ac_ext
10327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10328 echo "${ECHO_T}$ac_header_preproc" >&6
10329
10330 # So?  What about this header?
10331 case $ac_header_compiler:$ac_header_preproc in
10332   yes:no )
10333     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: accepted by the compiler, rejected by the preprocessor!" >&5
10334 echo "$as_me: WARNING: dvbpsi/dr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10335     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&5
10336 echo "$as_me: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&2;};;
10337   no:yes )
10338     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: present but cannot be compiled" >&5
10339 echo "$as_me: WARNING: dvbpsi/dr.h: present but cannot be compiled" >&2;}
10340     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: check for missing prerequisite headers?" >&5
10341 echo "$as_me: WARNING: dvbpsi/dr.h: check for missing prerequisite headers?" >&2;}
10342     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&5
10343 echo "$as_me: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&2;};;
10344 esac
10345 echo "$as_me:$LINENO: checking for dvbpsi/dr.h" >&5
10346 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
10347 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10348   echo $ECHO_N "(cached) $ECHO_C" >&6
10349 else
10350   ac_cv_header_dvbpsi_dr_h=$ac_header_preproc
10351 fi
10352 echo "$as_me:$LINENO: result: $ac_cv_header_dvbpsi_dr_h" >&5
10353 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
10354
10355 fi
10356 if test $ac_cv_header_dvbpsi_dr_h = yes; then
10357
10358       PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
10359       mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
10360       mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
10361
10362 else
10363
10364       if test "x$enable_dvbpsi" != x
10365       then
10366         { { 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
10367 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;}
10368    { (exit 1); exit 1; }; }
10369       fi
10370
10371 fi
10372
10373
10374     CPPFLAGS="$save_CPPFLAGS"
10375   ;;
10376   esac
10377 fi
10378
10379 # Check whether --enable-vcd or --disable-vcd was given.
10380 if test "${enable_vcd+set}" = set; then
10381   enableval="$enable_vcd"
10382
10383 fi;
10384
10385 if test x$enable_vcd != xno
10386 then
10387   cat >conftest.$ac_ext <<_ACEOF
10388 #line $LINENO "configure"
10389 #include "confdefs.h"
10390 #include <linux/cdrom.h>
10391
10392 _ACEOF
10393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10394   egrep "cdrom_msf0" >/dev/null 2>&1; then
10395
10396     PLUGINS="${PLUGINS} vcd"
10397
10398 fi
10399 rm -f conftest*
10400
10401
10402   cat >conftest.$ac_ext <<_ACEOF
10403 #line $LINENO "configure"
10404 #include "confdefs.h"
10405 #include <sys/cdio.h>
10406
10407 _ACEOF
10408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10409   egrep "ioc_toc_header " >/dev/null 2>&1; then
10410
10411     PLUGINS="${PLUGINS} vcd"
10412
10413 cat >>confdefs.h <<\_ACEOF
10414 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
10415 _ACEOF
10416
10417
10418 fi
10419 rm -f conftest*
10420
10421
10422   if test "x${SYS}" = "xbsdi"
10423   then
10424     PLUGINS="${PLUGINS} vcd"
10425   fi
10426
10427   if test "x${SYS}" = "xdarwin"
10428   then
10429     # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
10430     vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
10431   fi
10432 fi
10433
10434 # Check whether --enable-satellite or --disable-satellite was given.
10435 if test "${enable_satellite+set}" = set; then
10436   enableval="$enable_satellite"
10437    if test x$enable_satellite = xyes
10438     then
10439       PLUGINS="${PLUGINS} satellite"
10440     fi
10441 fi;
10442
10443 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
10444 then
10445   echo "$as_me:$LINENO: checking for inet_pton" >&5
10446 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
10447 if test "${ac_cv_func_inet_pton+set}" = set; then
10448   echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450   cat >conftest.$ac_ext <<_ACEOF
10451 #line $LINENO "configure"
10452 #include "confdefs.h"
10453 /* System header to define __stub macros and hopefully few prototypes,
10454     which can conflict with char inet_pton (); below.  */
10455 #include <assert.h>
10456 /* Override any gcc2 internal prototype to avoid an error.  */
10457 #ifdef __cplusplus
10458 extern "C"
10459 #endif
10460 /* We use char because int might match the return type of a gcc2
10461    builtin and then its argument prototype would still apply.  */
10462 char inet_pton ();
10463 char (*f) ();
10464
10465 #ifdef F77_DUMMY_MAIN
10466 #  ifdef __cplusplus
10467      extern "C"
10468 #  endif
10469    int F77_DUMMY_MAIN() { return 1; }
10470 #endif
10471 int
10472 main ()
10473 {
10474 /* The GNU C library defines this for functions which it implements
10475     to always fail with ENOSYS.  Some functions are actually named
10476     something starting with __ and the normal name is an alias.  */
10477 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
10478 choke me
10479 #else
10480 f = inet_pton;
10481 #endif
10482
10483   ;
10484   return 0;
10485 }
10486 _ACEOF
10487 rm -f conftest.$ac_objext conftest$ac_exeext
10488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10489   (eval $ac_link) 2>&5
10490   ac_status=$?
10491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492   (exit $ac_status); } &&
10493          { ac_try='test -s conftest$ac_exeext'
10494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495   (eval $ac_try) 2>&5
10496   ac_status=$?
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); }; }; then
10499   ac_cv_func_inet_pton=yes
10500 else
10501   echo "$as_me: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10503 ac_cv_func_inet_pton=no
10504 fi
10505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10506 fi
10507 echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
10508 echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
10509 if test $ac_cv_func_inet_pton = yes; then
10510   PLUGINS="${PLUGINS} ipv6"
10511 fi
10512
10513 fi
10514 if test "x$SYS" = "xmingw32"
10515 then
10516   echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h" >&5
10517 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h... $ECHO_C" >&6
10518   cat >conftest.$ac_ext <<_ACEOF
10519 #line $LINENO "configure"
10520 #include "confdefs.h"
10521 #include <ws2tcpip.h>
10522
10523 _ACEOF
10524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10525   egrep "addrinfo" >/dev/null 2>&1; then
10526   echo "$as_me:$LINENO: result: yes" >&5
10527 echo "${ECHO_T}yes" >&6
10528     PLUGINS="${PLUGINS} ipv6"
10529 else
10530   echo "$as_me:$LINENO: result: no" >&5
10531 echo "${ECHO_T}no" >&6
10532 fi
10533 rm -f conftest*
10534
10535 fi
10536
10537 # Check whether --enable-avi or --disable-avi was given.
10538 if test "${enable_avi+set}" = set; then
10539   enableval="$enable_avi"
10540
10541 fi;
10542 if test x$enable_avi != xno
10543 then
10544   PLUGINS="${PLUGINS} avi"
10545 fi
10546
10547
10548
10549 # Check whether --with- or --without- was given.
10550 if test "${with_+set}" = set; then
10551   withval="$with_"
10552
10553 fi;
10554
10555 # Check whether --enable-mad or --disable-mad was given.
10556 if test "${enable_mad+set}" = set; then
10557   enableval="$enable_mad"
10558
10559 fi;
10560 if test x$enable_mad = xyes
10561 then
10562
10563 # Check whether --with-mad or --without-mad was given.
10564 if test "${with_mad+set}" = set; then
10565   withval="$with_mad"
10566
10567 fi;
10568   if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
10569   then
10570     mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
10571     mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
10572   fi
10573
10574
10575 # Check whether --with-mad-tree or --without-mad-tree was given.
10576 if test "${with_mad_tree+set}" = set; then
10577   withval="$with_mad_tree"
10578
10579 fi;
10580   if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
10581   then
10582     real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
10583     if test "x$real_mad_tree" = x
10584     then
10585             echo "$as_me:$LINENO: result: no" >&5
10586 echo "${ECHO_T}no" >&6
10587       { { echo "$as_me:$LINENO: error: ${with_mad_tree} directory doesn't exist" >&5
10588 echo "$as_me: error: ${with_mad_tree} directory doesn't exist" >&2;}
10589    { (exit 1); exit 1; }; }
10590     fi
10591         echo "$as_me:$LINENO: checking for mad.h in ${real_mad_tree}/libmad" >&5
10592 echo $ECHO_N "checking for mad.h in ${real_mad_tree}/libmad... $ECHO_C" >&6
10593     if test -f ${real_mad_tree}/libmad/mad.h
10594     then
10595       echo "$as_me:$LINENO: result: yes" >&5
10596 echo "${ECHO_T}yes" >&6
10597       mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
10598       mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
10599       save_LDFLAGS=$LDFLAGS
10600       LDFLAGS=$mad_LDFLAGS
10601       echo "$as_me:$LINENO: checking for mad_bit_init in -lmad" >&5
10602 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
10603 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
10604   echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606   ac_check_lib_save_LIBS=$LIBS
10607 LIBS="-lmad  $LIBS"
10608 cat >conftest.$ac_ext <<_ACEOF
10609 #line $LINENO "configure"
10610 #include "confdefs.h"
10611
10612 /* Override any gcc2 internal prototype to avoid an error.  */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 /* We use char because int might match the return type of a gcc2
10617    builtin and then its argument prototype would still apply.  */
10618 char mad_bit_init ();
10619 #ifdef F77_DUMMY_MAIN
10620 #  ifdef __cplusplus
10621      extern "C"
10622 #  endif
10623    int F77_DUMMY_MAIN() { return 1; }
10624 #endif
10625 int
10626 main ()
10627 {
10628 mad_bit_init ();
10629   ;
10630   return 0;
10631 }
10632 _ACEOF
10633 rm -f conftest.$ac_objext conftest$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635   (eval $ac_link) 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); } &&
10639          { ac_try='test -s conftest$ac_exeext'
10640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641   (eval $ac_try) 2>&5
10642   ac_status=$?
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); }; }; then
10645   ac_cv_lib_mad_mad_bit_init=yes
10646 else
10647   echo "$as_me: failed program was:" >&5
10648 cat conftest.$ac_ext >&5
10649 ac_cv_lib_mad_mad_bit_init=no
10650 fi
10651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10652 LIBS=$ac_check_lib_save_LIBS
10653 fi
10654 echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_bit_init" >&5
10655 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
10656 if test $ac_cv_lib_mad_mad_bit_init = yes; then
10657
10658         BUILTINS="${BUILTINS} mad"
10659         mad_LDFLAGS="${mad_LDFLAGS} -lmad"
10660
10661 else
10662    { { echo "$as_me:$LINENO: error: the specified tree hasn't been compiled " >&5
10663 echo "$as_me: error: the specified tree hasn't been compiled " >&2;}
10664    { (exit 1); exit 1; }; }
10665
10666 fi
10667
10668       LDFLAGS=$save_LDFLAGS
10669     else
10670       echo "$as_me:$LINENO: result: no" >&5
10671 echo "${ECHO_T}no" >&6
10672       { { echo "$as_me:$LINENO: error: the specified tree doesn't have mad.h" >&5
10673 echo "$as_me: error: the specified tree doesn't have mad.h" >&2;}
10674    { (exit 1); exit 1; }; }
10675     fi
10676   else
10677     save_CFLAGS=$CFLAGS
10678     save_LDFLAGS=$LDFLAGS
10679     CFLAGS="$CFLAGS $mad_CFLAGS"
10680     LDFLAGS="$LDFLAGS $mad_LDFLAGS"
10681
10682 for ac_header in mad.h
10683 do
10684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10686   echo "$as_me:$LINENO: checking for $ac_header" >&5
10687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10689   echo $ECHO_N "(cached) $ECHO_C" >&6
10690 fi
10691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10693 else
10694   # Is the header compilable?
10695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10698 #line $LINENO "configure"
10699 #include "confdefs.h"
10700 $ac_includes_default
10701 #include <$ac_header>
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705   (eval $ac_compile) 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); } &&
10709          { ac_try='test -s conftest.$ac_objext'
10710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711   (eval $ac_try) 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; }; then
10715   ac_header_compiler=yes
10716 else
10717   echo "$as_me: failed program was:" >&5
10718 cat conftest.$ac_ext >&5
10719 ac_header_compiler=no
10720 fi
10721 rm -f conftest.$ac_objext conftest.$ac_ext
10722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10723 echo "${ECHO_T}$ac_header_compiler" >&6
10724
10725 # Is the header present?
10726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10728 cat >conftest.$ac_ext <<_ACEOF
10729 #line $LINENO "configure"
10730 #include "confdefs.h"
10731 #include <$ac_header>
10732 _ACEOF
10733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10734   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10735   ac_status=$?
10736   egrep -v '^ *\+' conftest.er1 >conftest.err
10737   rm -f conftest.er1
10738   cat conftest.err >&5
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); } >/dev/null; then
10741   if test -s conftest.err; then
10742     ac_cpp_err=$ac_c_preproc_warn_flag
10743   else
10744     ac_cpp_err=
10745   fi
10746 else
10747   ac_cpp_err=yes
10748 fi
10749 if test -z "$ac_cpp_err"; then
10750   ac_header_preproc=yes
10751 else
10752   echo "$as_me: failed program was:" >&5
10753   cat conftest.$ac_ext >&5
10754   ac_header_preproc=no
10755 fi
10756 rm -f conftest.err conftest.$ac_ext
10757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10758 echo "${ECHO_T}$ac_header_preproc" >&6
10759
10760 # So?  What about this header?
10761 case $ac_header_compiler:$ac_header_preproc in
10762   yes:no )
10763     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10767   no:yes )
10768     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10770     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10774 esac
10775 echo "$as_me:$LINENO: checking for $ac_header" >&5
10776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10778   echo $ECHO_N "(cached) $ECHO_C" >&6
10779 else
10780   eval "$as_ac_Header=$ac_header_preproc"
10781 fi
10782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10784
10785 fi
10786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10787   cat >>confdefs.h <<_ACEOF
10788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10789 _ACEOF
10790
10791 else
10792    { { echo "$as_me:$LINENO: error: Cannot find development headers for libmad..." >&5
10793 echo "$as_me: error: Cannot find development headers for libmad..." >&2;}
10794    { (exit 1); exit 1; }; }
10795 fi
10796
10797 done
10798
10799     echo "$as_me:$LINENO: checking for mad_bit_init in -lmad" >&5
10800 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
10801 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804   ac_check_lib_save_LIBS=$LIBS
10805 LIBS="-lmad  $LIBS"
10806 cat >conftest.$ac_ext <<_ACEOF
10807 #line $LINENO "configure"
10808 #include "confdefs.h"
10809
10810 /* Override any gcc2 internal prototype to avoid an error.  */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 /* We use char because int might match the return type of a gcc2
10815    builtin and then its argument prototype would still apply.  */
10816 char mad_bit_init ();
10817 #ifdef F77_DUMMY_MAIN
10818 #  ifdef __cplusplus
10819      extern "C"
10820 #  endif
10821    int F77_DUMMY_MAIN() { return 1; }
10822 #endif
10823 int
10824 main ()
10825 {
10826 mad_bit_init ();
10827   ;
10828   return 0;
10829 }
10830 _ACEOF
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10833   (eval $ac_link) 2>&5
10834   ac_status=$?
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); } &&
10837          { ac_try='test -s conftest$ac_exeext'
10838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839   (eval $ac_try) 2>&5
10840   ac_status=$?
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); }; }; then
10843   ac_cv_lib_mad_mad_bit_init=yes
10844 else
10845   echo "$as_me: failed program was:" >&5
10846 cat conftest.$ac_ext >&5
10847 ac_cv_lib_mad_mad_bit_init=no
10848 fi
10849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10851 fi
10852 echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_bit_init" >&5
10853 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
10854 if test $ac_cv_lib_mad_mad_bit_init = yes; then
10855
10856       PLUGINS="${PLUGINS} mad"
10857       mad_LDFLAGS="${mad_LDFLAGS} -lmad"
10858 else
10859    { { echo "$as_me:$LINENO: error: Cannot find libmad library..." >&5
10860 echo "$as_me: error: Cannot find libmad library..." >&2;}
10861    { (exit 1); exit 1; }; }
10862 fi
10863
10864     CFLAGS=$save_CFLAGS
10865     LDFLAGS=$save_LDFLAGS
10866   fi
10867 fi
10868
10869 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
10870 if test "${enable_ffmpeg+set}" = set; then
10871   enableval="$enable_ffmpeg"
10872
10873 fi;
10874 if test "x$enable_ffmpeg" = "xyes"
10875 then
10876
10877 # Check whether --with-ffmpeg or --without-ffmpeg was given.
10878 if test "${with_ffmpeg+set}" = set; then
10879   withval="$with_ffmpeg"
10880
10881 fi;
10882   if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
10883   then
10884     ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
10885     ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
10886   fi
10887
10888
10889 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
10890 if test "${with_ffmpeg_tree+set}" = set; then
10891   withval="$with_ffmpeg_tree"
10892
10893 fi;
10894   if test "x$with_ffmpeg_tree" != "x"
10895   then
10896     echo "$as_me:$LINENO: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
10897 echo $ECHO_N "checking for libavcodec.a in ${with_ffmpeg_tree}... $ECHO_C" >&6
10898     real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
10899     if test "x$real_ffmpeg_tree" = x
10900     then
10901             echo "$as_me:$LINENO: result: no" >&5
10902 echo "${ECHO_T}no" >&6
10903       { { echo "$as_me:$LINENO: error: cannot cd to ${with_ffmpeg_tree}" >&5
10904 echo "$as_me: error: cannot cd to ${with_ffmpeg_tree}" >&2;}
10905    { (exit 1); exit 1; }; }
10906     fi
10907     if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
10908     then
10909             echo "$as_me:$LINENO: result: ${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&5
10910 echo "${ECHO_T}${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&6
10911       BUILTINS="${BUILTINS} ffmpeg"
10912       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
10913       if test x$SYS != xbeos
10914       then
10915         ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
10916       fi
10917       ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
10918     else
10919             echo "$as_me:$LINENO: result: no" >&5
10920 echo "${ECHO_T}no" >&6
10921       { { echo "$as_me:$LINENO: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&5
10922 echo "$as_me: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&2;}
10923    { (exit 1); exit 1; }; }
10924     fi
10925   else
10926     save_CFLAGS=$CFLAGS
10927     save_LDFLAGS=$LDFLAGS
10928     CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
10929     LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS"
10930     if test x$SYS != xbeos
10931     then
10932       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
10933     fi
10934     echo "$as_me:$LINENO: checking for avcodec_init in -lavcodec" >&5
10935 echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6
10936 if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then
10937   echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939   ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-lavcodec  $LIBS"
10941 cat >conftest.$ac_ext <<_ACEOF
10942 #line $LINENO "configure"
10943 #include "confdefs.h"
10944
10945 /* Override any gcc2 internal prototype to avoid an error.  */
10946 #ifdef __cplusplus
10947 extern "C"
10948 #endif
10949 /* We use char because int might match the return type of a gcc2
10950    builtin and then its argument prototype would still apply.  */
10951 char avcodec_init ();
10952 #ifdef F77_DUMMY_MAIN
10953 #  ifdef __cplusplus
10954      extern "C"
10955 #  endif
10956    int F77_DUMMY_MAIN() { return 1; }
10957 #endif
10958 int
10959 main ()
10960 {
10961 avcodec_init ();
10962   ;
10963   return 0;
10964 }
10965 _ACEOF
10966 rm -f conftest.$ac_objext conftest$ac_exeext
10967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10968   (eval $ac_link) 2>&5
10969   ac_status=$?
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); } &&
10972          { ac_try='test -s conftest$ac_exeext'
10973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974   (eval $ac_try) 2>&5
10975   ac_status=$?
10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); }; }; then
10978   ac_cv_lib_avcodec_avcodec_init=yes
10979 else
10980   echo "$as_me: failed program was:" >&5
10981 cat conftest.$ac_ext >&5
10982 ac_cv_lib_avcodec_avcodec_init=no
10983 fi
10984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10985 LIBS=$ac_check_lib_save_LIBS
10986 fi
10987 echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_init" >&5
10988 echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6
10989 if test $ac_cv_lib_avcodec_avcodec_init = yes; then
10990
10991       BUILTINS="${BUILTINS} ffmpeg"
10992       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
10993       if test x$SYS != xbeos
10994       then
10995         ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
10996       fi
10997 else
10998    { { echo "$as_me:$LINENO: error: Cannot find libavcodec library..." >&5
10999 echo "$as_me: error: Cannot find libavcodec library..." >&2;}
11000    { (exit 1); exit 1; }; }
11001 fi
11002
11003     CFLAGS=$save_CFLAGS
11004     LDFLAGS=$save_LDFLAGS
11005   fi
11006 fi
11007
11008
11009 if test x$SYS = xbeos
11010 then
11011     PLUGINS="${PLUGINS} beos"
11012 fi
11013
11014 # Check whether --enable-a52 or --disable-a52 was given.
11015 if test "${enable_a52+set}" = set; then
11016   enableval="$enable_a52"
11017
11018 fi;
11019 if test "x$enable_a52" != "xno"
11020 then
11021
11022 # Check whether --with-a52-tree or --without-a52-tree was given.
11023 if test "${with_a52_tree+set}" = set; then
11024   withval="$with_a52_tree"
11025
11026 fi;
11027   if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
11028   then
11029     real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
11030     if test "x$real_a52_tree" = x
11031     then
11032             echo "$as_me:$LINENO: result: no" >&5
11033 echo "${ECHO_T}no" >&6
11034       { { echo "$as_me:$LINENO: error: ${with_a52_tree} directory doesn't exist" >&5
11035 echo "$as_me: error: ${with_a52_tree} directory doesn't exist" >&2;}
11036    { (exit 1); exit 1; }; }
11037     fi
11038         echo "$as_me:$LINENO: checking for a52.h in ${real_a52_tree}/include" >&5
11039 echo $ECHO_N "checking for a52.h in ${real_a52_tree}/include... $ECHO_C" >&6
11040     if test -f ${real_a52_tree}/include/a52.h
11041     then
11042       echo "$as_me:$LINENO: result: yes" >&5
11043 echo "${ECHO_T}yes" >&6
11044       a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
11045       a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
11046       save_LDFLAGS=$LDFLAGS
11047       LDFLAGS="$a52_LDFLAGS $LDFLAGS"
11048       echo "$as_me:$LINENO: checking for a52_free in -la52" >&5
11049 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
11050 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
11051   echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053   ac_check_lib_save_LIBS=$LIBS
11054 LIBS="-la52 -lm $LIBS"
11055 cat >conftest.$ac_ext <<_ACEOF
11056 #line $LINENO "configure"
11057 #include "confdefs.h"
11058
11059 /* Override any gcc2 internal prototype to avoid an error.  */
11060 #ifdef __cplusplus
11061 extern "C"
11062 #endif
11063 /* We use char because int might match the return type of a gcc2
11064    builtin and then its argument prototype would still apply.  */
11065 char a52_free ();
11066 #ifdef F77_DUMMY_MAIN
11067 #  ifdef __cplusplus
11068      extern "C"
11069 #  endif
11070    int F77_DUMMY_MAIN() { return 1; }
11071 #endif
11072 int
11073 main ()
11074 {
11075 a52_free ();
11076   ;
11077   return 0;
11078 }
11079 _ACEOF
11080 rm -f conftest.$ac_objext conftest$ac_exeext
11081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11082   (eval $ac_link) 2>&5
11083   ac_status=$?
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); } &&
11086          { ac_try='test -s conftest$ac_exeext'
11087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088   (eval $ac_try) 2>&5
11089   ac_status=$?
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); }; }; then
11092   ac_cv_lib_a52_a52_free=yes
11093 else
11094   echo "$as_me: failed program was:" >&5
11095 cat conftest.$ac_ext >&5
11096 ac_cv_lib_a52_a52_free=no
11097 fi
11098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11099 LIBS=$ac_check_lib_save_LIBS
11100 fi
11101 echo "$as_me:$LINENO: result: $ac_cv_lib_a52_a52_free" >&5
11102 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
11103 if test $ac_cv_lib_a52_a52_free = yes; then
11104
11105         BUILTINS="${BUILTINS} a52"
11106         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
11107         a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
11108
11109 else
11110
11111         if test -f ${real_a52_tree}/liba52/.libs/liba52.a
11112         then
11113           { { echo "$as_me:$LINENO: error: make sure you have at least a52dec-0.7.3" >&5
11114 echo "$as_me: error: make sure you have at least a52dec-0.7.3" >&2;}
11115    { (exit 1); exit 1; }; }
11116         else
11117           { { echo "$as_me:$LINENO: error: the specified tree hasn't been compiled" >&5
11118 echo "$as_me: error: the specified tree hasn't been compiled" >&2;}
11119    { (exit 1); exit 1; }; }
11120         fi
11121
11122 fi
11123
11124       LDFLAGS=$save_LDFLAGS
11125     else
11126       echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6
11128       { { echo "$as_me:$LINENO: error: the specified tree doesn't have a52.h" >&5
11129 echo "$as_me: error: the specified tree doesn't have a52.h" >&2;}
11130    { (exit 1); exit 1; }; }
11131     fi
11132   else
11133 for ac_header in a52dec/a52.h
11134 do
11135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11137   echo "$as_me:$LINENO: checking for $ac_header" >&5
11138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11140   echo $ECHO_N "(cached) $ECHO_C" >&6
11141 fi
11142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11144 else
11145   # Is the header compilable?
11146 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11148 cat >conftest.$ac_ext <<_ACEOF
11149 #line $LINENO "configure"
11150 #include "confdefs.h"
11151 $ac_includes_default
11152 #include <$ac_header>
11153 _ACEOF
11154 rm -f conftest.$ac_objext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11156   (eval $ac_compile) 2>&5
11157   ac_status=$?
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } &&
11160          { ac_try='test -s conftest.$ac_objext'
11161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162   (eval $ac_try) 2>&5
11163   ac_status=$?
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); }; }; then
11166   ac_header_compiler=yes
11167 else
11168   echo "$as_me: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11170 ac_header_compiler=no
11171 fi
11172 rm -f conftest.$ac_objext conftest.$ac_ext
11173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11174 echo "${ECHO_T}$ac_header_compiler" >&6
11175
11176 # Is the header present?
11177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11179 cat >conftest.$ac_ext <<_ACEOF
11180 #line $LINENO "configure"
11181 #include "confdefs.h"
11182 #include <$ac_header>
11183 _ACEOF
11184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11185   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11186   ac_status=$?
11187   egrep -v '^ *\+' conftest.er1 >conftest.err
11188   rm -f conftest.er1
11189   cat conftest.err >&5
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); } >/dev/null; then
11192   if test -s conftest.err; then
11193     ac_cpp_err=$ac_c_preproc_warn_flag
11194   else
11195     ac_cpp_err=
11196   fi
11197 else
11198   ac_cpp_err=yes
11199 fi
11200 if test -z "$ac_cpp_err"; then
11201   ac_header_preproc=yes
11202 else
11203   echo "$as_me: failed program was:" >&5
11204   cat conftest.$ac_ext >&5
11205   ac_header_preproc=no
11206 fi
11207 rm -f conftest.err conftest.$ac_ext
11208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11209 echo "${ECHO_T}$ac_header_preproc" >&6
11210
11211 # So?  What about this header?
11212 case $ac_header_compiler:$ac_header_preproc in
11213   yes:no )
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11218   no:yes )
11219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11221     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11225 esac
11226 echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231   eval "$as_ac_Header=$ac_header_preproc"
11232 fi
11233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11235
11236 fi
11237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11238   cat >>confdefs.h <<_ACEOF
11239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11240 _ACEOF
11241
11242       echo "$as_me:$LINENO: checking for a52_free in -la52" >&5
11243 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
11244 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
11245   echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247   ac_check_lib_save_LIBS=$LIBS
11248 LIBS="-la52 -lm $LIBS"
11249 cat >conftest.$ac_ext <<_ACEOF
11250 #line $LINENO "configure"
11251 #include "confdefs.h"
11252
11253 /* Override any gcc2 internal prototype to avoid an error.  */
11254 #ifdef __cplusplus
11255 extern "C"
11256 #endif
11257 /* We use char because int might match the return type of a gcc2
11258    builtin and then its argument prototype would still apply.  */
11259 char a52_free ();
11260 #ifdef F77_DUMMY_MAIN
11261 #  ifdef __cplusplus
11262      extern "C"
11263 #  endif
11264    int F77_DUMMY_MAIN() { return 1; }
11265 #endif
11266 int
11267 main ()
11268 {
11269 a52_free ();
11270   ;
11271   return 0;
11272 }
11273 _ACEOF
11274 rm -f conftest.$ac_objext conftest$ac_exeext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11276   (eval $ac_link) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); } &&
11280          { ac_try='test -s conftest$ac_exeext'
11281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282   (eval $ac_try) 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   ac_cv_lib_a52_a52_free=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 cat conftest.$ac_ext >&5
11290 ac_cv_lib_a52_a52_free=no
11291 fi
11292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11293 LIBS=$ac_check_lib_save_LIBS
11294 fi
11295 echo "$as_me:$LINENO: result: $ac_cv_lib_a52_a52_free" >&5
11296 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
11297 if test $ac_cv_lib_a52_a52_free = yes; then
11298
11299         BUILTINS="${BUILTINS} a52"
11300         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
11301         a52_CFLAGS="${a52_CFLAGS}"
11302
11303 fi
11304
11305
11306 fi
11307
11308 done
11309
11310   fi
11311 fi
11312
11313 # Check whether --enable-vorbis or --disable-vorbis was given.
11314 if test "${enable_vorbis+set}" = set; then
11315   enableval="$enable_vorbis"
11316
11317 fi;
11318 if test "x$enable_vorbis" != "xno"
11319 then
11320
11321 for ac_header in ogg/ogg.h
11322 do
11323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11325   echo "$as_me:$LINENO: checking for $ac_header" >&5
11326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 fi
11330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11332 else
11333   # Is the header compilable?
11334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11336 cat >conftest.$ac_ext <<_ACEOF
11337 #line $LINENO "configure"
11338 #include "confdefs.h"
11339 $ac_includes_default
11340 #include <$ac_header>
11341 _ACEOF
11342 rm -f conftest.$ac_objext
11343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11344   (eval $ac_compile) 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); } &&
11348          { ac_try='test -s conftest.$ac_objext'
11349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350   (eval $ac_try) 2>&5
11351   ac_status=$?
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); }; }; then
11354   ac_header_compiler=yes
11355 else
11356   echo "$as_me: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11358 ac_header_compiler=no
11359 fi
11360 rm -f conftest.$ac_objext conftest.$ac_ext
11361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11362 echo "${ECHO_T}$ac_header_compiler" >&6
11363
11364 # Is the header present?
11365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11367 cat >conftest.$ac_ext <<_ACEOF
11368 #line $LINENO "configure"
11369 #include "confdefs.h"
11370 #include <$ac_header>
11371 _ACEOF
11372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11374   ac_status=$?
11375   egrep -v '^ *\+' conftest.er1 >conftest.err
11376   rm -f conftest.er1
11377   cat conftest.err >&5
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); } >/dev/null; then
11380   if test -s conftest.err; then
11381     ac_cpp_err=$ac_c_preproc_warn_flag
11382   else
11383     ac_cpp_err=
11384   fi
11385 else
11386   ac_cpp_err=yes
11387 fi
11388 if test -z "$ac_cpp_err"; then
11389   ac_header_preproc=yes
11390 else
11391   echo "$as_me: failed program was:" >&5
11392   cat conftest.$ac_ext >&5
11393   ac_header_preproc=no
11394 fi
11395 rm -f conftest.err conftest.$ac_ext
11396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11397 echo "${ECHO_T}$ac_header_preproc" >&6
11398
11399 # So?  What about this header?
11400 case $ac_header_compiler:$ac_header_preproc in
11401   yes:no )
11402     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11406   no:yes )
11407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11409     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11413 esac
11414 echo "$as_me:$LINENO: checking for $ac_header" >&5
11415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11417   echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419   eval "$as_ac_Header=$ac_header_preproc"
11420 fi
11421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11423
11424 fi
11425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11426   cat >>confdefs.h <<_ACEOF
11427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11428 _ACEOF
11429
11430         #PLUGINS="${PLUGINS} vorbis"
11431     vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
11432
11433 fi
11434
11435 done
11436
11437 fi
11438
11439
11440
11441 # Check whether --with- or --without- was given.
11442 if test "${with_+set}" = set; then
11443   withval="$with_"
11444
11445 fi;
11446
11447 # Check whether --enable-x11 or --disable-x11 was given.
11448 if test "${enable_x11+set}" = set; then
11449   enableval="$enable_x11"
11450
11451 fi;
11452 if test x$enable_x11 != xno &&
11453   (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
11454   if test x$x_includes = xNONE; then
11455     x_includes=/usr/X11R6/include
11456   fi
11457   if test x$x_libraries = xNONE; then
11458     x_libraries=/usr/X11R6/lib
11459   fi
11460   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
11461
11462 for ac_header in X11/Xlib.h
11463 do
11464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11466   echo "$as_me:$LINENO: checking for $ac_header" >&5
11467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11469   echo $ECHO_N "(cached) $ECHO_C" >&6
11470 fi
11471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11473 else
11474   # Is the header compilable?
11475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11477 cat >conftest.$ac_ext <<_ACEOF
11478 #line $LINENO "configure"
11479 #include "confdefs.h"
11480 $ac_includes_default
11481 #include <$ac_header>
11482 _ACEOF
11483 rm -f conftest.$ac_objext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11485   (eval $ac_compile) 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); } &&
11489          { ac_try='test -s conftest.$ac_objext'
11490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491   (eval $ac_try) 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); }; }; then
11495   ac_header_compiler=yes
11496 else
11497   echo "$as_me: failed program was:" >&5
11498 cat conftest.$ac_ext >&5
11499 ac_header_compiler=no
11500 fi
11501 rm -f conftest.$ac_objext conftest.$ac_ext
11502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503 echo "${ECHO_T}$ac_header_compiler" >&6
11504
11505 # Is the header present?
11506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11508 cat >conftest.$ac_ext <<_ACEOF
11509 #line $LINENO "configure"
11510 #include "confdefs.h"
11511 #include <$ac_header>
11512 _ACEOF
11513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11514   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11515   ac_status=$?
11516   egrep -v '^ *\+' conftest.er1 >conftest.err
11517   rm -f conftest.er1
11518   cat conftest.err >&5
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); } >/dev/null; then
11521   if test -s conftest.err; then
11522     ac_cpp_err=$ac_c_preproc_warn_flag
11523   else
11524     ac_cpp_err=
11525   fi
11526 else
11527   ac_cpp_err=yes
11528 fi
11529 if test -z "$ac_cpp_err"; then
11530   ac_header_preproc=yes
11531 else
11532   echo "$as_me: failed program was:" >&5
11533   cat conftest.$ac_ext >&5
11534   ac_header_preproc=no
11535 fi
11536 rm -f conftest.err conftest.$ac_ext
11537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11538 echo "${ECHO_T}$ac_header_preproc" >&6
11539
11540 # So?  What about this header?
11541 case $ac_header_compiler:$ac_header_preproc in
11542   yes:no )
11543     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11547   no:yes )
11548     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11554 esac
11555 echo "$as_me:$LINENO: checking for $ac_header" >&5
11556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11558   echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560   eval "$as_ac_Header=$ac_header_preproc"
11561 fi
11562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11564
11565 fi
11566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11567   cat >>confdefs.h <<_ACEOF
11568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11569 _ACEOF
11570
11571     PLUGINS="${PLUGINS} x11"
11572     x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
11573     x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
11574
11575 fi
11576
11577 done
11578
11579   CPPFLAGS="$save_CPPFLAGS"
11580 fi
11581
11582 # Check whether --enable-xvideo or --disable-xvideo was given.
11583 if test "${enable_xvideo+set}" = set; then
11584   enableval="$enable_xvideo"
11585
11586 fi;
11587 if test x$enable_xvideo != xno &&
11588   (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
11589   if test x$x_includes = xNONE; then
11590     x_includes=/usr/X11R6/include
11591   fi
11592   if test x$x_libraries = xNONE; then
11593     x_libraries=/usr/X11R6/lib
11594   fi
11595   save_CPPFLAGS=$CPPFLAGS
11596   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
11597
11598 for ac_header in X11/extensions/Xv.h
11599 do
11600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11602   echo "$as_me:$LINENO: checking for $ac_header" >&5
11603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 fi
11607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11609 else
11610   # Is the header compilable?
11611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11613 cat >conftest.$ac_ext <<_ACEOF
11614 #line $LINENO "configure"
11615 #include "confdefs.h"
11616 $ac_includes_default
11617 #include <$ac_header>
11618 _ACEOF
11619 rm -f conftest.$ac_objext
11620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11621   (eval $ac_compile) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); } &&
11625          { ac_try='test -s conftest.$ac_objext'
11626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627   (eval $ac_try) 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; }; then
11631   ac_header_compiler=yes
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11635 ac_header_compiler=no
11636 fi
11637 rm -f conftest.$ac_objext conftest.$ac_ext
11638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11639 echo "${ECHO_T}$ac_header_compiler" >&6
11640
11641 # Is the header present?
11642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11644 cat >conftest.$ac_ext <<_ACEOF
11645 #line $LINENO "configure"
11646 #include "confdefs.h"
11647 #include <$ac_header>
11648 _ACEOF
11649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11651   ac_status=$?
11652   egrep -v '^ *\+' conftest.er1 >conftest.err
11653   rm -f conftest.er1
11654   cat conftest.err >&5
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); } >/dev/null; then
11657   if test -s conftest.err; then
11658     ac_cpp_err=$ac_c_preproc_warn_flag
11659   else
11660     ac_cpp_err=
11661   fi
11662 else
11663   ac_cpp_err=yes
11664 fi
11665 if test -z "$ac_cpp_err"; then
11666   ac_header_preproc=yes
11667 else
11668   echo "$as_me: failed program was:" >&5
11669   cat conftest.$ac_ext >&5
11670   ac_header_preproc=no
11671 fi
11672 rm -f conftest.err conftest.$ac_ext
11673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11674 echo "${ECHO_T}$ac_header_preproc" >&6
11675
11676 # So?  What about this header?
11677 case $ac_header_compiler:$ac_header_preproc in
11678   yes:no )
11679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11683   no:yes )
11684     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11686     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11690 esac
11691 echo "$as_me:$LINENO: checking for $ac_header" >&5
11692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11694   echo $ECHO_N "(cached) $ECHO_C" >&6
11695 else
11696   eval "$as_ac_Header=$ac_header_preproc"
11697 fi
11698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11700
11701 fi
11702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11703   cat >>confdefs.h <<_ACEOF
11704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11705 _ACEOF
11706
11707     save_CFLAGS=$CFLAGS
11708     CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
11709     echo "$as_me:$LINENO: checking for XvSetPortAttribute in -lXv_pic" >&5
11710 echo $ECHO_N "checking for XvSetPortAttribute in -lXv_pic... $ECHO_C" >&6
11711 if test "${ac_cv_lib_Xv_pic_XvSetPortAttribute+set}" = set; then
11712   echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714   ac_check_lib_save_LIBS=$LIBS
11715 LIBS="-lXv_pic  $LIBS"
11716 cat >conftest.$ac_ext <<_ACEOF
11717 #line $LINENO "configure"
11718 #include "confdefs.h"
11719
11720 /* Override any gcc2 internal prototype to avoid an error.  */
11721 #ifdef __cplusplus
11722 extern "C"
11723 #endif
11724 /* We use char because int might match the return type of a gcc2
11725    builtin and then its argument prototype would still apply.  */
11726 char XvSetPortAttribute ();
11727 #ifdef F77_DUMMY_MAIN
11728 #  ifdef __cplusplus
11729      extern "C"
11730 #  endif
11731    int F77_DUMMY_MAIN() { return 1; }
11732 #endif
11733 int
11734 main ()
11735 {
11736 XvSetPortAttribute ();
11737   ;
11738   return 0;
11739 }
11740 _ACEOF
11741 rm -f conftest.$ac_objext conftest$ac_exeext
11742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11743   (eval $ac_link) 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); } &&
11747          { ac_try='test -s conftest$ac_exeext'
11748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749   (eval $ac_try) 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); }; }; then
11753   ac_cv_lib_Xv_pic_XvSetPortAttribute=yes
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11757 ac_cv_lib_Xv_pic_XvSetPortAttribute=no
11758 fi
11759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11760 LIBS=$ac_check_lib_save_LIBS
11761 fi
11762 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_pic_XvSetPortAttribute" >&5
11763 echo "${ECHO_T}$ac_cv_lib_Xv_pic_XvSetPortAttribute" >&6
11764 if test $ac_cv_lib_Xv_pic_XvSetPortAttribute = yes; then
11765   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
11766       PLUGINS="${PLUGINS} xvideo"
11767       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
11768       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
11769 else
11770   # We don't have Xv_pic, let's make xvideo.a as builtin
11771       BUILTINS="${BUILTINS} xvideo"
11772       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
11773       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
11774 fi
11775
11776     CFLAGS="$save_CFLAGS"
11777
11778   CPPFLAGS="$save_CPPFLAGS"
11779 fi
11780
11781 done
11782
11783 fi
11784
11785 # Check whether --enable-sdl or --disable-sdl was given.
11786 if test "${enable_sdl+set}" = set; then
11787   enableval="$enable_sdl"
11788
11789 fi;
11790 if test "x$enable_sdl" != "xno"
11791 then
11792   SDL_PATH=$PATH
11793
11794 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
11795 if test "${with_sdl_config_path+set}" = set; then
11796   withval="$with_sdl_config_path"
11797    if test "x$with_sdl_config_path" != "xno"
11798       then
11799         SDL_PATH="$with_sdl_config_path:$PATH"
11800       fi
11801 fi;
11802   # Extract the first word of "sdl12-config", so it can be a program name with args.
11803 set dummy sdl12-config; ac_word=$2
11804 echo "$as_me:$LINENO: checking for $ac_word" >&5
11805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11806 if test "${ac_cv_path_SDL12_CONFIG+set}" = set; then
11807   echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809   case $SDL12_CONFIG in
11810   [\\/]* | ?:[\\/]*)
11811   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
11812   ;;
11813   *)
11814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $SDL_PATH
11816 do
11817   IFS=$as_save_IFS
11818   test -z "$as_dir" && as_dir=.
11819   for ac_exec_ext in '' $ac_executable_extensions; do
11820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11821     ac_cv_path_SDL12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11823     break 2
11824   fi
11825 done
11826 done
11827
11828   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
11829   ;;
11830 esac
11831 fi
11832 SDL12_CONFIG=$ac_cv_path_SDL12_CONFIG
11833
11834 if test -n "$SDL12_CONFIG"; then
11835   echo "$as_me:$LINENO: result: $SDL12_CONFIG" >&5
11836 echo "${ECHO_T}$SDL12_CONFIG" >&6
11837 else
11838   echo "$as_me:$LINENO: result: no" >&5
11839 echo "${ECHO_T}no" >&6
11840 fi
11841
11842   SDL_CONFIG=${SDL12_CONFIG}
11843   SDL_HEADER="SDL12/SDL.h"
11844   if test x${SDL_CONFIG} = xno
11845   then
11846     # Extract the first word of "sdl11-config", so it can be a program name with args.
11847 set dummy sdl11-config; ac_word=$2
11848 echo "$as_me:$LINENO: checking for $ac_word" >&5
11849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11850 if test "${ac_cv_path_SDL11_CONFIG+set}" = set; then
11851   echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853   case $SDL11_CONFIG in
11854   [\\/]* | ?:[\\/]*)
11855   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
11856   ;;
11857   *)
11858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $SDL_PATH
11860 do
11861   IFS=$as_save_IFS
11862   test -z "$as_dir" && as_dir=.
11863   for ac_exec_ext in '' $ac_executable_extensions; do
11864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11865     ac_cv_path_SDL11_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11867     break 2
11868   fi
11869 done
11870 done
11871
11872   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
11873   ;;
11874 esac
11875 fi
11876 SDL11_CONFIG=$ac_cv_path_SDL11_CONFIG
11877
11878 if test -n "$SDL11_CONFIG"; then
11879   echo "$as_me:$LINENO: result: $SDL11_CONFIG" >&5
11880 echo "${ECHO_T}$SDL11_CONFIG" >&6
11881 else
11882   echo "$as_me:$LINENO: result: no" >&5
11883 echo "${ECHO_T}no" >&6
11884 fi
11885
11886     SDL_CONFIG=${SDL11_CONFIG}
11887     SDL_HEADER="SDL11/SDL.h"
11888   fi
11889   if test x${SDL_CONFIG} = xno
11890   then
11891     # Extract the first word of "sdl-config", so it can be a program name with args.
11892 set dummy sdl-config; ac_word=$2
11893 echo "$as_me:$LINENO: checking for $ac_word" >&5
11894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11895 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
11896   echo $ECHO_N "(cached) $ECHO_C" >&6
11897 else
11898   case $SDL_CONFIG in
11899   [\\/]* | ?:[\\/]*)
11900   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11901   ;;
11902   *)
11903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in $SDL_PATH
11905 do
11906   IFS=$as_save_IFS
11907   test -z "$as_dir" && as_dir=.
11908   for ac_exec_ext in '' $ac_executable_extensions; do
11909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11910     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11912     break 2
11913   fi
11914 done
11915 done
11916
11917   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11918   ;;
11919 esac
11920 fi
11921 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11922
11923 if test -n "$SDL_CONFIG"; then
11924   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
11925 echo "${ECHO_T}$SDL_CONFIG" >&6
11926 else
11927   echo "$as_me:$LINENO: result: no" >&5
11928 echo "${ECHO_T}no" >&6
11929 fi
11930
11931     SDL_HEADER="SDL/SDL.h"
11932   fi
11933   if test x${SDL_CONFIG} != xno
11934   then
11935     PLUGINS="${PLUGINS} sdl"
11936     sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
11937     sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
11938     CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
11939
11940 for ac_header in ${SDL_HEADER}
11941 do
11942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11944   echo "$as_me:$LINENO: checking for $ac_header" >&5
11945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11947   echo $ECHO_N "(cached) $ECHO_C" >&6
11948 fi
11949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11951 else
11952   # Is the header compilable?
11953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11955 cat >conftest.$ac_ext <<_ACEOF
11956 #line $LINENO "configure"
11957 #include "confdefs.h"
11958 $ac_includes_default
11959 #include <$ac_header>
11960 _ACEOF
11961 rm -f conftest.$ac_objext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11963   (eval $ac_compile) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } &&
11967          { ac_try='test -s conftest.$ac_objext'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; }; then
11973   ac_header_compiler=yes
11974 else
11975   echo "$as_me: failed program was:" >&5
11976 cat conftest.$ac_ext >&5
11977 ac_header_compiler=no
11978 fi
11979 rm -f conftest.$ac_objext conftest.$ac_ext
11980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11981 echo "${ECHO_T}$ac_header_compiler" >&6
11982
11983 # Is the header present?
11984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11986 cat >conftest.$ac_ext <<_ACEOF
11987 #line $LINENO "configure"
11988 #include "confdefs.h"
11989 #include <$ac_header>
11990 _ACEOF
11991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11993   ac_status=$?
11994   egrep -v '^ *\+' conftest.er1 >conftest.err
11995   rm -f conftest.er1
11996   cat conftest.err >&5
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); } >/dev/null; then
11999   if test -s conftest.err; then
12000     ac_cpp_err=$ac_c_preproc_warn_flag
12001   else
12002     ac_cpp_err=
12003   fi
12004 else
12005   ac_cpp_err=yes
12006 fi
12007 if test -z "$ac_cpp_err"; then
12008   ac_header_preproc=yes
12009 else
12010   echo "$as_me: failed program was:" >&5
12011   cat conftest.$ac_ext >&5
12012   ac_header_preproc=no
12013 fi
12014 rm -f conftest.err conftest.$ac_ext
12015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12016 echo "${ECHO_T}$ac_header_preproc" >&6
12017
12018 # So?  What about this header?
12019 case $ac_header_compiler:$ac_header_preproc in
12020   yes:no )
12021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12025   no:yes )
12026     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12028     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12032 esac
12033 echo "$as_me:$LINENO: checking for $ac_header" >&5
12034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12036   echo $ECHO_N "(cached) $ECHO_C" >&6
12037 else
12038   eval "$as_ac_Header=$ac_header_preproc"
12039 fi
12040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12042
12043 fi
12044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12045   cat >>confdefs.h <<_ACEOF
12046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12047 _ACEOF
12048
12049 cat >>confdefs.h <<_ACEOF
12050 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
12051 _ACEOF
12052
12053 else
12054    { { echo "$as_me:$LINENO: error: The development package for SDL is not installed.
12055 Please install it and try again. Alternatively you can also configure with
12056 --disable-sdl." >&5
12057 echo "$as_me: error: The development package for SDL is not installed.
12058 Please install it and try again. Alternatively you can also configure with
12059 --disable-sdl." >&2;}
12060    { (exit 1); exit 1; }; }
12061
12062 fi
12063
12064 done
12065
12066     CPPFLAGS="$save_CPPFLAGS"
12067     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
12068     then
12069       { { echo "$as_me:$LINENO: error: The development package for SDL is not installed.
12070 Please install it and try again. Alternatively you can also configure with
12071 --disable-sdl." >&5
12072 echo "$as_me: error: The development package for SDL is not installed.
12073 Please install it and try again. Alternatively you can also configure with
12074 --disable-sdl." >&2;}
12075    { (exit 1); exit 1; }; }
12076     fi
12077   elif test "x$enable_sdl" =  "xyes"
12078   then
12079     { { echo "$as_me:$LINENO: error: I couldn't find the SDL package. You can download libSDL
12080 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
12081     " >&5
12082 echo "$as_me: error: I couldn't find the SDL package. You can download libSDL
12083 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
12084     " >&2;}
12085    { (exit 1); exit 1; }; }
12086   fi
12087 fi
12088
12089 # Check whether --enable-qte or --disable-qte was given.
12090 if test "${enable_qte+set}" = set; then
12091   enableval="$enable_qte"
12092
12093 fi;
12094 if test "x${enable_qte}" != "xno"
12095 then
12096
12097 # Check whether --with-qte or --without-qte was given.
12098 if test "${with_qte+set}" = set; then
12099   withval="$with_qte"
12100
12101 fi;
12102   if test "x${with_qte}" = "x"
12103   then
12104     test_LDFLAGS="-L${QTDIR}/lib"
12105     test_CFLAGS="-I$(QTDIR)/include"
12106   else
12107     test_LDFLAGS="-L${with_qte}/lib"
12108     test_CFLAGS="-I${with_qte}/include"
12109   fi
12110
12111   CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
12112
12113 for ac_header in qt.h
12114 do
12115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12117   echo "$as_me:$LINENO: checking for $ac_header" >&5
12118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12120   echo $ECHO_N "(cached) $ECHO_C" >&6
12121 fi
12122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12124 else
12125   # Is the header compilable?
12126 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12128 cat >conftest.$ac_ext <<_ACEOF
12129 #line $LINENO "configure"
12130 #include "confdefs.h"
12131 $ac_includes_default
12132 #include <$ac_header>
12133 _ACEOF
12134 rm -f conftest.$ac_objext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136   (eval $ac_compile) 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); } &&
12140          { ac_try='test -s conftest.$ac_objext'
12141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142   (eval $ac_try) 2>&5
12143   ac_status=$?
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); }; }; then
12146   ac_header_compiler=yes
12147 else
12148   echo "$as_me: failed program was:" >&5
12149 cat conftest.$ac_ext >&5
12150 ac_header_compiler=no
12151 fi
12152 rm -f conftest.$ac_objext conftest.$ac_ext
12153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12154 echo "${ECHO_T}$ac_header_compiler" >&6
12155
12156 # Is the header present?
12157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12159 cat >conftest.$ac_ext <<_ACEOF
12160 #line $LINENO "configure"
12161 #include "confdefs.h"
12162 #include <$ac_header>
12163 _ACEOF
12164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12165   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12166   ac_status=$?
12167   egrep -v '^ *\+' conftest.er1 >conftest.err
12168   rm -f conftest.er1
12169   cat conftest.err >&5
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } >/dev/null; then
12172   if test -s conftest.err; then
12173     ac_cpp_err=$ac_c_preproc_warn_flag
12174   else
12175     ac_cpp_err=
12176   fi
12177 else
12178   ac_cpp_err=yes
12179 fi
12180 if test -z "$ac_cpp_err"; then
12181   ac_header_preproc=yes
12182 else
12183   echo "$as_me: failed program was:" >&5
12184   cat conftest.$ac_ext >&5
12185   ac_header_preproc=no
12186 fi
12187 rm -f conftest.err conftest.$ac_ext
12188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12189 echo "${ECHO_T}$ac_header_preproc" >&6
12190
12191 # So?  What about this header?
12192 case $ac_header_compiler:$ac_header_preproc in
12193   yes:no )
12194     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12198   no:yes )
12199     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12201     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12205 esac
12206 echo "$as_me:$LINENO: checking for $ac_header" >&5
12207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12209   echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211   eval "$as_ac_Header=$ac_header_preproc"
12212 fi
12213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12215
12216 fi
12217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12218   cat >>confdefs.h <<_ACEOF
12219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12220 _ACEOF
12221
12222     qte_CFLAGS="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
12223     qte_LDFLAGS="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
12224     if test "x${with_qte}" = "x"
12225     then
12226       PLUGINS="${PLUGINS} qte"
12227     else
12228       BUILTINS="${BUILTINS} qte"
12229     fi
12230
12231 fi
12232
12233 done
12234
12235   CPPFLAGS="${save_CPPFLAGS}"
12236 fi
12237
12238 # Check whether --enable-directx or --disable-directx was given.
12239 if test "${enable_directx+set}" = set; then
12240   enableval="$enable_directx"
12241
12242 fi;
12243 if test "x$enable_directx" != "xno"
12244 then
12245   if test x$SYS = xmingw32
12246   then
12247
12248 # Check whether --with-directx or --without-directx was given.
12249 if test "${with_directx+set}" = set; then
12250   withval="$with_directx"
12251
12252 fi;
12253     if test "x$with_directx" = "x"
12254     then
12255
12256 for ac_header in ddraw.h
12257 do
12258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12260   echo "$as_me:$LINENO: checking for $ac_header" >&5
12261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12263   echo $ECHO_N "(cached) $ECHO_C" >&6
12264 fi
12265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12267 else
12268   # Is the header compilable?
12269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12271 cat >conftest.$ac_ext <<_ACEOF
12272 #line $LINENO "configure"
12273 #include "confdefs.h"
12274 $ac_includes_default
12275 #include <$ac_header>
12276 _ACEOF
12277 rm -f conftest.$ac_objext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279   (eval $ac_compile) 2>&5
12280   ac_status=$?
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); } &&
12283          { ac_try='test -s conftest.$ac_objext'
12284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285   (eval $ac_try) 2>&5
12286   ac_status=$?
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); }; }; then
12289   ac_header_compiler=yes
12290 else
12291   echo "$as_me: failed program was:" >&5
12292 cat conftest.$ac_ext >&5
12293 ac_header_compiler=no
12294 fi
12295 rm -f conftest.$ac_objext conftest.$ac_ext
12296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12297 echo "${ECHO_T}$ac_header_compiler" >&6
12298
12299 # Is the header present?
12300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12302 cat >conftest.$ac_ext <<_ACEOF
12303 #line $LINENO "configure"
12304 #include "confdefs.h"
12305 #include <$ac_header>
12306 _ACEOF
12307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12309   ac_status=$?
12310   egrep -v '^ *\+' conftest.er1 >conftest.err
12311   rm -f conftest.er1
12312   cat conftest.err >&5
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); } >/dev/null; then
12315   if test -s conftest.err; then
12316     ac_cpp_err=$ac_c_preproc_warn_flag
12317   else
12318     ac_cpp_err=
12319   fi
12320 else
12321   ac_cpp_err=yes
12322 fi
12323 if test -z "$ac_cpp_err"; then
12324   ac_header_preproc=yes
12325 else
12326   echo "$as_me: failed program was:" >&5
12327   cat conftest.$ac_ext >&5
12328   ac_header_preproc=no
12329 fi
12330 rm -f conftest.err conftest.$ac_ext
12331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12332 echo "${ECHO_T}$ac_header_preproc" >&6
12333
12334 # So?  What about this header?
12335 case $ac_header_compiler:$ac_header_preproc in
12336   yes:no )
12337     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12341   no:yes )
12342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12344     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12348 esac
12349 echo "$as_me:$LINENO: checking for $ac_header" >&5
12350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12352   echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354   eval "$as_ac_Header=$ac_header_preproc"
12355 fi
12356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12358
12359 fi
12360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12361   cat >>confdefs.h <<_ACEOF
12362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12363 _ACEOF
12364   PLUGINS="${PLUGINS} directx"
12365         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
12366 fi
12367
12368 done
12369
12370     else
12371       echo "$as_me:$LINENO: checking for directX headers in ${with_directx}" >&5
12372 echo $ECHO_N "checking for directX headers in ${with_directx}... $ECHO_C" >&6
12373       if test -f ${with_directx}/ddraw.h
12374       then
12375         PLUGINS="${PLUGINS} directx"
12376         directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
12377         directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
12378         echo "$as_me:$LINENO: result: yes" >&5
12379 echo "${ECHO_T}yes" >&6
12380       else
12381         echo "$as_me:$LINENO: result: no" >&5
12382 echo "${ECHO_T}no" >&6
12383         { { echo "$as_me:$LINENO: error: Cannot find ${with_directx}/ddraw.h!" >&5
12384 echo "$as_me: error: Cannot find ${with_directx}/ddraw.h!" >&2;}
12385    { (exit 1); exit 1; }; }
12386       fi
12387     fi
12388   fi
12389 fi
12390
12391 # Check whether --enable-fb or --disable-fb was given.
12392 if test "${enable_fb+set}" = set; then
12393   enableval="$enable_fb"
12394
12395 fi;
12396     if test x$enable_fb != xno
12397     then
12398
12399 for ac_header in linux/fb.h
12400 do
12401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12403   echo "$as_me:$LINENO: checking for $ac_header" >&5
12404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12406   echo $ECHO_N "(cached) $ECHO_C" >&6
12407 fi
12408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12410 else
12411   # Is the header compilable?
12412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12414 cat >conftest.$ac_ext <<_ACEOF
12415 #line $LINENO "configure"
12416 #include "confdefs.h"
12417 $ac_includes_default
12418 #include <$ac_header>
12419 _ACEOF
12420 rm -f conftest.$ac_objext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12422   (eval $ac_compile) 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); } &&
12426          { ac_try='test -s conftest.$ac_objext'
12427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428   (eval $ac_try) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; }; then
12432   ac_header_compiler=yes
12433 else
12434   echo "$as_me: failed program was:" >&5
12435 cat conftest.$ac_ext >&5
12436 ac_header_compiler=no
12437 fi
12438 rm -f conftest.$ac_objext conftest.$ac_ext
12439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12440 echo "${ECHO_T}$ac_header_compiler" >&6
12441
12442 # Is the header present?
12443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12445 cat >conftest.$ac_ext <<_ACEOF
12446 #line $LINENO "configure"
12447 #include "confdefs.h"
12448 #include <$ac_header>
12449 _ACEOF
12450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12452   ac_status=$?
12453   egrep -v '^ *\+' conftest.er1 >conftest.err
12454   rm -f conftest.er1
12455   cat conftest.err >&5
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); } >/dev/null; then
12458   if test -s conftest.err; then
12459     ac_cpp_err=$ac_c_preproc_warn_flag
12460   else
12461     ac_cpp_err=
12462   fi
12463 else
12464   ac_cpp_err=yes
12465 fi
12466 if test -z "$ac_cpp_err"; then
12467   ac_header_preproc=yes
12468 else
12469   echo "$as_me: failed program was:" >&5
12470   cat conftest.$ac_ext >&5
12471   ac_header_preproc=no
12472 fi
12473 rm -f conftest.err conftest.$ac_ext
12474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12475 echo "${ECHO_T}$ac_header_preproc" >&6
12476
12477 # So?  What about this header?
12478 case $ac_header_compiler:$ac_header_preproc in
12479   yes:no )
12480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12484   no:yes )
12485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12487     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12491 esac
12492 echo "$as_me:$LINENO: checking for $ac_header" >&5
12493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12495   echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497   eval "$as_ac_Header=$ac_header_preproc"
12498 fi
12499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12501
12502 fi
12503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12504   cat >>confdefs.h <<_ACEOF
12505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12506 _ACEOF
12507
12508         PLUGINS="${PLUGINS} fb"
12509
12510 fi
12511
12512 done
12513
12514     fi
12515
12516 # Check whether --enable-mga or --disable-mga was given.
12517 if test "${enable_mga+set}" = set; then
12518   enableval="$enable_mga"
12519    if test x$enable_mga = xyes
12520     then
12521       PLUGINS="${PLUGINS} mga xmga"
12522     fi
12523 fi;
12524
12525 # Check whether --enable-ggi or --disable-ggi was given.
12526 if test "${enable_ggi+set}" = set; then
12527   enableval="$enable_ggi"
12528
12529 fi;
12530 if test x$enable_ggi = xyes
12531 then
12532   PLUGINS="${PLUGINS} ggi"
12533   ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
12534
12535 # Check whether --with-ggi or --without-ggi was given.
12536 if test "${with_ggi+set}" = set; then
12537   withval="$with_ggi"
12538    if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
12539       then
12540         CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
12541         ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
12542       fi
12543 fi;
12544 fi
12545
12546 # Check whether --enable-glide or --disable-glide was given.
12547 if test "${enable_glide+set}" = set; then
12548   enableval="$enable_glide"
12549
12550 fi;
12551 if test x$enable_glide = xyes
12552 then
12553   PLUGINS="${PLUGINS} glide"
12554   glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
12555   glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
12556
12557 # Check whether --with-glide or --without-glide was given.
12558 if test "${with_glide+set}" = set; then
12559   withval="$with_glide"
12560    if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
12561       then
12562         glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
12563         glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
12564       fi
12565 fi;
12566 fi
12567
12568 # Check whether --enable-aa or --disable-aa was given.
12569 if test "${enable_aa+set}" = set; then
12570   enableval="$enable_aa"
12571
12572 fi;
12573 if test x$enable_aa = xyes
12574 then
12575   if test "${ac_cv_header_aalib_h+set}" = set; then
12576   echo "$as_me:$LINENO: checking for aalib.h" >&5
12577 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
12578 if test "${ac_cv_header_aalib_h+set}" = set; then
12579   echo $ECHO_N "(cached) $ECHO_C" >&6
12580 fi
12581 echo "$as_me:$LINENO: result: $ac_cv_header_aalib_h" >&5
12582 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
12583 else
12584   # Is the header compilable?
12585 echo "$as_me:$LINENO: checking aalib.h usability" >&5
12586 echo $ECHO_N "checking aalib.h usability... $ECHO_C" >&6
12587 cat >conftest.$ac_ext <<_ACEOF
12588 #line $LINENO "configure"
12589 #include "confdefs.h"
12590 $ac_includes_default
12591 #include <aalib.h>
12592 _ACEOF
12593 rm -f conftest.$ac_objext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12595   (eval $ac_compile) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } &&
12599          { ac_try='test -s conftest.$ac_objext'
12600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601   (eval $ac_try) 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); }; }; then
12605   ac_header_compiler=yes
12606 else
12607   echo "$as_me: failed program was:" >&5
12608 cat conftest.$ac_ext >&5
12609 ac_header_compiler=no
12610 fi
12611 rm -f conftest.$ac_objext conftest.$ac_ext
12612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12613 echo "${ECHO_T}$ac_header_compiler" >&6
12614
12615 # Is the header present?
12616 echo "$as_me:$LINENO: checking aalib.h presence" >&5
12617 echo $ECHO_N "checking aalib.h presence... $ECHO_C" >&6
12618 cat >conftest.$ac_ext <<_ACEOF
12619 #line $LINENO "configure"
12620 #include "confdefs.h"
12621 #include <aalib.h>
12622 _ACEOF
12623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12624   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12625   ac_status=$?
12626   egrep -v '^ *\+' conftest.er1 >conftest.err
12627   rm -f conftest.er1
12628   cat conftest.err >&5
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); } >/dev/null; then
12631   if test -s conftest.err; then
12632     ac_cpp_err=$ac_c_preproc_warn_flag
12633   else
12634     ac_cpp_err=
12635   fi
12636 else
12637   ac_cpp_err=yes
12638 fi
12639 if test -z "$ac_cpp_err"; then
12640   ac_header_preproc=yes
12641 else
12642   echo "$as_me: failed program was:" >&5
12643   cat conftest.$ac_ext >&5
12644   ac_header_preproc=no
12645 fi
12646 rm -f conftest.err conftest.$ac_ext
12647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12648 echo "${ECHO_T}$ac_header_preproc" >&6
12649
12650 # So?  What about this header?
12651 case $ac_header_compiler:$ac_header_preproc in
12652   yes:no )
12653     { echo "$as_me:$LINENO: WARNING: aalib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12654 echo "$as_me: WARNING: aalib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12655     { echo "$as_me:$LINENO: WARNING: aalib.h: proceeding with the preprocessor's result" >&5
12656 echo "$as_me: WARNING: aalib.h: proceeding with the preprocessor's result" >&2;};;
12657   no:yes )
12658     { echo "$as_me:$LINENO: WARNING: aalib.h: present but cannot be compiled" >&5
12659 echo "$as_me: WARNING: aalib.h: present but cannot be compiled" >&2;}
12660     { echo "$as_me:$LINENO: WARNING: aalib.h: check for missing prerequisite headers?" >&5
12661 echo "$as_me: WARNING: aalib.h: check for missing prerequisite headers?" >&2;}
12662     { echo "$as_me:$LINENO: WARNING: aalib.h: proceeding with the preprocessor's result" >&5
12663 echo "$as_me: WARNING: aalib.h: proceeding with the preprocessor's result" >&2;};;
12664 esac
12665 echo "$as_me:$LINENO: checking for aalib.h" >&5
12666 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
12667 if test "${ac_cv_header_aalib_h+set}" = set; then
12668   echo $ECHO_N "(cached) $ECHO_C" >&6
12669 else
12670   ac_cv_header_aalib_h=$ac_header_preproc
12671 fi
12672 echo "$as_me:$LINENO: result: $ac_cv_header_aalib_h" >&5
12673 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
12674
12675 fi
12676 if test $ac_cv_header_aalib_h = yes; then
12677   have_aa="true"
12678 else
12679   have_aa="false"
12680 fi
12681
12682
12683   if test x$have_aa = xtrue
12684   then
12685     PLUGINS="${PLUGINS} aa"
12686     aa_LDFLAGS="${aa_LDFLAGS} -laa"
12687   fi
12688 fi
12689
12690
12691
12692 # Check whether --with- or --without- was given.
12693 if test "${with_+set}" = set; then
12694   withval="$with_"
12695
12696 fi;
12697
12698 # Check whether --enable-dsp or --disable-dsp was given.
12699 if test "${enable_dsp+set}" = set; then
12700   enableval="$enable_dsp"
12701
12702 fi;
12703
12704 if test x$enable_dsp != xno &&
12705   (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
12706 then
12707
12708
12709
12710 for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h
12711 do
12712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12714   echo "$as_me:$LINENO: checking for $ac_header" >&5
12715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12717   echo $ECHO_N "(cached) $ECHO_C" >&6
12718 fi
12719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12721 else
12722   # Is the header compilable?
12723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12725 cat >conftest.$ac_ext <<_ACEOF
12726 #line $LINENO "configure"
12727 #include "confdefs.h"
12728 $ac_includes_default
12729 #include <$ac_header>
12730 _ACEOF
12731 rm -f conftest.$ac_objext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733   (eval $ac_compile) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } &&
12737          { ac_try='test -s conftest.$ac_objext'
12738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739   (eval $ac_try) 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; }; then
12743   ac_header_compiler=yes
12744 else
12745   echo "$as_me: failed program was:" >&5
12746 cat conftest.$ac_ext >&5
12747 ac_header_compiler=no
12748 fi
12749 rm -f conftest.$ac_objext conftest.$ac_ext
12750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12751 echo "${ECHO_T}$ac_header_compiler" >&6
12752
12753 # Is the header present?
12754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12756 cat >conftest.$ac_ext <<_ACEOF
12757 #line $LINENO "configure"
12758 #include "confdefs.h"
12759 #include <$ac_header>
12760 _ACEOF
12761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12763   ac_status=$?
12764   egrep -v '^ *\+' conftest.er1 >conftest.err
12765   rm -f conftest.er1
12766   cat conftest.err >&5
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); } >/dev/null; then
12769   if test -s conftest.err; then
12770     ac_cpp_err=$ac_c_preproc_warn_flag
12771   else
12772     ac_cpp_err=
12773   fi
12774 else
12775   ac_cpp_err=yes
12776 fi
12777 if test -z "$ac_cpp_err"; then
12778   ac_header_preproc=yes
12779 else
12780   echo "$as_me: failed program was:" >&5
12781   cat conftest.$ac_ext >&5
12782   ac_header_preproc=no
12783 fi
12784 rm -f conftest.err conftest.$ac_ext
12785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12786 echo "${ECHO_T}$ac_header_preproc" >&6
12787
12788 # So?  What about this header?
12789 case $ac_header_compiler:$ac_header_preproc in
12790   yes:no )
12791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12795   no:yes )
12796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12798     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12802 esac
12803 echo "$as_me:$LINENO: checking for $ac_header" >&5
12804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12806   echo $ECHO_N "(cached) $ECHO_C" >&6
12807 else
12808   eval "$as_ac_Header=$ac_header_preproc"
12809 fi
12810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12812
12813 fi
12814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12815   cat >>confdefs.h <<_ACEOF
12816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12817 _ACEOF
12818
12819     PLUGINS="${PLUGINS} dsp"
12820     echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
12821 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6
12822 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
12823   echo $ECHO_N "(cached) $ECHO_C" >&6
12824 else
12825   ac_check_lib_save_LIBS=$LIBS
12826 LIBS="-lossaudio  $LIBS"
12827 cat >conftest.$ac_ext <<_ACEOF
12828 #line $LINENO "configure"
12829 #include "confdefs.h"
12830
12831
12832 #ifdef F77_DUMMY_MAIN
12833 #  ifdef __cplusplus
12834      extern "C"
12835 #  endif
12836    int F77_DUMMY_MAIN() { return 1; }
12837 #endif
12838 int
12839 main ()
12840 {
12841 main ();
12842   ;
12843   return 0;
12844 }
12845 _ACEOF
12846 rm -f conftest.$ac_objext conftest$ac_exeext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848   (eval $ac_link) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } &&
12852          { ac_try='test -s conftest$ac_exeext'
12853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854   (eval $ac_try) 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); }; }; then
12858   ac_cv_lib_ossaudio_main=yes
12859 else
12860   echo "$as_me: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12862 ac_cv_lib_ossaudio_main=no
12863 fi
12864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12865 LIBS=$ac_check_lib_save_LIBS
12866 fi
12867 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
12868 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6
12869 if test $ac_cv_lib_ossaudio_main = yes; then
12870   dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
12871 fi
12872
12873
12874 fi
12875
12876 done
12877
12878 fi
12879
12880 # Check whether --enable-esd or --disable-esd was given.
12881 if test "${enable_esd+set}" = set; then
12882   enableval="$enable_esd"
12883   if test x$enable_esd = xyes
12884    then
12885      # Extract the first word of "esd-config", so it can be a program name with args.
12886 set dummy esd-config; ac_word=$2
12887 echo "$as_me:$LINENO: checking for $ac_word" >&5
12888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12889 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12890   echo $ECHO_N "(cached) $ECHO_C" >&6
12891 else
12892   case $ESD_CONFIG in
12893   [\\/]* | ?:[\\/]*)
12894   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12895   ;;
12896   *)
12897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12898 for as_dir in $PATH
12899 do
12900   IFS=$as_save_IFS
12901   test -z "$as_dir" && as_dir=.
12902   for ac_exec_ext in '' $ac_executable_extensions; do
12903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12904     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12906     break 2
12907   fi
12908 done
12909 done
12910
12911   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12912   ;;
12913 esac
12914 fi
12915 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12916
12917 if test -n "$ESD_CONFIG"; then
12918   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12919 echo "${ECHO_T}$ESD_CONFIG" >&6
12920 else
12921   echo "$as_me:$LINENO: result: no" >&5
12922 echo "${ECHO_T}no" >&6
12923 fi
12924
12925      if test x${ESD_CONFIG} != xno
12926      then
12927        PLUGINS="${PLUGINS} esd"
12928        esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
12929        esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
12930      fi
12931    fi
12932 fi;
12933
12934 # Check whether --enable-arts or --disable-arts was given.
12935 if test "${enable_arts+set}" = set; then
12936   enableval="$enable_arts"
12937   if test x$enable_arts = xyes
12938    then
12939      # Extract the first word of "artsc-config", so it can be a program name with args.
12940 set dummy artsc-config; ac_word=$2
12941 echo "$as_me:$LINENO: checking for $ac_word" >&5
12942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12943 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12944   echo $ECHO_N "(cached) $ECHO_C" >&6
12945 else
12946   case $ARTS_CONFIG in
12947   [\\/]* | ?:[\\/]*)
12948   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12949   ;;
12950   *)
12951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952 for as_dir in $PATH
12953 do
12954   IFS=$as_save_IFS
12955   test -z "$as_dir" && as_dir=.
12956   for ac_exec_ext in '' $ac_executable_extensions; do
12957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12958     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12960     break 2
12961   fi
12962 done
12963 done
12964
12965   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12966   ;;
12967 esac
12968 fi
12969 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12970
12971 if test -n "$ARTS_CONFIG"; then
12972   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12973 echo "${ECHO_T}$ARTS_CONFIG" >&6
12974 else
12975   echo "$as_me:$LINENO: result: no" >&5
12976 echo "${ECHO_T}no" >&6
12977 fi
12978
12979      if test x${ARTS_CONFIG} != xno
12980      then
12981        PLUGINS="${PLUGINS} arts"
12982        arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
12983        arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
12984      fi
12985    fi
12986 fi;
12987
12988 # Check whether --enable-alsa or --disable-alsa was given.
12989 if test "${enable_alsa+set}" = set; then
12990   enableval="$enable_alsa"
12991   if test x$enable_alsa = xyes
12992    then
12993      if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
12994   echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
12995 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
12996 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
12997   echo $ECHO_N "(cached) $ECHO_C" >&6
12998 fi
12999 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
13000 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
13001 else
13002   # Is the header compilable?
13003 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
13004 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
13005 cat >conftest.$ac_ext <<_ACEOF
13006 #line $LINENO "configure"
13007 #include "confdefs.h"
13008 $ac_includes_default
13009 #include <alsa/asoundlib.h>
13010 _ACEOF
13011 rm -f conftest.$ac_objext
13012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13013   (eval $ac_compile) 2>&5
13014   ac_status=$?
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); } &&
13017          { ac_try='test -s conftest.$ac_objext'
13018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019   (eval $ac_try) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); }; }; then
13023   ac_header_compiler=yes
13024 else
13025   echo "$as_me: failed program was:" >&5
13026 cat conftest.$ac_ext >&5
13027 ac_header_compiler=no
13028 fi
13029 rm -f conftest.$ac_objext conftest.$ac_ext
13030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13031 echo "${ECHO_T}$ac_header_compiler" >&6
13032
13033 # Is the header present?
13034 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
13035 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
13036 cat >conftest.$ac_ext <<_ACEOF
13037 #line $LINENO "configure"
13038 #include "confdefs.h"
13039 #include <alsa/asoundlib.h>
13040 _ACEOF
13041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13043   ac_status=$?
13044   egrep -v '^ *\+' conftest.er1 >conftest.err
13045   rm -f conftest.er1
13046   cat conftest.err >&5
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); } >/dev/null; then
13049   if test -s conftest.err; then
13050     ac_cpp_err=$ac_c_preproc_warn_flag
13051   else
13052     ac_cpp_err=
13053   fi
13054 else
13055   ac_cpp_err=yes
13056 fi
13057 if test -z "$ac_cpp_err"; then
13058   ac_header_preproc=yes
13059 else
13060   echo "$as_me: failed program was:" >&5
13061   cat conftest.$ac_ext >&5
13062   ac_header_preproc=no
13063 fi
13064 rm -f conftest.err conftest.$ac_ext
13065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13066 echo "${ECHO_T}$ac_header_preproc" >&6
13067
13068 # So?  What about this header?
13069 case $ac_header_compiler:$ac_header_preproc in
13070   yes:no )
13071     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13072 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13073     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
13074 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;};;
13075   no:yes )
13076     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
13077 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
13078     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
13079 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
13080     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
13081 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;};;
13082 esac
13083 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
13084 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
13085 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
13086   echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088   ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
13089 fi
13090 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
13091 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
13092
13093 fi
13094 if test $ac_cv_header_alsa_asoundlib_h = yes; then
13095   echo "$as_me:$LINENO: checking for main in -lasound" >&5
13096 echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6
13097 if test "${ac_cv_lib_asound_main+set}" = set; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100   ac_check_lib_save_LIBS=$LIBS
13101 LIBS="-lasound  $LIBS"
13102 cat >conftest.$ac_ext <<_ACEOF
13103 #line $LINENO "configure"
13104 #include "confdefs.h"
13105
13106
13107 #ifdef F77_DUMMY_MAIN
13108 #  ifdef __cplusplus
13109      extern "C"
13110 #  endif
13111    int F77_DUMMY_MAIN() { return 1; }
13112 #endif
13113 int
13114 main ()
13115 {
13116 main ();
13117   ;
13118   return 0;
13119 }
13120 _ACEOF
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123   (eval $ac_link) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); } &&
13127          { ac_try='test -s conftest$ac_exeext'
13128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129   (eval $ac_try) 2>&5
13130   ac_status=$?
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); }; }; then
13133   ac_cv_lib_asound_main=yes
13134 else
13135   echo "$as_me: failed program was:" >&5
13136 cat conftest.$ac_ext >&5
13137 ac_cv_lib_asound_main=no
13138 fi
13139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13140 LIBS=$ac_check_lib_save_LIBS
13141 fi
13142 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_main" >&5
13143 echo "${ECHO_T}$ac_cv_lib_asound_main" >&6
13144 if test $ac_cv_lib_asound_main = yes; then
13145   have_alsa="true"
13146 else
13147   have_alsa="false"
13148 fi
13149
13150 else
13151   have_alsa="false"
13152 fi
13153
13154
13155      if test x$have_alsa = xtrue
13156      then
13157        PLUGINS="${PLUGINS} alsa"
13158        alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
13159      fi
13160    fi
13161 fi;
13162
13163 # Check whether --enable-waveout or --disable-waveout was given.
13164 if test "${enable_waveout+set}" = set; then
13165   enableval="$enable_waveout"
13166
13167 fi;
13168 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
13169   then
13170     PLUGINS="${PLUGINS} waveout"
13171     waveout_LDFLAGS="-lwinmm"
13172 fi
13173
13174
13175
13176 # Check whether --with- or --without- was given.
13177 if test "${with_+set}" = set; then
13178   withval="$with_"
13179
13180 fi;
13181
13182 # Check whether --enable-gtk or --disable-gtk was given.
13183 if test "${enable_gtk+set}" = set; then
13184   enableval="$enable_gtk"
13185
13186 fi;
13187 if test x$enable_gtk != xno
13188 then
13189   GTK_PATH=$PATH
13190
13191 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
13192 if test "${with_gtk_config_path+set}" = set; then
13193   withval="$with_gtk_config_path"
13194    if test "x$with_gtk_config_path" != "xno"
13195       then
13196         GTK_PATH="$with_gtk_config_path:$PATH"
13197       fi
13198 fi;
13199   # look for gtk-config
13200   # Extract the first word of "gtk12-config", so it can be a program name with args.
13201 set dummy gtk12-config; ac_word=$2
13202 echo "$as_me:$LINENO: checking for $ac_word" >&5
13203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13204 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
13205   echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207   case $GTK12_CONFIG in
13208   [\\/]* | ?:[\\/]*)
13209   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
13210   ;;
13211   *)
13212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213 for as_dir in $GTK_PATH
13214 do
13215   IFS=$as_save_IFS
13216   test -z "$as_dir" && as_dir=.
13217   for ac_exec_ext in '' $ac_executable_extensions; do
13218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13219     ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13221     break 2
13222   fi
13223 done
13224 done
13225
13226   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
13227   ;;
13228 esac
13229 fi
13230 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
13231
13232 if test -n "$GTK12_CONFIG"; then
13233   echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
13234 echo "${ECHO_T}$GTK12_CONFIG" >&6
13235 else
13236   echo "$as_me:$LINENO: result: no" >&5
13237 echo "${ECHO_T}no" >&6
13238 fi
13239
13240   GTK_CONFIG=${GTK12_CONFIG}
13241   if test x${GTK_CONFIG} = xno
13242   then
13243     # Extract the first word of "gtk-config", so it can be a program name with args.
13244 set dummy gtk-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_GTK_CONFIG+set}" = set; then
13248   echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250   case $GTK_CONFIG in
13251   [\\/]* | ?:[\\/]*)
13252   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
13253   ;;
13254   *)
13255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $GTK_PATH
13257 do
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_GTK_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
13265   fi
13266 done
13267 done
13268
13269   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13270   ;;
13271 esac
13272 fi
13273 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
13274
13275 if test -n "$GTK_CONFIG"; then
13276   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
13277 echo "${ECHO_T}$GTK_CONFIG" >&6
13278 else
13279   echo "$as_me:$LINENO: result: no" >&5
13280 echo "${ECHO_T}no" >&6
13281 fi
13282
13283   fi
13284   if test x${GTK_CONFIG} != xno
13285   then
13286     if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
13287     then
13288       { { 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
13289 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;}
13290    { (exit 1); exit 1; }; }
13291     fi
13292     gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
13293     gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
13294     # now look for the gtk.h header
13295     CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
13296     ac_cv_gtk_headers=yes
13297
13298
13299
13300 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
13301 do
13302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13304   echo "$as_me:$LINENO: checking for $ac_header" >&5
13305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13307   echo $ECHO_N "(cached) $ECHO_C" >&6
13308 fi
13309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13311 else
13312   # Is the header compilable?
13313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13315 cat >conftest.$ac_ext <<_ACEOF
13316 #line $LINENO "configure"
13317 #include "confdefs.h"
13318 $ac_includes_default
13319 #include <$ac_header>
13320 _ACEOF
13321 rm -f conftest.$ac_objext
13322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13323   (eval $ac_compile) 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); } &&
13327          { ac_try='test -s conftest.$ac_objext'
13328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329   (eval $ac_try) 2>&5
13330   ac_status=$?
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); }; }; then
13333   ac_header_compiler=yes
13334 else
13335   echo "$as_me: failed program was:" >&5
13336 cat conftest.$ac_ext >&5
13337 ac_header_compiler=no
13338 fi
13339 rm -f conftest.$ac_objext conftest.$ac_ext
13340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13341 echo "${ECHO_T}$ac_header_compiler" >&6
13342
13343 # Is the header present?
13344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13346 cat >conftest.$ac_ext <<_ACEOF
13347 #line $LINENO "configure"
13348 #include "confdefs.h"
13349 #include <$ac_header>
13350 _ACEOF
13351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13353   ac_status=$?
13354   egrep -v '^ *\+' conftest.er1 >conftest.err
13355   rm -f conftest.er1
13356   cat conftest.err >&5
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); } >/dev/null; then
13359   if test -s conftest.err; then
13360     ac_cpp_err=$ac_c_preproc_warn_flag
13361   else
13362     ac_cpp_err=
13363   fi
13364 else
13365   ac_cpp_err=yes
13366 fi
13367 if test -z "$ac_cpp_err"; then
13368   ac_header_preproc=yes
13369 else
13370   echo "$as_me: failed program was:" >&5
13371   cat conftest.$ac_ext >&5
13372   ac_header_preproc=no
13373 fi
13374 rm -f conftest.err conftest.$ac_ext
13375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13376 echo "${ECHO_T}$ac_header_preproc" >&6
13377
13378 # So?  What about this header?
13379 case $ac_header_compiler:$ac_header_preproc in
13380   yes:no )
13381     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13385   no:yes )
13386     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13388     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13392 esac
13393 echo "$as_me:$LINENO: checking for $ac_header" >&5
13394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13396   echo $ECHO_N "(cached) $ECHO_C" >&6
13397 else
13398   eval "$as_ac_Header=$ac_header_preproc"
13399 fi
13400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13402
13403 fi
13404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13405   cat >>confdefs.h <<_ACEOF
13406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13407 _ACEOF
13408
13409 else
13410
13411       ac_cv_gtk_headers=no
13412       echo "Cannot find gtk development headers."
13413
13414 fi
13415
13416 done
13417
13418     if test "x$ac_cv_gtk_headers" = xyes
13419     then
13420       PLUGINS="${PLUGINS} gtk"
13421       ALIASES="${ALIASES} gvlc"
13422     fi
13423     CPPFLAGS="$save_CPPFLAGS"
13424   fi
13425 fi
13426
13427 # Check whether --enable-familiar or --disable-familiar was given.
13428 if test "${enable_familiar+set}" = set; then
13429   enableval="$enable_familiar"
13430
13431 fi;
13432 if test "x${enable_familiar}" = "xyes"
13433 then
13434   GTK_PATH="${PATH}"
13435
13436 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
13437 if test "${with_gtk_config_path+set}" = set; then
13438   withval="$with_gtk_config_path"
13439    if test "x${with_gtk_config_path}" != "xno"
13440       then
13441         GTK_PATH="${with_gtk_config_path}:${PATH}"
13442       fi
13443 fi;
13444   # look for gtk-config
13445   # Extract the first word of "gtk12-config", so it can be a program name with args.
13446 set dummy gtk12-config; ac_word=$2
13447 echo "$as_me:$LINENO: checking for $ac_word" >&5
13448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13449 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
13450   echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452   case $GTK12_CONFIG in
13453   [\\/]* | ?:[\\/]*)
13454   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
13455   ;;
13456   *)
13457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458 for as_dir in ${GTK_PATH}
13459 do
13460   IFS=$as_save_IFS
13461   test -z "$as_dir" && as_dir=.
13462   for ac_exec_ext in '' $ac_executable_extensions; do
13463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13464     ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13466     break 2
13467   fi
13468 done
13469 done
13470
13471   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
13472   ;;
13473 esac
13474 fi
13475 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
13476
13477 if test -n "$GTK12_CONFIG"; then
13478   echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
13479 echo "${ECHO_T}$GTK12_CONFIG" >&6
13480 else
13481   echo "$as_me:$LINENO: result: no" >&5
13482 echo "${ECHO_T}no" >&6
13483 fi
13484
13485   GTK_CONFIG=${GTK12_CONFIG}
13486   if test "x${GTK_CONFIG}" = "xno"
13487   then
13488     # Extract the first word of "gtk-config", so it can be a program name with args.
13489 set dummy gtk-config; ac_word=$2
13490 echo "$as_me:$LINENO: checking for $ac_word" >&5
13491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13492 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
13493   echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495   case $GTK_CONFIG in
13496   [\\/]* | ?:[\\/]*)
13497   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
13498   ;;
13499   *)
13500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13501 for as_dir in ${GTK_PATH}
13502 do
13503   IFS=$as_save_IFS
13504   test -z "$as_dir" && as_dir=.
13505   for ac_exec_ext in '' $ac_executable_extensions; do
13506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13507     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13509     break 2
13510   fi
13511 done
13512 done
13513
13514   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13515   ;;
13516 esac
13517 fi
13518 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
13519
13520 if test -n "$GTK_CONFIG"; then
13521   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
13522 echo "${ECHO_T}$GTK_CONFIG" >&6
13523 else
13524   echo "$as_me:$LINENO: result: no" >&5
13525 echo "${ECHO_T}no" >&6
13526 fi
13527
13528   fi
13529   if test "x${GTK_CONFIG}" != "xno"
13530   then
13531     if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
13532     then
13533       { { 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
13534 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;}
13535    { (exit 1); exit 1; }; }
13536     fi
13537     familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk gthread`"
13538     familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk gthread | sed 's,-rdynamic,,'`"
13539     # now look for the gtk.h header
13540     CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
13541     ac_cv_gtk_headers=yes
13542
13543
13544
13545 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
13546 do
13547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13549   echo "$as_me:$LINENO: checking for $ac_header" >&5
13550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13552   echo $ECHO_N "(cached) $ECHO_C" >&6
13553 fi
13554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13556 else
13557   # Is the header compilable?
13558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13560 cat >conftest.$ac_ext <<_ACEOF
13561 #line $LINENO "configure"
13562 #include "confdefs.h"
13563 $ac_includes_default
13564 #include <$ac_header>
13565 _ACEOF
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568   (eval $ac_compile) 2>&5
13569   ac_status=$?
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } &&
13572          { ac_try='test -s conftest.$ac_objext'
13573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574   (eval $ac_try) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); }; }; then
13578   ac_header_compiler=yes
13579 else
13580   echo "$as_me: failed program was:" >&5
13581 cat conftest.$ac_ext >&5
13582 ac_header_compiler=no
13583 fi
13584 rm -f conftest.$ac_objext conftest.$ac_ext
13585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13586 echo "${ECHO_T}$ac_header_compiler" >&6
13587
13588 # Is the header present?
13589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13591 cat >conftest.$ac_ext <<_ACEOF
13592 #line $LINENO "configure"
13593 #include "confdefs.h"
13594 #include <$ac_header>
13595 _ACEOF
13596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13597   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13598   ac_status=$?
13599   egrep -v '^ *\+' conftest.er1 >conftest.err
13600   rm -f conftest.er1
13601   cat conftest.err >&5
13602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603   (exit $ac_status); } >/dev/null; then
13604   if test -s conftest.err; then
13605     ac_cpp_err=$ac_c_preproc_warn_flag
13606   else
13607     ac_cpp_err=
13608   fi
13609 else
13610   ac_cpp_err=yes
13611 fi
13612 if test -z "$ac_cpp_err"; then
13613   ac_header_preproc=yes
13614 else
13615   echo "$as_me: failed program was:" >&5
13616   cat conftest.$ac_ext >&5
13617   ac_header_preproc=no
13618 fi
13619 rm -f conftest.err conftest.$ac_ext
13620 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13621 echo "${ECHO_T}$ac_header_preproc" >&6
13622
13623 # So?  What about this header?
13624 case $ac_header_compiler:$ac_header_preproc in
13625   yes:no )
13626     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13630   no:yes )
13631     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13633     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13637 esac
13638 echo "$as_me:$LINENO: checking for $ac_header" >&5
13639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13641   echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643   eval "$as_ac_Header=$ac_header_preproc"
13644 fi
13645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13647
13648 fi
13649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13650   cat >>confdefs.h <<_ACEOF
13651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13652 _ACEOF
13653
13654 else
13655
13656       ac_cv_gtk_headers=no
13657       echo "Cannot find gtk development headers."
13658
13659 fi
13660
13661 done
13662
13663     if test "x${ac_cv_gtk_headers}" = "xyes"
13664     then
13665       PLUGINS="${PLUGINS} familiar"
13666       NEED_GTK_MAIN=yes
13667     fi
13668     CPPFLAGS="${save_CPPFLAGS}"
13669   fi
13670 fi
13671
13672 # Check whether --enable-gnome or --disable-gnome was given.
13673 if test "${enable_gnome+set}" = set; then
13674   enableval="$enable_gnome"
13675   if test x$enable_gnome = xyes; then
13676     # look for gnome-config
13677     # Extract the first word of "gnome-config", so it can be a program name with args.
13678 set dummy gnome-config; ac_word=$2
13679 echo "$as_me:$LINENO: checking for $ac_word" >&5
13680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13681 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
13682   echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684   case $GNOME_CONFIG in
13685   [\\/]* | ?:[\\/]*)
13686   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
13687   ;;
13688   *)
13689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13690 for as_dir in $PATH
13691 do
13692   IFS=$as_save_IFS
13693   test -z "$as_dir" && as_dir=.
13694   for ac_exec_ext in '' $ac_executable_extensions; do
13695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13696     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13698     break 2
13699   fi
13700 done
13701 done
13702
13703   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
13704   ;;
13705 esac
13706 fi
13707 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
13708
13709 if test -n "$GNOME_CONFIG"; then
13710   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
13711 echo "${ECHO_T}$GNOME_CONFIG" >&6
13712 else
13713   echo "$as_me:$LINENO: result: no" >&5
13714 echo "${ECHO_T}no" >&6
13715 fi
13716
13717     if test -x ${GNOME_CONFIG}
13718     then
13719        gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
13720        gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
13721     fi
13722     # now look for the gnome.h header
13723     CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
13724
13725 for ac_header in gnome.h
13726 do
13727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13729   echo "$as_me:$LINENO: checking for $ac_header" >&5
13730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 fi
13734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13736 else
13737   # Is the header compilable?
13738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13740 cat >conftest.$ac_ext <<_ACEOF
13741 #line $LINENO "configure"
13742 #include "confdefs.h"
13743 $ac_includes_default
13744 #include <$ac_header>
13745 _ACEOF
13746 rm -f conftest.$ac_objext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748   (eval $ac_compile) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); } &&
13752          { ac_try='test -s conftest.$ac_objext'
13753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754   (eval $ac_try) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); }; }; then
13758   ac_header_compiler=yes
13759 else
13760   echo "$as_me: failed program was:" >&5
13761 cat conftest.$ac_ext >&5
13762 ac_header_compiler=no
13763 fi
13764 rm -f conftest.$ac_objext conftest.$ac_ext
13765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13766 echo "${ECHO_T}$ac_header_compiler" >&6
13767
13768 # Is the header present?
13769 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13771 cat >conftest.$ac_ext <<_ACEOF
13772 #line $LINENO "configure"
13773 #include "confdefs.h"
13774 #include <$ac_header>
13775 _ACEOF
13776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13778   ac_status=$?
13779   egrep -v '^ *\+' conftest.er1 >conftest.err
13780   rm -f conftest.er1
13781   cat conftest.err >&5
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); } >/dev/null; then
13784   if test -s conftest.err; then
13785     ac_cpp_err=$ac_c_preproc_warn_flag
13786   else
13787     ac_cpp_err=
13788   fi
13789 else
13790   ac_cpp_err=yes
13791 fi
13792 if test -z "$ac_cpp_err"; then
13793   ac_header_preproc=yes
13794 else
13795   echo "$as_me: failed program was:" >&5
13796   cat conftest.$ac_ext >&5
13797   ac_header_preproc=no
13798 fi
13799 rm -f conftest.err conftest.$ac_ext
13800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13801 echo "${ECHO_T}$ac_header_preproc" >&6
13802
13803 # So?  What about this header?
13804 case $ac_header_compiler:$ac_header_preproc in
13805   yes:no )
13806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13810   no:yes )
13811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13813     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13817 esac
13818 echo "$as_me:$LINENO: checking for $ac_header" >&5
13819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13821   echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823   eval "$as_ac_Header=$ac_header_preproc"
13824 fi
13825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13827
13828 fi
13829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13830   cat >>confdefs.h <<_ACEOF
13831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13832 _ACEOF
13833
13834       PLUGINS="${PLUGINS} gnome"
13835       ALIASES="${ALIASES} gnome-vlc"
13836
13837 else
13838
13839       { { echo "$as_me:$LINENO: error: Can't find gnome headers. Please install the gnome
13840 developement tools or remove the --enable-gnome option" >&5
13841 echo "$as_me: error: Can't find gnome headers. Please install the gnome
13842 developement tools or remove the --enable-gnome option" >&2;}
13843    { (exit 1); exit 1; }; }
13844
13845 fi
13846
13847 done
13848
13849     CPPFLAGS="$save_CPPFLAGS"
13850   fi
13851 fi;
13852
13853 # Check whether --enable-qt or --disable-qt was given.
13854 if test "${enable_qt+set}" = set; then
13855   enableval="$enable_qt"
13856   if test x$enable_qt = xyes; then
13857      PLUGINS="${PLUGINS} qt"
13858      ALIASES="${ALIASES} qvlc"
13859      qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
13860      qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
13861      if test -x ${QTDIR}/bin/moc
13862      then
13863        MOC=${QTDIR}/bin/moc
13864      else
13865        MOC=moc
13866      fi
13867    fi
13868 fi;
13869
13870 # Check whether --enable-kde or --disable-kde was given.
13871 if test "${enable_kde+set}" = set; then
13872   enableval="$enable_kde"
13873   if test x$enable_kde = xyes; then
13874      PLUGINS="${PLUGINS} kde"
13875      ALIASES="${ALIASES} kvlc"
13876      kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
13877      kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
13878      kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
13879      if test -x ${QTDIR}/bin/moc
13880      then
13881        MOC=${QTDIR}/bin/moc
13882      else
13883        MOC=moc
13884      fi
13885    fi
13886 fi;
13887
13888 # Check whether --enable-opie or --disable-opie was given.
13889 if test "${enable_opie+set}" = set; then
13890   enableval="$enable_opie"
13891   if test "x${enable_opie}" = "xyes"; then
13892
13893 # Check whether --with-qte or --without-qte was given.
13894 if test "${with_qte+set}" = set; then
13895   withval="$with_qte"
13896
13897 fi;
13898      if test "x${with_qte}" = "x"
13899      then
13900        test_LDFLAGS="-L$(QTDIR)/lib"
13901        test_CFLAGS="-I${QTDIR}/include"
13902      else
13903        test_LDFLAGS="-L${with_qte}/lib"
13904        test_CFLAGS="-I${with_qte}/include"
13905      fi
13906
13907      PLUGINS="${PLUGINS} opie"
13908      opie_LDFLAGS="${opie_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
13909      opie_CFLAGS="${opie_CFLAGS} ${test_CFLAGS}-DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
13910      if test -x ${QTDIR}/bin/moc
13911      then
13912        MOC=${QTDIR}/bin/moc
13913      else
13914        MOC=moc
13915      fi
13916    fi
13917 fi;
13918
13919 # Check whether --enable-macosx or --disable-macosx was given.
13920 if test "${enable_macosx+set}" = set; then
13921   enableval="$enable_macosx"
13922   if test x$enable_macosx = xyes
13923    then
13924      BUILTINS="${BUILTINS} macosx"
13925      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
13926    fi
13927 else
13928
13929 for ac_header in Cocoa/Cocoa.h
13930 do
13931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933   echo "$as_me:$LINENO: checking for $ac_header" >&5
13934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13936   echo $ECHO_N "(cached) $ECHO_C" >&6
13937 fi
13938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13940 else
13941   # Is the header compilable?
13942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13944 cat >conftest.$ac_ext <<_ACEOF
13945 #line $LINENO "configure"
13946 #include "confdefs.h"
13947 $ac_includes_default
13948 #include <$ac_header>
13949 _ACEOF
13950 rm -f conftest.$ac_objext
13951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13952   (eval $ac_compile) 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); } &&
13956          { ac_try='test -s conftest.$ac_objext'
13957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958   (eval $ac_try) 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); }; }; then
13962   ac_header_compiler=yes
13963 else
13964   echo "$as_me: failed program was:" >&5
13965 cat conftest.$ac_ext >&5
13966 ac_header_compiler=no
13967 fi
13968 rm -f conftest.$ac_objext conftest.$ac_ext
13969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13970 echo "${ECHO_T}$ac_header_compiler" >&6
13971
13972 # Is the header present?
13973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13975 cat >conftest.$ac_ext <<_ACEOF
13976 #line $LINENO "configure"
13977 #include "confdefs.h"
13978 #include <$ac_header>
13979 _ACEOF
13980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13982   ac_status=$?
13983   egrep -v '^ *\+' conftest.er1 >conftest.err
13984   rm -f conftest.er1
13985   cat conftest.err >&5
13986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987   (exit $ac_status); } >/dev/null; then
13988   if test -s conftest.err; then
13989     ac_cpp_err=$ac_c_preproc_warn_flag
13990   else
13991     ac_cpp_err=
13992   fi
13993 else
13994   ac_cpp_err=yes
13995 fi
13996 if test -z "$ac_cpp_err"; then
13997   ac_header_preproc=yes
13998 else
13999   echo "$as_me: failed program was:" >&5
14000   cat conftest.$ac_ext >&5
14001   ac_header_preproc=no
14002 fi
14003 rm -f conftest.err conftest.$ac_ext
14004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14005 echo "${ECHO_T}$ac_header_preproc" >&6
14006
14007 # So?  What about this header?
14008 case $ac_header_compiler:$ac_header_preproc in
14009   yes:no )
14010     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14014   no:yes )
14015     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14017     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14021 esac
14022 echo "$as_me:$LINENO: checking for $ac_header" >&5
14023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14025   echo $ECHO_N "(cached) $ECHO_C" >&6
14026 else
14027   eval "$as_ac_Header=$ac_header_preproc"
14028 fi
14029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14031
14032 fi
14033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14034   cat >>confdefs.h <<_ACEOF
14035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14036 _ACEOF
14037  BUILTINS="${BUILTINS} macosx"
14038      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
14039
14040 fi
14041
14042 done
14043
14044 fi;
14045
14046 # Check whether --enable-qnx or --disable-qnx was given.
14047 if test "${enable_qnx+set}" = set; then
14048   enableval="$enable_qnx"
14049
14050 fi;
14051     if test x$enable_qnx != xno
14052     then
14053
14054 for ac_header in Ph.h
14055 do
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
14062 fi
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
14092 fi
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
14096
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=
14117   fi
14118 else
14119   ac_cpp_err=yes
14120 fi
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
14127 fi
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
14131
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"
14153 fi
14154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14156
14157 fi
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
14162
14163         PLUGINS="${PLUGINS} qnx"
14164         qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
14165
14166 fi
14167
14168 done
14169
14170     fi
14171
14172 # Check whether --enable-intfwin or --disable-intfwin was given.
14173 if test "${enable_intfwin+set}" = set; then
14174   enableval="$enable_intfwin"
14175    if test "x$enable_intfwin" != "xno"
14176   then
14177
14178 # Check whether --with-bcbuilder or --without-bcbuilder was given.
14179 if test "${with_bcbuilder+set}" = set; then
14180   withval="$with_bcbuilder"
14181
14182 fi;
14183     if test "x$with_bcbuilder" != "x"
14184     then
14185       BCBUILDER="$with_bcbuilder"
14186     fi
14187     PLUGINS="${PLUGINS} intfwin"
14188   fi
14189 fi;
14190
14191 # Check whether --enable-ncurses or --disable-ncurses was given.
14192 if test "${enable_ncurses+set}" = set; then
14193   enableval="$enable_ncurses"
14194   if test x$enable_ncurses = xyes; then
14195      PLUGINS="${PLUGINS} ncurses"
14196      ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
14197    fi
14198 fi;
14199
14200 # Check whether --enable-lirc or --disable-lirc was given.
14201 if test "${enable_lirc+set}" = set; then
14202   enableval="$enable_lirc"
14203
14204 fi;
14205 if test x$enable_lirc = xyes
14206 then
14207   if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14208   echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14209 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
14210 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14211   echo $ECHO_N "(cached) $ECHO_C" >&6
14212 fi
14213 echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14214 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
14215 else
14216   # Is the header compilable?
14217 echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
14218 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6
14219 cat >conftest.$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14221 #include "confdefs.h"
14222 $ac_includes_default
14223 #include <lirc/lirc_client.h>
14224 _ACEOF
14225 rm -f conftest.$ac_objext
14226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14227   (eval $ac_compile) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); } &&
14231          { ac_try='test -s conftest.$ac_objext'
14232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233   (eval $ac_try) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   ac_header_compiler=yes
14238 else
14239   echo "$as_me: failed program was:" >&5
14240 cat conftest.$ac_ext >&5
14241 ac_header_compiler=no
14242 fi
14243 rm -f conftest.$ac_objext conftest.$ac_ext
14244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14245 echo "${ECHO_T}$ac_header_compiler" >&6
14246
14247 # Is the header present?
14248 echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
14249 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6
14250 cat >conftest.$ac_ext <<_ACEOF
14251 #line $LINENO "configure"
14252 #include "confdefs.h"
14253 #include <lirc/lirc_client.h>
14254 _ACEOF
14255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14257   ac_status=$?
14258   egrep -v '^ *\+' conftest.er1 >conftest.err
14259   rm -f conftest.er1
14260   cat conftest.err >&5
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   (exit $ac_status); } >/dev/null; then
14263   if test -s conftest.err; then
14264     ac_cpp_err=$ac_c_preproc_warn_flag
14265   else
14266     ac_cpp_err=
14267   fi
14268 else
14269   ac_cpp_err=yes
14270 fi
14271 if test -z "$ac_cpp_err"; then
14272   ac_header_preproc=yes
14273 else
14274   echo "$as_me: failed program was:" >&5
14275   cat conftest.$ac_ext >&5
14276   ac_header_preproc=no
14277 fi
14278 rm -f conftest.err conftest.$ac_ext
14279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14280 echo "${ECHO_T}$ac_header_preproc" >&6
14281
14282 # So?  What about this header?
14283 case $ac_header_compiler:$ac_header_preproc in
14284   yes:no )
14285     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
14286 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14287     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14288 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;};;
14289   no:yes )
14290     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
14291 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
14292     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
14293 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
14294     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14295 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;};;
14296 esac
14297 echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14298 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
14299 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302   ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
14303 fi
14304 echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14305 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
14306
14307 fi
14308 if test $ac_cv_header_lirc_lirc_client_h = yes; then
14309   echo "$as_me:$LINENO: checking for lirc_init in -llirc_client" >&5
14310 echo $ECHO_N "checking for lirc_init in -llirc_client... $ECHO_C" >&6
14311 if test "${ac_cv_lib_lirc_client_lirc_init+set}" = set; then
14312   echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314   ac_check_lib_save_LIBS=$LIBS
14315 LIBS="-llirc_client  $LIBS"
14316 cat >conftest.$ac_ext <<_ACEOF
14317 #line $LINENO "configure"
14318 #include "confdefs.h"
14319
14320 /* Override any gcc2 internal prototype to avoid an error.  */
14321 #ifdef __cplusplus
14322 extern "C"
14323 #endif
14324 /* We use char because int might match the return type of a gcc2
14325    builtin and then its argument prototype would still apply.  */
14326 char lirc_init ();
14327 #ifdef F77_DUMMY_MAIN
14328 #  ifdef __cplusplus
14329      extern "C"
14330 #  endif
14331    int F77_DUMMY_MAIN() { return 1; }
14332 #endif
14333 int
14334 main ()
14335 {
14336 lirc_init ();
14337   ;
14338   return 0;
14339 }
14340 _ACEOF
14341 rm -f conftest.$ac_objext conftest$ac_exeext
14342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14343   (eval $ac_link) 2>&5
14344   ac_status=$?
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   (exit $ac_status); } &&
14347          { ac_try='test -s conftest$ac_exeext'
14348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349   (eval $ac_try) 2>&5
14350   ac_status=$?
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); }; }; then
14353   ac_cv_lib_lirc_client_lirc_init=yes
14354 else
14355   echo "$as_me: failed program was:" >&5
14356 cat conftest.$ac_ext >&5
14357 ac_cv_lib_lirc_client_lirc_init=no
14358 fi
14359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14360 LIBS=$ac_check_lib_save_LIBS
14361 fi
14362 echo "$as_me:$LINENO: result: $ac_cv_lib_lirc_client_lirc_init" >&5
14363 echo "${ECHO_T}$ac_cv_lib_lirc_client_lirc_init" >&6
14364 if test $ac_cv_lib_lirc_client_lirc_init = yes; then
14365   have_lirc="true"
14366 else
14367   have_lirc="false"
14368 fi
14369
14370 else
14371   have_lirc="false"
14372 fi
14373
14374
14375   if test x$have_lirc = xtrue
14376   then
14377     PLUGINS="${PLUGINS} lirc"
14378     lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
14379   fi
14380 fi
14381
14382
14383 # Check whether --with- or --without- was given.
14384 if test "${with_+set}" = set; then
14385   withval="$with_"
14386
14387 fi;
14388
14389
14390 # Check whether --with-words or --without-words was given.
14391 if test "${with_words+set}" = set; then
14392   withval="$with_words"
14393
14394 fi;
14395   case "x$with_words" in
14396     xbig)
14397       ac_cv_c_bigendian=yes
14398       ;;
14399     xlittle)
14400       ac_cv_c_bigendian=no
14401       ;;
14402     *)
14403                   echo "$as_me:$LINENO: checking whether the byte order is big-endian" >&5
14404 echo $ECHO_N "checking whether the byte order is big-endian... $ECHO_C" >&6
14405 if test "${ac_cv_c_bigendian+set}" = set; then
14406   echo $ECHO_N "(cached) $ECHO_C" >&6
14407 else
14408   ac_cv_c_bigendian=unknown
14409         cat >conftest.c <<EOF
14410         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
14411         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
14412         void _a(void) { char*s = (char*)am; s = (char *)ai; }
14413         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
14414         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
14415         void _e(void) { char*s = (char*)em; s = (char*)ei; }
14416         int main(void) { _a(); _e(); return 0; }
14417 EOF
14418
14419         if test -f conftest.c
14420         then
14421           if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
14422               && test -f conftest.o
14423           then
14424             if test "`strings conftest.o | grep BIGenDianSyS`"
14425             then
14426               ac_cv_c_bigendian=yes
14427             fi
14428             if test "`strings conftest.o | grep LiTTleEnDian`"
14429             then
14430               ac_cv_c_bigendian=no
14431             fi
14432           fi
14433         fi
14434
14435 fi
14436 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14437 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14438       if test x$ac_cv_c_bigendian = xunknown
14439       then
14440         { { echo "$as_me:$LINENO: error: Could not guess endianness, please use --with-words" >&5
14441 echo "$as_me: error: Could not guess endianness, please use --with-words" >&2;}
14442    { (exit 1); exit 1; }; }
14443       fi
14444       ;;
14445   esac
14446 if test $ac_cv_c_bigendian = yes
14447 then
14448
14449 cat >>confdefs.h <<\_ACEOF
14450 #define WORDS_BIGENDIAN 1
14451 _ACEOF
14452
14453 fi
14454
14455 GPROF=0
14456 # Check whether --enable-gprof or --disable-gprof was given.
14457 if test "${enable_gprof+set}" = set; then
14458   enableval="$enable_gprof"
14459    if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
14460 fi;
14461
14462 CPROF=0
14463 # Check whether --enable-cprof or --disable-cprof was given.
14464 if test "${enable_cprof+set}" = set; then
14465   enableval="$enable_cprof"
14466    if test "x$enable_cprof" = "xyes";
14467   then
14468     LDFLAGS="${LDFLAGS} -lcprof"
14469     CPROF=1
14470   fi
14471
14472 fi;
14473
14474 # Check whether --enable-pth or --disable-pth was given.
14475 if test "${enable_pth+set}" = set; then
14476   enableval="$enable_pth"
14477    if test "x$enable_pth" = "xyes"; then
14478
14479 echo "$as_me:$LINENO: checking for pth_init in -lpth" >&5
14480 echo $ECHO_N "checking for pth_init in -lpth... $ECHO_C" >&6
14481 if test "${ac_cv_lib_pth_pth_init+set}" = set; then
14482   echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484   ac_check_lib_save_LIBS=$LIBS
14485 LIBS="-lpth  $LIBS"
14486 cat >conftest.$ac_ext <<_ACEOF
14487 #line $LINENO "configure"
14488 #include "confdefs.h"
14489
14490 /* Override any gcc2 internal prototype to avoid an error.  */
14491 #ifdef __cplusplus
14492 extern "C"
14493 #endif
14494 /* We use char because int might match the return type of a gcc2
14495    builtin and then its argument prototype would still apply.  */
14496 char pth_init ();
14497 #ifdef F77_DUMMY_MAIN
14498 #  ifdef __cplusplus
14499      extern "C"
14500 #  endif
14501    int F77_DUMMY_MAIN() { return 1; }
14502 #endif
14503 int
14504 main ()
14505 {
14506 pth_init ();
14507   ;
14508   return 0;
14509 }
14510 _ACEOF
14511 rm -f conftest.$ac_objext conftest$ac_exeext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14513   (eval $ac_link) 2>&5
14514   ac_status=$?
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); } &&
14517          { ac_try='test -s conftest$ac_exeext'
14518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519   (eval $ac_try) 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; }; then
14523   ac_cv_lib_pth_pth_init=yes
14524 else
14525   echo "$as_me: failed program was:" >&5
14526 cat conftest.$ac_ext >&5
14527 ac_cv_lib_pth_pth_init=no
14528 fi
14529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14530 LIBS=$ac_check_lib_save_LIBS
14531 fi
14532 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_init" >&5
14533 echo "${ECHO_T}$ac_cv_lib_pth_pth_init" >&6
14534 if test $ac_cv_lib_pth_pth_init = yes; then
14535   cat >>confdefs.h <<_ACEOF
14536 #define HAVE_LIBPTH 1
14537 _ACEOF
14538
14539   LIBS="-lpth $LIBS"
14540
14541 fi
14542
14543     cat >conftest.$ac_ext <<_ACEOF
14544 #line $LINENO "configure"
14545 #include "confdefs.h"
14546 #include <pth.h>
14547
14548 _ACEOF
14549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14550   egrep "pth_init" >/dev/null 2>&1; then
14551
14552
14553 cat >>confdefs.h <<\_ACEOF
14554 #define PTH_INIT_IN_PTH_H 1
14555 _ACEOF
14556
14557     THREAD_LIB="-lpth"
14558     fi
14559 fi
14560 rm -f conftest*
14561
14562
14563 fi;
14564
14565 # Check whether --enable-st or --disable-st was given.
14566 if test "${enable_st+set}" = set; then
14567   enableval="$enable_st"
14568    if test "x$enable_st" = "xyes"; then
14569
14570 echo "$as_me:$LINENO: checking for st_init in -lst" >&5
14571 echo $ECHO_N "checking for st_init in -lst... $ECHO_C" >&6
14572 if test "${ac_cv_lib_st_st_init+set}" = set; then
14573   echo $ECHO_N "(cached) $ECHO_C" >&6
14574 else
14575   ac_check_lib_save_LIBS=$LIBS
14576 LIBS="-lst  $LIBS"
14577 cat >conftest.$ac_ext <<_ACEOF
14578 #line $LINENO "configure"
14579 #include "confdefs.h"
14580
14581 /* Override any gcc2 internal prototype to avoid an error.  */
14582 #ifdef __cplusplus
14583 extern "C"
14584 #endif
14585 /* We use char because int might match the return type of a gcc2
14586    builtin and then its argument prototype would still apply.  */
14587 char st_init ();
14588 #ifdef F77_DUMMY_MAIN
14589 #  ifdef __cplusplus
14590      extern "C"
14591 #  endif
14592    int F77_DUMMY_MAIN() { return 1; }
14593 #endif
14594 int
14595 main ()
14596 {
14597 st_init ();
14598   ;
14599   return 0;
14600 }
14601 _ACEOF
14602 rm -f conftest.$ac_objext conftest$ac_exeext
14603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14604   (eval $ac_link) 2>&5
14605   ac_status=$?
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } &&
14608          { ac_try='test -s conftest$ac_exeext'
14609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610   (eval $ac_try) 2>&5
14611   ac_status=$?
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); }; }; then
14614   ac_cv_lib_st_st_init=yes
14615 else
14616   echo "$as_me: failed program was:" >&5
14617 cat conftest.$ac_ext >&5
14618 ac_cv_lib_st_st_init=no
14619 fi
14620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14621 LIBS=$ac_check_lib_save_LIBS
14622 fi
14623 echo "$as_me:$LINENO: result: $ac_cv_lib_st_st_init" >&5
14624 echo "${ECHO_T}$ac_cv_lib_st_st_init" >&6
14625 if test $ac_cv_lib_st_st_init = yes; then
14626   cat >>confdefs.h <<_ACEOF
14627 #define HAVE_LIBST 1
14628 _ACEOF
14629
14630   LIBS="-lst $LIBS"
14631
14632 fi
14633
14634     cat >conftest.$ac_ext <<_ACEOF
14635 #line $LINENO "configure"
14636 #include "confdefs.h"
14637 #include <st.h>
14638
14639 _ACEOF
14640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14641   egrep "st_init" >/dev/null 2>&1; then
14642
14643
14644 cat >>confdefs.h <<\_ACEOF
14645 #define ST_INIT_IN_ST_H 1
14646 _ACEOF
14647
14648     THREAD_LIB="-lst"
14649     fi
14650 fi
14651 rm -f conftest*
14652
14653
14654 fi;
14655
14656 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
14657
14658 # Check whether --enable-plugins or --disable-plugins was given.
14659 if test "${enable_plugins+set}" = set; then
14660   enableval="$enable_plugins"
14661   if test x$enable_plugins = xno
14662    then
14663      BUILTINS="${BUILTINS} ${PLUGINS}"
14664      PLUGINS=
14665    fi
14666 fi;
14667
14668 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
14669 then
14670   echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
14671   echo "as built-in"
14672   BUILTINS="${BUILTINS} ${PLUGINS}"
14673   PLUGINS=
14674 fi
14675
14676
14677 cat >>confdefs.h <<_ACEOF
14678 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
14679 _ACEOF
14680
14681
14682 cat >>confdefs.h <<_ACEOF
14683 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
14684 _ACEOF
14685
14686
14687 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
14688
14689 cat >>confdefs.h <<_ACEOF
14690 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
14691 _ACEOF
14692
14693
14694 cat >>confdefs.h <<_ACEOF
14695 #define MODULE_SYMBOL $VLC_SYMBOL
14696 _ACEOF
14697
14698
14699 DATA_PATH="${ac_tool_prefix}/share/videolan"
14700
14701 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805 ac_config_files="$ac_config_files Makefile.config Makefile.opts po/Makefile.in"
14806 cat >confcache <<\_ACEOF
14807 # This file is a shell script that caches the results of configure
14808 # tests run on this system so they can be shared between configure
14809 # scripts and configure runs, see configure's option --config-cache.
14810 # It is not useful on other systems.  If it contains results you don't
14811 # want to keep, you may remove or edit it.
14812 #
14813 # config.status only pays attention to the cache file if you give it
14814 # the --recheck option to rerun configure.
14815 #
14816 # `ac_cv_env_foo' variables (set or unset) will be overriden when
14817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14818 # following values.
14819
14820 _ACEOF
14821
14822 # The following way of writing the cache mishandles newlines in values,
14823 # but we know of no workaround that is simple, portable, and efficient.
14824 # So, don't put newlines in cache variables' values.
14825 # Ultrix sh set writes to stderr and can't be redirected directly,
14826 # and sets the high bit in the cache file unless we assign to the vars.
14827 {
14828   (set) 2>&1 |
14829     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14830     *ac_space=\ *)
14831       # `set' does not quote correctly, so add quotes (double-quote
14832       # substitution turns \\\\ into \\, and sed turns \\ into \).
14833       sed -n \
14834         "s/'/'\\\\''/g;
14835           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14836       ;;
14837     *)
14838       # `set' quotes correctly as required by POSIX, so do not add quotes.
14839       sed -n \
14840         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14841       ;;
14842     esac;
14843 } |
14844   sed '
14845      t clear
14846      : clear
14847      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14848      t end
14849      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14850      : end' >>confcache
14851 if cmp -s $cache_file confcache; then :; else
14852   if test -w $cache_file; then
14853     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14854     cat confcache >$cache_file
14855   else
14856     echo "not updating unwritable cache $cache_file"
14857   fi
14858 fi
14859 rm -f confcache
14860
14861 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14862 # Let make expand exec_prefix.
14863 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14864
14865 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14866 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14867 # trailing colons and then remove the whole line if VPATH becomes empty
14868 # (actually we leave an empty line to preserve line numbers).
14869 if test "x$srcdir" = x.; then
14870   ac_vpsub='/^[         ]*VPATH[        ]*=/{
14871 s/:*\$(srcdir):*/:/;
14872 s/:*\${srcdir}:*/:/;
14873 s/:*@srcdir@:*/:/;
14874 s/^\([^=]*=[    ]*\):*/\1/;
14875 s/:*$//;
14876 s/^[^=]*=[      ]*$//;
14877 }'
14878 fi
14879
14880 DEFS=-DHAVE_CONFIG_H
14881
14882
14883 : ${CONFIG_STATUS=./config.status}
14884 ac_clean_files_save=$ac_clean_files
14885 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14886 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14887 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14888 cat >$CONFIG_STATUS <<_ACEOF
14889 #! $SHELL
14890 # Generated by $as_me.
14891 # Run this file to recreate the current configuration.
14892 # Compiler output produced by configure, useful for debugging
14893 # configure, is in config.log if it exists.
14894
14895 debug=false
14896 SHELL=\${CONFIG_SHELL-$SHELL}
14897 _ACEOF
14898
14899 cat >>$CONFIG_STATUS <<\_ACEOF
14900
14901 ## --------------------- ##
14902 ## M4sh Initialization.  ##
14903 ## --------------------- ##
14904
14905 # Be Bourne compatible
14906 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14907   emulate sh
14908   NULLCMD=:
14909 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14910   set -o posix
14911 fi
14912
14913 # NLS nuisances.
14914 # Support unset when possible.
14915 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14916   as_unset=unset
14917 else
14918   as_unset=false
14919 fi
14920
14921 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
14922     { $as_unset LANG || test "${LANG+set}" != set; } ||
14923       { LANG=C; export LANG; }
14924 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
14925     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
14926       { LC_ALL=C; export LC_ALL; }
14927 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
14928     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
14929       { LC_TIME=C; export LC_TIME; }
14930 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
14931     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
14932       { LC_CTYPE=C; export LC_CTYPE; }
14933 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
14934     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
14935       { LANGUAGE=C; export LANGUAGE; }
14936 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
14937     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
14938       { LC_COLLATE=C; export LC_COLLATE; }
14939 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
14940     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
14941       { LC_NUMERIC=C; export LC_NUMERIC; }
14942 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
14943     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
14944       { LC_MESSAGES=C; export LC_MESSAGES; }
14945
14946
14947 # Name of the executable.
14948 as_me=`(basename "$0") 2>/dev/null ||
14949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14950          X"$0" : 'X\(//\)$' \| \
14951          X"$0" : 'X\(/\)$' \| \
14952          .     : '\(.\)' 2>/dev/null ||
14953 echo X/"$0" |
14954     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14955           /^X\/\(\/\/\)$/{ s//\1/; q; }
14956           /^X\/\(\/\).*/{ s//\1/; q; }
14957           s/.*/./; q'`
14958
14959 # PATH needs CR, and LINENO needs CR and PATH.
14960 # Avoid depending upon Character Ranges.
14961 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14962 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14963 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14964 as_cr_digits='0123456789'
14965 as_cr_alnum=$as_cr_Letters$as_cr_digits
14966
14967 # The user is always right.
14968 if test "${PATH_SEPARATOR+set}" != set; then
14969   echo "#! /bin/sh" >conftest.sh
14970   echo  "exit 0"   >>conftest.sh
14971   chmod +x conftest.sh
14972   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
14973     PATH_SEPARATOR=';'
14974   else
14975     PATH_SEPARATOR=:
14976   fi
14977   rm -f conftest.sh
14978 fi
14979
14980
14981   as_lineno_1=$LINENO
14982   as_lineno_2=$LINENO
14983   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14984   test "x$as_lineno_1" != "x$as_lineno_2" &&
14985   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14986   # Find who we are.  Look in the path if we contain no path at all
14987   # relative or not.
14988   case $0 in
14989     *[\\/]* ) as_myself=$0 ;;
14990     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14991 for as_dir in $PATH
14992 do
14993   IFS=$as_save_IFS
14994   test -z "$as_dir" && as_dir=.
14995   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14996 done
14997
14998        ;;
14999   esac
15000   # We did not find ourselves, most probably we were run as `sh COMMAND'
15001   # in which case we are not to be found in the path.
15002   if test "x$as_myself" = x; then
15003     as_myself=$0
15004   fi
15005   if test ! -f "$as_myself"; then
15006     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15007 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15008    { (exit 1); exit 1; }; }
15009   fi
15010   case $CONFIG_SHELL in
15011   '')
15012     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15013 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15014 do
15015   IFS=$as_save_IFS
15016   test -z "$as_dir" && as_dir=.
15017   for as_base in sh bash ksh sh5; do
15018          case $as_dir in
15019          /*)
15020            if ("$as_dir/$as_base" -c '
15021   as_lineno_1=$LINENO
15022   as_lineno_2=$LINENO
15023   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15024   test "x$as_lineno_1" != "x$as_lineno_2" &&
15025   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15026              CONFIG_SHELL=$as_dir/$as_base
15027              export CONFIG_SHELL
15028              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15029            fi;;
15030          esac
15031        done
15032 done
15033 ;;
15034   esac
15035
15036   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15037   # uniformly replaced by the line number.  The first 'sed' inserts a
15038   # line-number line before each line; the second 'sed' does the real
15039   # work.  The second script uses 'N' to pair each line-number line
15040   # with the numbered line, and appends trailing '-' during
15041   # substitution so that $LINENO is not a special case at line end.
15042   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15043   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15044   sed '=' <$as_myself |
15045     sed '
15046       N
15047       s,$,-,
15048       : loop
15049       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15050       t loop
15051       s,-$,,
15052       s,^['$as_cr_digits']*\n,,
15053     ' >$as_me.lineno &&
15054   chmod +x $as_me.lineno ||
15055     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15056 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15057    { (exit 1); exit 1; }; }
15058
15059   # Don't try to exec as it changes $[0], causing all sort of problems
15060   # (the dirname of $[0] is not the place where we might find the
15061   # original and so on.  Autoconf is especially sensible to this).
15062   . ./$as_me.lineno
15063   # Exit status is that of the last command.
15064   exit
15065 }
15066
15067
15068 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15069   *c*,-n*) ECHO_N= ECHO_C='
15070 ' ECHO_T='      ' ;;
15071   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15072   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15073 esac
15074
15075 if expr a : '\(a\)' >/dev/null 2>&1; then
15076   as_expr=expr
15077 else
15078   as_expr=false
15079 fi
15080
15081 rm -f conf$$ conf$$.exe conf$$.file
15082 echo >conf$$.file
15083 if ln -s conf$$.file conf$$ 2>/dev/null; then
15084   # We could just check for DJGPP; but this test a) works b) is more generic
15085   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15086   if test -f conf$$.exe; then
15087     # Don't use ln at all; we don't have any links
15088     as_ln_s='cp -p'
15089   else
15090     as_ln_s='ln -s'
15091   fi
15092 elif ln conf$$.file conf$$ 2>/dev/null; then
15093   as_ln_s=ln
15094 else
15095   as_ln_s='cp -p'
15096 fi
15097 rm -f conf$$ conf$$.exe conf$$.file
15098
15099 as_executable_p="test -f"
15100
15101 # Sed expression to map a string onto a valid CPP name.
15102 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15103
15104 # Sed expression to map a string onto a valid variable name.
15105 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15106
15107
15108 # IFS
15109 # We need space, tab and new line, in precisely that order.
15110 as_nl='
15111 '
15112 IFS="   $as_nl"
15113
15114 # CDPATH.
15115 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
15116
15117 exec 6>&1
15118
15119 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15120 # report actual input values of CONFIG_FILES etc. instead of their
15121 # values after options handling.  Logging --version etc. is OK.
15122 exec 5>>config.log
15123 {
15124   echo
15125   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15126 ## Running $as_me. ##
15127 _ASBOX
15128 } >&5
15129 cat >&5 <<_CSEOF
15130
15131 This file was extended by $as_me, which was
15132 generated by GNU Autoconf 2.53.  Invocation command line was
15133
15134   CONFIG_FILES    = $CONFIG_FILES
15135   CONFIG_HEADERS  = $CONFIG_HEADERS
15136   CONFIG_LINKS    = $CONFIG_LINKS
15137   CONFIG_COMMANDS = $CONFIG_COMMANDS
15138   $ $0 $@
15139
15140 _CSEOF
15141 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15142 echo >&5
15143 _ACEOF
15144
15145 # Files that config.status was made for.
15146 if test -n "$ac_config_files"; then
15147   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15148 fi
15149
15150 if test -n "$ac_config_headers"; then
15151   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15152 fi
15153
15154 if test -n "$ac_config_links"; then
15155   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15156 fi
15157
15158 if test -n "$ac_config_commands"; then
15159   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15160 fi
15161
15162 cat >>$CONFIG_STATUS <<\_ACEOF
15163
15164 ac_cs_usage="\
15165 \`$as_me' instantiates files from templates according to the
15166 current configuration.
15167
15168 Usage: $0 [OPTIONS] [FILE]...
15169
15170   -h, --help       print this help, then exit
15171   -V, --version    print version number, then exit
15172   -d, --debug      don't remove temporary files
15173       --recheck    update $as_me by reconfiguring in the same conditions
15174   --file=FILE[:TEMPLATE]
15175                    instantiate the configuration file FILE
15176   --header=FILE[:TEMPLATE]
15177                    instantiate the configuration header FILE
15178
15179 Configuration files:
15180 $config_files
15181
15182 Configuration headers:
15183 $config_headers
15184
15185 Configuration commands:
15186 $config_commands
15187
15188 Report bugs to <bug-autoconf@gnu.org>."
15189 _ACEOF
15190
15191 cat >>$CONFIG_STATUS <<_ACEOF
15192 ac_cs_version="\\
15193 config.status
15194 configured by $0, generated by GNU Autoconf 2.53,
15195   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15196
15197 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15198 Free Software Foundation, Inc.
15199 This config.status script is free software; the Free Software Foundation
15200 gives unlimited permission to copy, distribute and modify it."
15201 srcdir=$srcdir
15202 INSTALL="$INSTALL"
15203 _ACEOF
15204
15205 cat >>$CONFIG_STATUS <<\_ACEOF
15206 # If no file are specified by the user, then we need to provide default
15207 # value.  By we need to know if files were specified by the user.
15208 ac_need_defaults=:
15209 while test $# != 0
15210 do
15211   case $1 in
15212   --*=*)
15213     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15214     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15215     shift
15216     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
15217     shift
15218     ;;
15219   -*);;
15220   *) # This is not an option, so the user has probably given explicit
15221      # arguments.
15222      ac_need_defaults=false;;
15223   esac
15224
15225   case $1 in
15226   # Handling of the options.
15227 _ACEOF
15228 cat >>$CONFIG_STATUS <<_ACEOF
15229   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15230     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15231     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15232 _ACEOF
15233 cat >>$CONFIG_STATUS <<\_ACEOF
15234   --version | --vers* | -V )
15235     echo "$ac_cs_version"; exit 0 ;;
15236   --he | --h)
15237     # Conflict between --help and --header
15238     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15239 Try \`$0 --help' for more information." >&5
15240 echo "$as_me: error: ambiguous option: $1
15241 Try \`$0 --help' for more information." >&2;}
15242    { (exit 1); exit 1; }; };;
15243   --help | --hel | -h )
15244     echo "$ac_cs_usage"; exit 0 ;;
15245   --debug | --d* | -d )
15246     debug=: ;;
15247   --file | --fil | --fi | --f )
15248     shift
15249     CONFIG_FILES="$CONFIG_FILES $1"
15250     ac_need_defaults=false;;
15251   --header | --heade | --head | --hea )
15252     shift
15253     CONFIG_HEADERS="$CONFIG_HEADERS $1"
15254     ac_need_defaults=false;;
15255
15256   # This is an error.
15257   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15258 Try \`$0 --help' for more information." >&5
15259 echo "$as_me: error: unrecognized option: $1
15260 Try \`$0 --help' for more information." >&2;}
15261    { (exit 1); exit 1; }; } ;;
15262
15263   *) ac_config_targets="$ac_config_targets $1" ;;
15264
15265   esac
15266   shift
15267 done
15268
15269 _ACEOF
15270
15271 cat >>$CONFIG_STATUS <<_ACEOF
15272 #
15273 # INIT-COMMANDS section.
15274 #
15275
15276
15277
15278 _ACEOF
15279
15280
15281
15282 cat >>$CONFIG_STATUS <<\_ACEOF
15283 for ac_config_target in $ac_config_targets
15284 do
15285   case "$ac_config_target" in
15286   # Handling of arguments.
15287   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
15288   "Makefile.opts" ) CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
15289   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15290   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15291   "include/defs.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/defs.h" ;;
15292   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15293 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15294    { (exit 1); exit 1; }; };;
15295   esac
15296 done
15297
15298 # If the user did not use the arguments to specify the items to instantiate,
15299 # then the envvar interface is used.  Set only those that are not.
15300 # We use the long form for the default assignment because of an extremely
15301 # bizarre bug on SunOS 4.1.3.
15302 if $ac_need_defaults; then
15303   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15304   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15305   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15306 fi
15307
15308 # Create a temporary directory, and hook for its removal unless debugging.
15309 $debug ||
15310 {
15311   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15312   trap '{ (exit 1); exit 1; }' 1 2 13 15
15313 }
15314
15315 # Create a (secure) tmp directory for tmp files.
15316 : ${TMPDIR=/tmp}
15317 {
15318   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15319   test -n "$tmp" && test -d "$tmp"
15320 }  ||
15321 {
15322   tmp=$TMPDIR/cs$$-$RANDOM
15323   (umask 077 && mkdir $tmp)
15324 } ||
15325 {
15326    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15327    { (exit 1); exit 1; }
15328 }
15329
15330 _ACEOF
15331
15332 cat >>$CONFIG_STATUS <<_ACEOF
15333
15334 #
15335 # CONFIG_FILES section.
15336 #
15337
15338 # No need to generate the scripts if there are no CONFIG_FILES.
15339 # This happens for instance when ./config.status config.h
15340 if test -n "\$CONFIG_FILES"; then
15341   # Protect against being on the right side of a sed subst in config.status.
15342   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15343    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15344 s,@SHELL@,$SHELL,;t t
15345 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15346 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15347 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15348 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15349 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15350 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15351 s,@exec_prefix@,$exec_prefix,;t t
15352 s,@prefix@,$prefix,;t t
15353 s,@program_transform_name@,$program_transform_name,;t t
15354 s,@bindir@,$bindir,;t t
15355 s,@sbindir@,$sbindir,;t t
15356 s,@libexecdir@,$libexecdir,;t t
15357 s,@datadir@,$datadir,;t t
15358 s,@sysconfdir@,$sysconfdir,;t t
15359 s,@sharedstatedir@,$sharedstatedir,;t t
15360 s,@localstatedir@,$localstatedir,;t t
15361 s,@libdir@,$libdir,;t t
15362 s,@includedir@,$includedir,;t t
15363 s,@oldincludedir@,$oldincludedir,;t t
15364 s,@infodir@,$infodir,;t t
15365 s,@mandir@,$mandir,;t t
15366 s,@build_alias@,$build_alias,;t t
15367 s,@host_alias@,$host_alias,;t t
15368 s,@target_alias@,$target_alias,;t t
15369 s,@DEFS@,$DEFS,;t t
15370 s,@ECHO_C@,$ECHO_C,;t t
15371 s,@ECHO_N@,$ECHO_N,;t t
15372 s,@ECHO_T@,$ECHO_T,;t t
15373 s,@LIBS@,$LIBS,;t t
15374 s,@build@,$build,;t t
15375 s,@build_cpu@,$build_cpu,;t t
15376 s,@build_vendor@,$build_vendor,;t t
15377 s,@build_os@,$build_os,;t t
15378 s,@host@,$host,;t t
15379 s,@host_cpu@,$host_cpu,;t t
15380 s,@host_vendor@,$host_vendor,;t t
15381 s,@host_os@,$host_os,;t t
15382 s,@target@,$target,;t t
15383 s,@target_cpu@,$target_cpu,;t t
15384 s,@target_vendor@,$target_vendor,;t t
15385 s,@target_os@,$target_os,;t t
15386 s,@SET_MAKE@,$SET_MAKE,;t t
15387 s,@CC@,$CC,;t t
15388 s,@CFLAGS@,$CFLAGS,;t t
15389 s,@LDFLAGS@,$LDFLAGS,;t t
15390 s,@CPPFLAGS@,$CPPFLAGS,;t t
15391 s,@ac_ct_CC@,$ac_ct_CC,;t t
15392 s,@EXEEXT@,$EXEEXT,;t t
15393 s,@OBJEXT@,$OBJEXT,;t t
15394 s,@CPP@,$CPP,;t t
15395 s,@RANLIB@,$RANLIB,;t t
15396 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15397 s,@STRIP@,$STRIP,;t t
15398 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15399 s,@GMAKE@,$GMAKE,;t t
15400 s,@ALLOCA@,$ALLOCA,;t t
15401 s,@GLIBC21@,$GLIBC21,;t t
15402 s,@LIBICONV@,$LIBICONV,;t t
15403 s,@USE_NLS@,$USE_NLS,;t t
15404 s,@MSGFMT@,$MSGFMT,;t t
15405 s,@GMSGFMT@,$GMSGFMT,;t t
15406 s,@XGETTEXT@,$XGETTEXT,;t t
15407 s,@INTLBISON@,$INTLBISON,;t t
15408 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15409 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15410 s,@CATALOGS@,$CATALOGS,;t t
15411 s,@CATOBJEXT@,$CATOBJEXT,;t t
15412 s,@GMOFILES@,$GMOFILES,;t t
15413 s,@INTLLIBS@,$INTLLIBS,;t t
15414 s,@INTLOBJS@,$INTLOBJS,;t t
15415 s,@POFILES@,$POFILES,;t t
15416 s,@POSUB@,$POSUB,;t t
15417 s,@DATADIRNAME@,$DATADIRNAME,;t t
15418 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15419 s,@GENCAT@,$GENCAT,;t t
15420 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15421 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15422 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15423 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15424 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15425 s,@WINDRES@,$WINDRES,;t t
15426 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
15427 s,@SDL12_CONFIG@,$SDL12_CONFIG,;t t
15428 s,@SDL11_CONFIG@,$SDL11_CONFIG,;t t
15429 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
15430 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
15431 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
15432 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
15433 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
15434 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
15435 s,@DATA_PATH@,$DATA_PATH,;t t
15436 s,@PLUGIN_PATH@,$PLUGIN_PATH,;t t
15437 s,@SYS@,$SYS,;t t
15438 s,@ARCH@,$ARCH,;t t
15439 s,@PLUGINS@,$PLUGINS,;t t
15440 s,@BUILTINS@,$BUILTINS,;t t
15441 s,@ALIASES@,$ALIASES,;t t
15442 s,@DEBUG@,$DEBUG,;t t
15443 s,@ASM@,$ASM,;t t
15444 s,@CPROF@,$CPROF,;t t
15445 s,@GPROF@,$GPROF,;t t
15446 s,@OPTIMS@,$OPTIMS,;t t
15447 s,@TUNING@,$TUNING,;t t
15448 s,@RELEASE@,$RELEASE,;t t
15449 s,@MOC@,$MOC,;t t
15450 s,@BCBUILDER@,$BCBUILDER,;t t
15451 s,@PACKAGE@,$PACKAGE,;t t
15452 s,@VERSION@,$VERSION,;t t
15453 s,@NEED_GETOPT@,$NEED_GETOPT,;t t
15454 s,@CFLAGS_OPTIM@,$CFLAGS_OPTIM,;t t
15455 s,@CFLAGS_OPTIM_NODEBUG@,$CFLAGS_OPTIM_NODEBUG,;t t
15456 s,@vlc_CFLAGS@,$vlc_CFLAGS,;t t
15457 s,@plugins_CFLAGS@,$plugins_CFLAGS,;t t
15458 s,@builtins_CFLAGS@,$builtins_CFLAGS,;t t
15459 s,@a52_CFLAGS@,$a52_CFLAGS,;t t
15460 s,@arts_CFLAGS@,$arts_CFLAGS,;t t
15461 s,@dvd_CFLAGS@,$dvd_CFLAGS,;t t
15462 s,@dvdread_CFLAGS@,$dvdread_CFLAGS,;t t
15463 s,@mpeg_ts_dvbpsi_CFLAGS@,$mpeg_ts_dvbpsi_CFLAGS,;t t
15464 s,@directx_CFLAGS@,$directx_CFLAGS,;t t
15465 s,@esd_CFLAGS@,$esd_CFLAGS,;t t
15466 s,@familiar_CFLAGS@,$familiar_CFLAGS,;t t
15467 s,@ffmpeg_CFLAGS@,$ffmpeg_CFLAGS,;t t
15468 s,@glide_CFLAGS@,$glide_CFLAGS,;t t
15469 s,@gnome_CFLAGS@,$gnome_CFLAGS,;t t
15470 s,@gtk_CFLAGS@,$gtk_CFLAGS,;t t
15471 s,@kde_CFLAGS@,$kde_CFLAGS,;t t
15472 s,@idctaltivec_CFLAGS@,$idctaltivec_CFLAGS,;t t
15473 s,@macosx_CFLAGS@,$macosx_CFLAGS,;t t
15474 s,@mad_CFLAGS@,$mad_CFLAGS,;t t
15475 s,@memcpyaltivec_CFLAGS@,$memcpyaltivec_CFLAGS,;t t
15476 s,@motionaltivec_CFLAGS@,$motionaltivec_CFLAGS,;t t
15477 s,@opie_CFLAGS@,$opie_CFLAGS,;t t
15478 s,@qt_CFLAGS@,$qt_CFLAGS,;t t
15479 s,@qte_CFLAGS@,$qte_CFLAGS,;t t
15480 s,@sdl_CFLAGS@,$sdl_CFLAGS,;t t
15481 s,@x11_CFLAGS@,$x11_CFLAGS,;t t
15482 s,@xvideo_CFLAGS@,$xvideo_CFLAGS,;t t
15483 s,@vlc_LDFLAGS@,$vlc_LDFLAGS,;t t
15484 s,@plugins_LDFLAGS@,$plugins_LDFLAGS,;t t
15485 s,@builtins_LDFLAGS@,$builtins_LDFLAGS,;t t
15486 s,@a52_LDFLAGS@,$a52_LDFLAGS,;t t
15487 s,@aa_LDFLAGS@,$aa_LDFLAGS,;t t
15488 s,@alsa_LDFLAGS@,$alsa_LDFLAGS,;t t
15489 s,@arts_LDFLAGS@,$arts_LDFLAGS,;t t
15490 s,@beos_LDFLAGS@,$beos_LDFLAGS,;t t
15491 s,@chroma_i420_rgb_LDFLAGS@,$chroma_i420_rgb_LDFLAGS,;t t
15492 s,@directx_LDFLAGS@,$directx_LDFLAGS,;t t
15493 s,@dsp_LDFLAGS@,$dsp_LDFLAGS,;t t
15494 s,@dvd_LDFLAGS@,$dvd_LDFLAGS,;t t
15495 s,@dvdread_LDFLAGS@,$dvdread_LDFLAGS,;t t
15496 s,@mpeg_ts_dvbpsi_LDFLAGS@,$mpeg_ts_dvbpsi_LDFLAGS,;t t
15497 s,@esd_LDFLAGS@,$esd_LDFLAGS,;t t
15498 s,@familiar_LDFLAGS@,$familiar_LDFLAGS,;t t
15499 s,@filter_distort_LDFLAGS@,$filter_distort_LDFLAGS,;t t
15500 s,@ffmpeg_LDFLAGS@,$ffmpeg_LDFLAGS,;t t
15501 s,@ggi_LDFLAGS@,$ggi_LDFLAGS,;t t
15502 s,@glide_LDFLAGS@,$glide_LDFLAGS,;t t
15503 s,@gnome_LDFLAGS@,$gnome_LDFLAGS,;t t
15504 s,@gtk_LDFLAGS@,$gtk_LDFLAGS,;t t
15505 s,@http_LDFLAGS@,$http_LDFLAGS,;t t
15506 s,@idctaltivec_LDFLAGS@,$idctaltivec_LDFLAGS,;t t
15507 s,@imdct_LDFLAGS@,$imdct_LDFLAGS,;t t
15508 s,@imdct3dn_LDFLAGS@,$imdct3dn_LDFLAGS,;t t
15509 s,@imdctsse_LDFLAGS@,$imdctsse_LDFLAGS,;t t
15510 s,@ipv4_LDFLAGS@,$ipv4_LDFLAGS,;t t
15511 s,@ipv6_LDFLAGS@,$ipv6_LDFLAGS,;t t
15512 s,@kde_LDFLAGS@,$kde_LDFLAGS,;t t
15513 s,@lirc_LDFLAGS@,$lirc_LDFLAGS,;t t
15514 s,@macosx_LDFLAGS@,$macosx_LDFLAGS,;t t
15515 s,@mad_LDFLAGS@,$mad_LDFLAGS,;t t
15516 s,@memcpyaltivec_LDFLAGS@,$memcpyaltivec_LDFLAGS,;t t
15517 s,@motionaltivec_LDFLAGS@,$motionaltivec_LDFLAGS,;t t
15518 s,@ncurses_LDFLAGS@,$ncurses_LDFLAGS,;t t
15519 s,@opie_LDFLAGS@,$opie_LDFLAGS,;t t
15520 s,@qnx_LDFLAGS@,$qnx_LDFLAGS,;t t
15521 s,@qt_LDFLAGS@,$qt_LDFLAGS,;t t
15522 s,@qte_LDFLAGS@,$qte_LDFLAGS,;t t
15523 s,@rc_LDFLAGS@,$rc_LDFLAGS,;t t
15524 s,@sdl_LDFLAGS@,$sdl_LDFLAGS,;t t
15525 s,@vcd_LDFLAGS@,$vcd_LDFLAGS,;t t
15526 s,@vorbis_LDFLAGS@,$vorbis_LDFLAGS,;t t
15527 s,@waveout_LDFLAGS@,$waveout_LDFLAGS,;t t
15528 s,@x11_LDFLAGS@,$x11_LDFLAGS,;t t
15529 s,@xvideo_LDFLAGS@,$xvideo_LDFLAGS,;t t
15530 CEOF
15531
15532 _ACEOF
15533
15534   cat >>$CONFIG_STATUS <<\_ACEOF
15535   # Split the substitutions into bite-sized pieces for seds with
15536   # small command number limits, like on Digital OSF/1 and HP-UX.
15537   ac_max_sed_lines=48
15538   ac_sed_frag=1 # Number of current file.
15539   ac_beg=1 # First line for current file.
15540   ac_end=$ac_max_sed_lines # Line after last line for current file.
15541   ac_more_lines=:
15542   ac_sed_cmds=
15543   while $ac_more_lines; do
15544     if test $ac_beg -gt 1; then
15545       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15546     else
15547       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15548     fi
15549     if test ! -s $tmp/subs.frag; then
15550       ac_more_lines=false
15551     else
15552       # The purpose of the label and of the branching condition is to
15553       # speed up the sed processing (if there are no `@' at all, there
15554       # is no need to browse any of the substitutions).
15555       # These are the two extra sed commands mentioned above.
15556       (echo ':t
15557   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15558       if test -z "$ac_sed_cmds"; then
15559         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15560       else
15561         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15562       fi
15563       ac_sed_frag=`expr $ac_sed_frag + 1`
15564       ac_beg=$ac_end
15565       ac_end=`expr $ac_end + $ac_max_sed_lines`
15566     fi
15567   done
15568   if test -z "$ac_sed_cmds"; then
15569     ac_sed_cmds=cat
15570   fi
15571 fi # test -n "$CONFIG_FILES"
15572
15573 _ACEOF
15574 cat >>$CONFIG_STATUS <<\_ACEOF
15575 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15576   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15577   case $ac_file in
15578   - | *:- | *:-:* ) # input from stdin
15579         cat >$tmp/stdin
15580         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15581         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15582   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15583         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15584   * )   ac_file_in=$ac_file.in ;;
15585   esac
15586
15587   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15588   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15590          X"$ac_file" : 'X\(//\)[^/]' \| \
15591          X"$ac_file" : 'X\(//\)$' \| \
15592          X"$ac_file" : 'X\(/\)' \| \
15593          .     : '\(.\)' 2>/dev/null ||
15594 echo X"$ac_file" |
15595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15596           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15597           /^X\(\/\/\)$/{ s//\1/; q; }
15598           /^X\(\/\).*/{ s//\1/; q; }
15599           s/.*/./; q'`
15600   { case "$ac_dir" in
15601   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15602   *)                      as_incr_dir=.;;
15603 esac
15604 as_dummy="$ac_dir"
15605 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15606   case $as_mkdir_dir in
15607     # Skip DOS drivespec
15608     ?:) as_incr_dir=$as_mkdir_dir ;;
15609     *)
15610       as_incr_dir=$as_incr_dir/$as_mkdir_dir
15611       test -d "$as_incr_dir" ||
15612         mkdir "$as_incr_dir" ||
15613         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15614 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15615    { (exit 1); exit 1; }; }
15616     ;;
15617   esac
15618 done; }
15619
15620   ac_builddir=.
15621
15622 if test "$ac_dir" != .; then
15623   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15624   # A "../" for each directory in $ac_dir_suffix.
15625   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15626 else
15627   ac_dir_suffix= ac_top_builddir=
15628 fi
15629
15630 case $srcdir in
15631   .)  # No --srcdir option.  We are building in place.
15632     ac_srcdir=.
15633     if test -z "$ac_top_builddir"; then
15634        ac_top_srcdir=.
15635     else
15636        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15637     fi ;;
15638   [\\/]* | ?:[\\/]* )  # Absolute path.
15639     ac_srcdir=$srcdir$ac_dir_suffix;
15640     ac_top_srcdir=$srcdir ;;
15641   *) # Relative path.
15642     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15643     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15644 esac
15645 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15646 # absolute.
15647 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15648 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15649 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15650 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15651
15652
15653   case $INSTALL in
15654   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15655   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15656   esac
15657
15658   if test x"$ac_file" != x-; then
15659     { echo "$as_me:$LINENO: creating $ac_file" >&5
15660 echo "$as_me: creating $ac_file" >&6;}
15661     rm -f "$ac_file"
15662   fi
15663   # Let's still pretend it is `configure' which instantiates (i.e., don't
15664   # use $as_me), people would be surprised to read:
15665   #    /* config.h.  Generated by config.status.  */
15666   if test x"$ac_file" = x-; then
15667     configure_input=
15668   else
15669     configure_input="$ac_file.  "
15670   fi
15671   configure_input=$configure_input"Generated from `echo $ac_file_in |
15672                                      sed 's,.*/,,'` by configure."
15673
15674   # First look for the input files in the build tree, otherwise in the
15675   # src tree.
15676   ac_file_inputs=`IFS=:
15677     for f in $ac_file_in; do
15678       case $f in
15679       -) echo $tmp/stdin ;;
15680       [\\/$]*)
15681          # Absolute (can't be DOS-style, as IFS=:)
15682          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15683 echo "$as_me: error: cannot find input file: $f" >&2;}
15684    { (exit 1); exit 1; }; }
15685          echo $f;;
15686       *) # Relative
15687          if test -f "$f"; then
15688            # Build tree
15689            echo $f
15690          elif test -f "$srcdir/$f"; then
15691            # Source tree
15692            echo $srcdir/$f
15693          else
15694            # /dev/null tree
15695            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15696 echo "$as_me: error: cannot find input file: $f" >&2;}
15697    { (exit 1); exit 1; }; }
15698          fi;;
15699       esac
15700     done` || { (exit 1); exit 1; }
15701 _ACEOF
15702 cat >>$CONFIG_STATUS <<_ACEOF
15703   sed "$ac_vpsub
15704 $extrasub
15705 _ACEOF
15706 cat >>$CONFIG_STATUS <<\_ACEOF
15707 :t
15708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15709 s,@configure_input@,$configure_input,;t t
15710 s,@srcdir@,$ac_srcdir,;t t
15711 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15712 s,@top_srcdir@,$ac_top_srcdir,;t t
15713 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15714 s,@builddir@,$ac_builddir,;t t
15715 s,@abs_builddir@,$ac_abs_builddir,;t t
15716 s,@top_builddir@,$ac_top_builddir,;t t
15717 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15718 s,@INSTALL@,$ac_INSTALL,;t t
15719 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15720   rm -f $tmp/stdin
15721   if test x"$ac_file" != x-; then
15722     mv $tmp/out $ac_file
15723   else
15724     cat $tmp/out
15725     rm -f $tmp/out
15726   fi
15727
15728 done
15729 _ACEOF
15730 cat >>$CONFIG_STATUS <<\_ACEOF
15731
15732 #
15733 # CONFIG_HEADER section.
15734 #
15735
15736 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15737 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15738 #
15739 # ac_d sets the value in "#define NAME VALUE" lines.
15740 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
15741 ac_dB='[        ].*$,\1#\2'
15742 ac_dC=' '
15743 ac_dD=',;t'
15744 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15745 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15746 ac_uB='$,\1#\2define\3'
15747 ac_uC=' '
15748 ac_uD=',;t'
15749
15750 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15751   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15752   case $ac_file in
15753   - | *:- | *:-:* ) # input from stdin
15754         cat >$tmp/stdin
15755         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15756         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15757   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15758         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15759   * )   ac_file_in=$ac_file.in ;;
15760   esac
15761
15762   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15763 echo "$as_me: creating $ac_file" >&6;}
15764
15765   # First look for the input files in the build tree, otherwise in the
15766   # src tree.
15767   ac_file_inputs=`IFS=:
15768     for f in $ac_file_in; do
15769       case $f in
15770       -) echo $tmp/stdin ;;
15771       [\\/$]*)
15772          # Absolute (can't be DOS-style, as IFS=:)
15773          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15774 echo "$as_me: error: cannot find input file: $f" >&2;}
15775    { (exit 1); exit 1; }; }
15776          echo $f;;
15777       *) # Relative
15778          if test -f "$f"; then
15779            # Build tree
15780            echo $f
15781          elif test -f "$srcdir/$f"; then
15782            # Source tree
15783            echo $srcdir/$f
15784          else
15785            # /dev/null tree
15786            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15787 echo "$as_me: error: cannot find input file: $f" >&2;}
15788    { (exit 1); exit 1; }; }
15789          fi;;
15790       esac
15791     done` || { (exit 1); exit 1; }
15792   # Remove the trailing spaces.
15793   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
15794
15795 _ACEOF
15796
15797 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15798 # `conftest.undefs', that substitutes the proper values into
15799 # config.h.in to produce config.h.  The first handles `#define'
15800 # templates, and the second `#undef' templates.
15801 # And first: Protect against being on the right side of a sed subst in
15802 # config.status.  Protect against being in an unquoted here document
15803 # in config.status.
15804 rm -f conftest.defines conftest.undefs
15805 # Using a here document instead of a string reduces the quoting nightmare.
15806 # Putting comments in sed scripts is not portable.
15807 #
15808 # `end' is used to avoid that the second main sed command (meant for
15809 # 0-ary CPP macros) applies to n-ary macro definitions.
15810 # See the Autoconf documentation for `clear'.
15811 cat >confdef2sed.sed <<\_ACEOF
15812 s/[\\&,]/\\&/g
15813 s,[\\$`],\\&,g
15814 t clear
15815 : clear
15816 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15817 t end
15818 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15819 : end
15820 _ACEOF
15821 # If some macros were called several times there might be several times
15822 # the same #defines, which is useless.  Nevertheless, we may not want to
15823 # sort them, since we want the *last* AC-DEFINE to be honored.
15824 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15825 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15826 rm -f confdef2sed.sed
15827
15828 # This sed command replaces #undef with comments.  This is necessary, for
15829 # example, in the case of _POSIX_SOURCE, which is predefined and required
15830 # on some systems where configure will not decide to define it.
15831 cat >>conftest.undefs <<\_ACEOF
15832 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15833 _ACEOF
15834
15835 # Break up conftest.defines because some shells have a limit on the size
15836 # of here documents, and old seds have small limits too (100 cmds).
15837 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15838 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15839 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15840 echo '  :' >>$CONFIG_STATUS
15841 rm -f conftest.tail
15842 while grep . conftest.defines >/dev/null
15843 do
15844   # Write a limited-size here document to $tmp/defines.sed.
15845   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15846   # Speed up: don't consider the non `#define' lines.
15847   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
15848   # Work around the forget-to-reset-the-flag bug.
15849   echo 't clr' >>$CONFIG_STATUS
15850   echo ': clr' >>$CONFIG_STATUS
15851   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15852   echo 'CEOF
15853   sed -f $tmp/defines.sed $tmp/in >$tmp/out
15854   rm -f $tmp/in
15855   mv $tmp/out $tmp/in
15856 ' >>$CONFIG_STATUS
15857   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15858   rm -f conftest.defines
15859   mv conftest.tail conftest.defines
15860 done
15861 rm -f conftest.defines
15862 echo '  fi # egrep' >>$CONFIG_STATUS
15863 echo >>$CONFIG_STATUS
15864
15865 # Break up conftest.undefs because some shells have a limit on the size
15866 # of here documents, and old seds have small limits too (100 cmds).
15867 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15868 rm -f conftest.tail
15869 while grep . conftest.undefs >/dev/null
15870 do
15871   # Write a limited-size here document to $tmp/undefs.sed.
15872   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15873   # Speed up: don't consider the non `#undef'
15874   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15875   # Work around the forget-to-reset-the-flag bug.
15876   echo 't clr' >>$CONFIG_STATUS
15877   echo ': clr' >>$CONFIG_STATUS
15878   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15879   echo 'CEOF
15880   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15881   rm -f $tmp/in
15882   mv $tmp/out $tmp/in
15883 ' >>$CONFIG_STATUS
15884   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15885   rm -f conftest.undefs
15886   mv conftest.tail conftest.undefs
15887 done
15888 rm -f conftest.undefs
15889
15890 cat >>$CONFIG_STATUS <<\_ACEOF
15891   # Let's still pretend it is `configure' which instantiates (i.e., don't
15892   # use $as_me), people would be surprised to read:
15893   #    /* config.h.  Generated by config.status.  */
15894   if test x"$ac_file" = x-; then
15895     echo "/* Generated by configure.  */" >$tmp/config.h
15896   else
15897     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15898   fi
15899   cat $tmp/in >>$tmp/config.h
15900   rm -f $tmp/in
15901   if test x"$ac_file" != x-; then
15902     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15903       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15904 echo "$as_me: $ac_file is unchanged" >&6;}
15905     else
15906       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15907 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15908          X"$ac_file" : 'X\(//\)[^/]' \| \
15909          X"$ac_file" : 'X\(//\)$' \| \
15910          X"$ac_file" : 'X\(/\)' \| \
15911          .     : '\(.\)' 2>/dev/null ||
15912 echo X"$ac_file" |
15913     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15914           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15915           /^X\(\/\/\)$/{ s//\1/; q; }
15916           /^X\(\/\).*/{ s//\1/; q; }
15917           s/.*/./; q'`
15918       { case "$ac_dir" in
15919   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15920   *)                      as_incr_dir=.;;
15921 esac
15922 as_dummy="$ac_dir"
15923 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15924   case $as_mkdir_dir in
15925     # Skip DOS drivespec
15926     ?:) as_incr_dir=$as_mkdir_dir ;;
15927     *)
15928       as_incr_dir=$as_incr_dir/$as_mkdir_dir
15929       test -d "$as_incr_dir" ||
15930         mkdir "$as_incr_dir" ||
15931         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15932 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15933    { (exit 1); exit 1; }; }
15934     ;;
15935   esac
15936 done; }
15937
15938       rm -f $ac_file
15939       mv $tmp/config.h $ac_file
15940     fi
15941   else
15942     cat $tmp/config.h
15943     rm -f $tmp/config.h
15944   fi
15945 done
15946 _ACEOF
15947 cat >>$CONFIG_STATUS <<\_ACEOF
15948
15949 #
15950 # CONFIG_COMMANDS section.
15951 #
15952 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15953   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15954   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15955   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15956 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15957          X"$ac_dest" : 'X\(//\)[^/]' \| \
15958          X"$ac_dest" : 'X\(//\)$' \| \
15959          X"$ac_dest" : 'X\(/\)' \| \
15960          .     : '\(.\)' 2>/dev/null ||
15961 echo X"$ac_dest" |
15962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15963           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15964           /^X\(\/\/\)$/{ s//\1/; q; }
15965           /^X\(\/\).*/{ s//\1/; q; }
15966           s/.*/./; q'`
15967   ac_builddir=.
15968
15969 if test "$ac_dir" != .; then
15970   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15971   # A "../" for each directory in $ac_dir_suffix.
15972   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15973 else
15974   ac_dir_suffix= ac_top_builddir=
15975 fi
15976
15977 case $srcdir in
15978   .)  # No --srcdir option.  We are building in place.
15979     ac_srcdir=.
15980     if test -z "$ac_top_builddir"; then
15981        ac_top_srcdir=.
15982     else
15983        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15984     fi ;;
15985   [\\/]* | ?:[\\/]* )  # Absolute path.
15986     ac_srcdir=$srcdir$ac_dir_suffix;
15987     ac_top_srcdir=$srcdir ;;
15988   *) # Relative path.
15989     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15990     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15991 esac
15992 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15993 # absolute.
15994 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15995 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15996 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15997 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15998
15999
16000   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16001 echo "$as_me: executing $ac_dest commands" >&6;}
16002   case $ac_dest in
16003     default-1 ) for ac_file in $CONFIG_FILES; do
16004         # Support "outfile[:infile[:infile...]]"
16005         case "$ac_file" in
16006           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16007         esac
16008         # PO directories have a Makefile.in generated from Makefile.in.in.
16009         case "$ac_file" in */Makefile.in)
16010           # Adjust a relative srcdir.
16011           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16012           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16013           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16014           # In autoconf-2.13 it is called $ac_given_srcdir.
16015           # In autoconf-2.50 it is called $srcdir.
16016           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16017           case "$ac_given_srcdir" in
16018             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16019             /*) top_srcdir="$ac_given_srcdir" ;;
16020             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16021           esac
16022           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16023             rm -f "$ac_dir/POTFILES"
16024             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16025             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16026             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16027             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16028           fi
16029           ;;
16030         esac
16031       done ;;
16032   esac
16033 done
16034 _ACEOF
16035
16036 cat >>$CONFIG_STATUS <<\_ACEOF
16037
16038 { (exit 0); exit 0; }
16039 _ACEOF
16040 chmod +x $CONFIG_STATUS
16041 ac_clean_files=$ac_clean_files_save
16042
16043
16044 # configure is writing to config.log, and then calls config.status.
16045 # config.status does its own redirection, appending to config.log.
16046 # Unfortunately, on DOS this fails, as config.log is still kept open
16047 # by configure, so config.status won't be able to write to it; its
16048 # output is simply discarded.  So we exec the FD to /dev/null,
16049 # effectively closing config.log, so it can be properly (re)opened and
16050 # appended to by config.status.  When coming back to configure, we
16051 # need to make the FD available again.
16052 if test "$no_create" != yes; then
16053   ac_cs_success=:
16054   exec 5>/dev/null
16055   $SHELL $CONFIG_STATUS || ac_cs_success=false
16056   exec 5>>config.log
16057   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16058   # would make configure fail if this is the last instruction.
16059   $ac_cs_success || { (exit 1); exit 1; }
16060 fi
16061
16062
16063 echo "
16064 vlc configuration
16065 --------------------
16066 vlc version           : ${VERSION}
16067 system                : ${SYS}
16068 architecture          : ${ARCH}
16069 optimizations         : ${OPTIMS}
16070 tuning                : ${TUNING}
16071 debug mode            : ${DEBUG}
16072 release               : ${RELEASE}
16073 cprof/gprof support   : ${CPROF}/${GPROF}
16074 need builtin getopt   : ${NEED_GETOPT}
16075 built-in modules      :${BUILTINS}
16076 plug-in modules       :${PLUGINS}
16077 vlc aliases           :${ALIASES}
16078
16079 You may now tune Makefile.opts at your convenience, for instance to choose
16080 which modules get compiled as plugins.
16081
16082 To build vlc and its plugins, type \`$VLC_MAKE'.
16083 "
16084