]> git.sesse.net Git - vlc/blob - configure
Build and link Familiar interface against libgpewidget for gpe support.
[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-sdl-prefix=PATH path to libsdl (needed for cross-compiling),
901                                e.g use as:
902                                --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/usr)
903     --with-qte=PATH       Qt Embedded headers and libraries
904     --with-directx=PATH   Win32 DirectX headers and libraries
905     --with-ggi=PATH       path to libggi
906     --with-glide=PATH     path to libglide
907 Audio plugins:
908 Interface plugins:
909     --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)
910     --with-gtk-prefix=PATH path to libgtk (needed for cross-compiling),
911                           e.g use as:
912                           --with-gtk-prefix=/usr/local/arm/2.95.3/arm-linux/usr)
913     --with-gpe-prefix=PATH gpe installation path prefix (default search in \$PATH)
914     --with-bcbuilder=PATH Borland C++ Builder installation path
915 Misc options:
916   --with-words=endianness set endianness (big or little)
917
918 Some influential environment variables:
919   CC          C compiler command
920   CFLAGS      C compiler flags
921   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
922               nonstandard directory <lib dir>
923   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
924               headers in a nonstandard directory <include dir>
925   CPP         C preprocessor
926
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
929
930 _ACEOF
931 fi
932
933 if test "$ac_init_help" = "recursive"; then
934   # If there are subdirs, report their specific --help.
935   ac_popdir=`pwd`
936   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937     test -d $ac_dir || continue
938     ac_builddir=.
939
940 if test "$ac_dir" != .; then
941   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942   # A "../" for each directory in $ac_dir_suffix.
943   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 else
945   ac_dir_suffix= ac_top_builddir=
946 fi
947
948 case $srcdir in
949   .)  # No --srcdir option.  We are building in place.
950     ac_srcdir=.
951     if test -z "$ac_top_builddir"; then
952        ac_top_srcdir=.
953     else
954        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955     fi ;;
956   [\\/]* | ?:[\\/]* )  # Absolute path.
957     ac_srcdir=$srcdir$ac_dir_suffix;
958     ac_top_srcdir=$srcdir ;;
959   *) # Relative path.
960     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961     ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 esac
963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 # absolute.
965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
966 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
969
970     cd $ac_dir
971     # Check for guested configure; otherwise get Cygnus style configure.
972     if test -f $ac_srcdir/configure.gnu; then
973       echo
974       $SHELL $ac_srcdir/configure.gnu  --help=recursive
975     elif test -f $ac_srcdir/configure; then
976       echo
977       $SHELL $ac_srcdir/configure  --help=recursive
978     elif test -f $ac_srcdir/configure.ac ||
979            test -f $ac_srcdir/configure.in; then
980       echo
981       $ac_configure --help
982     else
983       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984     fi
985     cd $ac_popdir
986   done
987 fi
988
989 test -n "$ac_init_help" && exit 0
990 if $ac_init_version; then
991   cat <<\_ACEOF
992
993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
994 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997 _ACEOF
998   exit 0
999 fi
1000 exec 5>config.log
1001 cat >&5 <<_ACEOF
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1004
1005 It was created by $as_me, which was
1006 generated by GNU Autoconf 2.53.  Invocation command line was
1007
1008   $ $0 $@
1009
1010 _ACEOF
1011 {
1012 cat <<_ASUNAME
1013 ## --------- ##
1014 ## Platform. ##
1015 ## --------- ##
1016
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1025
1026 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1027 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1030 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1031 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1032 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1033
1034 _ASUNAME
1035
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 for as_dir in $PATH
1038 do
1039   IFS=$as_save_IFS
1040   test -z "$as_dir" && as_dir=.
1041   echo "PATH: $as_dir"
1042 done
1043
1044 } >&5
1045
1046 cat >&5 <<_ACEOF
1047
1048
1049 ## ----------- ##
1050 ## Core tests. ##
1051 ## ----------- ##
1052
1053 _ACEOF
1054
1055
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Also quote any args containing shell meta-characters.
1059 ac_configure_args=
1060 ac_sep=
1061 for ac_arg
1062 do
1063   case $ac_arg in
1064   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065   | --no-cr | --no-c | -n ) continue ;;
1066   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068     continue ;;
1069   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071   esac
1072   case " $ac_configure_args " in
1073     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1074     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075        ac_sep=" " ;;
1076   esac
1077   # Get rid of the leading space.
1078 done
1079
1080 # When interrupted or exit'd, cleanup temporary files, and complete
1081 # config.log.  We remove comments because anyway the quotes in there
1082 # would cause problems or look ugly.
1083 # WARNING: Be sure not to use single quotes in there, as some shells,
1084 # such as our DU 5.0 friend, will then `close' the trap.
1085 trap 'exit_status=$?
1086   # Save into config.log some information that might help in debugging.
1087   {
1088     echo
1089     cat <<\_ASBOX
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1093 _ASBOX
1094     echo
1095     # The following way of writing the cache mishandles newlines in values,
1096 {
1097   (set) 2>&1 |
1098     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099     *ac_space=\ *)
1100       sed -n \
1101         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103       ;;
1104     *)
1105       sed -n \
1106         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107       ;;
1108     esac;
1109 }
1110     echo
1111     if test -s confdefs.h; then
1112       cat <<\_ASBOX
1113 ## ----------- ##
1114 ## confdefs.h. ##
1115 ## ----------- ##
1116 _ASBOX
1117       echo
1118       sed "/^$/d" confdefs.h
1119       echo
1120     fi
1121     test "$ac_signal" != 0 &&
1122       echo "$as_me: caught signal $ac_signal"
1123     echo "$as_me: exit $exit_status"
1124   } >&5
1125   rm -f core core.* *.core &&
1126   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1127     exit $exit_status
1128      ' 0
1129 for ac_signal in 1 2 13 15; do
1130   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1131 done
1132 ac_signal=0
1133
1134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1135 rm -rf conftest* confdefs.h
1136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1137 echo >confdefs.h
1138
1139 # Predefined preprocessor variables.
1140
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_NAME "$PACKAGE_NAME"
1143 _ACEOF
1144
1145
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1148 _ACEOF
1149
1150
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1153 _ACEOF
1154
1155
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_STRING "$PACKAGE_STRING"
1158 _ACEOF
1159
1160
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1163 _ACEOF
1164
1165
1166 # Let the site file select an alternate cache file if it wants to.
1167 # Prefer explicitly selected file to automatically selected ones.
1168 if test -z "$CONFIG_SITE"; then
1169   if test "x$prefix" != xNONE; then
1170     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1171   else
1172     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1173   fi
1174 fi
1175 for ac_site_file in $CONFIG_SITE; do
1176   if test -r "$ac_site_file"; then
1177     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1178 echo "$as_me: loading site script $ac_site_file" >&6;}
1179     sed 's/^/| /' "$ac_site_file" >&5
1180     . "$ac_site_file"
1181   fi
1182 done
1183
1184 if test -r "$cache_file"; then
1185   # Some versions of bash will fail to source /dev/null (special
1186   # files actually), so we avoid doing that.
1187   if test -f "$cache_file"; then
1188     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1189 echo "$as_me: loading cache $cache_file" >&6;}
1190     case $cache_file in
1191       [\\/]* | ?:[\\/]* ) . $cache_file;;
1192       *)                      . ./$cache_file;;
1193     esac
1194   fi
1195 else
1196   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1197 echo "$as_me: creating cache $cache_file" >&6;}
1198   >$cache_file
1199 fi
1200
1201 # Check that the precious variables saved in the cache have kept the same
1202 # value.
1203 ac_cache_corrupted=false
1204 for ac_var in `(set) 2>&1 |
1205                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1206   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1207   eval ac_new_set=\$ac_env_${ac_var}_set
1208   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1209   eval ac_new_val="\$ac_env_${ac_var}_value"
1210   case $ac_old_set,$ac_new_set in
1211     set,)
1212       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1214       ac_cache_corrupted=: ;;
1215     ,set)
1216       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1218       ac_cache_corrupted=: ;;
1219     ,);;
1220     *)
1221       if test "x$ac_old_val" != "x$ac_new_val"; then
1222         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1223 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1224         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1225 echo "$as_me:   former value:  $ac_old_val" >&2;}
1226         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1227 echo "$as_me:   current value: $ac_new_val" >&2;}
1228         ac_cache_corrupted=:
1229       fi;;
1230   esac
1231   # Pass precious variables to config.status.
1232   if test "$ac_new_set" = set; then
1233     case $ac_new_val in
1234     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1235       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1236     *) ac_arg=$ac_var=$ac_new_val ;;
1237     esac
1238     case " $ac_configure_args " in
1239       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1240       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1241     esac
1242   fi
1243 done
1244 if $ac_cache_corrupted; then
1245   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1247   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249    { (exit 1); exit 1; }; }
1250 fi
1251
1252 ac_ext=c
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275 ac_config_headers="$ac_config_headers include/defs.h"
1276
1277 ac_aux_dir=
1278 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1279   if test -f $ac_dir/install-sh; then
1280     ac_aux_dir=$ac_dir
1281     ac_install_sh="$ac_aux_dir/install-sh -c"
1282     break
1283   elif test -f $ac_dir/install.sh; then
1284     ac_aux_dir=$ac_dir
1285     ac_install_sh="$ac_aux_dir/install.sh -c"
1286     break
1287   elif test -f $ac_dir/shtool; then
1288     ac_aux_dir=$ac_dir
1289     ac_install_sh="$ac_aux_dir/shtool install -c"
1290     break
1291   fi
1292 done
1293 if test -z "$ac_aux_dir"; then
1294   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1295 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1296    { (exit 1); exit 1; }; }
1297 fi
1298 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1299 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1300 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1301
1302 # Make sure we can run config.sub.
1303 $ac_config_sub sun4 >/dev/null 2>&1 ||
1304   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1305 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1306    { (exit 1); exit 1; }; }
1307
1308 echo "$as_me:$LINENO: checking build system type" >&5
1309 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1310 if test "${ac_cv_build+set}" = set; then
1311   echo $ECHO_N "(cached) $ECHO_C" >&6
1312 else
1313   ac_cv_build_alias=$build_alias
1314 test -z "$ac_cv_build_alias" &&
1315   ac_cv_build_alias=`$ac_config_guess`
1316 test -z "$ac_cv_build_alias" &&
1317   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1318 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1319    { (exit 1); exit 1; }; }
1320 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1321   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1322 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1323    { (exit 1); exit 1; }; }
1324
1325 fi
1326 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1327 echo "${ECHO_T}$ac_cv_build" >&6
1328 build=$ac_cv_build
1329 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1330 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1331 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1332
1333
1334 echo "$as_me:$LINENO: checking host system type" >&5
1335 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1336 if test "${ac_cv_host+set}" = set; then
1337   echo $ECHO_N "(cached) $ECHO_C" >&6
1338 else
1339   ac_cv_host_alias=$host_alias
1340 test -z "$ac_cv_host_alias" &&
1341   ac_cv_host_alias=$ac_cv_build_alias
1342 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1343   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1344 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1345    { (exit 1); exit 1; }; }
1346
1347 fi
1348 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1349 echo "${ECHO_T}$ac_cv_host" >&6
1350 host=$ac_cv_host
1351 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1352 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1353 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1354
1355
1356 echo "$as_me:$LINENO: checking target system type" >&5
1357 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1358 if test "${ac_cv_target+set}" = set; then
1359   echo $ECHO_N "(cached) $ECHO_C" >&6
1360 else
1361   ac_cv_target_alias=$target_alias
1362 test "x$ac_cv_target_alias" = "x" &&
1363   ac_cv_target_alias=$ac_cv_host_alias
1364 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1365   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1367    { (exit 1); exit 1; }; }
1368
1369 fi
1370 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1371 echo "${ECHO_T}$ac_cv_target" >&6
1372 target=$ac_cv_target
1373 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376
1377
1378 # The aliases save the names the user supplied, while $host etc.
1379 # will get canonicalized.
1380 test -n "$target_alias" &&
1381   test "$program_prefix$program_suffix$program_transform_name" = \
1382     NONENONEs,x,x, &&
1383   program_prefix=${target_alias}-
1384
1385 PACKAGE="vlc"
1386 VERSION="0.4.6"
1387 CODENAME=Ourumov
1388
1389 save_CFLAGS="${CFLAGS}"
1390 save_CPPFLAGS="${CPPFLAGS}"
1391 save_LDFLAGS="${LDFLAGS}"
1392
1393 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1394 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1395 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1396 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1397   echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399   cat >conftest.make <<\_ACEOF
1400 all:
1401         @echo 'ac_maketemp="${MAKE}"'
1402 _ACEOF
1403 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1404 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1405 if test -n "$ac_maketemp"; then
1406   eval ac_cv_prog_make_${ac_make}_set=yes
1407 else
1408   eval ac_cv_prog_make_${ac_make}_set=no
1409 fi
1410 rm -f conftest.make
1411 fi
1412 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1413   echo "$as_me:$LINENO: result: yes" >&5
1414 echo "${ECHO_T}yes" >&6
1415   SET_MAKE=
1416 else
1417   echo "$as_me:$LINENO: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1419   SET_MAKE="MAKE=${MAKE-make}"
1420 fi
1421
1422 ac_ext=c
1423 ac_cpp='$CPP $CPPFLAGS'
1424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1427 if test -n "$ac_tool_prefix"; then
1428   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1429 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_CC+set}" = set; then
1433   echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435   if test -n "$CC"; then
1436   ac_cv_prog_CC="$CC" # Let the user override the test.
1437 else
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 for as_dir in $PATH
1440 do
1441   IFS=$as_save_IFS
1442   test -z "$as_dir" && as_dir=.
1443   for ac_exec_ext in '' $ac_executable_extensions; do
1444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447     break 2
1448   fi
1449 done
1450 done
1451
1452 fi
1453 fi
1454 CC=$ac_cv_prog_CC
1455 if test -n "$CC"; then
1456   echo "$as_me:$LINENO: result: $CC" >&5
1457 echo "${ECHO_T}$CC" >&6
1458 else
1459   echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1461 fi
1462
1463 fi
1464 if test -z "$ac_cv_prog_CC"; then
1465   ac_ct_CC=$CC
1466   # Extract the first word of "gcc", so it can be a program name with args.
1467 set dummy gcc; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1471   echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473   if test -n "$ac_ct_CC"; then
1474   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1475 else
1476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 for as_dir in $PATH
1478 do
1479   IFS=$as_save_IFS
1480   test -z "$as_dir" && as_dir=.
1481   for ac_exec_ext in '' $ac_executable_extensions; do
1482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483     ac_cv_prog_ac_ct_CC="gcc"
1484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485     break 2
1486   fi
1487 done
1488 done
1489
1490 fi
1491 fi
1492 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1493 if test -n "$ac_ct_CC"; then
1494   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1495 echo "${ECHO_T}$ac_ct_CC" >&6
1496 else
1497   echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1499 fi
1500
1501   CC=$ac_ct_CC
1502 else
1503   CC="$ac_cv_prog_CC"
1504 fi
1505
1506 if test -z "$CC"; then
1507   if test -n "$ac_tool_prefix"; then
1508   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1509 set dummy ${ac_tool_prefix}cc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_CC+set}" = set; then
1513   echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515   if test -n "$CC"; then
1516   ac_cv_prog_CC="$CC" # Let the user override the test.
1517 else
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 for as_dir in $PATH
1520 do
1521   IFS=$as_save_IFS
1522   test -z "$as_dir" && as_dir=.
1523   for ac_exec_ext in '' $ac_executable_extensions; do
1524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525     ac_cv_prog_CC="${ac_tool_prefix}cc"
1526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527     break 2
1528   fi
1529 done
1530 done
1531
1532 fi
1533 fi
1534 CC=$ac_cv_prog_CC
1535 if test -n "$CC"; then
1536   echo "$as_me:$LINENO: result: $CC" >&5
1537 echo "${ECHO_T}$CC" >&6
1538 else
1539   echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1541 fi
1542
1543 fi
1544 if test -z "$ac_cv_prog_CC"; then
1545   ac_ct_CC=$CC
1546   # Extract the first word of "cc", so it can be a program name with args.
1547 set dummy cc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1551   echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553   if test -n "$ac_ct_CC"; then
1554   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1555 else
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559   IFS=$as_save_IFS
1560   test -z "$as_dir" && as_dir=.
1561   for ac_exec_ext in '' $ac_executable_extensions; do
1562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563     ac_cv_prog_ac_ct_CC="cc"
1564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565     break 2
1566   fi
1567 done
1568 done
1569
1570 fi
1571 fi
1572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1573 if test -n "$ac_ct_CC"; then
1574   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1575 echo "${ECHO_T}$ac_ct_CC" >&6
1576 else
1577   echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1579 fi
1580
1581   CC=$ac_ct_CC
1582 else
1583   CC="$ac_cv_prog_CC"
1584 fi
1585
1586 fi
1587 if test -z "$CC"; then
1588   # Extract the first word of "cc", so it can be a program name with args.
1589 set dummy cc; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_CC+set}" = set; then
1593   echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595   if test -n "$CC"; then
1596   ac_cv_prog_CC="$CC" # Let the user override the test.
1597 else
1598   ac_prog_rejected=no
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1601 do
1602   IFS=$as_save_IFS
1603   test -z "$as_dir" && as_dir=.
1604   for ac_exec_ext in '' $ac_executable_extensions; do
1605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1607        ac_prog_rejected=yes
1608        continue
1609      fi
1610     ac_cv_prog_CC="cc"
1611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612     break 2
1613   fi
1614 done
1615 done
1616
1617 if test $ac_prog_rejected = yes; then
1618   # We found a bogon in the path, so make sure we never use it.
1619   set dummy $ac_cv_prog_CC
1620   shift
1621   if test $# != 0; then
1622     # We chose a different compiler from the bogus one.
1623     # However, it has the same basename, so the bogon will be chosen
1624     # first if we set CC to just the basename; use the full file name.
1625     shift
1626     set dummy "$as_dir/$ac_word" ${1+"$@"}
1627     shift
1628     ac_cv_prog_CC="$@"
1629   fi
1630 fi
1631 fi
1632 fi
1633 CC=$ac_cv_prog_CC
1634 if test -n "$CC"; then
1635   echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1637 else
1638   echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1640 fi
1641
1642 fi
1643 if test -z "$CC"; then
1644   if test -n "$ac_tool_prefix"; then
1645   for ac_prog in cl
1646   do
1647     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$CC"; then
1655   ac_cv_prog_CC="$CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660   IFS=$as_save_IFS
1661   test -z "$as_dir" && as_dir=.
1662   for ac_exec_ext in '' $ac_executable_extensions; do
1663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666     break 2
1667   fi
1668 done
1669 done
1670
1671 fi
1672 fi
1673 CC=$ac_cv_prog_CC
1674 if test -n "$CC"; then
1675   echo "$as_me:$LINENO: result: $CC" >&5
1676 echo "${ECHO_T}$CC" >&6
1677 else
1678   echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682     test -n "$CC" && break
1683   done
1684 fi
1685 if test -z "$CC"; then
1686   ac_ct_CC=$CC
1687   for ac_prog in cl
1688 do
1689   # Extract the first word of "$ac_prog", so it can be a program name with args.
1690 set dummy $ac_prog; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   if test -n "$ac_ct_CC"; then
1697   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   for ac_exec_ext in '' $ac_executable_extensions; do
1705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706     ac_cv_prog_ac_ct_CC="$ac_prog"
1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708     break 2
1709   fi
1710 done
1711 done
1712
1713 fi
1714 fi
1715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1716 if test -n "$ac_ct_CC"; then
1717   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1718 echo "${ECHO_T}$ac_ct_CC" >&6
1719 else
1720   echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 fi
1723
1724   test -n "$ac_ct_CC" && break
1725 done
1726
1727   CC=$ac_ct_CC
1728 fi
1729
1730 fi
1731
1732
1733 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1734 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1735    { (exit 1); exit 1; }; }
1736
1737 # Provide some information about the compiler.
1738 echo "$as_me:$LINENO:" \
1739      "checking for C compiler version" >&5
1740 ac_compiler=`set X $ac_compile; echo $2`
1741 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1742   (eval $ac_compiler --version </dev/null >&5) 2>&5
1743   ac_status=$?
1744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745   (exit $ac_status); }
1746 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1747   (eval $ac_compiler -v </dev/null >&5) 2>&5
1748   ac_status=$?
1749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750   (exit $ac_status); }
1751 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1752   (eval $ac_compiler -V </dev/null >&5) 2>&5
1753   ac_status=$?
1754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755   (exit $ac_status); }
1756
1757 cat >conftest.$ac_ext <<_ACEOF
1758 #line $LINENO "configure"
1759 #include "confdefs.h"
1760
1761 #ifdef F77_DUMMY_MAIN
1762 #  ifdef __cplusplus
1763      extern "C"
1764 #  endif
1765    int F77_DUMMY_MAIN() { return 1; }
1766 #endif
1767 int
1768 main ()
1769 {
1770
1771   ;
1772   return 0;
1773 }
1774 _ACEOF
1775 ac_clean_files_save=$ac_clean_files
1776 ac_clean_files="$ac_clean_files a.out a.exe"
1777 # Try to create an executable without -o first, disregard a.out.
1778 # It will help us diagnose broken compilers, and finding out an intuition
1779 # of exeext.
1780 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1781 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1782 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1783 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1784   (eval $ac_link_default) 2>&5
1785   ac_status=$?
1786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787   (exit $ac_status); }; then
1788   # Find the output, starting from the most likely.  This scheme is
1789 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1790 # resort.
1791
1792 # Be careful to initialize this variable, since it used to be cached.
1793 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1794 ac_cv_exeext=
1795 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1796                 ls a.out conftest 2>/dev/null;
1797                 ls a.* conftest.* 2>/dev/null`; do
1798   case $ac_file in
1799     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1800     a.out ) # We found the default executable, but exeext='' is most
1801             # certainly right.
1802             break;;
1803     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1804           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1805           export ac_cv_exeext
1806           break;;
1807     * ) break;;
1808   esac
1809 done
1810 else
1811   echo "$as_me: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1813 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1814 echo "$as_me: error: C compiler cannot create executables" >&2;}
1815    { (exit 77); exit 77; }; }
1816 fi
1817
1818 ac_exeext=$ac_cv_exeext
1819 echo "$as_me:$LINENO: result: $ac_file" >&5
1820 echo "${ECHO_T}$ac_file" >&6
1821
1822 # Check the compiler produces executables we can run.  If not, either
1823 # the compiler is broken, or we cross compile.
1824 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1825 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1826 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1827 # If not cross compiling, check that we can run a simple program.
1828 if test "$cross_compiling" != yes; then
1829   if { ac_try='./$ac_file'
1830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1831   (eval $ac_try) 2>&5
1832   ac_status=$?
1833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834   (exit $ac_status); }; }; then
1835     cross_compiling=no
1836   else
1837     if test "$cross_compiling" = maybe; then
1838         cross_compiling=yes
1839     else
1840         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1841 If you meant to cross compile, use \`--host'." >&5
1842 echo "$as_me: error: cannot run C compiled programs.
1843 If you meant to cross compile, use \`--host'." >&2;}
1844    { (exit 1); exit 1; }; }
1845     fi
1846   fi
1847 fi
1848 echo "$as_me:$LINENO: result: yes" >&5
1849 echo "${ECHO_T}yes" >&6
1850
1851 rm -f a.out a.exe conftest$ac_cv_exeext
1852 ac_clean_files=$ac_clean_files_save
1853 # Check the compiler produces executables we can run.  If not, either
1854 # the compiler is broken, or we cross compile.
1855 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1856 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1857 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1858 echo "${ECHO_T}$cross_compiling" >&6
1859
1860 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1861 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1863   (eval $ac_link) 2>&5
1864   ac_status=$?
1865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866   (exit $ac_status); }; then
1867   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1868 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1869 # work properly (i.e., refer to `conftest.exe'), while it won't with
1870 # `rm'.
1871 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1872   case $ac_file in
1873     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1874     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1875           export ac_cv_exeext
1876           break;;
1877     * ) break;;
1878   esac
1879 done
1880 else
1881   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1882 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1883    { (exit 1); exit 1; }; }
1884 fi
1885
1886 rm -f conftest$ac_cv_exeext
1887 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1888 echo "${ECHO_T}$ac_cv_exeext" >&6
1889
1890 rm -f conftest.$ac_ext
1891 EXEEXT=$ac_cv_exeext
1892 ac_exeext=$EXEEXT
1893 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1894 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1895 if test "${ac_cv_objext+set}" = set; then
1896   echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898   cat >conftest.$ac_ext <<_ACEOF
1899 #line $LINENO "configure"
1900 #include "confdefs.h"
1901
1902 #ifdef F77_DUMMY_MAIN
1903 #  ifdef __cplusplus
1904      extern "C"
1905 #  endif
1906    int F77_DUMMY_MAIN() { return 1; }
1907 #endif
1908 int
1909 main ()
1910 {
1911
1912   ;
1913   return 0;
1914 }
1915 _ACEOF
1916 rm -f conftest.o conftest.obj
1917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1918   (eval $ac_compile) 2>&5
1919   ac_status=$?
1920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921   (exit $ac_status); }; then
1922   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1923   case $ac_file in
1924     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1925     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1926        break;;
1927   esac
1928 done
1929 else
1930   echo "$as_me: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1932 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1933 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1938 fi
1939 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1940 echo "${ECHO_T}$ac_cv_objext" >&6
1941 OBJEXT=$ac_cv_objext
1942 ac_objext=$OBJEXT
1943 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946   echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948   cat >conftest.$ac_ext <<_ACEOF
1949 #line $LINENO "configure"
1950 #include "confdefs.h"
1951
1952 #ifdef F77_DUMMY_MAIN
1953 #  ifdef __cplusplus
1954      extern "C"
1955 #  endif
1956    int F77_DUMMY_MAIN() { return 1; }
1957 #endif
1958 int
1959 main ()
1960 {
1961 #ifndef __GNUC__
1962        choke me
1963 #endif
1964
1965   ;
1966   return 0;
1967 }
1968 _ACEOF
1969 rm -f conftest.$ac_objext
1970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1971   (eval $ac_compile) 2>&5
1972   ac_status=$?
1973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974   (exit $ac_status); } &&
1975          { ac_try='test -s conftest.$ac_objext'
1976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1977   (eval $ac_try) 2>&5
1978   ac_status=$?
1979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980   (exit $ac_status); }; }; then
1981   ac_compiler_gnu=yes
1982 else
1983   echo "$as_me: failed program was:" >&5
1984 cat conftest.$ac_ext >&5
1985 ac_compiler_gnu=no
1986 fi
1987 rm -f conftest.$ac_objext conftest.$ac_ext
1988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1989
1990 fi
1991 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1993 GCC=`test $ac_compiler_gnu = yes && echo yes`
1994 ac_test_CFLAGS=${CFLAGS+set}
1995 ac_save_CFLAGS=$CFLAGS
1996 CFLAGS="-g"
1997 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1998 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1999 if test "${ac_cv_prog_cc_g+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   cat >conftest.$ac_ext <<_ACEOF
2003 #line $LINENO "configure"
2004 #include "confdefs.h"
2005
2006 #ifdef F77_DUMMY_MAIN
2007 #  ifdef __cplusplus
2008      extern "C"
2009 #  endif
2010    int F77_DUMMY_MAIN() { return 1; }
2011 #endif
2012 int
2013 main ()
2014 {
2015
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 rm -f conftest.$ac_objext
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022   (eval $ac_compile) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); } &&
2026          { ac_try='test -s conftest.$ac_objext'
2027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028   (eval $ac_try) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); }; }; then
2032   ac_cv_prog_cc_g=yes
2033 else
2034   echo "$as_me: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2036 ac_cv_prog_cc_g=no
2037 fi
2038 rm -f conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2041 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2042 if test "$ac_test_CFLAGS" = set; then
2043   CFLAGS=$ac_save_CFLAGS
2044 elif test $ac_cv_prog_cc_g = yes; then
2045   if test "$GCC" = yes; then
2046     CFLAGS="-g -O2"
2047   else
2048     CFLAGS="-g"
2049   fi
2050 else
2051   if test "$GCC" = yes; then
2052     CFLAGS="-O2"
2053   else
2054     CFLAGS=
2055   fi
2056 fi
2057 # Some people use a C++ compiler to compile C.  Since we use `exit',
2058 # in C++ we need to declare it.  In case someone uses the same compiler
2059 # for both compiling C and C++ we need to have the C++ compiler decide
2060 # the declaration of exit, since it's the most demanding environment.
2061 cat >conftest.$ac_ext <<_ACEOF
2062 #ifndef __cplusplus
2063   choke me
2064 #endif
2065 _ACEOF
2066 rm -f conftest.$ac_objext
2067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2068   (eval $ac_compile) 2>&5
2069   ac_status=$?
2070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071   (exit $ac_status); } &&
2072          { ac_try='test -s conftest.$ac_objext'
2073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2074   (eval $ac_try) 2>&5
2075   ac_status=$?
2076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077   (exit $ac_status); }; }; then
2078   for ac_declaration in \
2079    ''\
2080    '#include <stdlib.h>' \
2081    'extern "C" void std::exit (int) throw (); using std::exit;' \
2082    'extern "C" void std::exit (int); using std::exit;' \
2083    'extern "C" void exit (int) throw ();' \
2084    'extern "C" void exit (int);' \
2085    'void exit (int);'
2086 do
2087   cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2089 #include "confdefs.h"
2090 #include <stdlib.h>
2091 $ac_declaration
2092 #ifdef F77_DUMMY_MAIN
2093 #  ifdef __cplusplus
2094      extern "C"
2095 #  endif
2096    int F77_DUMMY_MAIN() { return 1; }
2097 #endif
2098 int
2099 main ()
2100 {
2101 exit (42);
2102   ;
2103   return 0;
2104 }
2105 _ACEOF
2106 rm -f conftest.$ac_objext
2107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2108   (eval $ac_compile) 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); } &&
2112          { ac_try='test -s conftest.$ac_objext'
2113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114   (eval $ac_try) 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }; }; then
2118   :
2119 else
2120   echo "$as_me: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2122 continue
2123 fi
2124 rm -f conftest.$ac_objext conftest.$ac_ext
2125   cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2128 $ac_declaration
2129 #ifdef F77_DUMMY_MAIN
2130 #  ifdef __cplusplus
2131      extern "C"
2132 #  endif
2133    int F77_DUMMY_MAIN() { return 1; }
2134 #endif
2135 int
2136 main ()
2137 {
2138 exit (42);
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 rm -f conftest.$ac_objext
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145   (eval $ac_compile) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); } &&
2149          { ac_try='test -s conftest.$ac_objext'
2150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151   (eval $ac_try) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; }; then
2155   break
2156 else
2157   echo "$as_me: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 fi
2160 rm -f conftest.$ac_objext conftest.$ac_ext
2161 done
2162 rm -f conftest*
2163 if test -n "$ac_declaration"; then
2164   echo '#ifdef __cplusplus' >>confdefs.h
2165   echo $ac_declaration      >>confdefs.h
2166   echo '#endif'             >>confdefs.h
2167 fi
2168
2169 else
2170   echo "$as_me: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2172 fi
2173 rm -f conftest.$ac_objext conftest.$ac_ext
2174 ac_ext=c
2175 ac_cpp='$CPP $CPPFLAGS'
2176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2179
2180 ac_ext=c
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2186 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2187 # On Suns, sometimes $CPP names a directory.
2188 if test -n "$CPP" && test -d "$CPP"; then
2189   CPP=
2190 fi
2191 if test -z "$CPP"; then
2192   if test "${ac_cv_prog_CPP+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195       # Double quotes because CPP needs to be expanded
2196     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2197     do
2198       ac_preproc_ok=false
2199 for ac_c_preproc_warn_flag in '' yes
2200 do
2201   # Use a header file that comes with gcc, so configuring glibc
2202   # with a fresh cross-compiler works.
2203   # On the NeXT, cc -E runs the code through the compiler's parser,
2204   # not just through cpp. "Syntax error" is here to catch this case.
2205   cat >conftest.$ac_ext <<_ACEOF
2206 #line $LINENO "configure"
2207 #include "confdefs.h"
2208 #include <assert.h>
2209                      Syntax error
2210 _ACEOF
2211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2213   ac_status=$?
2214   egrep -v '^ *\+' conftest.er1 >conftest.err
2215   rm -f conftest.er1
2216   cat conftest.err >&5
2217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218   (exit $ac_status); } >/dev/null; then
2219   if test -s conftest.err; then
2220     ac_cpp_err=$ac_c_preproc_warn_flag
2221   else
2222     ac_cpp_err=
2223   fi
2224 else
2225   ac_cpp_err=yes
2226 fi
2227 if test -z "$ac_cpp_err"; then
2228   :
2229 else
2230   echo "$as_me: failed program was:" >&5
2231   cat conftest.$ac_ext >&5
2232   # Broken: fails on valid input.
2233 continue
2234 fi
2235 rm -f conftest.err conftest.$ac_ext
2236
2237   # OK, works on sane cases.  Now check whether non-existent headers
2238   # can be detected and how.
2239   cat >conftest.$ac_ext <<_ACEOF
2240 #line $LINENO "configure"
2241 #include "confdefs.h"
2242 #include <ac_nonexistent.h>
2243 _ACEOF
2244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2246   ac_status=$?
2247   egrep -v '^ *\+' conftest.er1 >conftest.err
2248   rm -f conftest.er1
2249   cat conftest.err >&5
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); } >/dev/null; then
2252   if test -s conftest.err; then
2253     ac_cpp_err=$ac_c_preproc_warn_flag
2254   else
2255     ac_cpp_err=
2256   fi
2257 else
2258   ac_cpp_err=yes
2259 fi
2260 if test -z "$ac_cpp_err"; then
2261   # Broken: success on invalid input.
2262 continue
2263 else
2264   echo "$as_me: failed program was:" >&5
2265   cat conftest.$ac_ext >&5
2266   # Passes both tests.
2267 ac_preproc_ok=:
2268 break
2269 fi
2270 rm -f conftest.err conftest.$ac_ext
2271
2272 done
2273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2274 rm -f conftest.err conftest.$ac_ext
2275 if $ac_preproc_ok; then
2276   break
2277 fi
2278
2279     done
2280     ac_cv_prog_CPP=$CPP
2281
2282 fi
2283   CPP=$ac_cv_prog_CPP
2284 else
2285   ac_cv_prog_CPP=$CPP
2286 fi
2287 echo "$as_me:$LINENO: result: $CPP" >&5
2288 echo "${ECHO_T}$CPP" >&6
2289 ac_preproc_ok=false
2290 for ac_c_preproc_warn_flag in '' yes
2291 do
2292   # Use a header file that comes with gcc, so configuring glibc
2293   # with a fresh cross-compiler works.
2294   # On the NeXT, cc -E runs the code through the compiler's parser,
2295   # not just through cpp. "Syntax error" is here to catch this case.
2296   cat >conftest.$ac_ext <<_ACEOF
2297 #line $LINENO "configure"
2298 #include "confdefs.h"
2299 #include <assert.h>
2300                      Syntax error
2301 _ACEOF
2302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2304   ac_status=$?
2305   egrep -v '^ *\+' conftest.er1 >conftest.err
2306   rm -f conftest.er1
2307   cat conftest.err >&5
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); } >/dev/null; then
2310   if test -s conftest.err; then
2311     ac_cpp_err=$ac_c_preproc_warn_flag
2312   else
2313     ac_cpp_err=
2314   fi
2315 else
2316   ac_cpp_err=yes
2317 fi
2318 if test -z "$ac_cpp_err"; then
2319   :
2320 else
2321   echo "$as_me: failed program was:" >&5
2322   cat conftest.$ac_ext >&5
2323   # Broken: fails on valid input.
2324 continue
2325 fi
2326 rm -f conftest.err conftest.$ac_ext
2327
2328   # OK, works on sane cases.  Now check whether non-existent headers
2329   # can be detected and how.
2330   cat >conftest.$ac_ext <<_ACEOF
2331 #line $LINENO "configure"
2332 #include "confdefs.h"
2333 #include <ac_nonexistent.h>
2334 _ACEOF
2335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2336   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2337   ac_status=$?
2338   egrep -v '^ *\+' conftest.er1 >conftest.err
2339   rm -f conftest.er1
2340   cat conftest.err >&5
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); } >/dev/null; then
2343   if test -s conftest.err; then
2344     ac_cpp_err=$ac_c_preproc_warn_flag
2345   else
2346     ac_cpp_err=
2347   fi
2348 else
2349   ac_cpp_err=yes
2350 fi
2351 if test -z "$ac_cpp_err"; then
2352   # Broken: success on invalid input.
2353 continue
2354 else
2355   echo "$as_me: failed program was:" >&5
2356   cat conftest.$ac_ext >&5
2357   # Passes both tests.
2358 ac_preproc_ok=:
2359 break
2360 fi
2361 rm -f conftest.err conftest.$ac_ext
2362
2363 done
2364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2365 rm -f conftest.err conftest.$ac_ext
2366 if $ac_preproc_ok; then
2367   :
2368 else
2369   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2370 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2371    { (exit 1); exit 1; }; }
2372 fi
2373
2374 ac_ext=c
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379
2380
2381 if test -n "$ac_tool_prefix"; then
2382   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2384 echo "$as_me:$LINENO: checking for $ac_word" >&5
2385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2386 if test "${ac_cv_prog_RANLIB+set}" = set; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   if test -n "$RANLIB"; then
2390   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2391 else
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2394 do
2395   IFS=$as_save_IFS
2396   test -z "$as_dir" && as_dir=.
2397   for ac_exec_ext in '' $ac_executable_extensions; do
2398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2399     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401     break 2
2402   fi
2403 done
2404 done
2405
2406 fi
2407 fi
2408 RANLIB=$ac_cv_prog_RANLIB
2409 if test -n "$RANLIB"; then
2410   echo "$as_me:$LINENO: result: $RANLIB" >&5
2411 echo "${ECHO_T}$RANLIB" >&6
2412 else
2413   echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6
2415 fi
2416
2417 fi
2418 if test -z "$ac_cv_prog_RANLIB"; then
2419   ac_ct_RANLIB=$RANLIB
2420   # Extract the first word of "ranlib", so it can be a program name with args.
2421 set dummy ranlib; ac_word=$2
2422 echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2424 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   if test -n "$ac_ct_RANLIB"; then
2428   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433   IFS=$as_save_IFS
2434   test -z "$as_dir" && as_dir=.
2435   for ac_exec_ext in '' $ac_executable_extensions; do
2436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2437     ac_cv_prog_ac_ct_RANLIB="ranlib"
2438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439     break 2
2440   fi
2441 done
2442 done
2443
2444   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2445 fi
2446 fi
2447 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2448 if test -n "$ac_ct_RANLIB"; then
2449   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2450 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2451 else
2452   echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6
2454 fi
2455
2456   RANLIB=$ac_ct_RANLIB
2457 else
2458   RANLIB="$ac_cv_prog_RANLIB"
2459 fi
2460
2461 if test -n "$ac_tool_prefix"; then
2462   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}strip; ac_word=$2
2464 echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_prog_STRIP+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   if test -n "$STRIP"; then
2470   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477   for ac_exec_ext in '' $ac_executable_extensions; do
2478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482   fi
2483 done
2484 done
2485
2486 fi
2487 fi
2488 STRIP=$ac_cv_prog_STRIP
2489 if test -n "$STRIP"; then
2490   echo "$as_me:$LINENO: result: $STRIP" >&5
2491 echo "${ECHO_T}$STRIP" >&6
2492 else
2493   echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6
2495 fi
2496
2497 fi
2498 if test -z "$ac_cv_prog_STRIP"; then
2499   ac_ct_STRIP=$STRIP
2500   # Extract the first word of "strip", so it can be a program name with args.
2501 set dummy strip; ac_word=$2
2502 echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2504 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test -n "$ac_ct_STRIP"; then
2508   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517     ac_cv_prog_ac_ct_STRIP="strip"
2518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523
2524   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2525 fi
2526 fi
2527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2528 if test -n "$ac_ct_STRIP"; then
2529   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2530 echo "${ECHO_T}$ac_ct_STRIP" >&6
2531 else
2532   echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6
2534 fi
2535
2536   STRIP=$ac_ct_STRIP
2537 else
2538   STRIP="$ac_cv_prog_STRIP"
2539 fi
2540
2541 if test -n "$ac_tool_prefix"; then
2542   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}ar; ac_word=$2
2544 echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2546 if test "${ac_cv_prog_AR+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   if test -n "$AR"; then
2550   ac_cv_prog_AR="$AR" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557   for ac_exec_ext in '' $ac_executable_extensions; do
2558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559     ac_cv_prog_AR="${ac_tool_prefix}ar"
2560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561     break 2
2562   fi
2563 done
2564 done
2565
2566 fi
2567 fi
2568 AR=$ac_cv_prog_AR
2569 if test -n "$AR"; then
2570   echo "$as_me:$LINENO: result: $AR" >&5
2571 echo "${ECHO_T}$AR" >&6
2572 else
2573   echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2575 fi
2576
2577 fi
2578 if test -z "$ac_cv_prog_AR"; then
2579   ac_ct_AR=$AR
2580   # Extract the first word of "ar", so it can be a program name with args.
2581 set dummy ar; ac_word=$2
2582 echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2584 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   if test -n "$ac_ct_AR"; then
2588   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593   IFS=$as_save_IFS
2594   test -z "$as_dir" && as_dir=.
2595   for ac_exec_ext in '' $ac_executable_extensions; do
2596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597     ac_cv_prog_ac_ct_AR="ar"
2598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599     break 2
2600   fi
2601 done
2602 done
2603
2604   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
2605 fi
2606 fi
2607 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2608 if test -n "$ac_ct_AR"; then
2609   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2610 echo "${ECHO_T}$ac_ct_AR" >&6
2611 else
2612   echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6
2614 fi
2615
2616   AR=$ac_ct_AR
2617 else
2618   AR="$ac_cv_prog_AR"
2619 fi
2620
2621 if test -n "$ac_tool_prefix"; then
2622   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}ld; ac_word=$2
2624 echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2626 if test "${ac_cv_prog_LD+set}" = set; then
2627   echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629   if test -n "$LD"; then
2630   ac_cv_prog_LD="$LD" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635   IFS=$as_save_IFS
2636   test -z "$as_dir" && as_dir=.
2637   for ac_exec_ext in '' $ac_executable_extensions; do
2638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639     ac_cv_prog_LD="${ac_tool_prefix}ld"
2640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641     break 2
2642   fi
2643 done
2644 done
2645
2646 fi
2647 fi
2648 LD=$ac_cv_prog_LD
2649 if test -n "$LD"; then
2650   echo "$as_me:$LINENO: result: $LD" >&5
2651 echo "${ECHO_T}$LD" >&6
2652 else
2653   echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6
2655 fi
2656
2657 fi
2658 if test -z "$ac_cv_prog_LD"; then
2659   ac_ct_LD=$LD
2660   # Extract the first word of "ld", so it can be a program name with args.
2661 set dummy ld; ac_word=$2
2662 echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2664 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   if test -n "$ac_ct_LD"; then
2668   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673   IFS=$as_save_IFS
2674   test -z "$as_dir" && as_dir=.
2675   for ac_exec_ext in '' $ac_executable_extensions; do
2676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2677     ac_cv_prog_ac_ct_LD="ld"
2678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679     break 2
2680   fi
2681 done
2682 done
2683
2684   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD=":"
2685 fi
2686 fi
2687 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2688 if test -n "$ac_ct_LD"; then
2689   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2690 echo "${ECHO_T}$ac_ct_LD" >&6
2691 else
2692   echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6
2694 fi
2695
2696   LD=$ac_ct_LD
2697 else
2698   LD="$ac_cv_prog_LD"
2699 fi
2700
2701
2702 # Extract the first word of "gmake", so it can be a program name with args.
2703 set dummy gmake; ac_word=$2
2704 echo "$as_me:$LINENO: checking for $ac_word" >&5
2705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706 if test "${ac_cv_path_GMAKE+set}" = set; then
2707   echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709   case $GMAKE in
2710   [\\/]* | ?:[\\/]*)
2711   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
2712   ;;
2713   *)
2714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717   IFS=$as_save_IFS
2718   test -z "$as_dir" && as_dir=.
2719   for ac_exec_ext in '' $ac_executable_extensions; do
2720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
2722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723     break 2
2724   fi
2725 done
2726 done
2727
2728   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
2729   ;;
2730 esac
2731 fi
2732 GMAKE=$ac_cv_path_GMAKE
2733
2734 if test -n "$GMAKE"; then
2735   echo "$as_me:$LINENO: result: $GMAKE" >&5
2736 echo "${ECHO_T}$GMAKE" >&6
2737 else
2738   echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740 fi
2741
2742 if test "x$GMAKE" = "xno"; then
2743   echo "$as_me:$LINENO: checking whether GNU make is installed" >&5
2744 echo $ECHO_N "checking whether GNU make is installed... $ECHO_C" >&6
2745 if test "${ac_cv_gmake+set}" = set; then
2746   echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748   if make --version | grep -q -i gnu; then
2749          ac_cv_gmake="yes"
2750        else
2751          echo "This software needs you to install GNU make to compile properly."
2752          echo "You can get it from http://www.gnu.org/."
2753          exit
2754        fi
2755 fi
2756 echo "$as_me:$LINENO: result: $ac_cv_gmake" >&5
2757 echo "${ECHO_T}$ac_cv_gmake" >&6
2758   VLC_MAKE="make"
2759 else
2760   VLC_MAKE="gmake"
2761 fi
2762
2763 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
2764
2765
2766 cat >>confdefs.h <<_ACEOF
2767 #define VLC_PACKAGE "$PACKAGE"
2768 _ACEOF
2769
2770
2771 cat >>confdefs.h <<_ACEOF
2772 #define VLC_VERSION "$VERSION"
2773 _ACEOF
2774
2775 if test -n "$ac_tool_prefix"; then
2776   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2778 echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2780 if test "${ac_cv_prog_RANLIB+set}" = set; then
2781   echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783   if test -n "$RANLIB"; then
2784   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791   for ac_exec_ext in '' $ac_executable_extensions; do
2792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795     break 2
2796   fi
2797 done
2798 done
2799
2800 fi
2801 fi
2802 RANLIB=$ac_cv_prog_RANLIB
2803 if test -n "$RANLIB"; then
2804   echo "$as_me:$LINENO: result: $RANLIB" >&5
2805 echo "${ECHO_T}$RANLIB" >&6
2806 else
2807   echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6
2809 fi
2810
2811 fi
2812 if test -z "$ac_cv_prog_RANLIB"; then
2813   ac_ct_RANLIB=$RANLIB
2814   # Extract the first word of "ranlib", so it can be a program name with args.
2815 set dummy ranlib; ac_word=$2
2816 echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2818 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   if test -n "$ac_ct_RANLIB"; then
2822   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829   for ac_exec_ext in '' $ac_executable_extensions; do
2830   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831     ac_cv_prog_ac_ct_RANLIB="ranlib"
2832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833     break 2
2834   fi
2835 done
2836 done
2837
2838   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2839 fi
2840 fi
2841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2842 if test -n "$ac_ct_RANLIB"; then
2843   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2844 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2845 else
2846   echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2848 fi
2849
2850   RANLIB=$ac_ct_RANLIB
2851 else
2852   RANLIB="$ac_cv_prog_RANLIB"
2853 fi
2854
2855
2856
2857         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2858 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2859 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   ac_check_lib_save_LIBS=$LIBS
2863 LIBS="-lcposix  $LIBS"
2864 cat >conftest.$ac_ext <<_ACEOF
2865 #line $LINENO "configure"
2866 #include "confdefs.h"
2867
2868 /* Override any gcc2 internal prototype to avoid an error.  */
2869 #ifdef __cplusplus
2870 extern "C"
2871 #endif
2872 /* We use char because int might match the return type of a gcc2
2873    builtin and then its argument prototype would still apply.  */
2874 char strerror ();
2875 #ifdef F77_DUMMY_MAIN
2876 #  ifdef __cplusplus
2877      extern "C"
2878 #  endif
2879    int F77_DUMMY_MAIN() { return 1; }
2880 #endif
2881 int
2882 main ()
2883 {
2884 strerror ();
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 rm -f conftest.$ac_objext conftest$ac_exeext
2890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2891   (eval $ac_link) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); } &&
2895          { ac_try='test -s conftest$ac_exeext'
2896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897   (eval $ac_try) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; }; then
2901   ac_cv_lib_cposix_strerror=yes
2902 else
2903   echo "$as_me: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2905 ac_cv_lib_cposix_strerror=no
2906 fi
2907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2908 LIBS=$ac_check_lib_save_LIBS
2909 fi
2910 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2911 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2912 if test $ac_cv_lib_cposix_strerror = yes; then
2913   LIBS="$LIBS -lcposix"
2914 fi
2915
2916
2917
2918
2919 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2920 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2921 if test "${ac_cv_header_stdc+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924   cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 #include "confdefs.h"
2927 #include <stdlib.h>
2928 #include <stdarg.h>
2929 #include <string.h>
2930 #include <float.h>
2931
2932 _ACEOF
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935   ac_status=$?
2936   egrep -v '^ *\+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } >/dev/null; then
2941   if test -s conftest.err; then
2942     ac_cpp_err=$ac_c_preproc_warn_flag
2943   else
2944     ac_cpp_err=
2945   fi
2946 else
2947   ac_cpp_err=yes
2948 fi
2949 if test -z "$ac_cpp_err"; then
2950   ac_cv_header_stdc=yes
2951 else
2952   echo "$as_me: failed program was:" >&5
2953   cat conftest.$ac_ext >&5
2954   ac_cv_header_stdc=no
2955 fi
2956 rm -f conftest.err conftest.$ac_ext
2957
2958 if test $ac_cv_header_stdc = yes; then
2959   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2960   cat >conftest.$ac_ext <<_ACEOF
2961 #line $LINENO "configure"
2962 #include "confdefs.h"
2963 #include <string.h>
2964
2965 _ACEOF
2966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2967   egrep "memchr" >/dev/null 2>&1; then
2968   :
2969 else
2970   ac_cv_header_stdc=no
2971 fi
2972 rm -f conftest*
2973
2974 fi
2975
2976 if test $ac_cv_header_stdc = yes; then
2977   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2978   cat >conftest.$ac_ext <<_ACEOF
2979 #line $LINENO "configure"
2980 #include "confdefs.h"
2981 #include <stdlib.h>
2982
2983 _ACEOF
2984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2985   egrep "free" >/dev/null 2>&1; then
2986   :
2987 else
2988   ac_cv_header_stdc=no
2989 fi
2990 rm -f conftest*
2991
2992 fi
2993
2994 if test $ac_cv_header_stdc = yes; then
2995   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2996   if test "$cross_compiling" = yes; then
2997   :
2998 else
2999   cat >conftest.$ac_ext <<_ACEOF
3000 #line $LINENO "configure"
3001 #include "confdefs.h"
3002 #include <ctype.h>
3003 #if ((' ' & 0x0FF) == 0x020)
3004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3006 #else
3007 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3008                      || ('j' <= (c) && (c) <= 'r') \
3009                      || ('s' <= (c) && (c) <= 'z'))
3010 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3011 #endif
3012
3013 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3014 int
3015 main ()
3016 {
3017   int i;
3018   for (i = 0; i < 256; i++)
3019     if (XOR (islower (i), ISLOWER (i))
3020         || toupper (i) != TOUPPER (i))
3021       exit(2);
3022   exit (0);
3023 }
3024 _ACEOF
3025 rm -f conftest$ac_exeext
3026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3027   (eval $ac_link) 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032   (eval $ac_try) 2>&5
3033   ac_status=$?
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); }; }; then
3036   :
3037 else
3038   echo "$as_me: program exited with status $ac_status" >&5
3039 echo "$as_me: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3041 ( exit $ac_status )
3042 ac_cv_header_stdc=no
3043 fi
3044 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3045 fi
3046 fi
3047 fi
3048 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3049 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3050 if test $ac_cv_header_stdc = yes; then
3051
3052 cat >>confdefs.h <<\_ACEOF
3053 #define STDC_HEADERS 1
3054 _ACEOF
3055
3056 fi
3057
3058 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3059 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3060 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3061   echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063   ac_cv_prog_cc_stdc=no
3064 ac_save_CC=$CC
3065 cat >conftest.$ac_ext <<_ACEOF
3066 #line $LINENO "configure"
3067 #include "confdefs.h"
3068 #include <stdarg.h>
3069 #include <stdio.h>
3070 #include <sys/types.h>
3071 #include <sys/stat.h>
3072 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3073 struct buf { int x; };
3074 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3075 static char *e (p, i)
3076      char **p;
3077      int i;
3078 {
3079   return p[i];
3080 }
3081 static char *f (char * (*g) (char **, int), char **p, ...)
3082 {
3083   char *s;
3084   va_list v;
3085   va_start (v,p);
3086   s = g (p, va_arg (v,int));
3087   va_end (v);
3088   return s;
3089 }
3090 int test (int i, double x);
3091 struct s1 {int (*f) (int a);};
3092 struct s2 {int (*f) (double a);};
3093 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3094 int argc;
3095 char **argv;
3096 #ifdef F77_DUMMY_MAIN
3097 #  ifdef __cplusplus
3098      extern "C"
3099 #  endif
3100    int F77_DUMMY_MAIN() { return 1; }
3101 #endif
3102 int
3103 main ()
3104 {
3105 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3106   ;
3107   return 0;
3108 }
3109 _ACEOF
3110 # Don't try gcc -ansi; that turns off useful extensions and
3111 # breaks some systems' header files.
3112 # AIX                   -qlanglvl=ansi
3113 # Ultrix and OSF/1      -std1
3114 # HP-UX 10.20 and later -Ae
3115 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3116 # SVR4                  -Xc -D__EXTENSIONS__
3117 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3118 do
3119   CC="$ac_save_CC $ac_arg"
3120   rm -f conftest.$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122   (eval $ac_compile) 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); } &&
3126          { ac_try='test -s conftest.$ac_objext'
3127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128   (eval $ac_try) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; }; then
3132   ac_cv_prog_cc_stdc=$ac_arg
3133 break
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3137 fi
3138 rm -f conftest.$ac_objext
3139 done
3140 rm -f conftest.$ac_ext conftest.$ac_objext
3141 CC=$ac_save_CC
3142
3143 fi
3144
3145 case "x$ac_cv_prog_cc_stdc" in
3146   x|xno)
3147     echo "$as_me:$LINENO: result: none needed" >&5
3148 echo "${ECHO_T}none needed" >&6 ;;
3149   *)
3150     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3151 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3152     CC="$CC $ac_cv_prog_cc_stdc" ;;
3153 esac
3154
3155 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3156 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3157 if test "${ac_cv_c_const+set}" = set; then
3158   echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160   cat >conftest.$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3162 #include "confdefs.h"
3163
3164 #ifdef F77_DUMMY_MAIN
3165 #  ifdef __cplusplus
3166      extern "C"
3167 #  endif
3168    int F77_DUMMY_MAIN() { return 1; }
3169 #endif
3170 int
3171 main ()
3172 {
3173 /* FIXME: Include the comments suggested by Paul. */
3174 #ifndef __cplusplus
3175   /* Ultrix mips cc rejects this.  */
3176   typedef int charset[2];
3177   const charset x;
3178   /* SunOS 4.1.1 cc rejects this.  */
3179   char const *const *ccp;
3180   char **p;
3181   /* NEC SVR4.0.2 mips cc rejects this.  */
3182   struct point {int x, y;};
3183   static struct point const zero = {0,0};
3184   /* AIX XL C 1.02.0.0 rejects this.
3185      It does not let you subtract one const X* pointer from another in
3186      an arm of an if-expression whose if-part is not a constant
3187      expression */
3188   const char *g = "string";
3189   ccp = &g + (g ? g-g : 0);
3190   /* HPUX 7.0 cc rejects these. */
3191   ++ccp;
3192   p = (char**) ccp;
3193   ccp = (char const *const *) p;
3194   { /* SCO 3.2v4 cc rejects this.  */
3195     char *t;
3196     char const *s = 0 ? (char *) 0 : (char const *) 0;
3197
3198     *t++ = 0;
3199   }
3200   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3201     int x[] = {25, 17};
3202     const int *foo = &x[0];
3203     ++foo;
3204   }
3205   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3206     typedef const int *iptr;
3207     iptr p = 0;
3208     ++p;
3209   }
3210   { /* AIX XL C 1.02.0.0 rejects this saying
3211        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3212     struct s { int j; const int *ap[3]; };
3213     struct s *b; b->j = 5;
3214   }
3215   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3216     const int foo = 10;
3217   }
3218 #endif
3219
3220   ;
3221   return 0;
3222 }
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226   (eval $ac_compile) 2>&5
3227   ac_status=$?
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } &&
3230          { ac_try='test -s conftest.$ac_objext'
3231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232   (eval $ac_try) 2>&5
3233   ac_status=$?
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); }; }; then
3236   ac_cv_c_const=yes
3237 else
3238   echo "$as_me: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3240 ac_cv_c_const=no
3241 fi
3242 rm -f conftest.$ac_objext conftest.$ac_ext
3243 fi
3244 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3245 echo "${ECHO_T}$ac_cv_c_const" >&6
3246 if test $ac_cv_c_const = no; then
3247
3248 cat >>confdefs.h <<\_ACEOF
3249 #define const
3250 _ACEOF
3251
3252 fi
3253
3254 echo "$as_me:$LINENO: checking for inline" >&5
3255 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3256 if test "${ac_cv_c_inline+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   ac_cv_c_inline=no
3260 for ac_kw in inline __inline__ __inline; do
3261   cat >conftest.$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 #include "confdefs.h"
3264 #ifndef __cplusplus
3265 static $ac_kw int static_foo () {return 0; }
3266 $ac_kw int foo () {return 0; }
3267 #endif
3268
3269 _ACEOF
3270 rm -f conftest.$ac_objext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272   (eval $ac_compile) 2>&5
3273   ac_status=$?
3274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); } &&
3276          { ac_try='test -s conftest.$ac_objext'
3277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278   (eval $ac_try) 2>&5
3279   ac_status=$?
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); }; }; then
3282   ac_cv_c_inline=$ac_kw; break
3283 else
3284   echo "$as_me: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3286 fi
3287 rm -f conftest.$ac_objext conftest.$ac_ext
3288 done
3289
3290 fi
3291 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3292 echo "${ECHO_T}$ac_cv_c_inline" >&6
3293 case $ac_cv_c_inline in
3294   inline | yes) ;;
3295   no)
3296 cat >>confdefs.h <<\_ACEOF
3297 #define inline
3298 _ACEOF
3299  ;;
3300   *)  cat >>confdefs.h <<_ACEOF
3301 #define inline $ac_cv_c_inline
3302 _ACEOF
3303  ;;
3304 esac
3305
3306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3317                   inttypes.h stdint.h unistd.h
3318 do
3319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3320 echo "$as_me:$LINENO: checking for $ac_header" >&5
3321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   cat >conftest.$ac_ext <<_ACEOF
3326 #line $LINENO "configure"
3327 #include "confdefs.h"
3328 $ac_includes_default
3329
3330 #include <$ac_header>
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334   (eval $ac_compile) 2>&5
3335   ac_status=$?
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); } &&
3338          { ac_try='test -s conftest.$ac_objext'
3339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340   (eval $ac_try) 2>&5
3341   ac_status=$?
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); }; }; then
3344   eval "$as_ac_Header=yes"
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3348 eval "$as_ac_Header=no"
3349 fi
3350 rm -f conftest.$ac_objext conftest.$ac_ext
3351 fi
3352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3355   cat >>confdefs.h <<_ACEOF
3356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3357 _ACEOF
3358
3359 fi
3360
3361 done
3362
3363
3364 echo "$as_me:$LINENO: checking for off_t" >&5
3365 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3366 if test "${ac_cv_type_off_t+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369   cat >conftest.$ac_ext <<_ACEOF
3370 #line $LINENO "configure"
3371 #include "confdefs.h"
3372 $ac_includes_default
3373 #ifdef F77_DUMMY_MAIN
3374 #  ifdef __cplusplus
3375      extern "C"
3376 #  endif
3377    int F77_DUMMY_MAIN() { return 1; }
3378 #endif
3379 int
3380 main ()
3381 {
3382 if ((off_t *) 0)
3383   return 0;
3384 if (sizeof (off_t))
3385   return 0;
3386   ;
3387   return 0;
3388 }
3389 _ACEOF
3390 rm -f conftest.$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392   (eval $ac_compile) 2>&5
3393   ac_status=$?
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); } &&
3396          { ac_try='test -s conftest.$ac_objext'
3397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398   (eval $ac_try) 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }; }; then
3402   ac_cv_type_off_t=yes
3403 else
3404   echo "$as_me: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3406 ac_cv_type_off_t=no
3407 fi
3408 rm -f conftest.$ac_objext conftest.$ac_ext
3409 fi
3410 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3411 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3412 if test $ac_cv_type_off_t = yes; then
3413   :
3414 else
3415
3416 cat >>confdefs.h <<_ACEOF
3417 #define off_t long
3418 _ACEOF
3419
3420 fi
3421
3422 echo "$as_me:$LINENO: checking for size_t" >&5
3423 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3424 if test "${ac_cv_type_size_t+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   cat >conftest.$ac_ext <<_ACEOF
3428 #line $LINENO "configure"
3429 #include "confdefs.h"
3430 $ac_includes_default
3431 #ifdef F77_DUMMY_MAIN
3432 #  ifdef __cplusplus
3433      extern "C"
3434 #  endif
3435    int F77_DUMMY_MAIN() { return 1; }
3436 #endif
3437 int
3438 main ()
3439 {
3440 if ((size_t *) 0)
3441   return 0;
3442 if (sizeof (size_t))
3443   return 0;
3444   ;
3445   return 0;
3446 }
3447 _ACEOF
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450   (eval $ac_compile) 2>&5
3451   ac_status=$?
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); } &&
3454          { ac_try='test -s conftest.$ac_objext'
3455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456   (eval $ac_try) 2>&5
3457   ac_status=$?
3458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459   (exit $ac_status); }; }; then
3460   ac_cv_type_size_t=yes
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3464 ac_cv_type_size_t=no
3465 fi
3466 rm -f conftest.$ac_objext conftest.$ac_ext
3467 fi
3468 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3469 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3470 if test $ac_cv_type_size_t = yes; then
3471   :
3472 else
3473
3474 cat >>confdefs.h <<_ACEOF
3475 #define size_t unsigned
3476 _ACEOF
3477
3478 fi
3479
3480 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3481 # for constant arguments.  Useless!
3482 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3483 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3484 if test "${ac_cv_working_alloca_h+set}" = set; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487   cat >conftest.$ac_ext <<_ACEOF
3488 #line $LINENO "configure"
3489 #include "confdefs.h"
3490 #include <alloca.h>
3491 #ifdef F77_DUMMY_MAIN
3492 #  ifdef __cplusplus
3493      extern "C"
3494 #  endif
3495    int F77_DUMMY_MAIN() { return 1; }
3496 #endif
3497 int
3498 main ()
3499 {
3500 char *p = (char *) alloca (2 * sizeof (int));
3501   ;
3502   return 0;
3503 }
3504 _ACEOF
3505 rm -f conftest.$ac_objext conftest$ac_exeext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3507   (eval $ac_link) 2>&5
3508   ac_status=$?
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } &&
3511          { ac_try='test -s conftest$ac_exeext'
3512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513   (eval $ac_try) 2>&5
3514   ac_status=$?
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); }; }; then
3517   ac_cv_working_alloca_h=yes
3518 else
3519   echo "$as_me: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3521 ac_cv_working_alloca_h=no
3522 fi
3523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3524 fi
3525 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3526 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3527 if test $ac_cv_working_alloca_h = yes; then
3528
3529 cat >>confdefs.h <<\_ACEOF
3530 #define HAVE_ALLOCA_H 1
3531 _ACEOF
3532
3533 fi
3534
3535 echo "$as_me:$LINENO: checking for alloca" >&5
3536 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3537 if test "${ac_cv_func_alloca_works+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   cat >conftest.$ac_ext <<_ACEOF
3541 #line $LINENO "configure"
3542 #include "confdefs.h"
3543 #ifdef __GNUC__
3544 # define alloca __builtin_alloca
3545 #else
3546 # ifdef _MSC_VER
3547 #  include <malloc.h>
3548 #  define alloca _alloca
3549 # else
3550 #  if HAVE_ALLOCA_H
3551 #   include <alloca.h>
3552 #  else
3553 #   ifdef _AIX
3554  #pragma alloca
3555 #   else
3556 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3557 char *alloca ();
3558 #    endif
3559 #   endif
3560 #  endif
3561 # endif
3562 #endif
3563
3564 #ifdef F77_DUMMY_MAIN
3565 #  ifdef __cplusplus
3566      extern "C"
3567 #  endif
3568    int F77_DUMMY_MAIN() { return 1; }
3569 #endif
3570 int
3571 main ()
3572 {
3573 char *p = (char *) alloca (1);
3574   ;
3575   return 0;
3576 }
3577 _ACEOF
3578 rm -f conftest.$ac_objext conftest$ac_exeext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3580   (eval $ac_link) 2>&5
3581   ac_status=$?
3582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); } &&
3584          { ac_try='test -s conftest$ac_exeext'
3585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586   (eval $ac_try) 2>&5
3587   ac_status=$?
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); }; }; then
3590   ac_cv_func_alloca_works=yes
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3594 ac_cv_func_alloca_works=no
3595 fi
3596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3597 fi
3598 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3599 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3600
3601 if test $ac_cv_func_alloca_works = yes; then
3602
3603 cat >>confdefs.h <<\_ACEOF
3604 #define HAVE_ALLOCA 1
3605 _ACEOF
3606
3607 else
3608   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3609 # that cause trouble.  Some versions do not even contain alloca or
3610 # contain a buggy version.  If you still want to use their alloca,
3611 # use ar to extract alloca.o from them instead of compiling alloca.c.
3612
3613 ALLOCA=alloca.$ac_objext
3614
3615 cat >>confdefs.h <<\_ACEOF
3616 #define C_ALLOCA 1
3617 _ACEOF
3618
3619
3620 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3621 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3622 if test "${ac_cv_os_cray+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   cat >conftest.$ac_ext <<_ACEOF
3626 #line $LINENO "configure"
3627 #include "confdefs.h"
3628 #if defined(CRAY) && ! defined(CRAY2)
3629 webecray
3630 #else
3631 wenotbecray
3632 #endif
3633
3634 _ACEOF
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636   egrep "webecray" >/dev/null 2>&1; then
3637   ac_cv_os_cray=yes
3638 else
3639   ac_cv_os_cray=no
3640 fi
3641 rm -f conftest*
3642
3643 fi
3644 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3645 echo "${ECHO_T}$ac_cv_os_cray" >&6
3646 if test $ac_cv_os_cray = yes; then
3647   for ac_func in _getb67 GETB67 getb67; do
3648     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3649 echo "$as_me:$LINENO: checking for $ac_func" >&5
3650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3651 if eval "test \"\${$as_ac_var+set}\" = set"; then
3652   echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654   cat >conftest.$ac_ext <<_ACEOF
3655 #line $LINENO "configure"
3656 #include "confdefs.h"
3657 /* System header to define __stub macros and hopefully few prototypes,
3658     which can conflict with char $ac_func (); below.  */
3659 #include <assert.h>
3660 /* Override any gcc2 internal prototype to avoid an error.  */
3661 #ifdef __cplusplus
3662 extern "C"
3663 #endif
3664 /* We use char because int might match the return type of a gcc2
3665    builtin and then its argument prototype would still apply.  */
3666 char $ac_func ();
3667 char (*f) ();
3668
3669 #ifdef F77_DUMMY_MAIN
3670 #  ifdef __cplusplus
3671      extern "C"
3672 #  endif
3673    int F77_DUMMY_MAIN() { return 1; }
3674 #endif
3675 int
3676 main ()
3677 {
3678 /* The GNU C library defines this for functions which it implements
3679     to always fail with ENOSYS.  Some functions are actually named
3680     something starting with __ and the normal name is an alias.  */
3681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3682 choke me
3683 #else
3684 f = $ac_func;
3685 #endif
3686
3687   ;
3688   return 0;
3689 }
3690 _ACEOF
3691 rm -f conftest.$ac_objext conftest$ac_exeext
3692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3693   (eval $ac_link) 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); } &&
3697          { ac_try='test -s conftest$ac_exeext'
3698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699   (eval $ac_try) 2>&5
3700   ac_status=$?
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); }; }; then
3703   eval "$as_ac_var=yes"
3704 else
3705   echo "$as_me: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3707 eval "$as_ac_var=no"
3708 fi
3709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3710 fi
3711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3713 if test `eval echo '${'$as_ac_var'}'` = yes; then
3714
3715 cat >>confdefs.h <<_ACEOF
3716 #define CRAY_STACKSEG_END $ac_func
3717 _ACEOF
3718
3719     break
3720 fi
3721
3722   done
3723 fi
3724
3725 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3726 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3727 if test "${ac_cv_c_stack_direction+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   if test "$cross_compiling" = yes; then
3731   ac_cv_c_stack_direction=0
3732 else
3733   cat >conftest.$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3735 #include "confdefs.h"
3736 int
3737 find_stack_direction ()
3738 {
3739   static char *addr = 0;
3740   auto char dummy;
3741   if (addr == 0)
3742     {
3743       addr = &dummy;
3744       return find_stack_direction ();
3745     }
3746   else
3747     return (&dummy > addr) ? 1 : -1;
3748 }
3749
3750 int
3751 main ()
3752 {
3753   exit (find_stack_direction () < 0);
3754 }
3755 _ACEOF
3756 rm -f conftest$ac_exeext
3757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3758   (eval $ac_link) 2>&5
3759   ac_status=$?
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763   (eval $ac_try) 2>&5
3764   ac_status=$?
3765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766   (exit $ac_status); }; }; then
3767   ac_cv_c_stack_direction=1
3768 else
3769   echo "$as_me: program exited with status $ac_status" >&5
3770 echo "$as_me: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3772 ( exit $ac_status )
3773 ac_cv_c_stack_direction=-1
3774 fi
3775 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3776 fi
3777 fi
3778 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3779 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3780
3781 cat >>confdefs.h <<_ACEOF
3782 #define STACK_DIRECTION $ac_cv_c_stack_direction
3783 _ACEOF
3784
3785
3786 fi
3787
3788
3789
3790 for ac_header in stdlib.h unistd.h
3791 do
3792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3794   echo "$as_me:$LINENO: checking for $ac_header" >&5
3795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797   echo $ECHO_N "(cached) $ECHO_C" >&6
3798 fi
3799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3801 else
3802   # Is the header compilable?
3803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3805 cat >conftest.$ac_ext <<_ACEOF
3806 #line $LINENO "configure"
3807 #include "confdefs.h"
3808 $ac_includes_default
3809 #include <$ac_header>
3810 _ACEOF
3811 rm -f conftest.$ac_objext
3812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3813   (eval $ac_compile) 2>&5
3814   ac_status=$?
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); } &&
3817          { ac_try='test -s conftest.$ac_objext'
3818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819   (eval $ac_try) 2>&5
3820   ac_status=$?
3821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822   (exit $ac_status); }; }; then
3823   ac_header_compiler=yes
3824 else
3825   echo "$as_me: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3827 ac_header_compiler=no
3828 fi
3829 rm -f conftest.$ac_objext conftest.$ac_ext
3830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3831 echo "${ECHO_T}$ac_header_compiler" >&6
3832
3833 # Is the header present?
3834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3836 cat >conftest.$ac_ext <<_ACEOF
3837 #line $LINENO "configure"
3838 #include "confdefs.h"
3839 #include <$ac_header>
3840 _ACEOF
3841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3843   ac_status=$?
3844   egrep -v '^ *\+' conftest.er1 >conftest.err
3845   rm -f conftest.er1
3846   cat conftest.err >&5
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); } >/dev/null; then
3849   if test -s conftest.err; then
3850     ac_cpp_err=$ac_c_preproc_warn_flag
3851   else
3852     ac_cpp_err=
3853   fi
3854 else
3855   ac_cpp_err=yes
3856 fi
3857 if test -z "$ac_cpp_err"; then
3858   ac_header_preproc=yes
3859 else
3860   echo "$as_me: failed program was:" >&5
3861   cat conftest.$ac_ext >&5
3862   ac_header_preproc=no
3863 fi
3864 rm -f conftest.err conftest.$ac_ext
3865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3866 echo "${ECHO_T}$ac_header_preproc" >&6
3867
3868 # So?  What about this header?
3869 case $ac_header_compiler:$ac_header_preproc in
3870   yes:no )
3871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3875   no:yes )
3876     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3878     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3882 esac
3883 echo "$as_me:$LINENO: checking for $ac_header" >&5
3884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   eval "$as_ac_Header=$ac_header_preproc"
3889 fi
3890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3892
3893 fi
3894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3895   cat >>confdefs.h <<_ACEOF
3896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3897 _ACEOF
3898
3899 fi
3900
3901 done
3902
3903
3904 for ac_func in getpagesize
3905 do
3906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3907 echo "$as_me:$LINENO: checking for $ac_func" >&5
3908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3909 if eval "test \"\${$as_ac_var+set}\" = set"; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912   cat >conftest.$ac_ext <<_ACEOF
3913 #line $LINENO "configure"
3914 #include "confdefs.h"
3915 /* System header to define __stub macros and hopefully few prototypes,
3916     which can conflict with char $ac_func (); below.  */
3917 #include <assert.h>
3918 /* Override any gcc2 internal prototype to avoid an error.  */
3919 #ifdef __cplusplus
3920 extern "C"
3921 #endif
3922 /* We use char because int might match the return type of a gcc2
3923    builtin and then its argument prototype would still apply.  */
3924 char $ac_func ();
3925 char (*f) ();
3926
3927 #ifdef F77_DUMMY_MAIN
3928 #  ifdef __cplusplus
3929      extern "C"
3930 #  endif
3931    int F77_DUMMY_MAIN() { return 1; }
3932 #endif
3933 int
3934 main ()
3935 {
3936 /* The GNU C library defines this for functions which it implements
3937     to always fail with ENOSYS.  Some functions are actually named
3938     something starting with __ and the normal name is an alias.  */
3939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3940 choke me
3941 #else
3942 f = $ac_func;
3943 #endif
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest.$ac_objext conftest$ac_exeext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3951   (eval $ac_link) 2>&5
3952   ac_status=$?
3953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954   (exit $ac_status); } &&
3955          { ac_try='test -s conftest$ac_exeext'
3956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957   (eval $ac_try) 2>&5
3958   ac_status=$?
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); }; }; then
3961   eval "$as_ac_var=yes"
3962 else
3963   echo "$as_me: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3965 eval "$as_ac_var=no"
3966 fi
3967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3968 fi
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3971 if test `eval echo '${'$as_ac_var'}'` = yes; then
3972   cat >>confdefs.h <<_ACEOF
3973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3974 _ACEOF
3975
3976 fi
3977 done
3978
3979 echo "$as_me:$LINENO: checking for working mmap" >&5
3980 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3981 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   if test "$cross_compiling" = yes; then
3985   ac_cv_func_mmap_fixed_mapped=no
3986 else
3987   cat >conftest.$ac_ext <<_ACEOF
3988 #line $LINENO "configure"
3989 #include "confdefs.h"
3990 $ac_includes_default
3991 /* malloc might have been renamed as rpl_malloc. */
3992 #undef malloc
3993
3994 /* Thanks to Mike Haertel and Jim Avera for this test.
3995    Here is a matrix of mmap possibilities:
3996         mmap private not fixed
3997         mmap private fixed at somewhere currently unmapped
3998         mmap private fixed at somewhere already mapped
3999         mmap shared not fixed
4000         mmap shared fixed at somewhere currently unmapped
4001         mmap shared fixed at somewhere already mapped
4002    For private mappings, we should verify that changes cannot be read()
4003    back from the file, nor mmap's back from the file at a different
4004    address.  (There have been systems where private was not correctly
4005    implemented like the infamous i386 svr4.0, and systems where the
4006    VM page cache was not coherent with the file system buffer cache
4007    like early versions of FreeBSD and possibly contemporary NetBSD.)
4008    For shared mappings, we should conversely verify that changes get
4009    propagated back to all the places they're supposed to be.
4010
4011    Grep wants private fixed already mapped.
4012    The main things grep needs to know about mmap are:
4013    * does it exist and is it safe to write into the mmap'd area
4014    * how to use it (BSD variants)  */
4015
4016 #include <fcntl.h>
4017 #include <sys/mman.h>
4018
4019 #if !STDC_HEADERS && !HAVE_STDLIB_H
4020 char *malloc ();
4021 #endif
4022
4023 /* This mess was copied from the GNU getpagesize.h.  */
4024 #if !HAVE_GETPAGESIZE
4025 /* Assume that all systems that can run configure have sys/param.h.  */
4026 # if !HAVE_SYS_PARAM_H
4027 #  define HAVE_SYS_PARAM_H 1
4028 # endif
4029
4030 # ifdef _SC_PAGESIZE
4031 #  define getpagesize() sysconf(_SC_PAGESIZE)
4032 # else /* no _SC_PAGESIZE */
4033 #  if HAVE_SYS_PARAM_H
4034 #   include <sys/param.h>
4035 #   ifdef EXEC_PAGESIZE
4036 #    define getpagesize() EXEC_PAGESIZE
4037 #   else /* no EXEC_PAGESIZE */
4038 #    ifdef NBPG
4039 #     define getpagesize() NBPG * CLSIZE
4040 #     ifndef CLSIZE
4041 #      define CLSIZE 1
4042 #     endif /* no CLSIZE */
4043 #    else /* no NBPG */
4044 #     ifdef NBPC
4045 #      define getpagesize() NBPC
4046 #     else /* no NBPC */
4047 #      ifdef PAGESIZE
4048 #       define getpagesize() PAGESIZE
4049 #      endif /* PAGESIZE */
4050 #     endif /* no NBPC */
4051 #    endif /* no NBPG */
4052 #   endif /* no EXEC_PAGESIZE */
4053 #  else /* no HAVE_SYS_PARAM_H */
4054 #   define getpagesize() 8192   /* punt totally */
4055 #  endif /* no HAVE_SYS_PARAM_H */
4056 # endif /* no _SC_PAGESIZE */
4057
4058 #endif /* no HAVE_GETPAGESIZE */
4059
4060 int
4061 main ()
4062 {
4063   char *data, *data2, *data3;
4064   int i, pagesize;
4065   int fd;
4066
4067   pagesize = getpagesize ();
4068
4069   /* First, make a file with some known garbage in it. */
4070   data = (char *) malloc (pagesize);
4071   if (!data)
4072     exit (1);
4073   for (i = 0; i < pagesize; ++i)
4074     *(data + i) = rand ();
4075   umask (0);
4076   fd = creat ("conftest.mmap", 0600);
4077   if (fd < 0)
4078     exit (1);
4079   if (write (fd, data, pagesize) != pagesize)
4080     exit (1);
4081   close (fd);
4082
4083   /* Next, try to mmap the file at a fixed address which already has
4084      something else allocated at it.  If we can, also make sure that
4085      we see the same garbage.  */
4086   fd = open ("conftest.mmap", O_RDWR);
4087   if (fd < 0)
4088     exit (1);
4089   data2 = (char *) malloc (2 * pagesize);
4090   if (!data2)
4091     exit (1);
4092   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4093   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4094                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4095     exit (1);
4096   for (i = 0; i < pagesize; ++i)
4097     if (*(data + i) != *(data2 + i))
4098       exit (1);
4099
4100   /* Finally, make sure that changes to the mapped area do not
4101      percolate back to the file as seen by read().  (This is a bug on
4102      some variants of i386 svr4.0.)  */
4103   for (i = 0; i < pagesize; ++i)
4104     *(data2 + i) = *(data2 + i) + 1;
4105   data3 = (char *) malloc (pagesize);
4106   if (!data3)
4107     exit (1);
4108   if (read (fd, data3, pagesize) != pagesize)
4109     exit (1);
4110   for (i = 0; i < pagesize; ++i)
4111     if (*(data + i) != *(data3 + i))
4112       exit (1);
4113   close (fd);
4114   exit (0);
4115 }
4116 _ACEOF
4117 rm -f conftest$ac_exeext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4119   (eval $ac_link) 2>&5
4120   ac_status=$?
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124   (eval $ac_try) 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; }; then
4128   ac_cv_func_mmap_fixed_mapped=yes
4129 else
4130   echo "$as_me: program exited with status $ac_status" >&5
4131 echo "$as_me: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 ( exit $ac_status )
4134 ac_cv_func_mmap_fixed_mapped=no
4135 fi
4136 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4137 fi
4138 fi
4139 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4140 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4141 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4142
4143 cat >>confdefs.h <<\_ACEOF
4144 #define HAVE_MMAP 1
4145 _ACEOF
4146
4147 fi
4148 rm -f conftest.mmap
4149
4150
4151     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
4152 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4153 if test "${ac_cv_gnu_library_2_1+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   cat >conftest.$ac_ext <<_ACEOF
4157 #line $LINENO "configure"
4158 #include "confdefs.h"
4159
4160 #include <features.h>
4161 #ifdef __GNU_LIBRARY__
4162  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4163   Lucky GNU user
4164  #endif
4165 #endif
4166
4167 _ACEOF
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169   egrep "Lucky GNU user" >/dev/null 2>&1; then
4170   ac_cv_gnu_library_2_1=yes
4171 else
4172   ac_cv_gnu_library_2_1=no
4173 fi
4174 rm -f conftest*
4175
4176
4177
4178 fi
4179 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
4180 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4181
4182     GLIBC21="$ac_cv_gnu_library_2_1"
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
4197 stdlib.h string.h unistd.h sys/param.h
4198 do
4199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4201   echo "$as_me:$LINENO: checking for $ac_header" >&5
4202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 fi
4206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4208 else
4209   # Is the header compilable?
4210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4213 #line $LINENO "configure"
4214 #include "confdefs.h"
4215 $ac_includes_default
4216 #include <$ac_header>
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220   (eval $ac_compile) 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } &&
4224          { ac_try='test -s conftest.$ac_objext'
4225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226   (eval $ac_try) 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); }; }; then
4230   ac_header_compiler=yes
4231 else
4232   echo "$as_me: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 ac_header_compiler=no
4235 fi
4236 rm -f conftest.$ac_objext conftest.$ac_ext
4237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4238 echo "${ECHO_T}$ac_header_compiler" >&6
4239
4240 # Is the header present?
4241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4243 cat >conftest.$ac_ext <<_ACEOF
4244 #line $LINENO "configure"
4245 #include "confdefs.h"
4246 #include <$ac_header>
4247 _ACEOF
4248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4250   ac_status=$?
4251   egrep -v '^ *\+' conftest.er1 >conftest.err
4252   rm -f conftest.er1
4253   cat conftest.err >&5
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); } >/dev/null; then
4256   if test -s conftest.err; then
4257     ac_cpp_err=$ac_c_preproc_warn_flag
4258   else
4259     ac_cpp_err=
4260   fi
4261 else
4262   ac_cpp_err=yes
4263 fi
4264 if test -z "$ac_cpp_err"; then
4265   ac_header_preproc=yes
4266 else
4267   echo "$as_me: failed program was:" >&5
4268   cat conftest.$ac_ext >&5
4269   ac_header_preproc=no
4270 fi
4271 rm -f conftest.err conftest.$ac_ext
4272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4273 echo "${ECHO_T}$ac_header_preproc" >&6
4274
4275 # So?  What about this header?
4276 case $ac_header_compiler:$ac_header_preproc in
4277   yes:no )
4278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4282   no:yes )
4283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4285     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4287     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4289 esac
4290 echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   eval "$as_ac_Header=$ac_header_preproc"
4296 fi
4297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4299
4300 fi
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302   cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304 _ACEOF
4305
4306 fi
4307
4308 done
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
4332 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
4333 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
4334 do
4335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4336 echo "$as_me:$LINENO: checking for $ac_func" >&5
4337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4338 if eval "test \"\${$as_ac_var+set}\" = set"; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   cat >conftest.$ac_ext <<_ACEOF
4342 #line $LINENO "configure"
4343 #include "confdefs.h"
4344 /* System header to define __stub macros and hopefully few prototypes,
4345     which can conflict with char $ac_func (); below.  */
4346 #include <assert.h>
4347 /* Override any gcc2 internal prototype to avoid an error.  */
4348 #ifdef __cplusplus
4349 extern "C"
4350 #endif
4351 /* We use char because int might match the return type of a gcc2
4352    builtin and then its argument prototype would still apply.  */
4353 char $ac_func ();
4354 char (*f) ();
4355
4356 #ifdef F77_DUMMY_MAIN
4357 #  ifdef __cplusplus
4358      extern "C"
4359 #  endif
4360    int F77_DUMMY_MAIN() { return 1; }
4361 #endif
4362 int
4363 main ()
4364 {
4365 /* The GNU C library defines this for functions which it implements
4366     to always fail with ENOSYS.  Some functions are actually named
4367     something starting with __ and the normal name is an alias.  */
4368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4369 choke me
4370 #else
4371 f = $ac_func;
4372 #endif
4373
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 rm -f conftest.$ac_objext conftest$ac_exeext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380   (eval $ac_link) 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } &&
4384          { ac_try='test -s conftest$ac_exeext'
4385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386   (eval $ac_try) 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); }; }; then
4390   eval "$as_ac_var=yes"
4391 else
4392   echo "$as_me: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4394 eval "$as_ac_var=no"
4395 fi
4396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4397 fi
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4400 if test `eval echo '${'$as_ac_var'}'` = yes; then
4401   cat >>confdefs.h <<_ACEOF
4402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4403 _ACEOF
4404
4405 fi
4406 done
4407
4408
4409
4410
4411
4412 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4413 if test "${with_libiconv_prefix+set}" = set; then
4414   withval="$with_libiconv_prefix"
4415
4416     for dir in `echo "$withval" | tr : ' '`; do
4417       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
4418       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
4419     done
4420
4421 fi;
4422
4423   echo "$as_me:$LINENO: checking for iconv" >&5
4424 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
4425 if test "${am_cv_func_iconv+set}" = set; then
4426   echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428
4429     am_cv_func_iconv="no, consider installing GNU libiconv"
4430     am_cv_lib_iconv=no
4431     cat >conftest.$ac_ext <<_ACEOF
4432 #line $LINENO "configure"
4433 #include "confdefs.h"
4434 #include <stdlib.h>
4435 #include <iconv.h>
4436 #ifdef F77_DUMMY_MAIN
4437 #  ifdef __cplusplus
4438      extern "C"
4439 #  endif
4440    int F77_DUMMY_MAIN() { return 1; }
4441 #endif
4442 int
4443 main ()
4444 {
4445 iconv_t cd = iconv_open("","");
4446        iconv(cd,NULL,NULL,NULL,NULL);
4447        iconv_close(cd);
4448   ;
4449   return 0;
4450 }
4451 _ACEOF
4452 rm -f conftest.$ac_objext conftest$ac_exeext
4453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4454   (eval $ac_link) 2>&5
4455   ac_status=$?
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); } &&
4458          { ac_try='test -s conftest$ac_exeext'
4459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460   (eval $ac_try) 2>&5
4461   ac_status=$?
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); }; }; then
4464   am_cv_func_iconv=yes
4465 else
4466   echo "$as_me: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4468 fi
4469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4470     if test "$am_cv_func_iconv" != yes; then
4471       am_save_LIBS="$LIBS"
4472       LIBS="$LIBS -liconv"
4473       cat >conftest.$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4475 #include "confdefs.h"
4476 #include <stdlib.h>
4477 #include <iconv.h>
4478 #ifdef F77_DUMMY_MAIN
4479 #  ifdef __cplusplus
4480      extern "C"
4481 #  endif
4482    int F77_DUMMY_MAIN() { return 1; }
4483 #endif
4484 int
4485 main ()
4486 {
4487 iconv_t cd = iconv_open("","");
4488          iconv(cd,NULL,NULL,NULL,NULL);
4489          iconv_close(cd);
4490   ;
4491   return 0;
4492 }
4493 _ACEOF
4494 rm -f conftest.$ac_objext conftest$ac_exeext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4496   (eval $ac_link) 2>&5
4497   ac_status=$?
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); } &&
4500          { ac_try='test -s conftest$ac_exeext'
4501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502   (eval $ac_try) 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; }; then
4506   am_cv_lib_iconv=yes
4507         am_cv_func_iconv=yes
4508 else
4509   echo "$as_me: failed program was:" >&5
4510 cat conftest.$ac_ext >&5
4511 fi
4512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4513       LIBS="$am_save_LIBS"
4514     fi
4515
4516 fi
4517 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4518 echo "${ECHO_T}$am_cv_func_iconv" >&6
4519   if test "$am_cv_func_iconv" = yes; then
4520
4521 cat >>confdefs.h <<\_ACEOF
4522 #define HAVE_ICONV 1
4523 _ACEOF
4524
4525     echo "$as_me:$LINENO: checking for iconv declaration" >&5
4526 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
4527     if test "${am_cv_proto_iconv+set}" = set; then
4528   echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530
4531       cat >conftest.$ac_ext <<_ACEOF
4532 #line $LINENO "configure"
4533 #include "confdefs.h"
4534
4535 #include <stdlib.h>
4536 #include <iconv.h>
4537 extern
4538 #ifdef __cplusplus
4539 "C"
4540 #endif
4541 #if defined(__STDC__) || defined(__cplusplus)
4542 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4543 #else
4544 size_t iconv();
4545 #endif
4546
4547 #ifdef F77_DUMMY_MAIN
4548 #  ifdef __cplusplus
4549      extern "C"
4550 #  endif
4551    int F77_DUMMY_MAIN() { return 1; }
4552 #endif
4553 int
4554 main ()
4555 {
4556
4557   ;
4558   return 0;
4559 }
4560 _ACEOF
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563   (eval $ac_compile) 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); } &&
4567          { ac_try='test -s conftest.$ac_objext'
4568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569   (eval $ac_try) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; }; then
4573   am_cv_proto_iconv_arg1=""
4574 else
4575   echo "$as_me: failed program was:" >&5
4576 cat conftest.$ac_ext >&5
4577 am_cv_proto_iconv_arg1="const"
4578 fi
4579 rm -f conftest.$ac_objext conftest.$ac_ext
4580       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
4581 fi
4582
4583     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4584     echo "$as_me:$LINENO: result: ${ac_t:-
4585          }$am_cv_proto_iconv" >&5
4586 echo "${ECHO_T}${ac_t:-
4587          }$am_cv_proto_iconv" >&6
4588
4589 cat >>confdefs.h <<_ACEOF
4590 #define ICONV_CONST $am_cv_proto_iconv_arg1
4591 _ACEOF
4592
4593   fi
4594   LIBICONV=
4595   if test "$am_cv_lib_iconv" = yes; then
4596     LIBICONV="-liconv"
4597   fi
4598
4599
4600
4601   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
4602 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4603 if test "${am_cv_langinfo_codeset+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   cat >conftest.$ac_ext <<_ACEOF
4607 #line $LINENO "configure"
4608 #include "confdefs.h"
4609 #include <langinfo.h>
4610 #ifdef F77_DUMMY_MAIN
4611 #  ifdef __cplusplus
4612      extern "C"
4613 #  endif
4614    int F77_DUMMY_MAIN() { return 1; }
4615 #endif
4616 int
4617 main ()
4618 {
4619 char* cs = nl_langinfo(CODESET);
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624 rm -f conftest.$ac_objext conftest$ac_exeext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4626   (eval $ac_link) 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); } &&
4630          { ac_try='test -s conftest$ac_exeext'
4631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632   (eval $ac_try) 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); }; }; then
4636   am_cv_langinfo_codeset=yes
4637 else
4638   echo "$as_me: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 am_cv_langinfo_codeset=no
4641 fi
4642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4643
4644 fi
4645 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
4646 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4647   if test $am_cv_langinfo_codeset = yes; then
4648
4649 cat >>confdefs.h <<\_ACEOF
4650 #define HAVE_LANGINFO_CODESET 1
4651 _ACEOF
4652
4653   fi
4654
4655    if test $ac_cv_header_locale_h = yes; then
4656     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4657 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4658 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   cat >conftest.$ac_ext <<_ACEOF
4662 #line $LINENO "configure"
4663 #include "confdefs.h"
4664 #include <locale.h>
4665 #ifdef F77_DUMMY_MAIN
4666 #  ifdef __cplusplus
4667      extern "C"
4668 #  endif
4669    int F77_DUMMY_MAIN() { return 1; }
4670 #endif
4671 int
4672 main ()
4673 {
4674 return LC_MESSAGES
4675   ;
4676   return 0;
4677 }
4678 _ACEOF
4679 rm -f conftest.$ac_objext conftest$ac_exeext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681   (eval $ac_link) 2>&5
4682   ac_status=$?
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); } &&
4685          { ac_try='test -s conftest$ac_exeext'
4686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687   (eval $ac_try) 2>&5
4688   ac_status=$?
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); }; }; then
4691   am_cv_val_LC_MESSAGES=yes
4692 else
4693   echo "$as_me: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4695 am_cv_val_LC_MESSAGES=no
4696 fi
4697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4698 fi
4699 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4700 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4701     if test $am_cv_val_LC_MESSAGES = yes; then
4702
4703 cat >>confdefs.h <<\_ACEOF
4704 #define HAVE_LC_MESSAGES 1
4705 _ACEOF
4706
4707     fi
4708   fi
4709    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4710 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4711         # Check whether --enable-nls or --disable-nls was given.
4712 if test "${enable_nls+set}" = set; then
4713   enableval="$enable_nls"
4714   USE_NLS=$enableval
4715 else
4716   USE_NLS=yes
4717 fi;
4718     echo "$as_me:$LINENO: result: $USE_NLS" >&5
4719 echo "${ECHO_T}$USE_NLS" >&6
4720
4721
4722     BUILD_INCLUDED_LIBINTL=no
4723     USE_INCLUDED_LIBINTL=no
4724     INTLLIBS=
4725
4726         if test "$USE_NLS" = "yes"; then
4727
4728 cat >>confdefs.h <<\_ACEOF
4729 #define ENABLE_NLS 1
4730 _ACEOF
4731
4732       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4733 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4734
4735 # Check whether --with-included-gettext or --without-included-gettext was given.
4736 if test "${with_included_gettext+set}" = set; then
4737   withval="$with_included_gettext"
4738   nls_cv_force_use_gnu_gettext=$withval
4739 else
4740   nls_cv_force_use_gnu_gettext=no
4741 fi;
4742       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4743 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4744
4745       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4746       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4747                                 CATOBJEXT=NONE
4748
4749
4750
4751
4752         if test "${ac_cv_header_libintl_h+set}" = set; then
4753   echo "$as_me:$LINENO: checking for libintl.h" >&5
4754 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4755 if test "${ac_cv_header_libintl_h+set}" = set; then
4756   echo $ECHO_N "(cached) $ECHO_C" >&6
4757 fi
4758 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4759 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4760 else
4761   # Is the header compilable?
4762 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4763 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4764 cat >conftest.$ac_ext <<_ACEOF
4765 #line $LINENO "configure"
4766 #include "confdefs.h"
4767 $ac_includes_default
4768 #include <libintl.h>
4769 _ACEOF
4770 rm -f conftest.$ac_objext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4772   (eval $ac_compile) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); } &&
4776          { ac_try='test -s conftest.$ac_objext'
4777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778   (eval $ac_try) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; }; then
4782   ac_header_compiler=yes
4783 else
4784   echo "$as_me: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4786 ac_header_compiler=no
4787 fi
4788 rm -f conftest.$ac_objext conftest.$ac_ext
4789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4790 echo "${ECHO_T}$ac_header_compiler" >&6
4791
4792 # Is the header present?
4793 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4794 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4795 cat >conftest.$ac_ext <<_ACEOF
4796 #line $LINENO "configure"
4797 #include "confdefs.h"
4798 #include <libintl.h>
4799 _ACEOF
4800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4802   ac_status=$?
4803   egrep -v '^ *\+' conftest.er1 >conftest.err
4804   rm -f conftest.er1
4805   cat conftest.err >&5
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); } >/dev/null; then
4808   if test -s conftest.err; then
4809     ac_cpp_err=$ac_c_preproc_warn_flag
4810   else
4811     ac_cpp_err=
4812   fi
4813 else
4814   ac_cpp_err=yes
4815 fi
4816 if test -z "$ac_cpp_err"; then
4817   ac_header_preproc=yes
4818 else
4819   echo "$as_me: failed program was:" >&5
4820   cat conftest.$ac_ext >&5
4821   ac_header_preproc=no
4822 fi
4823 rm -f conftest.err conftest.$ac_ext
4824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4825 echo "${ECHO_T}$ac_header_preproc" >&6
4826
4827 # So?  What about this header?
4828 case $ac_header_compiler:$ac_header_preproc in
4829   yes:no )
4830     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4831 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4832     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4833 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4834   no:yes )
4835     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4836 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4837     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4838 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4839     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4840 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4841 esac
4842 echo "$as_me:$LINENO: checking for libintl.h" >&5
4843 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4844 if test "${ac_cv_header_libintl_h+set}" = set; then
4845   echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847   ac_cv_header_libintl_h=$ac_header_preproc
4848 fi
4849 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4850 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4851
4852 fi
4853 if test $ac_cv_header_libintl_h = yes; then
4854   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4855 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
4856 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859   cat >conftest.$ac_ext <<_ACEOF
4860 #line $LINENO "configure"
4861 #include "confdefs.h"
4862 #include <libintl.h>
4863 extern int _nl_msg_cat_cntr;
4864 #ifdef F77_DUMMY_MAIN
4865 #  ifdef __cplusplus
4866      extern "C"
4867 #  endif
4868    int F77_DUMMY_MAIN() { return 1; }
4869 #endif
4870 int
4871 main ()
4872 {
4873 bindtextdomain ("", "");
4874 return (int) gettext ("") + _nl_msg_cat_cntr
4875   ;
4876   return 0;
4877 }
4878 _ACEOF
4879 rm -f conftest.$ac_objext conftest$ac_exeext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881   (eval $ac_link) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); } &&
4885          { ac_try='test -s conftest$ac_exeext'
4886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887   (eval $ac_try) 2>&5
4888   ac_status=$?
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); }; }; then
4891   gt_cv_func_gnugettext1_libc=yes
4892 else
4893   echo "$as_me: failed program was:" >&5
4894 cat conftest.$ac_ext >&5
4895 gt_cv_func_gnugettext1_libc=no
4896 fi
4897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4898 fi
4899 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4900 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
4901
4902            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4903              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4904 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4905 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   gt_save_LIBS="$LIBS"
4909                 LIBS="$LIBS -lintl $LIBICONV"
4910                 cat >conftest.$ac_ext <<_ACEOF
4911 #line $LINENO "configure"
4912 #include "confdefs.h"
4913 #include <libintl.h>
4914 extern int _nl_msg_cat_cntr;
4915 #ifdef F77_DUMMY_MAIN
4916 #  ifdef __cplusplus
4917      extern "C"
4918 #  endif
4919    int F77_DUMMY_MAIN() { return 1; }
4920 #endif
4921 int
4922 main ()
4923 {
4924 bindtextdomain ("", "");
4925 return (int) gettext ("") + _nl_msg_cat_cntr
4926   ;
4927   return 0;
4928 }
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932   (eval $ac_link) 2>&5
4933   ac_status=$?
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); } &&
4936          { ac_try='test -s conftest$ac_exeext'
4937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938   (eval $ac_try) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); }; }; then
4942   gt_cv_func_gnugettext1_libintl=yes
4943 else
4944   echo "$as_me: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4946 gt_cv_func_gnugettext1_libintl=no
4947 fi
4948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4949                 LIBS="$gt_save_LIBS"
4950 fi
4951 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
4952 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
4953            fi
4954
4955                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4956               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4957                    && test "$PACKAGE" != gettext; }; then
4958
4959 cat >>confdefs.h <<\_ACEOF
4960 #define HAVE_GETTEXT 1
4961 _ACEOF
4962
4963
4964              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4965                                        INTLLIBS="-lintl $LIBICONV"
4966              fi
4967
4968              gt_save_LIBS="$LIBS"
4969              LIBS="$LIBS $INTLLIBS"
4970
4971 for ac_func in dcgettext
4972 do
4973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4974 echo "$as_me:$LINENO: checking for $ac_func" >&5
4975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4976 if eval "test \"\${$as_ac_var+set}\" = set"; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979   cat >conftest.$ac_ext <<_ACEOF
4980 #line $LINENO "configure"
4981 #include "confdefs.h"
4982 /* System header to define __stub macros and hopefully few prototypes,
4983     which can conflict with char $ac_func (); below.  */
4984 #include <assert.h>
4985 /* Override any gcc2 internal prototype to avoid an error.  */
4986 #ifdef __cplusplus
4987 extern "C"
4988 #endif
4989 /* We use char because int might match the return type of a gcc2
4990    builtin and then its argument prototype would still apply.  */
4991 char $ac_func ();
4992 char (*f) ();
4993
4994 #ifdef F77_DUMMY_MAIN
4995 #  ifdef __cplusplus
4996      extern "C"
4997 #  endif
4998    int F77_DUMMY_MAIN() { return 1; }
4999 #endif
5000 int
5001 main ()
5002 {
5003 /* The GNU C library defines this for functions which it implements
5004     to always fail with ENOSYS.  Some functions are actually named
5005     something starting with __ and the normal name is an alias.  */
5006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5007 choke me
5008 #else
5009 f = $ac_func;
5010 #endif
5011
5012   ;
5013   return 0;
5014 }
5015 _ACEOF
5016 rm -f conftest.$ac_objext conftest$ac_exeext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018   (eval $ac_link) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); } &&
5022          { ac_try='test -s conftest$ac_exeext'
5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; }; then
5028   eval "$as_ac_var=yes"
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5032 eval "$as_ac_var=no"
5033 fi
5034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5035 fi
5036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5038 if test `eval echo '${'$as_ac_var'}'` = yes; then
5039   cat >>confdefs.h <<_ACEOF
5040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5041 _ACEOF
5042
5043 fi
5044 done
5045
5046              LIBS="$gt_save_LIBS"
5047
5048                      # Extract the first word of "msgfmt", so it can be a program name with args.
5049 set dummy msgfmt; ac_word=$2
5050 echo "$as_me:$LINENO: checking for $ac_word" >&5
5051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5052 if test "${ac_cv_path_MSGFMT+set}" = set; then
5053   echo $ECHO_N "(cached) $ECHO_C" >&6
5054 else
5055   case "$MSGFMT" in
5056   /*)
5057   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5058   ;;
5059   *)
5060   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5061   for ac_dir in $PATH; do
5062     test -z "$ac_dir" && ac_dir=.
5063     if test -f $ac_dir/$ac_word; then
5064       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
5065         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5066         break
5067       fi
5068     fi
5069   done
5070   IFS="$ac_save_ifs"
5071   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5072   ;;
5073 esac
5074 fi
5075 MSGFMT="$ac_cv_path_MSGFMT"
5076 if test "$MSGFMT" != ":"; then
5077   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5078 echo "${ECHO_T}$MSGFMT" >&6
5079 else
5080   echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6
5082 fi
5083
5084              # Extract the first word of "gmsgfmt", so it can be a program name with args.
5085 set dummy gmsgfmt; ac_word=$2
5086 echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5088 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5089   echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091   case $GMSGFMT in
5092   [\\/]* | ?:[\\/]*)
5093   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5094   ;;
5095   *)
5096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101   for ac_exec_ext in '' $ac_executable_extensions; do
5102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108 done
5109
5110   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5111   ;;
5112 esac
5113 fi
5114 GMSGFMT=$ac_cv_path_GMSGFMT
5115
5116 if test -n "$GMSGFMT"; then
5117   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5118 echo "${ECHO_T}$GMSGFMT" >&6
5119 else
5120   echo "$as_me:$LINENO: result: no" >&5
5121 echo "${ECHO_T}no" >&6
5122 fi
5123
5124
5125                      # Extract the first word of "xgettext", so it can be a program name with args.
5126 set dummy xgettext; ac_word=$2
5127 echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5130   echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132   case "$XGETTEXT" in
5133   /*)
5134   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5135   ;;
5136   *)
5137   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5138   for ac_dir in $PATH; do
5139     test -z "$ac_dir" && ac_dir=.
5140     if test -f $ac_dir/$ac_word; then
5141       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
5142         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5143         break
5144       fi
5145     fi
5146   done
5147   IFS="$ac_save_ifs"
5148   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5149   ;;
5150 esac
5151 fi
5152 XGETTEXT="$ac_cv_path_XGETTEXT"
5153 if test "$XGETTEXT" != ":"; then
5154   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5155 echo "${ECHO_T}$XGETTEXT" >&6
5156 else
5157   echo "$as_me:$LINENO: result: no" >&5
5158 echo "${ECHO_T}no" >&6
5159 fi
5160
5161
5162              CATOBJEXT=.gmo
5163            fi
5164
5165 fi
5166
5167
5168
5169         if test "$CATOBJEXT" = "NONE"; then
5170                           nls_cv_use_gnu_gettext=yes
5171         fi
5172       fi
5173
5174       if test "$nls_cv_use_gnu_gettext" = "yes"; then
5175                 INTLOBJS="\$(GETTOBJS)"
5176         # Extract the first word of "msgfmt", so it can be a program name with args.
5177 set dummy msgfmt; ac_word=$2
5178 echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5180 if test "${ac_cv_path_MSGFMT+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   case "$MSGFMT" in
5184   /*)
5185   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5186   ;;
5187   *)
5188   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5189   for ac_dir in $PATH; do
5190     test -z "$ac_dir" && ac_dir=.
5191     if test -f $ac_dir/$ac_word; then
5192       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
5193         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5194         break
5195       fi
5196     fi
5197   done
5198   IFS="$ac_save_ifs"
5199   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5200   ;;
5201 esac
5202 fi
5203 MSGFMT="$ac_cv_path_MSGFMT"
5204 if test "$MSGFMT" != ":"; then
5205   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5206 echo "${ECHO_T}$MSGFMT" >&6
5207 else
5208   echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5210 fi
5211
5212         # Extract the first word of "gmsgfmt", so it can be a program name with args.
5213 set dummy gmsgfmt; ac_word=$2
5214 echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5217   echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219   case $GMSGFMT in
5220   [\\/]* | ?:[\\/]*)
5221   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5222   ;;
5223   *)
5224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229   for ac_exec_ext in '' $ac_executable_extensions; do
5230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236 done
5237
5238   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5239   ;;
5240 esac
5241 fi
5242 GMSGFMT=$ac_cv_path_GMSGFMT
5243
5244 if test -n "$GMSGFMT"; then
5245   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5246 echo "${ECHO_T}$GMSGFMT" >&6
5247 else
5248   echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6
5250 fi
5251
5252         # Extract the first word of "xgettext", so it can be a program name with args.
5253 set dummy xgettext; ac_word=$2
5254 echo "$as_me:$LINENO: checking for $ac_word" >&5
5255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5256 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   case "$XGETTEXT" in
5260   /*)
5261   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5262   ;;
5263   *)
5264   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5265   for ac_dir in $PATH; do
5266     test -z "$ac_dir" && ac_dir=.
5267     if test -f $ac_dir/$ac_word; then
5268       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
5269         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5270         break
5271       fi
5272     fi
5273   done
5274   IFS="$ac_save_ifs"
5275   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5276   ;;
5277 esac
5278 fi
5279 XGETTEXT="$ac_cv_path_XGETTEXT"
5280 if test "$XGETTEXT" != ":"; then
5281   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5282 echo "${ECHO_T}$XGETTEXT" >&6
5283 else
5284   echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6
5286 fi
5287
5288
5289         BUILD_INCLUDED_LIBINTL=yes
5290         USE_INCLUDED_LIBINTL=yes
5291         CATOBJEXT=.gmo
5292         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
5293         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
5294       fi
5295
5296                   if test "$GMSGFMT" != ":"; then
5297                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
5298           : ;
5299         else
5300           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
5301 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
5302           GMSGFMT=":"
5303         fi
5304       fi
5305
5306                   if test "$XGETTEXT" != ":"; then
5307                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
5308           : ;
5309         else
5310           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5311 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5312           XGETTEXT=":"
5313         fi
5314       fi
5315
5316             POSUB=po
5317     fi
5318     ac_config_commands="$ac_config_commands default-1"
5319
5320
5321
5322             if test "$PACKAGE" = gettext; then
5323       BUILD_INCLUDED_LIBINTL=yes
5324     fi
5325
5326                                             for ac_prog in bison
5327 do
5328   # Extract the first word of "$ac_prog", so it can be a program name with args.
5329 set dummy $ac_prog; ac_word=$2
5330 echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5332 if test "${ac_cv_prog_INTLBISON+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   if test -n "$INTLBISON"; then
5336   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341   IFS=$as_save_IFS
5342   test -z "$as_dir" && as_dir=.
5343   for ac_exec_ext in '' $ac_executable_extensions; do
5344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345     ac_cv_prog_INTLBISON="$ac_prog"
5346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347     break 2
5348   fi
5349 done
5350 done
5351
5352 fi
5353 fi
5354 INTLBISON=$ac_cv_prog_INTLBISON
5355 if test -n "$INTLBISON"; then
5356   echo "$as_me:$LINENO: result: $INTLBISON" >&5
5357 echo "${ECHO_T}$INTLBISON" >&6
5358 else
5359   echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6
5361 fi
5362
5363   test -n "$INTLBISON" && break
5364 done
5365
5366     if test -z "$INTLBISON"; then
5367       ac_verc_fail=yes
5368     else
5369             echo "$as_me:$LINENO: checking version of bison" >&5
5370 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
5371       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5372       case $ac_prog_version in
5373         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5374         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5375            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5376         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5377       esac
5378       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5379 echo "${ECHO_T}$ac_prog_version" >&6
5380     fi
5381     if test $ac_verc_fail = yes; then
5382       INTLBISON=:
5383     fi
5384
5385                 for lang in $ALL_LINGUAS; do
5386       GMOFILES="$GMOFILES $lang.gmo"
5387       POFILES="$POFILES $lang.po"
5388     done
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400         nls_cv_header_intl=
5401     nls_cv_header_libgt=
5402
5403         DATADIRNAME=share
5404
5405
5406         INSTOBJEXT=.mo
5407
5408
5409         GENCAT=gencat
5410
5411
5412
5413    if test "x$CATOBJEXT" != "x"; then
5414      if test "x$ALL_LINGUAS" = "x"; then
5415        LINGUAS=
5416      else
5417        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5418 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5419        NEW_LINGUAS=
5420        for presentlang in $ALL_LINGUAS; do
5421          useit=no
5422          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
5423            # Use the presentlang catalog if desiredlang is
5424            #   a. equal to presentlang, or
5425            #   b. a variant of presentlang (because in this case,
5426            #      presentlang can be used as a fallback for messages
5427            #      which are not translated in the desiredlang catalog).
5428            case "$desiredlang" in
5429              "$presentlang"*) useit=yes;;
5430            esac
5431          done
5432          if test $useit = yes; then
5433            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5434          fi
5435        done
5436        LINGUAS=$NEW_LINGUAS
5437        echo "$as_me:$LINENO: result: $LINGUAS" >&5
5438 echo "${ECHO_T}$LINGUAS" >&6
5439      fi
5440
5441           if test -n "$LINGUAS"; then
5442        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5443      fi
5444    fi
5445
5446             MKINSTALLDIRS=
5447    if test -n "$ac_aux_dir"; then
5448      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5449    fi
5450    if test -z "$MKINSTALLDIRS"; then
5451      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5452    fi
5453
5454
5455       INTL_LIBTOOL_SUFFIX_PREFIX=
5456
5457
5458
5459 # Find a good install program.  We prefer a C program (faster),
5460 # so one script is as good as another.  But avoid the broken or
5461 # incompatible versions:
5462 # SysV /etc/install, /usr/sbin/install
5463 # SunOS /usr/etc/install
5464 # IRIX /sbin/install
5465 # AIX /bin/install
5466 # AmigaOS /C/install, which installs bootblocks on floppy discs
5467 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5468 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5469 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5470 # ./install, which can be erroneously created by make from ./install.sh.
5471 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5472 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5473 if test -z "$INSTALL"; then
5474 if test "${ac_cv_path_install+set}" = set; then
5475   echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5479 do
5480   IFS=$as_save_IFS
5481   test -z "$as_dir" && as_dir=.
5482   # Account for people who put trailing slashes in PATH elements.
5483 case $as_dir/ in
5484   ./ | .// | /cC/* | \
5485   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5486   /usr/ucb/* ) ;;
5487   *)
5488     # OSF1 and SCO ODT 3.0 have their own names for install.
5489     # Don't use installbsd from OSF since it installs stuff as root
5490     # by default.
5491     for ac_prog in ginstall scoinst install; do
5492       for ac_exec_ext in '' $ac_executable_extensions; do
5493         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5494           if test $ac_prog = install &&
5495             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5496             # AIX install.  It has an incompatible calling convention.
5497             :
5498           elif test $ac_prog = install &&
5499             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5500             # program-specific install script used by HP pwplus--don't use.
5501             :
5502           else
5503             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5504             break 3
5505           fi
5506         fi
5507       done
5508     done
5509     ;;
5510 esac
5511 done
5512
5513
5514 fi
5515   if test "${ac_cv_path_install+set}" = set; then
5516     INSTALL=$ac_cv_path_install
5517   else
5518     # As a last resort, use the slow shell script.  We don't cache a
5519     # path for INSTALL within a source directory, because that will
5520     # break other packages using the cache if that directory is
5521     # removed, or if the path is relative.
5522     INSTALL=$ac_install_sh
5523   fi
5524 fi
5525 echo "$as_me:$LINENO: result: $INSTALL" >&5
5526 echo "${ECHO_T}$INSTALL" >&6
5527
5528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5529 # It thinks the first close brace ends the variable substitution.
5530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5531
5532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5533
5534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5535
5536
5537 case x"${target_os}" in
5538   x)
5539     SYS=unknown
5540     ;;
5541   xlinux*)
5542     SYS=linux
5543     ;;
5544   xbsdi*)
5545     SYS=bsdi
5546     save_CFLAGS="${save_CFLAGS} -pthread"
5547     dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
5548     vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
5549     ;;
5550   x*bsd*)
5551     SYS="${target_os}"
5552     save_CFLAGS="${save_CFLAGS} -pthread"
5553     ;;
5554   xdarwin*)
5555     SYS=darwin
5556     save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
5557     ;;
5558   x*mingw32*)
5559     SYS=mingw32
5560     if test -n "$ac_tool_prefix"; then
5561   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}windres; ac_word=$2
5563 echo "$as_me:$LINENO: checking for $ac_word" >&5
5564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5565 if test "${ac_cv_prog_WINDRES+set}" = set; then
5566   echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568   if test -n "$WINDRES"; then
5569   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574   IFS=$as_save_IFS
5575   test -z "$as_dir" && as_dir=.
5576   for ac_exec_ext in '' $ac_executable_extensions; do
5577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5580     break 2
5581   fi
5582 done
5583 done
5584
5585 fi
5586 fi
5587 WINDRES=$ac_cv_prog_WINDRES
5588 if test -n "$WINDRES"; then
5589   echo "$as_me:$LINENO: result: $WINDRES" >&5
5590 echo "${ECHO_T}$WINDRES" >&6
5591 else
5592   echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6
5594 fi
5595
5596 fi
5597 if test -z "$ac_cv_prog_WINDRES"; then
5598   ac_ct_WINDRES=$WINDRES
5599   # Extract the first word of "windres", so it can be a program name with args.
5600 set dummy windres; ac_word=$2
5601 echo "$as_me:$LINENO: checking for $ac_word" >&5
5602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5603 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   if test -n "$ac_ct_WINDRES"; then
5607   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612   IFS=$as_save_IFS
5613   test -z "$as_dir" && as_dir=.
5614   for ac_exec_ext in '' $ac_executable_extensions; do
5615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616     ac_cv_prog_ac_ct_WINDRES="windres"
5617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618     break 2
5619   fi
5620 done
5621 done
5622
5623   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
5624 fi
5625 fi
5626 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5627 if test -n "$ac_ct_WINDRES"; then
5628   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5629 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5630 else
5631   echo "$as_me:$LINENO: result: no" >&5
5632 echo "${ECHO_T}no" >&6
5633 fi
5634
5635   WINDRES=$ac_ct_WINDRES
5636 else
5637   WINDRES="$ac_cv_prog_WINDRES"
5638 fi
5639
5640     save_CFLAGS="${save_CFLAGS} -D_OFF_T_ -D_off_t=long"
5641     vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
5642     vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
5643     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
5644     ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
5645     http_LDFLAGS="${http_LDFLAGS} -lws2_32"
5646     rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
5647     ;;
5648   x*nto*)
5649     SYS=nto
5650     x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
5651     xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
5652     ;;
5653   xbeos)
5654     SYS=beos
5655     save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
5656     vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
5657     plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
5658     beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker -ltranslation -lstdc++.r4"
5659     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
5660     ;;
5661   x*)
5662     SYS="${target_os}"
5663     ;;
5664 esac
5665
5666 if test x"${SYS}" != xmingw32; then
5667   plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
5668 fi
5669
5670 if test x$SYS = xmingw32
5671 then
5672     echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
5673 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6
5674 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
5675   echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677   ac_check_lib_save_LIBS=$LIBS
5678 LIBS="-lmingwex  $LIBS"
5679 cat >conftest.$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5681 #include "confdefs.h"
5682
5683 /* Override any gcc2 internal prototype to avoid an error.  */
5684 #ifdef __cplusplus
5685 extern "C"
5686 #endif
5687 /* We use char because int might match the return type of a gcc2
5688    builtin and then its argument prototype would still apply.  */
5689 char opendir ();
5690 #ifdef F77_DUMMY_MAIN
5691 #  ifdef __cplusplus
5692      extern "C"
5693 #  endif
5694    int F77_DUMMY_MAIN() { return 1; }
5695 #endif
5696 int
5697 main ()
5698 {
5699 opendir ();
5700   ;
5701   return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext conftest$ac_exeext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5706   (eval $ac_link) 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } &&
5710          { ac_try='test -s conftest$ac_exeext'
5711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712   (eval $ac_try) 2>&5
5713   ac_status=$?
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); }; }; then
5716   ac_cv_lib_mingwex_opendir=yes
5717 else
5718   echo "$as_me: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5720 ac_cv_lib_mingwex_opendir=no
5721 fi
5722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5723 LIBS=$ac_check_lib_save_LIBS
5724 fi
5725 echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
5726 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6
5727 if test $ac_cv_lib_mingwex_opendir = yes; then
5728   echo "$as_me:$LINENO: checking for opendir in -lmingw32" >&5
5729 echo $ECHO_N "checking for opendir in -lmingw32... $ECHO_C" >&6
5730 if test "${ac_cv_lib_mingw32_opendir+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   ac_check_lib_save_LIBS=$LIBS
5734 LIBS="-lmingw32  $LIBS"
5735 cat >conftest.$ac_ext <<_ACEOF
5736 #line $LINENO "configure"
5737 #include "confdefs.h"
5738
5739 /* Override any gcc2 internal prototype to avoid an error.  */
5740 #ifdef __cplusplus
5741 extern "C"
5742 #endif
5743 /* We use char because int might match the return type of a gcc2
5744    builtin and then its argument prototype would still apply.  */
5745 char opendir ();
5746 #ifdef F77_DUMMY_MAIN
5747 #  ifdef __cplusplus
5748      extern "C"
5749 #  endif
5750    int F77_DUMMY_MAIN() { return 1; }
5751 #endif
5752 int
5753 main ()
5754 {
5755 opendir ();
5756   ;
5757   return 0;
5758 }
5759 _ACEOF
5760 rm -f conftest.$ac_objext conftest$ac_exeext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762   (eval $ac_link) 2>&5
5763   ac_status=$?
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); } &&
5766          { ac_try='test -s conftest$ac_exeext'
5767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768   (eval $ac_try) 2>&5
5769   ac_status=$?
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); }; }; then
5772   ac_cv_lib_mingw32_opendir=yes
5773 else
5774   echo "$as_me: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5776 ac_cv_lib_mingw32_opendir=no
5777 fi
5778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5779 LIBS=$ac_check_lib_save_LIBS
5780 fi
5781 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_opendir" >&5
5782 echo "${ECHO_T}$ac_cv_lib_mingw32_opendir" >&6
5783 if test $ac_cv_lib_mingw32_opendir = yes; then
5784   vlc_LDFLAGS="${vlc_LDFLAGS}"
5785 else
5786   vlc_LDFLAGS="${vlc_LDFLAGS} -lmingwex"
5787              gtk_LDFLAGS="${gtk_LDFLAGS} -lmingwex"
5788 fi
5789
5790
5791 fi
5792
5793 fi
5794
5795 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
5812 do
5813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5814 echo "$as_me:$LINENO: checking for $ac_func" >&5
5815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5816 if eval "test \"\${$as_ac_var+set}\" = set"; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   cat >conftest.$ac_ext <<_ACEOF
5820 #line $LINENO "configure"
5821 #include "confdefs.h"
5822 /* System header to define __stub macros and hopefully few prototypes,
5823     which can conflict with char $ac_func (); below.  */
5824 #include <assert.h>
5825 /* Override any gcc2 internal prototype to avoid an error.  */
5826 #ifdef __cplusplus
5827 extern "C"
5828 #endif
5829 /* We use char because int might match the return type of a gcc2
5830    builtin and then its argument prototype would still apply.  */
5831 char $ac_func ();
5832 char (*f) ();
5833
5834 #ifdef F77_DUMMY_MAIN
5835 #  ifdef __cplusplus
5836      extern "C"
5837 #  endif
5838    int F77_DUMMY_MAIN() { return 1; }
5839 #endif
5840 int
5841 main ()
5842 {
5843 /* The GNU C library defines this for functions which it implements
5844     to always fail with ENOSYS.  Some functions are actually named
5845     something starting with __ and the normal name is an alias.  */
5846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5847 choke me
5848 #else
5849 f = $ac_func;
5850 #endif
5851
5852   ;
5853   return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext conftest$ac_exeext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5858   (eval $ac_link) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } &&
5862          { ac_try='test -s conftest$ac_exeext'
5863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864   (eval $ac_try) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); }; }; then
5868   eval "$as_ac_var=yes"
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 eval "$as_ac_var=no"
5873 fi
5874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5875 fi
5876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5878 if test `eval echo '${'$as_ac_var'}'` = yes; then
5879   cat >>confdefs.h <<_ACEOF
5880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5881 _ACEOF
5882
5883 fi
5884 done
5885
5886
5887 echo "$as_me:$LINENO: checking for connect" >&5
5888 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5889 if test "${ac_cv_func_connect+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5894 #include "confdefs.h"
5895 /* System header to define __stub macros and hopefully few prototypes,
5896     which can conflict with char connect (); below.  */
5897 #include <assert.h>
5898 /* Override any gcc2 internal prototype to avoid an error.  */
5899 #ifdef __cplusplus
5900 extern "C"
5901 #endif
5902 /* We use char because int might match the return type of a gcc2
5903    builtin and then its argument prototype would still apply.  */
5904 char connect ();
5905 char (*f) ();
5906
5907 #ifdef F77_DUMMY_MAIN
5908 #  ifdef __cplusplus
5909      extern "C"
5910 #  endif
5911    int F77_DUMMY_MAIN() { return 1; }
5912 #endif
5913 int
5914 main ()
5915 {
5916 /* The GNU C library defines this for functions which it implements
5917     to always fail with ENOSYS.  Some functions are actually named
5918     something starting with __ and the normal name is an alias.  */
5919 #if defined (__stub_connect) || defined (__stub___connect)
5920 choke me
5921 #else
5922 f = connect;
5923 #endif
5924
5925   ;
5926   return 0;
5927 }
5928 _ACEOF
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931   (eval $ac_link) 2>&5
5932   ac_status=$?
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); } &&
5935          { ac_try='test -s conftest$ac_exeext'
5936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937   (eval $ac_try) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); }; }; then
5941   ac_cv_func_connect=yes
5942 else
5943   echo "$as_me: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5945 ac_cv_func_connect=no
5946 fi
5947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5948 fi
5949 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5950 echo "${ECHO_T}$ac_cv_func_connect" >&6
5951 if test $ac_cv_func_connect = yes; then
5952   :
5953 else
5954
5955   echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5956 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5957 if test "${ac_cv_lib_socket_connect+set}" = set; then
5958   echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960   ac_check_lib_save_LIBS=$LIBS
5961 LIBS="-lsocket  $LIBS"
5962 cat >conftest.$ac_ext <<_ACEOF
5963 #line $LINENO "configure"
5964 #include "confdefs.h"
5965
5966 /* Override any gcc2 internal prototype to avoid an error.  */
5967 #ifdef __cplusplus
5968 extern "C"
5969 #endif
5970 /* We use char because int might match the return type of a gcc2
5971    builtin and then its argument prototype would still apply.  */
5972 char connect ();
5973 #ifdef F77_DUMMY_MAIN
5974 #  ifdef __cplusplus
5975      extern "C"
5976 #  endif
5977    int F77_DUMMY_MAIN() { return 1; }
5978 #endif
5979 int
5980 main ()
5981 {
5982 connect ();
5983   ;
5984   return 0;
5985 }
5986 _ACEOF
5987 rm -f conftest.$ac_objext conftest$ac_exeext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989   (eval $ac_link) 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); } &&
5993          { ac_try='test -s conftest$ac_exeext'
5994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995   (eval $ac_try) 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; }; then
5999   ac_cv_lib_socket_connect=yes
6000 else
6001   echo "$as_me: failed program was:" >&5
6002 cat conftest.$ac_ext >&5
6003 ac_cv_lib_socket_connect=no
6004 fi
6005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6006 LIBS=$ac_check_lib_save_LIBS
6007 fi
6008 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6009 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6010 if test $ac_cv_lib_socket_connect = yes; then
6011   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
6012     vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
6013
6014 fi
6015
6016 fi
6017
6018 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6019 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6020 if test "${ac_cv_func_gethostbyname+set}" = set; then
6021   echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023   cat >conftest.$ac_ext <<_ACEOF
6024 #line $LINENO "configure"
6025 #include "confdefs.h"
6026 /* System header to define __stub macros and hopefully few prototypes,
6027     which can conflict with char gethostbyname (); below.  */
6028 #include <assert.h>
6029 /* Override any gcc2 internal prototype to avoid an error.  */
6030 #ifdef __cplusplus
6031 extern "C"
6032 #endif
6033 /* We use char because int might match the return type of a gcc2
6034    builtin and then its argument prototype would still apply.  */
6035 char gethostbyname ();
6036 char (*f) ();
6037
6038 #ifdef F77_DUMMY_MAIN
6039 #  ifdef __cplusplus
6040      extern "C"
6041 #  endif
6042    int F77_DUMMY_MAIN() { return 1; }
6043 #endif
6044 int
6045 main ()
6046 {
6047 /* The GNU C library defines this for functions which it implements
6048     to always fail with ENOSYS.  Some functions are actually named
6049     something starting with __ and the normal name is an alias.  */
6050 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6051 choke me
6052 #else
6053 f = gethostbyname;
6054 #endif
6055
6056   ;
6057   return 0;
6058 }
6059 _ACEOF
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6062   (eval $ac_link) 2>&5
6063   ac_status=$?
6064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065   (exit $ac_status); } &&
6066          { ac_try='test -s conftest$ac_exeext'
6067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068   (eval $ac_try) 2>&5
6069   ac_status=$?
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); }; }; then
6072   ac_cv_func_gethostbyname=yes
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6076 ac_cv_func_gethostbyname=no
6077 fi
6078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6079 fi
6080 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6081 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6082 if test $ac_cv_func_gethostbyname = yes; then
6083   :
6084 else
6085
6086   echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6087 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6088 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6089   echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091   ac_check_lib_save_LIBS=$LIBS
6092 LIBS="-lnsl  $LIBS"
6093 cat >conftest.$ac_ext <<_ACEOF
6094 #line $LINENO "configure"
6095 #include "confdefs.h"
6096
6097 /* Override any gcc2 internal prototype to avoid an error.  */
6098 #ifdef __cplusplus
6099 extern "C"
6100 #endif
6101 /* We use char because int might match the return type of a gcc2
6102    builtin and then its argument prototype would still apply.  */
6103 char gethostbyname ();
6104 #ifdef F77_DUMMY_MAIN
6105 #  ifdef __cplusplus
6106      extern "C"
6107 #  endif
6108    int F77_DUMMY_MAIN() { return 1; }
6109 #endif
6110 int
6111 main ()
6112 {
6113 gethostbyname ();
6114   ;
6115   return 0;
6116 }
6117 _ACEOF
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120   (eval $ac_link) 2>&5
6121   ac_status=$?
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } &&
6124          { ac_try='test -s conftest$ac_exeext'
6125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126   (eval $ac_try) 2>&5
6127   ac_status=$?
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); }; }; then
6130   ac_cv_lib_nsl_gethostbyname=yes
6131 else
6132   echo "$as_me: failed program was:" >&5
6133 cat conftest.$ac_ext >&5
6134 ac_cv_lib_nsl_gethostbyname=no
6135 fi
6136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6137 LIBS=$ac_check_lib_save_LIBS
6138 fi
6139 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6140 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6141 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6142   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
6143 fi
6144
6145
6146 fi
6147
6148 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6149 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6150 if test "${ac_cv_func_gethostbyname+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   cat >conftest.$ac_ext <<_ACEOF
6154 #line $LINENO "configure"
6155 #include "confdefs.h"
6156 /* System header to define __stub macros and hopefully few prototypes,
6157     which can conflict with char gethostbyname (); below.  */
6158 #include <assert.h>
6159 /* Override any gcc2 internal prototype to avoid an error.  */
6160 #ifdef __cplusplus
6161 extern "C"
6162 #endif
6163 /* We use char because int might match the return type of a gcc2
6164    builtin and then its argument prototype would still apply.  */
6165 char gethostbyname ();
6166 char (*f) ();
6167
6168 #ifdef F77_DUMMY_MAIN
6169 #  ifdef __cplusplus
6170      extern "C"
6171 #  endif
6172    int F77_DUMMY_MAIN() { return 1; }
6173 #endif
6174 int
6175 main ()
6176 {
6177 /* The GNU C library defines this for functions which it implements
6178     to always fail with ENOSYS.  Some functions are actually named
6179     something starting with __ and the normal name is an alias.  */
6180 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6181 choke me
6182 #else
6183 f = gethostbyname;
6184 #endif
6185
6186   ;
6187   return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192   (eval $ac_link) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } &&
6196          { ac_try='test -s conftest$ac_exeext'
6197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198   (eval $ac_try) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; }; then
6202   ac_cv_func_gethostbyname=yes
6203 else
6204   echo "$as_me: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6206 ac_cv_func_gethostbyname=no
6207 fi
6208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6209 fi
6210 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6211 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6212 if test $ac_cv_func_gethostbyname = yes; then
6213   :
6214 else
6215
6216   echo "$as_me:$LINENO: checking for gethostbyname in -lbind" >&5
6217 echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6
6218 if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   ac_check_lib_save_LIBS=$LIBS
6222 LIBS="-lbind  $LIBS"
6223 cat >conftest.$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6225 #include "confdefs.h"
6226
6227 /* Override any gcc2 internal prototype to avoid an error.  */
6228 #ifdef __cplusplus
6229 extern "C"
6230 #endif
6231 /* We use char because int might match the return type of a gcc2
6232    builtin and then its argument prototype would still apply.  */
6233 char gethostbyname ();
6234 #ifdef F77_DUMMY_MAIN
6235 #  ifdef __cplusplus
6236      extern "C"
6237 #  endif
6238    int F77_DUMMY_MAIN() { return 1; }
6239 #endif
6240 int
6241 main ()
6242 {
6243 gethostbyname ();
6244   ;
6245   return 0;
6246 }
6247 _ACEOF
6248 rm -f conftest.$ac_objext conftest$ac_exeext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6250   (eval $ac_link) 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -s conftest$ac_exeext'
6255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256   (eval $ac_try) 2>&5
6257   ac_status=$?
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); }; }; then
6260   ac_cv_lib_bind_gethostbyname=yes
6261 else
6262   echo "$as_me: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6264 ac_cv_lib_bind_gethostbyname=no
6265 fi
6266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6267 LIBS=$ac_check_lib_save_LIBS
6268 fi
6269 echo "$as_me:$LINENO: result: $ac_cv_lib_bind_gethostbyname" >&5
6270 echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6
6271 if test $ac_cv_lib_bind_gethostbyname = yes; then
6272   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
6273 fi
6274
6275
6276 fi
6277
6278 have_nanosleep=0
6279 echo "$as_me:$LINENO: checking for nanosleep" >&5
6280 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
6281 if test "${ac_cv_func_nanosleep+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   cat >conftest.$ac_ext <<_ACEOF
6285 #line $LINENO "configure"
6286 #include "confdefs.h"
6287 /* System header to define __stub macros and hopefully few prototypes,
6288     which can conflict with char nanosleep (); below.  */
6289 #include <assert.h>
6290 /* Override any gcc2 internal prototype to avoid an error.  */
6291 #ifdef __cplusplus
6292 extern "C"
6293 #endif
6294 /* We use char because int might match the return type of a gcc2
6295    builtin and then its argument prototype would still apply.  */
6296 char nanosleep ();
6297 char (*f) ();
6298
6299 #ifdef F77_DUMMY_MAIN
6300 #  ifdef __cplusplus
6301      extern "C"
6302 #  endif
6303    int F77_DUMMY_MAIN() { return 1; }
6304 #endif
6305 int
6306 main ()
6307 {
6308 /* The GNU C library defines this for functions which it implements
6309     to always fail with ENOSYS.  Some functions are actually named
6310     something starting with __ and the normal name is an alias.  */
6311 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
6312 choke me
6313 #else
6314 f = nanosleep;
6315 #endif
6316
6317   ;
6318   return 0;
6319 }
6320 _ACEOF
6321 rm -f conftest.$ac_objext conftest$ac_exeext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6323   (eval $ac_link) 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); } &&
6327          { ac_try='test -s conftest$ac_exeext'
6328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329   (eval $ac_try) 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); }; }; then
6333   ac_cv_func_nanosleep=yes
6334 else
6335   echo "$as_me: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6337 ac_cv_func_nanosleep=no
6338 fi
6339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6340 fi
6341 echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
6342 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
6343 if test $ac_cv_func_nanosleep = yes; then
6344   have_nanosleep=1
6345 else
6346
6347   echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
6348 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
6349 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   ac_check_lib_save_LIBS=$LIBS
6353 LIBS="-lrt  $LIBS"
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6356 #include "confdefs.h"
6357
6358 /* Override any gcc2 internal prototype to avoid an error.  */
6359 #ifdef __cplusplus
6360 extern "C"
6361 #endif
6362 /* We use char because int might match the return type of a gcc2
6363    builtin and then its argument prototype would still apply.  */
6364 char nanosleep ();
6365 #ifdef F77_DUMMY_MAIN
6366 #  ifdef __cplusplus
6367      extern "C"
6368 #  endif
6369    int F77_DUMMY_MAIN() { return 1; }
6370 #endif
6371 int
6372 main ()
6373 {
6374 nanosleep ();
6375   ;
6376   return 0;
6377 }
6378 _ACEOF
6379 rm -f conftest.$ac_objext conftest$ac_exeext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6381   (eval $ac_link) 2>&5
6382   ac_status=$?
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); } &&
6385          { ac_try='test -s conftest$ac_exeext'
6386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387   (eval $ac_try) 2>&5
6388   ac_status=$?
6389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); }; }; then
6391   ac_cv_lib_rt_nanosleep=yes
6392 else
6393   echo "$as_me: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6395 ac_cv_lib_rt_nanosleep=no
6396 fi
6397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6398 LIBS=$ac_check_lib_save_LIBS
6399 fi
6400 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
6401 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
6402 if test $ac_cv_lib_rt_nanosleep = yes; then
6403   vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
6404 else
6405   echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
6406 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
6407 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
6408   echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410   ac_check_lib_save_LIBS=$LIBS
6411 LIBS="-lposix4  $LIBS"
6412 cat >conftest.$ac_ext <<_ACEOF
6413 #line $LINENO "configure"
6414 #include "confdefs.h"
6415
6416 /* Override any gcc2 internal prototype to avoid an error.  */
6417 #ifdef __cplusplus
6418 extern "C"
6419 #endif
6420 /* We use char because int might match the return type of a gcc2
6421    builtin and then its argument prototype would still apply.  */
6422 char nanosleep ();
6423 #ifdef F77_DUMMY_MAIN
6424 #  ifdef __cplusplus
6425      extern "C"
6426 #  endif
6427    int F77_DUMMY_MAIN() { return 1; }
6428 #endif
6429 int
6430 main ()
6431 {
6432 nanosleep ();
6433   ;
6434   return 0;
6435 }
6436 _ACEOF
6437 rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6439   (eval $ac_link) 2>&5
6440   ac_status=$?
6441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); } &&
6443          { ac_try='test -s conftest$ac_exeext'
6444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445   (eval $ac_try) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); }; }; then
6449   ac_cv_lib_posix4_nanosleep=yes
6450 else
6451   echo "$as_me: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6453 ac_cv_lib_posix4_nanosleep=no
6454 fi
6455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6456 LIBS=$ac_check_lib_save_LIBS
6457 fi
6458 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
6459 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
6460 if test $ac_cv_lib_posix4_nanosleep = yes; then
6461   vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
6462 fi
6463
6464
6465 fi
6466
6467
6468 fi
6469
6470 if test x$have_nanosleep = x1; then
6471
6472 cat >>confdefs.h <<\_ACEOF
6473 #define HAVE_NANOSLEEP 1
6474 _ACEOF
6475
6476 fi
6477 echo "$as_me:$LINENO: checking for inet_aton" >&5
6478 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
6479 if test "${ac_cv_func_inet_aton+set}" = set; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482   cat >conftest.$ac_ext <<_ACEOF
6483 #line $LINENO "configure"
6484 #include "confdefs.h"
6485 /* System header to define __stub macros and hopefully few prototypes,
6486     which can conflict with char inet_aton (); below.  */
6487 #include <assert.h>
6488 /* Override any gcc2 internal prototype to avoid an error.  */
6489 #ifdef __cplusplus
6490 extern "C"
6491 #endif
6492 /* We use char because int might match the return type of a gcc2
6493    builtin and then its argument prototype would still apply.  */
6494 char inet_aton ();
6495 char (*f) ();
6496
6497 #ifdef F77_DUMMY_MAIN
6498 #  ifdef __cplusplus
6499      extern "C"
6500 #  endif
6501    int F77_DUMMY_MAIN() { return 1; }
6502 #endif
6503 int
6504 main ()
6505 {
6506 /* The GNU C library defines this for functions which it implements
6507     to always fail with ENOSYS.  Some functions are actually named
6508     something starting with __ and the normal name is an alias.  */
6509 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6510 choke me
6511 #else
6512 f = inet_aton;
6513 #endif
6514
6515   ;
6516   return 0;
6517 }
6518 _ACEOF
6519 rm -f conftest.$ac_objext conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521   (eval $ac_link) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); } &&
6525          { ac_try='test -s conftest$ac_exeext'
6526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527   (eval $ac_try) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }; }; then
6531   ac_cv_func_inet_aton=yes
6532 else
6533   echo "$as_me: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6535 ac_cv_func_inet_aton=no
6536 fi
6537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6538 fi
6539 echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
6540 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
6541 if test $ac_cv_func_inet_aton = yes; then
6542   :
6543 else
6544
6545   echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6546 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6547 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   ac_check_lib_save_LIBS=$LIBS
6551 LIBS="-lresolv  $LIBS"
6552 cat >conftest.$ac_ext <<_ACEOF
6553 #line $LINENO "configure"
6554 #include "confdefs.h"
6555
6556 /* Override any gcc2 internal prototype to avoid an error.  */
6557 #ifdef __cplusplus
6558 extern "C"
6559 #endif
6560 /* We use char because int might match the return type of a gcc2
6561    builtin and then its argument prototype would still apply.  */
6562 char inet_aton ();
6563 #ifdef F77_DUMMY_MAIN
6564 #  ifdef __cplusplus
6565      extern "C"
6566 #  endif
6567    int F77_DUMMY_MAIN() { return 1; }
6568 #endif
6569 int
6570 main ()
6571 {
6572 inet_aton ();
6573   ;
6574   return 0;
6575 }
6576 _ACEOF
6577 rm -f conftest.$ac_objext conftest$ac_exeext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579   (eval $ac_link) 2>&5
6580   ac_status=$?
6581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582   (exit $ac_status); } &&
6583          { ac_try='test -s conftest$ac_exeext'
6584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585   (eval $ac_try) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; }; then
6589   ac_cv_lib_resolv_inet_aton=yes
6590 else
6591   echo "$as_me: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6593 ac_cv_lib_resolv_inet_aton=no
6594 fi
6595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6596 LIBS=$ac_check_lib_save_LIBS
6597 fi
6598 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6599 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6600 if test $ac_cv_lib_resolv_inet_aton = yes; then
6601   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
6602 fi
6603
6604
6605 fi
6606
6607 echo "$as_me:$LINENO: checking for textdomain" >&5
6608 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
6609 if test "${ac_cv_func_textdomain+set}" = set; then
6610   echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612   cat >conftest.$ac_ext <<_ACEOF
6613 #line $LINENO "configure"
6614 #include "confdefs.h"
6615 /* System header to define __stub macros and hopefully few prototypes,
6616     which can conflict with char textdomain (); below.  */
6617 #include <assert.h>
6618 /* Override any gcc2 internal prototype to avoid an error.  */
6619 #ifdef __cplusplus
6620 extern "C"
6621 #endif
6622 /* We use char because int might match the return type of a gcc2
6623    builtin and then its argument prototype would still apply.  */
6624 char textdomain ();
6625 char (*f) ();
6626
6627 #ifdef F77_DUMMY_MAIN
6628 #  ifdef __cplusplus
6629      extern "C"
6630 #  endif
6631    int F77_DUMMY_MAIN() { return 1; }
6632 #endif
6633 int
6634 main ()
6635 {
6636 /* The GNU C library defines this for functions which it implements
6637     to always fail with ENOSYS.  Some functions are actually named
6638     something starting with __ and the normal name is an alias.  */
6639 #if defined (__stub_textdomain) || defined (__stub___textdomain)
6640 choke me
6641 #else
6642 f = textdomain;
6643 #endif
6644
6645   ;
6646   return 0;
6647 }
6648 _ACEOF
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651   (eval $ac_link) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } &&
6655          { ac_try='test -s conftest$ac_exeext'
6656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657   (eval $ac_try) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }; }; then
6661   ac_cv_func_textdomain=yes
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6665 ac_cv_func_textdomain=no
6666 fi
6667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6668 fi
6669 echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
6670 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
6671 if test $ac_cv_func_textdomain = yes; then
6672   :
6673 else
6674
6675   echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
6676 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
6677 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   ac_check_lib_save_LIBS=$LIBS
6681 LIBS="-lintl  $LIBS"
6682 cat >conftest.$ac_ext <<_ACEOF
6683 #line $LINENO "configure"
6684 #include "confdefs.h"
6685
6686 /* Override any gcc2 internal prototype to avoid an error.  */
6687 #ifdef __cplusplus
6688 extern "C"
6689 #endif
6690 /* We use char because int might match the return type of a gcc2
6691    builtin and then its argument prototype would still apply.  */
6692 char textdomain ();
6693 #ifdef F77_DUMMY_MAIN
6694 #  ifdef __cplusplus
6695      extern "C"
6696 #  endif
6697    int F77_DUMMY_MAIN() { return 1; }
6698 #endif
6699 int
6700 main ()
6701 {
6702 textdomain ();
6703   ;
6704   return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6709   (eval $ac_link) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); } &&
6713          { ac_try='test -s conftest$ac_exeext'
6714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715   (eval $ac_try) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; }; then
6719   ac_cv_lib_intl_textdomain=yes
6720 else
6721   echo "$as_me: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6723 ac_cv_lib_intl_textdomain=no
6724 fi
6725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6726 LIBS=$ac_check_lib_save_LIBS
6727 fi
6728 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
6729 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
6730 if test $ac_cv_lib_intl_textdomain = yes; then
6731   save_LDFLAGS="${save_LDFLAGS} -lintl"
6732 fi
6733
6734
6735 fi
6736
6737
6738 NEED_GETOPT=0
6739 echo "$as_me:$LINENO: checking for getopt_long" >&5
6740 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
6741 if test "${ac_cv_func_getopt_long+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   cat >conftest.$ac_ext <<_ACEOF
6745 #line $LINENO "configure"
6746 #include "confdefs.h"
6747 /* System header to define __stub macros and hopefully few prototypes,
6748     which can conflict with char getopt_long (); below.  */
6749 #include <assert.h>
6750 /* Override any gcc2 internal prototype to avoid an error.  */
6751 #ifdef __cplusplus
6752 extern "C"
6753 #endif
6754 /* We use char because int might match the return type of a gcc2
6755    builtin and then its argument prototype would still apply.  */
6756 char getopt_long ();
6757 char (*f) ();
6758
6759 #ifdef F77_DUMMY_MAIN
6760 #  ifdef __cplusplus
6761      extern "C"
6762 #  endif
6763    int F77_DUMMY_MAIN() { return 1; }
6764 #endif
6765 int
6766 main ()
6767 {
6768 /* The GNU C library defines this for functions which it implements
6769     to always fail with ENOSYS.  Some functions are actually named
6770     something starting with __ and the normal name is an alias.  */
6771 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
6772 choke me
6773 #else
6774 f = getopt_long;
6775 #endif
6776
6777   ;
6778   return 0;
6779 }
6780 _ACEOF
6781 rm -f conftest.$ac_objext conftest$ac_exeext
6782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6783   (eval $ac_link) 2>&5
6784   ac_status=$?
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); } &&
6787          { ac_try='test -s conftest$ac_exeext'
6788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789   (eval $ac_try) 2>&5
6790   ac_status=$?
6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792   (exit $ac_status); }; }; then
6793   ac_cv_func_getopt_long=yes
6794 else
6795   echo "$as_me: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6797 ac_cv_func_getopt_long=no
6798 fi
6799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6800 fi
6801 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
6802 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
6803 if test $ac_cv_func_getopt_long = yes; then
6804
6805 cat >>confdefs.h <<\_ACEOF
6806 #define HAVE_GETOPT_LONG 1
6807 _ACEOF
6808
6809 else
6810    # FreeBSD has a gnugetopt library for this:
6811   echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
6812 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
6813 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   ac_check_lib_save_LIBS=$LIBS
6817 LIBS="-lgnugetopt  $LIBS"
6818 cat >conftest.$ac_ext <<_ACEOF
6819 #line $LINENO "configure"
6820 #include "confdefs.h"
6821
6822 /* Override any gcc2 internal prototype to avoid an error.  */
6823 #ifdef __cplusplus
6824 extern "C"
6825 #endif
6826 /* We use char because int might match the return type of a gcc2
6827    builtin and then its argument prototype would still apply.  */
6828 char getopt_long ();
6829 #ifdef F77_DUMMY_MAIN
6830 #  ifdef __cplusplus
6831      extern "C"
6832 #  endif
6833    int F77_DUMMY_MAIN() { return 1; }
6834 #endif
6835 int
6836 main ()
6837 {
6838 getopt_long ();
6839   ;
6840   return 0;
6841 }
6842 _ACEOF
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845   (eval $ac_link) 2>&5
6846   ac_status=$?
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); } &&
6849          { ac_try='test -s conftest$ac_exeext'
6850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851   (eval $ac_try) 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); }; }; then
6855   ac_cv_lib_gnugetopt_getopt_long=yes
6856 else
6857   echo "$as_me: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6859 ac_cv_lib_gnugetopt_getopt_long=no
6860 fi
6861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6862 LIBS=$ac_check_lib_save_LIBS
6863 fi
6864 echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
6865 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
6866 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
6867
6868 cat >>confdefs.h <<\_ACEOF
6869 #define HAVE_GETOPT_LONG 1
6870 _ACEOF
6871  vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
6872 else
6873   NEED_GETOPT=1
6874 fi
6875
6876 fi
6877
6878
6879 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6880 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6881 if test "${ac_cv_type_signal+set}" = set; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884   cat >conftest.$ac_ext <<_ACEOF
6885 #line $LINENO "configure"
6886 #include "confdefs.h"
6887 #include <sys/types.h>
6888 #include <signal.h>
6889 #ifdef signal
6890 # undef signal
6891 #endif
6892 #ifdef __cplusplus
6893 extern "C" void (*signal (int, void (*)(int)))(int);
6894 #else
6895 void (*signal ()) ();
6896 #endif
6897
6898 #ifdef F77_DUMMY_MAIN
6899 #  ifdef __cplusplus
6900      extern "C"
6901 #  endif
6902    int F77_DUMMY_MAIN() { return 1; }
6903 #endif
6904 int
6905 main ()
6906 {
6907 int i;
6908   ;
6909   return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914   (eval $ac_compile) 2>&5
6915   ac_status=$?
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } &&
6918          { ac_try='test -s conftest.$ac_objext'
6919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920   (eval $ac_try) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; }; then
6924   ac_cv_type_signal=void
6925 else
6926   echo "$as_me: failed program was:" >&5
6927 cat conftest.$ac_ext >&5
6928 ac_cv_type_signal=int
6929 fi
6930 rm -f conftest.$ac_objext conftest.$ac_ext
6931 fi
6932 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6933 echo "${ECHO_T}$ac_cv_type_signal" >&6
6934
6935 cat >>confdefs.h <<_ACEOF
6936 #define RETSIGTYPE $ac_cv_type_signal
6937 _ACEOF
6938
6939
6940 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6941 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945   ac_check_lib_save_LIBS=$LIBS
6946 LIBS="-ldl  $LIBS"
6947 cat >conftest.$ac_ext <<_ACEOF
6948 #line $LINENO "configure"
6949 #include "confdefs.h"
6950
6951 /* Override any gcc2 internal prototype to avoid an error.  */
6952 #ifdef __cplusplus
6953 extern "C"
6954 #endif
6955 /* We use char because int might match the return type of a gcc2
6956    builtin and then its argument prototype would still apply.  */
6957 char dlopen ();
6958 #ifdef F77_DUMMY_MAIN
6959 #  ifdef __cplusplus
6960      extern "C"
6961 #  endif
6962    int F77_DUMMY_MAIN() { return 1; }
6963 #endif
6964 int
6965 main ()
6966 {
6967 dlopen ();
6968   ;
6969   return 0;
6970 }
6971 _ACEOF
6972 rm -f conftest.$ac_objext conftest$ac_exeext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6974   (eval $ac_link) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } &&
6978          { ac_try='test -s conftest$ac_exeext'
6979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980   (eval $ac_try) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; }; then
6984   ac_cv_lib_dl_dlopen=yes
6985 else
6986   echo "$as_me: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6988 ac_cv_lib_dl_dlopen=no
6989 fi
6990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6991 LIBS=$ac_check_lib_save_LIBS
6992 fi
6993 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6994 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6995 if test $ac_cv_lib_dl_dlopen = yes; then
6996   vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
6997 fi
6998
6999 echo "$as_me:$LINENO: checking for cos in -lm" >&5
7000 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
7001 if test "${ac_cv_lib_m_cos+set}" = set; then
7002   echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004   ac_check_lib_save_LIBS=$LIBS
7005 LIBS="-lm  $LIBS"
7006 cat >conftest.$ac_ext <<_ACEOF
7007 #line $LINENO "configure"
7008 #include "confdefs.h"
7009
7010 /* Override any gcc2 internal prototype to avoid an error.  */
7011 #ifdef __cplusplus
7012 extern "C"
7013 #endif
7014 /* We use char because int might match the return type of a gcc2
7015    builtin and then its argument prototype would still apply.  */
7016 char cos ();
7017 #ifdef F77_DUMMY_MAIN
7018 #  ifdef __cplusplus
7019      extern "C"
7020 #  endif
7021    int F77_DUMMY_MAIN() { return 1; }
7022 #endif
7023 int
7024 main ()
7025 {
7026 cos ();
7027   ;
7028   return 0;
7029 }
7030 _ACEOF
7031 rm -f conftest.$ac_objext conftest$ac_exeext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033   (eval $ac_link) 2>&5
7034   ac_status=$?
7035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036   (exit $ac_status); } &&
7037          { ac_try='test -s conftest$ac_exeext'
7038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039   (eval $ac_try) 2>&5
7040   ac_status=$?
7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); }; }; then
7043   ac_cv_lib_m_cos=yes
7044 else
7045   echo "$as_me: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 ac_cv_lib_m_cos=no
7048 fi
7049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7050 LIBS=$ac_check_lib_save_LIBS
7051 fi
7052 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
7053 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
7054 if test $ac_cv_lib_m_cos = yes; then
7055   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
7056   filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
7057 fi
7058
7059 echo "$as_me:$LINENO: checking for pow in -lm" >&5
7060 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
7061 if test "${ac_cv_lib_m_pow+set}" = set; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   ac_check_lib_save_LIBS=$LIBS
7065 LIBS="-lm  $LIBS"
7066 cat >conftest.$ac_ext <<_ACEOF
7067 #line $LINENO "configure"
7068 #include "confdefs.h"
7069
7070 /* Override any gcc2 internal prototype to avoid an error.  */
7071 #ifdef __cplusplus
7072 extern "C"
7073 #endif
7074 /* We use char because int might match the return type of a gcc2
7075    builtin and then its argument prototype would still apply.  */
7076 char pow ();
7077 #ifdef F77_DUMMY_MAIN
7078 #  ifdef __cplusplus
7079      extern "C"
7080 #  endif
7081    int F77_DUMMY_MAIN() { return 1; }
7082 #endif
7083 int
7084 main ()
7085 {
7086 pow ();
7087   ;
7088   return 0;
7089 }
7090 _ACEOF
7091 rm -f conftest.$ac_objext conftest$ac_exeext
7092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7093   (eval $ac_link) 2>&5
7094   ac_status=$?
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); } &&
7097          { ac_try='test -s conftest$ac_exeext'
7098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099   (eval $ac_try) 2>&5
7100   ac_status=$?
7101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102   (exit $ac_status); }; }; then
7103   ac_cv_lib_m_pow=yes
7104 else
7105   echo "$as_me: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7107 ac_cv_lib_m_pow=no
7108 fi
7109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7110 LIBS=$ac_check_lib_save_LIBS
7111 fi
7112 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
7113 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
7114 if test $ac_cv_lib_m_pow = yes; then
7115   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
7116   imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
7117   imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
7118   chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
7119
7120 fi
7121
7122
7123 THREAD_LIB=error
7124 if test "x${THREAD_LIB}" = xerror; then
7125   echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
7126 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
7127 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   ac_check_lib_save_LIBS=$LIBS
7131 LIBS="-lpthread  $LIBS"
7132 cat >conftest.$ac_ext <<_ACEOF
7133 #line $LINENO "configure"
7134 #include "confdefs.h"
7135
7136 /* Override any gcc2 internal prototype to avoid an error.  */
7137 #ifdef __cplusplus
7138 extern "C"
7139 #endif
7140 /* We use char because int might match the return type of a gcc2
7141    builtin and then its argument prototype would still apply.  */
7142 char pthread_attr_init ();
7143 #ifdef F77_DUMMY_MAIN
7144 #  ifdef __cplusplus
7145      extern "C"
7146 #  endif
7147    int F77_DUMMY_MAIN() { return 1; }
7148 #endif
7149 int
7150 main ()
7151 {
7152 pthread_attr_init ();
7153   ;
7154   return 0;
7155 }
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159   (eval $ac_link) 2>&5
7160   ac_status=$?
7161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162   (exit $ac_status); } &&
7163          { ac_try='test -s conftest$ac_exeext'
7164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165   (eval $ac_try) 2>&5
7166   ac_status=$?
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); }; }; then
7169   ac_cv_lib_pthread_pthread_attr_init=yes
7170 else
7171   echo "$as_me: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7173 ac_cv_lib_pthread_pthread_attr_init=no
7174 fi
7175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7176 LIBS=$ac_check_lib_save_LIBS
7177 fi
7178 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
7179 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
7180 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
7181   THREAD_LIB="-lpthread"
7182 fi
7183
7184 fi
7185 if test "x${THREAD_LIB}" = xerror; then
7186   echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthreads" >&5
7187 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
7188 if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   ac_check_lib_save_LIBS=$LIBS
7192 LIBS="-lpthreads  $LIBS"
7193 cat >conftest.$ac_ext <<_ACEOF
7194 #line $LINENO "configure"
7195 #include "confdefs.h"
7196
7197 /* Override any gcc2 internal prototype to avoid an error.  */
7198 #ifdef __cplusplus
7199 extern "C"
7200 #endif
7201 /* We use char because int might match the return type of a gcc2
7202    builtin and then its argument prototype would still apply.  */
7203 char pthread_attr_init ();
7204 #ifdef F77_DUMMY_MAIN
7205 #  ifdef __cplusplus
7206      extern "C"
7207 #  endif
7208    int F77_DUMMY_MAIN() { return 1; }
7209 #endif
7210 int
7211 main ()
7212 {
7213 pthread_attr_init ();
7214   ;
7215   return 0;
7216 }
7217 _ACEOF
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220   (eval $ac_link) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); } &&
7224          { ac_try='test -s conftest$ac_exeext'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; }; then
7230   ac_cv_lib_pthreads_pthread_attr_init=yes
7231 else
7232   echo "$as_me: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 ac_cv_lib_pthreads_pthread_attr_init=no
7235 fi
7236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7237 LIBS=$ac_check_lib_save_LIBS
7238 fi
7239 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
7240 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
7241 if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
7242   THREAD_LIB="-lpthreads"
7243 fi
7244
7245 fi
7246 if test "x${THREAD_LIB}" = xerror; then
7247   echo "$as_me:$LINENO: checking for pthread_attr_init in -lc_r" >&5
7248 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6
7249 if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   ac_check_lib_save_LIBS=$LIBS
7253 LIBS="-lc_r  $LIBS"
7254 cat >conftest.$ac_ext <<_ACEOF
7255 #line $LINENO "configure"
7256 #include "confdefs.h"
7257
7258 /* Override any gcc2 internal prototype to avoid an error.  */
7259 #ifdef __cplusplus
7260 extern "C"
7261 #endif
7262 /* We use char because int might match the return type of a gcc2
7263    builtin and then its argument prototype would still apply.  */
7264 char pthread_attr_init ();
7265 #ifdef F77_DUMMY_MAIN
7266 #  ifdef __cplusplus
7267      extern "C"
7268 #  endif
7269    int F77_DUMMY_MAIN() { return 1; }
7270 #endif
7271 int
7272 main ()
7273 {
7274 pthread_attr_init ();
7275   ;
7276   return 0;
7277 }
7278 _ACEOF
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281   (eval $ac_link) 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); } &&
7285          { ac_try='test -s conftest$ac_exeext'
7286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287   (eval $ac_try) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); }; }; then
7291   ac_cv_lib_c_r_pthread_attr_init=yes
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7295 ac_cv_lib_c_r_pthread_attr_init=no
7296 fi
7297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7298 LIBS=$ac_check_lib_save_LIBS
7299 fi
7300 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
7301 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6
7302 if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
7303   THREAD_LIB="-lc_r"
7304 fi
7305
7306 fi
7307 if test "x${THREAD_LIB}" = xerror; then
7308   echo "$as_me:$LINENO: checking for pthread_attr_init" >&5
7309 echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6
7310 if test "${ac_cv_func_pthread_attr_init+set}" = set; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313   cat >conftest.$ac_ext <<_ACEOF
7314 #line $LINENO "configure"
7315 #include "confdefs.h"
7316 /* System header to define __stub macros and hopefully few prototypes,
7317     which can conflict with char pthread_attr_init (); below.  */
7318 #include <assert.h>
7319 /* Override any gcc2 internal prototype to avoid an error.  */
7320 #ifdef __cplusplus
7321 extern "C"
7322 #endif
7323 /* We use char because int might match the return type of a gcc2
7324    builtin and then its argument prototype would still apply.  */
7325 char pthread_attr_init ();
7326 char (*f) ();
7327
7328 #ifdef F77_DUMMY_MAIN
7329 #  ifdef __cplusplus
7330      extern "C"
7331 #  endif
7332    int F77_DUMMY_MAIN() { return 1; }
7333 #endif
7334 int
7335 main ()
7336 {
7337 /* The GNU C library defines this for functions which it implements
7338     to always fail with ENOSYS.  Some functions are actually named
7339     something starting with __ and the normal name is an alias.  */
7340 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
7341 choke me
7342 #else
7343 f = pthread_attr_init;
7344 #endif
7345
7346   ;
7347   return 0;
7348 }
7349 _ACEOF
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352   (eval $ac_link) 2>&5
7353   ac_status=$?
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); } &&
7356          { ac_try='test -s conftest$ac_exeext'
7357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358   (eval $ac_try) 2>&5
7359   ac_status=$?
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); }; }; then
7362   ac_cv_func_pthread_attr_init=yes
7363 else
7364   echo "$as_me: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7366 ac_cv_func_pthread_attr_init=no
7367 fi
7368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7369 fi
7370 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_init" >&5
7371 echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6
7372
7373   THREAD_LIB=""
7374 fi
7375
7376 echo "$as_me:$LINENO: checking for cthread_fork in -lthreads" >&5
7377 echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
7378 if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
7379   echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381   ac_check_lib_save_LIBS=$LIBS
7382 LIBS="-lthreads  $LIBS"
7383 cat >conftest.$ac_ext <<_ACEOF
7384 #line $LINENO "configure"
7385 #include "confdefs.h"
7386
7387 /* Override any gcc2 internal prototype to avoid an error.  */
7388 #ifdef __cplusplus
7389 extern "C"
7390 #endif
7391 /* We use char because int might match the return type of a gcc2
7392    builtin and then its argument prototype would still apply.  */
7393 char cthread_fork ();
7394 #ifdef F77_DUMMY_MAIN
7395 #  ifdef __cplusplus
7396      extern "C"
7397 #  endif
7398    int F77_DUMMY_MAIN() { return 1; }
7399 #endif
7400 int
7401 main ()
7402 {
7403 cthread_fork ();
7404   ;
7405   return 0;
7406 }
7407 _ACEOF
7408 rm -f conftest.$ac_objext conftest$ac_exeext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410   (eval $ac_link) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); } &&
7414          { ac_try='test -s conftest$ac_exeext'
7415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416   (eval $ac_try) 2>&5
7417   ac_status=$?
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); }; }; then
7420   ac_cv_lib_threads_cthread_fork=yes
7421 else
7422   echo "$as_me: failed program was:" >&5
7423 cat conftest.$ac_ext >&5
7424 ac_cv_lib_threads_cthread_fork=no
7425 fi
7426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7427 LIBS=$ac_check_lib_save_LIBS
7428 fi
7429 echo "$as_me:$LINENO: result: $ac_cv_lib_threads_cthread_fork" >&5
7430 echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6
7431 if test $ac_cv_lib_threads_cthread_fork = yes; then
7432   THREAD_LIB="-lthreads"
7433 fi
7434
7435
7436 cat >conftest.$ac_ext <<_ACEOF
7437 #line $LINENO "configure"
7438 #include "confdefs.h"
7439 #include <pthread.h>
7440
7441 _ACEOF
7442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7443   egrep "pthread_cond_t" >/dev/null 2>&1; then
7444
7445
7446 cat >>confdefs.h <<\_ACEOF
7447 #define PTHREAD_COND_T_IN_PTHREAD_H 1
7448 _ACEOF
7449
7450 fi
7451 rm -f conftest*
7452
7453 cat >conftest.$ac_ext <<_ACEOF
7454 #line $LINENO "configure"
7455 #include "confdefs.h"
7456 #include <strings.h>
7457
7458 _ACEOF
7459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7460   egrep "strncasecmp" >/dev/null 2>&1; then
7461
7462
7463 cat >>confdefs.h <<\_ACEOF
7464 #define STRNCASECMP_IN_STRINGS_H 1
7465 _ACEOF
7466
7467 fi
7468 rm -f conftest*
7469
7470
7471
7472
7473
7474
7475
7476 for ac_header in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
7477 do
7478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7480   echo "$as_me:$LINENO: checking for $ac_header" >&5
7481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7483   echo $ECHO_N "(cached) $ECHO_C" >&6
7484 fi
7485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7487 else
7488   # Is the header compilable?
7489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7491 cat >conftest.$ac_ext <<_ACEOF
7492 #line $LINENO "configure"
7493 #include "confdefs.h"
7494 $ac_includes_default
7495 #include <$ac_header>
7496 _ACEOF
7497 rm -f conftest.$ac_objext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7499   (eval $ac_compile) 2>&5
7500   ac_status=$?
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); } &&
7503          { ac_try='test -s conftest.$ac_objext'
7504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505   (eval $ac_try) 2>&5
7506   ac_status=$?
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); }; }; then
7509   ac_header_compiler=yes
7510 else
7511   echo "$as_me: failed program was:" >&5
7512 cat conftest.$ac_ext >&5
7513 ac_header_compiler=no
7514 fi
7515 rm -f conftest.$ac_objext conftest.$ac_ext
7516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7517 echo "${ECHO_T}$ac_header_compiler" >&6
7518
7519 # Is the header present?
7520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7522 cat >conftest.$ac_ext <<_ACEOF
7523 #line $LINENO "configure"
7524 #include "confdefs.h"
7525 #include <$ac_header>
7526 _ACEOF
7527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7529   ac_status=$?
7530   egrep -v '^ *\+' conftest.er1 >conftest.err
7531   rm -f conftest.er1
7532   cat conftest.err >&5
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); } >/dev/null; then
7535   if test -s conftest.err; then
7536     ac_cpp_err=$ac_c_preproc_warn_flag
7537   else
7538     ac_cpp_err=
7539   fi
7540 else
7541   ac_cpp_err=yes
7542 fi
7543 if test -z "$ac_cpp_err"; then
7544   ac_header_preproc=yes
7545 else
7546   echo "$as_me: failed program was:" >&5
7547   cat conftest.$ac_ext >&5
7548   ac_header_preproc=no
7549 fi
7550 rm -f conftest.err conftest.$ac_ext
7551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7552 echo "${ECHO_T}$ac_header_preproc" >&6
7553
7554 # So?  What about this header?
7555 case $ac_header_compiler:$ac_header_preproc in
7556   yes:no )
7557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7561   no:yes )
7562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7564     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7568 esac
7569 echo "$as_me:$LINENO: checking for $ac_header" >&5
7570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7572   echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574   eval "$as_ac_Header=$ac_header_preproc"
7575 fi
7576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7578
7579 fi
7580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7581   cat >>confdefs.h <<_ACEOF
7582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7583 _ACEOF
7584
7585 fi
7586
7587 done
7588
7589
7590
7591
7592
7593
7594 for ac_header in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
7595 do
7596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7598   echo "$as_me:$LINENO: checking for $ac_header" >&5
7599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 fi
7603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7605 else
7606   # Is the header compilable?
7607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7609 cat >conftest.$ac_ext <<_ACEOF
7610 #line $LINENO "configure"
7611 #include "confdefs.h"
7612 $ac_includes_default
7613 #include <$ac_header>
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7617   (eval $ac_compile) 2>&5
7618   ac_status=$?
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); } &&
7621          { ac_try='test -s conftest.$ac_objext'
7622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623   (eval $ac_try) 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); }; }; then
7627   ac_header_compiler=yes
7628 else
7629   echo "$as_me: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7631 ac_header_compiler=no
7632 fi
7633 rm -f conftest.$ac_objext conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7635 echo "${ECHO_T}$ac_header_compiler" >&6
7636
7637 # Is the header present?
7638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7640 cat >conftest.$ac_ext <<_ACEOF
7641 #line $LINENO "configure"
7642 #include "confdefs.h"
7643 #include <$ac_header>
7644 _ACEOF
7645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7646   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7647   ac_status=$?
7648   egrep -v '^ *\+' conftest.er1 >conftest.err
7649   rm -f conftest.er1
7650   cat conftest.err >&5
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); } >/dev/null; then
7653   if test -s conftest.err; then
7654     ac_cpp_err=$ac_c_preproc_warn_flag
7655   else
7656     ac_cpp_err=
7657   fi
7658 else
7659   ac_cpp_err=yes
7660 fi
7661 if test -z "$ac_cpp_err"; then
7662   ac_header_preproc=yes
7663 else
7664   echo "$as_me: failed program was:" >&5
7665   cat conftest.$ac_ext >&5
7666   ac_header_preproc=no
7667 fi
7668 rm -f conftest.err conftest.$ac_ext
7669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7670 echo "${ECHO_T}$ac_header_preproc" >&6
7671
7672 # So?  What about this header?
7673 case $ac_header_compiler:$ac_header_preproc in
7674   yes:no )
7675     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7679   no:yes )
7680     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7682     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7686 esac
7687 echo "$as_me:$LINENO: checking for $ac_header" >&5
7688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7690   echo $ECHO_N "(cached) $ECHO_C" >&6
7691 else
7692   eval "$as_ac_Header=$ac_header_preproc"
7693 fi
7694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7696
7697 fi
7698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7699   cat >>confdefs.h <<_ACEOF
7700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7701 _ACEOF
7702
7703 fi
7704
7705 done
7706
7707
7708
7709 for ac_header in dlfcn.h image.h
7710 do
7711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7713   echo "$as_me:$LINENO: checking for $ac_header" >&5
7714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 fi
7718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7720 else
7721   # Is the header compilable?
7722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7724 cat >conftest.$ac_ext <<_ACEOF
7725 #line $LINENO "configure"
7726 #include "confdefs.h"
7727 $ac_includes_default
7728 #include <$ac_header>
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732   (eval $ac_compile) 2>&5
7733   ac_status=$?
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); } &&
7736          { ac_try='test -s conftest.$ac_objext'
7737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738   (eval $ac_try) 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); }; }; then
7742   ac_header_compiler=yes
7743 else
7744   echo "$as_me: failed program was:" >&5
7745 cat conftest.$ac_ext >&5
7746 ac_header_compiler=no
7747 fi
7748 rm -f conftest.$ac_objext conftest.$ac_ext
7749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7750 echo "${ECHO_T}$ac_header_compiler" >&6
7751
7752 # Is the header present?
7753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7755 cat >conftest.$ac_ext <<_ACEOF
7756 #line $LINENO "configure"
7757 #include "confdefs.h"
7758 #include <$ac_header>
7759 _ACEOF
7760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7761   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7762   ac_status=$?
7763   egrep -v '^ *\+' conftest.er1 >conftest.err
7764   rm -f conftest.er1
7765   cat conftest.err >&5
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } >/dev/null; then
7768   if test -s conftest.err; then
7769     ac_cpp_err=$ac_c_preproc_warn_flag
7770   else
7771     ac_cpp_err=
7772   fi
7773 else
7774   ac_cpp_err=yes
7775 fi
7776 if test -z "$ac_cpp_err"; then
7777   ac_header_preproc=yes
7778 else
7779   echo "$as_me: failed program was:" >&5
7780   cat conftest.$ac_ext >&5
7781   ac_header_preproc=no
7782 fi
7783 rm -f conftest.err conftest.$ac_ext
7784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7785 echo "${ECHO_T}$ac_header_preproc" >&6
7786
7787 # So?  What about this header?
7788 case $ac_header_compiler:$ac_header_preproc in
7789   yes:no )
7790     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7794   no:yes )
7795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7797     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7801 esac
7802 echo "$as_me:$LINENO: checking for $ac_header" >&5
7803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7805   echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807   eval "$as_ac_Header=$ac_header_preproc"
7808 fi
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7811
7812 fi
7813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7814   cat >>confdefs.h <<_ACEOF
7815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7816 _ACEOF
7817
7818 fi
7819
7820 done
7821
7822
7823
7824
7825
7826 for ac_header in arpa/inet.h net/if.h netinet/in.h sys/socket.h
7827 do
7828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7830   echo "$as_me:$LINENO: checking for $ac_header" >&5
7831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 fi
7835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7837 else
7838   # Is the header compilable?
7839 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7841 cat >conftest.$ac_ext <<_ACEOF
7842 #line $LINENO "configure"
7843 #include "confdefs.h"
7844 $ac_includes_default
7845 #include <$ac_header>
7846 _ACEOF
7847 rm -f conftest.$ac_objext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7849   (eval $ac_compile) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); } &&
7853          { ac_try='test -s conftest.$ac_objext'
7854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855   (eval $ac_try) 2>&5
7856   ac_status=$?
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); }; }; then
7859   ac_header_compiler=yes
7860 else
7861   echo "$as_me: failed program was:" >&5
7862 cat conftest.$ac_ext >&5
7863 ac_header_compiler=no
7864 fi
7865 rm -f conftest.$ac_objext conftest.$ac_ext
7866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7867 echo "${ECHO_T}$ac_header_compiler" >&6
7868
7869 # Is the header present?
7870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7872 cat >conftest.$ac_ext <<_ACEOF
7873 #line $LINENO "configure"
7874 #include "confdefs.h"
7875 #include <$ac_header>
7876 _ACEOF
7877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7879   ac_status=$?
7880   egrep -v '^ *\+' conftest.er1 >conftest.err
7881   rm -f conftest.er1
7882   cat conftest.err >&5
7883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); } >/dev/null; then
7885   if test -s conftest.err; then
7886     ac_cpp_err=$ac_c_preproc_warn_flag
7887   else
7888     ac_cpp_err=
7889   fi
7890 else
7891   ac_cpp_err=yes
7892 fi
7893 if test -z "$ac_cpp_err"; then
7894   ac_header_preproc=yes
7895 else
7896   echo "$as_me: failed program was:" >&5
7897   cat conftest.$ac_ext >&5
7898   ac_header_preproc=no
7899 fi
7900 rm -f conftest.err conftest.$ac_ext
7901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7902 echo "${ECHO_T}$ac_header_preproc" >&6
7903
7904 # So?  What about this header?
7905 case $ac_header_compiler:$ac_header_preproc in
7906   yes:no )
7907     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7911   no:yes )
7912     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7914     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7918 esac
7919 echo "$as_me:$LINENO: checking for $ac_header" >&5
7920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7922   echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924   eval "$as_ac_Header=$ac_header_preproc"
7925 fi
7926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7928
7929 fi
7930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7931   cat >>confdefs.h <<_ACEOF
7932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7933 _ACEOF
7934
7935 fi
7936
7937 done
7938
7939
7940
7941 for ac_header in machine/param.h sys/shm.h
7942 do
7943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7945   echo "$as_me:$LINENO: checking for $ac_header" >&5
7946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7948   echo $ECHO_N "(cached) $ECHO_C" >&6
7949 fi
7950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7952 else
7953   # Is the header compilable?
7954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7956 cat >conftest.$ac_ext <<_ACEOF
7957 #line $LINENO "configure"
7958 #include "confdefs.h"
7959 $ac_includes_default
7960 #include <$ac_header>
7961 _ACEOF
7962 rm -f conftest.$ac_objext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7964   (eval $ac_compile) 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); } &&
7968          { ac_try='test -s conftest.$ac_objext'
7969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970   (eval $ac_try) 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); }; }; then
7974   ac_header_compiler=yes
7975 else
7976   echo "$as_me: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7978 ac_header_compiler=no
7979 fi
7980 rm -f conftest.$ac_objext conftest.$ac_ext
7981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7982 echo "${ECHO_T}$ac_header_compiler" >&6
7983
7984 # Is the header present?
7985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7988 #line $LINENO "configure"
7989 #include "confdefs.h"
7990 #include <$ac_header>
7991 _ACEOF
7992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7994   ac_status=$?
7995   egrep -v '^ *\+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } >/dev/null; then
8000   if test -s conftest.err; then
8001     ac_cpp_err=$ac_c_preproc_warn_flag
8002   else
8003     ac_cpp_err=
8004   fi
8005 else
8006   ac_cpp_err=yes
8007 fi
8008 if test -z "$ac_cpp_err"; then
8009   ac_header_preproc=yes
8010 else
8011   echo "$as_me: failed program was:" >&5
8012   cat conftest.$ac_ext >&5
8013   ac_header_preproc=no
8014 fi
8015 rm -f conftest.err conftest.$ac_ext
8016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8017 echo "${ECHO_T}$ac_header_preproc" >&6
8018
8019 # So?  What about this header?
8020 case $ac_header_compiler:$ac_header_preproc in
8021   yes:no )
8022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8026   no:yes )
8027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8029     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8033 esac
8034 echo "$as_me:$LINENO: checking for $ac_header" >&5
8035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   eval "$as_ac_Header=$ac_header_preproc"
8040 fi
8041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8043
8044 fi
8045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8046   cat >>confdefs.h <<_ACEOF
8047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8048 _ACEOF
8049
8050 fi
8051
8052 done
8053
8054
8055 for ac_header in linux/version.h
8056 do
8057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8059   echo "$as_me:$LINENO: checking for $ac_header" >&5
8060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 fi
8064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8066 else
8067   # Is the header compilable?
8068 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8070 cat >conftest.$ac_ext <<_ACEOF
8071 #line $LINENO "configure"
8072 #include "confdefs.h"
8073 $ac_includes_default
8074 #include <$ac_header>
8075 _ACEOF
8076 rm -f conftest.$ac_objext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078   (eval $ac_compile) 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } &&
8082          { ac_try='test -s conftest.$ac_objext'
8083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084   (eval $ac_try) 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); }; }; then
8088   ac_header_compiler=yes
8089 else
8090   echo "$as_me: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8092 ac_header_compiler=no
8093 fi
8094 rm -f conftest.$ac_objext conftest.$ac_ext
8095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8096 echo "${ECHO_T}$ac_header_compiler" >&6
8097
8098 # Is the header present?
8099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8102 #line $LINENO "configure"
8103 #include "confdefs.h"
8104 #include <$ac_header>
8105 _ACEOF
8106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8108   ac_status=$?
8109   egrep -v '^ *\+' conftest.er1 >conftest.err
8110   rm -f conftest.er1
8111   cat conftest.err >&5
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } >/dev/null; then
8114   if test -s conftest.err; then
8115     ac_cpp_err=$ac_c_preproc_warn_flag
8116   else
8117     ac_cpp_err=
8118   fi
8119 else
8120   ac_cpp_err=yes
8121 fi
8122 if test -z "$ac_cpp_err"; then
8123   ac_header_preproc=yes
8124 else
8125   echo "$as_me: failed program was:" >&5
8126   cat conftest.$ac_ext >&5
8127   ac_header_preproc=no
8128 fi
8129 rm -f conftest.err conftest.$ac_ext
8130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8131 echo "${ECHO_T}$ac_header_preproc" >&6
8132
8133 # So?  What about this header?
8134 case $ac_header_compiler:$ac_header_preproc in
8135   yes:no )
8136     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8140   no:yes )
8141     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8143     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8147 esac
8148 echo "$as_me:$LINENO: checking for $ac_header" >&5
8149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8151   echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153   eval "$as_ac_Header=$ac_header_preproc"
8154 fi
8155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8157
8158 fi
8159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8160   cat >>confdefs.h <<_ACEOF
8161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8162 _ACEOF
8163
8164 fi
8165
8166 done
8167
8168
8169 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8170 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8171 if test "${ac_cv_header_time+set}" = set; then
8172   echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174   cat >conftest.$ac_ext <<_ACEOF
8175 #line $LINENO "configure"
8176 #include "confdefs.h"
8177 #include <sys/types.h>
8178 #include <sys/time.h>
8179 #include <time.h>
8180
8181 #ifdef F77_DUMMY_MAIN
8182 #  ifdef __cplusplus
8183      extern "C"
8184 #  endif
8185    int F77_DUMMY_MAIN() { return 1; }
8186 #endif
8187 int
8188 main ()
8189 {
8190 if ((struct tm *) 0)
8191 return 0;
8192   ;
8193   return 0;
8194 }
8195 _ACEOF
8196 rm -f conftest.$ac_objext
8197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8198   (eval $ac_compile) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); } &&
8202          { ac_try='test -s conftest.$ac_objext'
8203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204   (eval $ac_try) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }; }; then
8208   ac_cv_header_time=yes
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 cat conftest.$ac_ext >&5
8212 ac_cv_header_time=no
8213 fi
8214 rm -f conftest.$ac_objext conftest.$ac_ext
8215 fi
8216 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8217 echo "${ECHO_T}$ac_cv_header_time" >&6
8218 if test $ac_cv_header_time = yes; then
8219
8220 cat >>confdefs.h <<\_ACEOF
8221 #define TIME_WITH_SYS_TIME 1
8222 _ACEOF
8223
8224 fi
8225
8226
8227 cat >conftest.$ac_ext <<_ACEOF
8228 #line $LINENO "configure"
8229 #include "confdefs.h"
8230 #include <time.h>
8231
8232 _ACEOF
8233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8234   egrep "nanosleep" >/dev/null 2>&1; then
8235
8236
8237 cat >>confdefs.h <<\_ACEOF
8238 #define HAVE_DECL_NANOSLEEP 1
8239 _ACEOF
8240
8241
8242 fi
8243 rm -f conftest*
8244
8245
8246 cat >conftest.$ac_ext <<_ACEOF
8247 #line $LINENO "configure"
8248 #include "confdefs.h"
8249 #include <sys/time.h>
8250
8251 _ACEOF
8252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8253   egrep "timespec" >/dev/null 2>&1; then
8254
8255
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_STRUCT_TIMESPEC 1
8258 _ACEOF
8259
8260
8261 fi
8262 rm -f conftest*
8263
8264
8265
8266
8267
8268
8269 for ac_header in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
8270 do
8271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8273   echo "$as_me:$LINENO: checking for $ac_header" >&5
8274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8276   echo $ECHO_N "(cached) $ECHO_C" >&6
8277 fi
8278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8280 else
8281   # Is the header compilable?
8282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8284 cat >conftest.$ac_ext <<_ACEOF
8285 #line $LINENO "configure"
8286 #include "confdefs.h"
8287 $ac_includes_default
8288 #include <$ac_header>
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8292   (eval $ac_compile) 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); } &&
8296          { ac_try='test -s conftest.$ac_objext'
8297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298   (eval $ac_try) 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; }; then
8302   ac_header_compiler=yes
8303 else
8304   echo "$as_me: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8306 ac_header_compiler=no
8307 fi
8308 rm -f conftest.$ac_objext conftest.$ac_ext
8309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8310 echo "${ECHO_T}$ac_header_compiler" >&6
8311
8312 # Is the header present?
8313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8315 cat >conftest.$ac_ext <<_ACEOF
8316 #line $LINENO "configure"
8317 #include "confdefs.h"
8318 #include <$ac_header>
8319 _ACEOF
8320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8322   ac_status=$?
8323   egrep -v '^ *\+' conftest.er1 >conftest.err
8324   rm -f conftest.er1
8325   cat conftest.err >&5
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); } >/dev/null; then
8328   if test -s conftest.err; then
8329     ac_cpp_err=$ac_c_preproc_warn_flag
8330   else
8331     ac_cpp_err=
8332   fi
8333 else
8334   ac_cpp_err=yes
8335 fi
8336 if test -z "$ac_cpp_err"; then
8337   ac_header_preproc=yes
8338 else
8339   echo "$as_me: failed program was:" >&5
8340   cat conftest.$ac_ext >&5
8341   ac_header_preproc=no
8342 fi
8343 rm -f conftest.err conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8345 echo "${ECHO_T}$ac_header_preproc" >&6
8346
8347 # So?  What about this header?
8348 case $ac_header_compiler:$ac_header_preproc in
8349   yes:no )
8350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8354   no:yes )
8355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8357     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8361 esac
8362 echo "$as_me:$LINENO: checking for $ac_header" >&5
8363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8365   echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367   eval "$as_ac_Header=$ac_header_preproc"
8368 fi
8369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8371
8372 fi
8373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8374   cat >>confdefs.h <<_ACEOF
8375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8376 _ACEOF
8377
8378 fi
8379
8380 done
8381
8382
8383 if test x$SYS != xmingw32
8384 then
8385   if test x$x_includes = xNONE; then
8386     x_includes=/usr/X11R6/include
8387   fi
8388   if test x$x_libraries = xNONE; then
8389     x_libraries=/usr/X11R6/lib
8390   fi
8391   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
8392
8393 for ac_header in X11/extensions/dpms.h
8394 do
8395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8397   echo "$as_me:$LINENO: checking for $ac_header" >&5
8398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 fi
8402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8404 else
8405   # Is the header compilable?
8406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8408 cat >conftest.$ac_ext <<_ACEOF
8409 #line $LINENO "configure"
8410 #include "confdefs.h"
8411 $ac_includes_default
8412 #include <$ac_header>
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416   (eval $ac_compile) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); } &&
8420          { ac_try='test -s conftest.$ac_objext'
8421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422   (eval $ac_try) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   ac_header_compiler=yes
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 cat conftest.$ac_ext >&5
8430 ac_header_compiler=no
8431 fi
8432 rm -f conftest.$ac_objext conftest.$ac_ext
8433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8434 echo "${ECHO_T}$ac_header_compiler" >&6
8435
8436 # Is the header present?
8437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8439 cat >conftest.$ac_ext <<_ACEOF
8440 #line $LINENO "configure"
8441 #include "confdefs.h"
8442 #include <$ac_header>
8443 _ACEOF
8444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8446   ac_status=$?
8447   egrep -v '^ *\+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } >/dev/null; then
8452   if test -s conftest.err; then
8453     ac_cpp_err=$ac_c_preproc_warn_flag
8454   else
8455     ac_cpp_err=
8456   fi
8457 else
8458   ac_cpp_err=yes
8459 fi
8460 if test -z "$ac_cpp_err"; then
8461   ac_header_preproc=yes
8462 else
8463   echo "$as_me: failed program was:" >&5
8464   cat conftest.$ac_ext >&5
8465   ac_header_preproc=no
8466 fi
8467 rm -f conftest.err conftest.$ac_ext
8468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8469 echo "${ECHO_T}$ac_header_preproc" >&6
8470
8471 # So?  What about this header?
8472 case $ac_header_compiler:$ac_header_preproc in
8473   yes:no )
8474     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8478   no:yes )
8479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8481     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8485 esac
8486 echo "$as_me:$LINENO: checking for $ac_header" >&5
8487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8489   echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491   eval "$as_ac_Header=$ac_header_preproc"
8492 fi
8493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8495
8496 fi
8497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8498   cat >>confdefs.h <<_ACEOF
8499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8500 _ACEOF
8501
8502     cat >conftest.$ac_ext <<_ACEOF
8503 #line $LINENO "configure"
8504 #include "confdefs.h"
8505 #include <X11/extensions/dpms.h>
8506
8507 _ACEOF
8508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8509   egrep "DPMSInfo" >/dev/null 2>&1; then
8510
8511
8512 cat >>confdefs.h <<\_ACEOF
8513 #define DPMSINFO_IN_DPMS_H 1
8514 _ACEOF
8515
8516
8517 fi
8518 rm -f conftest*
8519
8520
8521 fi
8522
8523 done
8524
8525   CPPFLAGS="$save_CPPFLAGS"
8526 fi
8527
8528 echo "$as_me:$LINENO: checking for ntohl in sys/param.h" >&5
8529 echo $ECHO_N "checking for ntohl in sys/param.h... $ECHO_C" >&6
8530 if test "${ac_cv_c_ntohl_sys_param_h+set}" = set; then
8531   echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533   CFLAGS="${save_CFLAGS} -Wall -Werror"
8534      cat >conftest.$ac_ext <<_ACEOF
8535 #line $LINENO "configure"
8536 #include "confdefs.h"
8537 #include <sys/param.h>
8538 #ifdef F77_DUMMY_MAIN
8539 #  ifdef __cplusplus
8540      extern "C"
8541 #  endif
8542    int F77_DUMMY_MAIN() { return 1; }
8543 #endif
8544 int
8545 main ()
8546 {
8547 void foo() { int meuh; ntohl(meuh); }
8548   ;
8549   return 0;
8550 }
8551 _ACEOF
8552 rm -f conftest.$ac_objext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8554   (eval $ac_compile) 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); } &&
8558          { ac_try='test -s conftest.$ac_objext'
8559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560   (eval $ac_try) 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; }; then
8564   ac_cv_c_ntohl_sys_param_h=yes
8565 else
8566   echo "$as_me: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8568 ac_cv_c_ntohl_sys_param_h=no
8569 fi
8570 rm -f conftest.$ac_objext conftest.$ac_ext
8571 fi
8572 echo "$as_me:$LINENO: result: $ac_cv_c_ntohl_sys_param_h" >&5
8573 echo "${ECHO_T}$ac_cv_c_ntohl_sys_param_h" >&6
8574 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
8575
8576 cat >>confdefs.h <<\_ACEOF
8577 #define NTOHL_IN_SYS_PARAM_H 1
8578 _ACEOF
8579
8580 fi
8581
8582 echo "$as_me:$LINENO: checking if \$CC accepts -finline-limit" >&5
8583 echo $ECHO_N "checking if \$CC accepts -finline-limit... $ECHO_C" >&6
8584 if test "${ac_cv_c_inline_limit+set}" = set; then
8585   echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587   CFLAGS="${save_CFLAGS} -finline-limit-30000"
8588      cat >conftest.$ac_ext <<_ACEOF
8589 #line $LINENO "configure"
8590 #include "confdefs.h"
8591
8592 #ifdef F77_DUMMY_MAIN
8593 #  ifdef __cplusplus
8594      extern "C"
8595 #  endif
8596    int F77_DUMMY_MAIN() { return 1; }
8597 #endif
8598 int
8599 main ()
8600 {
8601
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8608   (eval $ac_compile) 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } &&
8612          { ac_try='test -s conftest.$ac_objext'
8613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614   (eval $ac_try) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; }; then
8618   ac_cv_c_inline_limit=yes
8619 else
8620   echo "$as_me: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8622 ac_cv_c_inline_limit=no
8623 fi
8624 rm -f conftest.$ac_objext conftest.$ac_ext
8625 fi
8626 echo "$as_me:$LINENO: result: $ac_cv_c_inline_limit" >&5
8627 echo "${ECHO_T}$ac_cv_c_inline_limit" >&6
8628 if test x"$ac_cv_c_inline_limit" != x"no"; then
8629     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
8630 fi
8631
8632 echo "$as_me:$LINENO: checking if \$CC accepts -Wall -Winline" >&5
8633 echo $ECHO_N "checking if \$CC accepts -Wall -Winline... $ECHO_C" >&6
8634 if test "${ac_cv_c_Wall_Winline+set}" = set; then
8635   echo $ECHO_N "(cached) $ECHO_C" >&6
8636 else
8637   CFLAGS="${save_CFLAGS} -Wall -Winline"
8638      cat >conftest.$ac_ext <<_ACEOF
8639 #line $LINENO "configure"
8640 #include "confdefs.h"
8641
8642 #ifdef F77_DUMMY_MAIN
8643 #  ifdef __cplusplus
8644      extern "C"
8645 #  endif
8646    int F77_DUMMY_MAIN() { return 1; }
8647 #endif
8648 int
8649 main ()
8650 {
8651
8652   ;
8653   return 0;
8654 }
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658   (eval $ac_compile) 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } &&
8662          { ac_try='test -s conftest.$ac_objext'
8663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664   (eval $ac_try) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); }; }; then
8668   ac_cv_c_Wall_Winline=yes
8669 else
8670   echo "$as_me: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8672 ac_cv_c_Wall_Winline=no
8673 fi
8674 rm -f conftest.$ac_objext conftest.$ac_ext
8675 fi
8676 echo "$as_me:$LINENO: result: $ac_cv_c_Wall_Winline" >&5
8677 echo "${ECHO_T}$ac_cv_c_Wall_Winline" >&6
8678 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
8679     save_CFLAGS="${save_CFLAGS} -Wall -Winline"
8680 else
8681     echo "$as_me:$LINENO: checking if \$CC accepts -wall -winline" >&5
8682 echo $ECHO_N "checking if \$CC accepts -wall -winline... $ECHO_C" >&6
8683 if test "${ac_cv_c_wall_winline+set}" = set; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686   CFLAGS="${save_CFLAGS} -wall -winline"
8687          cat >conftest.$ac_ext <<_ACEOF
8688 #line $LINENO "configure"
8689 #include "confdefs.h"
8690
8691 #ifdef F77_DUMMY_MAIN
8692 #  ifdef __cplusplus
8693      extern "C"
8694 #  endif
8695    int F77_DUMMY_MAIN() { return 1; }
8696 #endif
8697 int
8698 main ()
8699 {
8700
8701   ;
8702   return 0;
8703 }
8704 _ACEOF
8705 rm -f conftest.$ac_objext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8707   (eval $ac_compile) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } &&
8711          { ac_try='test -s conftest.$ac_objext'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; }; then
8717   ac_cv_c_wall_winline=yes
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721 ac_cv_c_wall_winline=no
8722 fi
8723 rm -f conftest.$ac_objext conftest.$ac_ext
8724 fi
8725 echo "$as_me:$LINENO: result: $ac_cv_c_wall_winline" >&5
8726 echo "${ECHO_T}$ac_cv_c_wall_winline" >&6
8727     if test x"$ac_cv_c_wall_winline" != x"no"; then
8728         save_CFLAGS="${save_CFLAGS} -wall -winline"
8729     fi
8730 fi
8731
8732 echo "$as_me:$LINENO: checking if \$CC accepts -pipe" >&5
8733 echo $ECHO_N "checking if \$CC accepts -pipe... $ECHO_C" >&6
8734 if test "${ac_cv_c_pipe+set}" = set; then
8735   echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737   CFLAGS="${save_CFLAGS} -pipe"
8738      cat >conftest.$ac_ext <<_ACEOF
8739 #line $LINENO "configure"
8740 #include "confdefs.h"
8741
8742 #ifdef F77_DUMMY_MAIN
8743 #  ifdef __cplusplus
8744      extern "C"
8745 #  endif
8746    int F77_DUMMY_MAIN() { return 1; }
8747 #endif
8748 int
8749 main ()
8750 {
8751
8752   ;
8753   return 0;
8754 }
8755 _ACEOF
8756 rm -f conftest.$ac_objext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758   (eval $ac_compile) 2>&5
8759   ac_status=$?
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); } &&
8762          { ac_try='test -s conftest.$ac_objext'
8763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764   (eval $ac_try) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; }; then
8768   ac_cv_c_pipe=yes
8769 else
8770   echo "$as_me: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8772 ac_cv_c_pipe=no
8773 fi
8774 rm -f conftest.$ac_objext conftest.$ac_ext
8775 fi
8776 echo "$as_me:$LINENO: result: $ac_cv_c_pipe" >&5
8777 echo "${ECHO_T}$ac_cv_c_pipe" >&6
8778 if test x"$ac_cv_c_pipe" != x"no"; then
8779     save_CFLAGS="${save_CFLAGS} -pipe"
8780 fi
8781
8782 echo "$as_me:$LINENO: checking if \$CC accepts -O3" >&5
8783 echo $ECHO_N "checking if \$CC accepts -O3... $ECHO_C" >&6
8784 if test "${ac_cv_c_o3+set}" = set; then
8785   echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787   CFLAGS="${save_CFLAGS} -O3"
8788      cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 #include "confdefs.h"
8791
8792 #ifdef F77_DUMMY_MAIN
8793 #  ifdef __cplusplus
8794      extern "C"
8795 #  endif
8796    int F77_DUMMY_MAIN() { return 1; }
8797 #endif
8798 int
8799 main ()
8800 {
8801
8802   ;
8803   return 0;
8804 }
8805 _ACEOF
8806 rm -f conftest.$ac_objext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8808   (eval $ac_compile) 2>&5
8809   ac_status=$?
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); } &&
8812          { ac_try='test -s conftest.$ac_objext'
8813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814   (eval $ac_try) 2>&5
8815   ac_status=$?
8816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); }; }; then
8818   ac_cv_c_o3=yes
8819 else
8820   echo "$as_me: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8822 ac_cv_c_o3=no
8823 fi
8824 rm -f conftest.$ac_objext conftest.$ac_ext
8825 fi
8826 echo "$as_me:$LINENO: result: $ac_cv_c_o3" >&5
8827 echo "${ECHO_T}$ac_cv_c_o3" >&6
8828 if test x"$ac_cv_c_o3" != x"no"; then
8829     CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
8830 else
8831     echo "$as_me:$LINENO: checking if \$CC accepts -O2" >&5
8832 echo $ECHO_N "checking if \$CC accepts -O2... $ECHO_C" >&6
8833 if test "${ac_cv_c_o2+set}" = set; then
8834   echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836   CFLAGS="${save_CFLAGS} -O2"
8837          cat >conftest.$ac_ext <<_ACEOF
8838 #line $LINENO "configure"
8839 #include "confdefs.h"
8840
8841 #ifdef F77_DUMMY_MAIN
8842 #  ifdef __cplusplus
8843      extern "C"
8844 #  endif
8845    int F77_DUMMY_MAIN() { return 1; }
8846 #endif
8847 int
8848 main ()
8849 {
8850
8851   ;
8852   return 0;
8853 }
8854 _ACEOF
8855 rm -f conftest.$ac_objext
8856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8857   (eval $ac_compile) 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); } &&
8861          { ac_try='test -s conftest.$ac_objext'
8862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863   (eval $ac_try) 2>&5
8864   ac_status=$?
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); }; }; then
8867   ac_cv_c_o2=yes
8868 else
8869   echo "$as_me: failed program was:" >&5
8870 cat conftest.$ac_ext >&5
8871 ac_cv_c_o2=no
8872 fi
8873 rm -f conftest.$ac_objext conftest.$ac_ext
8874 fi
8875 echo "$as_me:$LINENO: result: $ac_cv_c_o2" >&5
8876 echo "${ECHO_T}$ac_cv_c_o2" >&6
8877     if test x"$ac_cv_c_o2" != x"no"; then
8878         CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
8879     else
8880         echo "$as_me:$LINENO: checking if \$CC accepts -O" >&5
8881 echo $ECHO_N "checking if \$CC accepts -O... $ECHO_C" >&6
8882 if test "${ac_cv_c_o+set}" = set; then
8883   echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885   CFLAGS="${save_CFLAGS} -O"
8886              cat >conftest.$ac_ext <<_ACEOF
8887 #line $LINENO "configure"
8888 #include "confdefs.h"
8889
8890 #ifdef F77_DUMMY_MAIN
8891 #  ifdef __cplusplus
8892      extern "C"
8893 #  endif
8894    int F77_DUMMY_MAIN() { return 1; }
8895 #endif
8896 int
8897 main ()
8898 {
8899
8900   ;
8901   return 0;
8902 }
8903 _ACEOF
8904 rm -f conftest.$ac_objext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8906   (eval $ac_compile) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); } &&
8910          { ac_try='test -s conftest.$ac_objext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   ac_cv_c_o=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8920 ac_cv_c_o=no
8921 fi
8922 rm -f conftest.$ac_objext conftest.$ac_ext
8923 fi
8924 echo "$as_me:$LINENO: result: $ac_cv_c_o" >&5
8925 echo "${ECHO_T}$ac_cv_c_o" >&6
8926         if test x"$ac_cv_c_o" != x"no"; then
8927             CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
8928         fi
8929     fi
8930 fi
8931
8932 echo "$as_me:$LINENO: checking if \$CC accepts -ffast-math" >&5
8933 echo $ECHO_N "checking if \$CC accepts -ffast-math... $ECHO_C" >&6
8934 if test "${ac_cv_c_fast_math+set}" = set; then
8935   echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937   CFLAGS="${save_CFLAGS} -ffast-math"
8938      cat >conftest.$ac_ext <<_ACEOF
8939 #line $LINENO "configure"
8940 #include "confdefs.h"
8941
8942 #ifdef F77_DUMMY_MAIN
8943 #  ifdef __cplusplus
8944      extern "C"
8945 #  endif
8946    int F77_DUMMY_MAIN() { return 1; }
8947 #endif
8948 int
8949 main ()
8950 {
8951
8952   ;
8953   return 0;
8954 }
8955 _ACEOF
8956 rm -f conftest.$ac_objext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8958   (eval $ac_compile) 2>&5
8959   ac_status=$?
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); } &&
8962          { ac_try='test -s conftest.$ac_objext'
8963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964   (eval $ac_try) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); }; }; then
8968   ac_cv_c_fast_math=yes
8969 else
8970   echo "$as_me: failed program was:" >&5
8971 cat conftest.$ac_ext >&5
8972 ac_cv_c_fast_math=no
8973 fi
8974 rm -f conftest.$ac_objext conftest.$ac_ext
8975 fi
8976 echo "$as_me:$LINENO: result: $ac_cv_c_fast_math" >&5
8977 echo "${ECHO_T}$ac_cv_c_fast_math" >&6
8978 if test x"$ac_cv_c_fast_math" != x"no"; then
8979     CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
8980 fi
8981
8982 echo "$as_me:$LINENO: checking if \$CC accepts -funroll-loops" >&5
8983 echo $ECHO_N "checking if \$CC accepts -funroll-loops... $ECHO_C" >&6
8984 if test "${ac_cv_c_unroll_loops+set}" = set; then
8985   echo $ECHO_N "(cached) $ECHO_C" >&6
8986 else
8987   CFLAGS="${save_CFLAGS} -funroll-loops"
8988      cat >conftest.$ac_ext <<_ACEOF
8989 #line $LINENO "configure"
8990 #include "confdefs.h"
8991
8992 #ifdef F77_DUMMY_MAIN
8993 #  ifdef __cplusplus
8994      extern "C"
8995 #  endif
8996    int F77_DUMMY_MAIN() { return 1; }
8997 #endif
8998 int
8999 main ()
9000 {
9001
9002   ;
9003   return 0;
9004 }
9005 _ACEOF
9006 rm -f conftest.$ac_objext
9007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9008   (eval $ac_compile) 2>&5
9009   ac_status=$?
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); } &&
9012          { ac_try='test -s conftest.$ac_objext'
9013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014   (eval $ac_try) 2>&5
9015   ac_status=$?
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); }; }; then
9018   ac_cv_c_unroll_loops=yes
9019 else
9020   echo "$as_me: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9022 ac_cv_c_unroll_loops=no
9023 fi
9024 rm -f conftest.$ac_objext conftest.$ac_ext
9025 fi
9026 echo "$as_me:$LINENO: result: $ac_cv_c_unroll_loops" >&5
9027 echo "${ECHO_T}$ac_cv_c_unroll_loops" >&6
9028 if test x"$ac_cv_c_unroll_loops" != x"no"; then
9029     CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
9030 fi
9031
9032 echo "$as_me:$LINENO: checking if \$CC accepts -fomit-frame-pointer" >&5
9033 echo $ECHO_N "checking if \$CC accepts -fomit-frame-pointer... $ECHO_C" >&6
9034 if test "${ac_cv_c_omit_frame_pointer+set}" = set; then
9035   echo $ECHO_N "(cached) $ECHO_C" >&6
9036 else
9037   CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
9038      cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 #include "confdefs.h"
9041
9042 #ifdef F77_DUMMY_MAIN
9043 #  ifdef __cplusplus
9044      extern "C"
9045 #  endif
9046    int F77_DUMMY_MAIN() { return 1; }
9047 #endif
9048 int
9049 main ()
9050 {
9051
9052   ;
9053   return 0;
9054 }
9055 _ACEOF
9056 rm -f conftest.$ac_objext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9058   (eval $ac_compile) 2>&5
9059   ac_status=$?
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); } &&
9062          { ac_try='test -s conftest.$ac_objext'
9063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064   (eval $ac_try) 2>&5
9065   ac_status=$?
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); }; }; then
9068   ac_cv_c_omit_frame_pointer=yes
9069 else
9070   echo "$as_me: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9072 ac_cv_c_omit_frame_pointer=no
9073 fi
9074 rm -f conftest.$ac_objext conftest.$ac_ext
9075 fi
9076 echo "$as_me:$LINENO: result: $ac_cv_c_omit_frame_pointer" >&5
9077 echo "${ECHO_T}$ac_cv_c_omit_frame_pointer" >&6
9078 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
9079     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
9080 fi
9081
9082 if test x$SYS = xmingw32
9083 then
9084     echo "$as_me:$LINENO: checking if \$CC accepts -mms-bitfields" >&5
9085 echo $ECHO_N "checking if \$CC accepts -mms-bitfields... $ECHO_C" >&6
9086 if test "${ac_cv_c_mms_bitfields+set}" = set; then
9087   echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089   CFLAGS="${save_CFLAGS} -mms-bitfields"
9090          cat >conftest.$ac_ext <<_ACEOF
9091 #line $LINENO "configure"
9092 #include "confdefs.h"
9093
9094 #ifdef F77_DUMMY_MAIN
9095 #  ifdef __cplusplus
9096      extern "C"
9097 #  endif
9098    int F77_DUMMY_MAIN() { return 1; }
9099 #endif
9100 int
9101 main ()
9102 {
9103
9104   ;
9105   return 0;
9106 }
9107 _ACEOF
9108 rm -f conftest.$ac_objext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9110   (eval $ac_compile) 2>&5
9111   ac_status=$?
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } &&
9114          { ac_try='test -s conftest.$ac_objext'
9115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116   (eval $ac_try) 2>&5
9117   ac_status=$?
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   (exit $ac_status); }; }; then
9120   ac_cv_c_mms_bitfields=yes
9121 else
9122   echo "$as_me: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 ac_cv_c_mms_bitfields=no
9125 fi
9126 rm -f conftest.$ac_objext conftest.$ac_ext
9127 fi
9128 echo "$as_me:$LINENO: result: $ac_cv_c_mms_bitfields" >&5
9129 echo "${ECHO_T}$ac_cv_c_mms_bitfields" >&6
9130     if test x"$ac_cv_c_mms_bitfields" != x"no"; then
9131         save_CFLAGS="${save_CFLAGS} -mms-bitfields"
9132         plugins_CFLAGS="${plugins_CFLAGS} -mms-bitfields"
9133     else
9134         save_CFLAGS="${save_CFLAGS} -fnative-struct"
9135         plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
9136     fi
9137 fi
9138
9139 echo "$as_me:$LINENO: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
9140 echo $ECHO_N "checking if \$CC accepts -bundle -undefined error -lcc_dynamic... $ECHO_C" >&6
9141 if test "${ac_cv_ld_darwin+set}" = set; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144   CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
9145      cat >conftest.$ac_ext <<_ACEOF
9146 #line $LINENO "configure"
9147 #include "confdefs.h"
9148
9149 #ifdef F77_DUMMY_MAIN
9150 #  ifdef __cplusplus
9151      extern "C"
9152 #  endif
9153    int F77_DUMMY_MAIN() { return 1; }
9154 #endif
9155 int
9156 main ()
9157 {
9158
9159   ;
9160   return 0;
9161 }
9162 _ACEOF
9163 rm -f conftest.$ac_objext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9165   (eval $ac_compile) 2>&5
9166   ac_status=$?
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); } &&
9169          { ac_try='test -s conftest.$ac_objext'
9170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171   (eval $ac_try) 2>&5
9172   ac_status=$?
9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); }; }; then
9175   ac_cv_ld_darwin=yes
9176 else
9177   echo "$as_me: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9179 ac_cv_ld_darwin=no
9180 fi
9181 rm -f conftest.$ac_objext conftest.$ac_ext
9182 fi
9183 echo "$as_me:$LINENO: result: $ac_cv_ld_darwin" >&5
9184 echo "${ECHO_T}$ac_cv_ld_darwin" >&6
9185 if test x"$ac_cv_ld_darwin" != x"no"; then
9186     plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
9187 fi
9188
9189 echo "$as_me:$LINENO: checking if \$CC accepts -shared" >&5
9190 echo $ECHO_N "checking if \$CC accepts -shared... $ECHO_C" >&6
9191 if test "${ac_cv_ld_plugins+set}" = set; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194   CFLAGS="${save_CFLAGS} -shared"
9195      cat >conftest.$ac_ext <<_ACEOF
9196 #line $LINENO "configure"
9197 #include "confdefs.h"
9198
9199 #ifdef F77_DUMMY_MAIN
9200 #  ifdef __cplusplus
9201      extern "C"
9202 #  endif
9203    int F77_DUMMY_MAIN() { return 1; }
9204 #endif
9205 int
9206 main ()
9207 {
9208
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 rm -f conftest.$ac_objext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215   (eval $ac_compile) 2>&5
9216   ac_status=$?
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); } &&
9219          { ac_try='test -s conftest.$ac_objext'
9220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221   (eval $ac_try) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); }; }; then
9225   ac_cv_ld_plugins=yes
9226 else
9227   echo "$as_me: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9229 ac_cv_ld_plugins=no
9230 fi
9231 rm -f conftest.$ac_objext conftest.$ac_ext
9232 fi
9233 echo "$as_me:$LINENO: result: $ac_cv_ld_plugins" >&5
9234 echo "${ECHO_T}$ac_cv_ld_plugins" >&6
9235 if test x"$ac_cv_ld_plugins" != x"no"; then
9236     plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
9237 fi
9238
9239 echo "$as_me:$LINENO: checking for variadic cpp macros" >&5
9240 echo $ECHO_N "checking for variadic cpp macros... $ECHO_C" >&6
9241 if test "${ac_cv_cpp_variadic_macros+set}" = set; then
9242   echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244   CFLAGS="${save_CFLAGS}"
9245      cat >conftest.$ac_ext <<_ACEOF
9246 #line $LINENO "configure"
9247 #include "confdefs.h"
9248 #include <stdio.h>
9249           #define a(b,c...) printf(b,##c)
9250 #ifdef F77_DUMMY_MAIN
9251 #  ifdef __cplusplus
9252      extern "C"
9253 #  endif
9254    int F77_DUMMY_MAIN() { return 1; }
9255 #endif
9256 int
9257 main ()
9258 {
9259 a("foo");a("%s","bar");a("%s%s","baz","quux");
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_cpp_variadic_macros=yes
9277 else
9278   echo "$as_me: failed program was:" >&5
9279 cat conftest.$ac_ext >&5
9280 ac_cv_cpp_variadic_macros=no
9281 fi
9282 rm -f conftest.$ac_objext conftest.$ac_ext
9283 fi
9284 echo "$as_me:$LINENO: result: $ac_cv_cpp_variadic_macros" >&5
9285 echo "${ECHO_T}$ac_cv_cpp_variadic_macros" >&6
9286 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
9287
9288 cat >>confdefs.h <<\_ACEOF
9289 #define HAVE_VARIADIC_MACROS 1
9290 _ACEOF
9291
9292 fi
9293
9294 echo "$as_me:$LINENO: checking __attribute__ ((aligned ())) support" >&5
9295 echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6
9296 if test "${ac_cv_c_attribute_aligned+set}" = set; then
9297   echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299   ac_cv_c_attribute_aligned=0
9300         CFLAGS="${save_CFLAGS} -Werror"
9301     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
9302         cat >conftest.$ac_ext <<_ACEOF
9303 #line $LINENO "configure"
9304 #include "confdefs.h"
9305
9306 #ifdef F77_DUMMY_MAIN
9307 #  ifdef __cplusplus
9308      extern "C"
9309 #  endif
9310    int F77_DUMMY_MAIN() { return 1; }
9311 #endif
9312 int
9313 main ()
9314 {
9315 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
9316   ;
9317   return 0;
9318 }
9319 _ACEOF
9320 rm -f conftest.$ac_objext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322   (eval $ac_compile) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); } &&
9326          { ac_try='test -s conftest.$ac_objext'
9327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328   (eval $ac_try) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); }; }; then
9332   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
9333 else
9334   echo "$as_me: failed program was:" >&5
9335 cat conftest.$ac_ext >&5
9336 fi
9337 rm -f conftest.$ac_objext conftest.$ac_ext
9338     done
9339 fi
9340 echo "$as_me:$LINENO: result: $ac_cv_c_attribute_aligned" >&5
9341 echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6
9342 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
9343
9344 cat >>confdefs.h <<_ACEOF
9345 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
9346 _ACEOF
9347
9348 fi
9349
9350 CFLAGS="${save_CFLAGS}"
9351 CPPFLAGS="${save_CPPFLAGS}"
9352 LDFLAGS="${save_LDFLAGS}"
9353
9354 echo "$as_me:$LINENO: checking for boolean_t in sys/types.h" >&5
9355 echo $ECHO_N "checking for boolean_t in sys/types.h... $ECHO_C" >&6
9356 if test "${ac_cv_c_boolean_t_sys_types_h+set}" = set; then
9357   echo $ECHO_N "(cached) $ECHO_C" >&6
9358 else
9359   cat >conftest.$ac_ext <<_ACEOF
9360 #line $LINENO "configure"
9361 #include "confdefs.h"
9362 #include <sys/types.h>
9363 #ifdef F77_DUMMY_MAIN
9364 #  ifdef __cplusplus
9365      extern "C"
9366 #  endif
9367    int F77_DUMMY_MAIN() { return 1; }
9368 #endif
9369 int
9370 main ()
9371 {
9372 boolean_t foo;
9373   ;
9374   return 0;
9375 }
9376 _ACEOF
9377 rm -f conftest.$ac_objext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9379   (eval $ac_compile) 2>&5
9380   ac_status=$?
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); } &&
9383          { ac_try='test -s conftest.$ac_objext'
9384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385   (eval $ac_try) 2>&5
9386   ac_status=$?
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); }; }; then
9389   ac_cv_c_boolean_t_sys_types_h=yes
9390 else
9391   echo "$as_me: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9393 ac_cv_c_boolean_t_sys_types_h=no
9394 fi
9395 rm -f conftest.$ac_objext conftest.$ac_ext
9396 fi
9397 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_sys_types_h" >&5
9398 echo "${ECHO_T}$ac_cv_c_boolean_t_sys_types_h" >&6
9399 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
9400
9401 cat >>confdefs.h <<\_ACEOF
9402 #define BOOLEAN_T_IN_SYS_TYPES_H 1
9403 _ACEOF
9404
9405 fi
9406
9407 echo "$as_me:$LINENO: checking for boolean_t in pthread.h" >&5
9408 echo $ECHO_N "checking for boolean_t in pthread.h... $ECHO_C" >&6
9409 if test "${ac_cv_c_boolean_t_pthread_h+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412   cat >conftest.$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9414 #include "confdefs.h"
9415 #include <pthread.h>
9416 #ifdef F77_DUMMY_MAIN
9417 #  ifdef __cplusplus
9418      extern "C"
9419 #  endif
9420    int F77_DUMMY_MAIN() { return 1; }
9421 #endif
9422 int
9423 main ()
9424 {
9425 boolean_t foo;
9426   ;
9427   return 0;
9428 }
9429 _ACEOF
9430 rm -f conftest.$ac_objext
9431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9432   (eval $ac_compile) 2>&5
9433   ac_status=$?
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); } &&
9436          { ac_try='test -s conftest.$ac_objext'
9437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438   (eval $ac_try) 2>&5
9439   ac_status=$?
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); }; }; then
9442   ac_cv_c_boolean_t_pthread_h=yes
9443 else
9444   echo "$as_me: failed program was:" >&5
9445 cat conftest.$ac_ext >&5
9446 ac_cv_c_boolean_t_pthread_h=no
9447 fi
9448 rm -f conftest.$ac_objext conftest.$ac_ext
9449 fi
9450 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_pthread_h" >&5
9451 echo "${ECHO_T}$ac_cv_c_boolean_t_pthread_h" >&6
9452 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
9453
9454 cat >>confdefs.h <<\_ACEOF
9455 #define BOOLEAN_T_IN_PTHREAD_H 1
9456 _ACEOF
9457
9458 fi
9459
9460 echo "$as_me:$LINENO: checking for boolean_t in cthreads.h" >&5
9461 echo $ECHO_N "checking for boolean_t in cthreads.h... $ECHO_C" >&6
9462 if test "${ac_cv_c_boolean_t_cthreads_h+set}" = set; then
9463   echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465   cat >conftest.$ac_ext <<_ACEOF
9466 #line $LINENO "configure"
9467 #include "confdefs.h"
9468 #include <cthreads.h>
9469 #ifdef F77_DUMMY_MAIN
9470 #  ifdef __cplusplus
9471      extern "C"
9472 #  endif
9473    int F77_DUMMY_MAIN() { return 1; }
9474 #endif
9475 int
9476 main ()
9477 {
9478 boolean_t foo;
9479   ;
9480   return 0;
9481 }
9482 _ACEOF
9483 rm -f conftest.$ac_objext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9485   (eval $ac_compile) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); } &&
9489          { ac_try='test -s conftest.$ac_objext'
9490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491   (eval $ac_try) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; }; then
9495   ac_cv_c_boolean_t_cthreads_h=yes
9496 else
9497   echo "$as_me: failed program was:" >&5
9498 cat conftest.$ac_ext >&5
9499 ac_cv_c_boolean_t_cthreads_h=no
9500 fi
9501 rm -f conftest.$ac_objext conftest.$ac_ext
9502 fi
9503 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_cthreads_h" >&5
9504 echo "${ECHO_T}$ac_cv_c_boolean_t_cthreads_h" >&6
9505 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
9506
9507 cat >>confdefs.h <<\_ACEOF
9508 #define BOOLEAN_T_IN_CTHREADS_H 1
9509 _ACEOF
9510
9511 fi
9512
9513 case x"${target_cpu}" in
9514   x)
9515     ARCH=unknown
9516     ;;
9517   *)
9518     ARCH="${target_cpu}"
9519     ;;
9520 esac
9521
9522 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
9523 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone filter_crop fx_scope"
9524
9525 NETWORK_MODULES="udp http rtp ipv4"
9526
9527 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
9528 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
9529 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
9530 SSE_MODULES="imdctsse downmixsse"
9531 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
9532
9533 if test x$SYS != xbeos
9534 then
9535     PLUGINS="${PLUGINS} ${NETWORK_MODULES}"
9536 fi
9537
9538 echo "$as_me:$LINENO: checking if \$CC groks MMX inline assembly" >&5
9539 echo $ECHO_N "checking if \$CC groks MMX inline assembly... $ECHO_C" >&6
9540 if test "${ac_cv_mmx_inline+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   cat >conftest.$ac_ext <<_ACEOF
9544 #line $LINENO "configure"
9545 #include "confdefs.h"
9546
9547 #ifdef F77_DUMMY_MAIN
9548 #  ifdef __cplusplus
9549      extern "C"
9550 #  endif
9551    int F77_DUMMY_MAIN() { return 1; }
9552 #endif
9553 int
9554 main ()
9555 {
9556 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
9557   ;
9558   return 0;
9559 }
9560 _ACEOF
9561 rm -f conftest.$ac_objext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563   (eval $ac_compile) 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); } &&
9567          { ac_try='test -s conftest.$ac_objext'
9568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569   (eval $ac_try) 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); }; }; then
9573   ac_cv_mmx_inline=yes
9574 else
9575   echo "$as_me: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9577 ac_cv_mmx_inline=no
9578 fi
9579 rm -f conftest.$ac_objext conftest.$ac_ext
9580 fi
9581 echo "$as_me:$LINENO: result: $ac_cv_mmx_inline" >&5
9582 echo "${ECHO_T}$ac_cv_mmx_inline" >&6
9583 if test x"$ac_cv_mmx_inline" != x"no"; then
9584   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
9585 fi
9586
9587 echo "$as_me:$LINENO: checking if \$CC groks MMX EXT inline assembly" >&5
9588 echo $ECHO_N "checking if \$CC groks MMX EXT inline assembly... $ECHO_C" >&6
9589 if test "${ac_cv_mmxext_inline+set}" = set; then
9590   echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592   cat >conftest.$ac_ext <<_ACEOF
9593 #line $LINENO "configure"
9594 #include "confdefs.h"
9595
9596 #ifdef F77_DUMMY_MAIN
9597 #  ifdef __cplusplus
9598      extern "C"
9599 #  endif
9600    int F77_DUMMY_MAIN() { return 1; }
9601 #endif
9602 int
9603 main ()
9604 {
9605 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
9606   ;
9607   return 0;
9608 }
9609 _ACEOF
9610 rm -f conftest.$ac_objext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9612   (eval $ac_compile) 2>&5
9613   ac_status=$?
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); } &&
9616          { ac_try='test -s conftest.$ac_objext'
9617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618   (eval $ac_try) 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); }; }; then
9622   ac_cv_mmxext_inline=yes
9623 else
9624   echo "$as_me: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9626 ac_cv_mmxext_inline=no
9627 fi
9628 rm -f conftest.$ac_objext conftest.$ac_ext
9629 fi
9630 echo "$as_me:$LINENO: result: $ac_cv_mmxext_inline" >&5
9631 echo "${ECHO_T}$ac_cv_mmxext_inline" >&6
9632 if test x"$ac_cv_mmxext_inline" != x"no"; then
9633   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
9634 fi
9635
9636 echo "$as_me:$LINENO: checking if \$CC groks 3D Now! inline assembly" >&5
9637 echo $ECHO_N "checking if \$CC groks 3D Now! inline assembly... $ECHO_C" >&6
9638 if test "${ac_cv_3dnow_inline+set}" = set; then
9639   echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641   cat >conftest.$ac_ext <<_ACEOF
9642 #line $LINENO "configure"
9643 #include "confdefs.h"
9644
9645 #ifdef F77_DUMMY_MAIN
9646 #  ifdef __cplusplus
9647      extern "C"
9648 #  endif
9649    int F77_DUMMY_MAIN() { return 1; }
9650 #endif
9651 int
9652 main ()
9653 {
9654 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
9655   ;
9656   return 0;
9657 }
9658 _ACEOF
9659 rm -f conftest.$ac_objext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9661   (eval $ac_compile) 2>&5
9662   ac_status=$?
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); } &&
9665          { ac_try='test -s conftest.$ac_objext'
9666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667   (eval $ac_try) 2>&5
9668   ac_status=$?
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); }; }; then
9671   ac_cv_3dnow_inline=yes
9672 else
9673   echo "$as_me: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9675 ac_cv_3dnow_inline=no
9676 fi
9677 rm -f conftest.$ac_objext conftest.$ac_ext
9678 fi
9679 echo "$as_me:$LINENO: result: $ac_cv_3dnow_inline" >&5
9680 echo "${ECHO_T}$ac_cv_3dnow_inline" >&6
9681 if test x"$ac_cv_3dnow_inline" != x"no"; then
9682
9683 cat >>confdefs.h <<\_ACEOF
9684 #define CAN_COMPILE_3DNOW 1
9685 _ACEOF
9686
9687   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
9688 fi
9689
9690 echo "$as_me:$LINENO: checking if \$CC groks SSE inline assembly" >&5
9691 echo $ECHO_N "checking if \$CC groks SSE inline assembly... $ECHO_C" >&6
9692 if test "${ac_cv_sse_inline+set}" = set; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   cat >conftest.$ac_ext <<_ACEOF
9696 #line $LINENO "configure"
9697 #include "confdefs.h"
9698
9699 #ifdef F77_DUMMY_MAIN
9700 #  ifdef __cplusplus
9701      extern "C"
9702 #  endif
9703    int F77_DUMMY_MAIN() { return 1; }
9704 #endif
9705 int
9706 main ()
9707 {
9708 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9715   (eval $ac_compile) 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); } &&
9719          { ac_try='test -s conftest.$ac_objext'
9720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721   (eval $ac_try) 2>&5
9722   ac_status=$?
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); }; }; then
9725   ac_cv_sse_inline=yes
9726 else
9727   echo "$as_me: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9729 ac_cv_sse_inline=no
9730 fi
9731 rm -f conftest.$ac_objext conftest.$ac_ext
9732 fi
9733 echo "$as_me:$LINENO: result: $ac_cv_sse_inline" >&5
9734 echo "${ECHO_T}$ac_cv_sse_inline" >&6
9735 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
9736
9737 cat >>confdefs.h <<\_ACEOF
9738 #define CAN_COMPILE_SSE 1
9739 _ACEOF
9740
9741   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
9742 fi
9743
9744 # don't try to grok altivec with native mingw32 it doesn't work right now
9745 # we should be able to remove this test with future versions of mingw32
9746 if test x$SYS != xmingw32; then
9747 echo "$as_me:$LINENO: checking if \$CC groks Altivec inline assembly" >&5
9748 echo $ECHO_N "checking if \$CC groks Altivec inline assembly... $ECHO_C" >&6
9749 if test "${ac_cv_altivec_inline+set}" = set; then
9750   echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752   cat >conftest.$ac_ext <<_ACEOF
9753 #line $LINENO "configure"
9754 #include "confdefs.h"
9755
9756 #ifdef F77_DUMMY_MAIN
9757 #  ifdef __cplusplus
9758      extern "C"
9759 #  endif
9760    int F77_DUMMY_MAIN() { return 1; }
9761 #endif
9762 int
9763 main ()
9764 {
9765 asm volatile("vperm 0,1,2,3");
9766   ;
9767   return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772   (eval $ac_compile) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); } &&
9776          { ac_try='test -s conftest.$ac_objext'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; }; then
9782   ac_cv_altivec_inline=yes
9783 else
9784   echo "$as_me: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9786 save_CFLAGS=$CFLAGS
9787           CFLAGS="$CFLAGS -Wa,-m7400"
9788           cat >conftest.$ac_ext <<_ACEOF
9789 #line $LINENO "configure"
9790 #include "confdefs.h"
9791
9792 #ifdef F77_DUMMY_MAIN
9793 #  ifdef __cplusplus
9794      extern "C"
9795 #  endif
9796    int F77_DUMMY_MAIN() { return 1; }
9797 #endif
9798 int
9799 main ()
9800 {
9801 asm volatile("vperm 0,1,2,3");
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808   (eval $ac_compile) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } &&
9812          { ac_try='test -s conftest.$ac_objext'
9813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814   (eval $ac_try) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); }; }; then
9818   ac_cv_altivec_inline="-Wa,-m7400"
9819 else
9820   echo "$as_me: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9822 ac_cv_altivec_inline=no
9823 fi
9824 rm -f conftest.$ac_objext conftest.$ac_ext
9825           CFLAGS=$save_CFLAGS
9826
9827 fi
9828 rm -f conftest.$ac_objext conftest.$ac_ext
9829 fi
9830 echo "$as_me:$LINENO: result: $ac_cv_altivec_inline" >&5
9831 echo "${ECHO_T}$ac_cv_altivec_inline" >&6
9832 if test x"$ac_cv_altivec_inline" != x"no"; then
9833
9834 cat >>confdefs.h <<\_ACEOF
9835 #define CAN_COMPILE_ALTIVEC 1
9836 _ACEOF
9837
9838   if test x"$ac_cv_altivec_inline" != x"yes"; then
9839     idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
9840     motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
9841     memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
9842     vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
9843   fi
9844   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
9845 fi
9846
9847 echo "$as_me:$LINENO: checking if \$CC groks Altivec C extensions" >&5
9848 echo $ECHO_N "checking if \$CC groks Altivec C extensions... $ECHO_C" >&6
9849 if test "${ac_cv_c_altivec+set}" = set; then
9850   echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852   save_CFLAGS=$CFLAGS
9853      CFLAGS="$CFLAGS -faltivec"
9854      # Darwin test
9855      cat >conftest.$ac_ext <<_ACEOF
9856 #line $LINENO "configure"
9857 #include "confdefs.h"
9858
9859 #ifdef F77_DUMMY_MAIN
9860 #  ifdef __cplusplus
9861      extern "C"
9862 #  endif
9863    int F77_DUMMY_MAIN() { return 1; }
9864 #endif
9865 int
9866 main ()
9867 {
9868 vec_mtvscr((vector unsigned int)(0));
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 rm -f conftest.$ac_objext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9875   (eval $ac_compile) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); } &&
9879          { ac_try='test -s conftest.$ac_objext'
9880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881   (eval $ac_try) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885   ac_cv_c_altivec=-faltivec
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9889
9890         # Linux/PPC test
9891         CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
9892         cat >conftest.$ac_ext <<_ACEOF
9893 #line $LINENO "configure"
9894 #include "confdefs.h"
9895
9896 #ifdef F77_DUMMY_MAIN
9897 #  ifdef __cplusplus
9898      extern "C"
9899 #  endif
9900    int F77_DUMMY_MAIN() { return 1; }
9901 #endif
9902 int
9903 main ()
9904 {
9905 vec_mtvscr((vector unsigned int)(0));
9906   ;
9907   return 0;
9908 }
9909 _ACEOF
9910 rm -f conftest.$ac_objext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9912   (eval $ac_compile) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); } &&
9916          { ac_try='test -s conftest.$ac_objext'
9917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918   (eval $ac_try) 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; }; then
9922   ac_cv_c_altivec="-fvec"
9923 else
9924   echo "$as_me: failed program was:" >&5
9925 cat conftest.$ac_ext >&5
9926 ac_cv_c_altivec=no
9927 fi
9928 rm -f conftest.$ac_objext conftest.$ac_ext
9929
9930 fi
9931 rm -f conftest.$ac_objext conftest.$ac_ext
9932      CFLAGS=$save_CFLAGS
9933
9934 fi
9935 echo "$as_me:$LINENO: result: $ac_cv_c_altivec" >&5
9936 echo "${ECHO_T}$ac_cv_c_altivec" >&6
9937 if test x"$ac_cv_c_altivec" != x"no"; then
9938
9939 cat >>confdefs.h <<\_ACEOF
9940 #define CAN_COMPILE_C_ALTIVEC 1
9941 _ACEOF
9942
9943   idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
9944   motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
9945   memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
9946   vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
9947   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
9948 fi
9949
9950 echo "$as_me:$LINENO: checking if linker needs -framework vecLib" >&5
9951 echo $ECHO_N "checking if linker needs -framework vecLib... $ECHO_C" >&6
9952 if test "${ac_cv_ld_altivec+set}" = set; then
9953   echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955   save_LDFLAGS=$LDFLAGS
9956      LDFLAGS="$LDFLAGS -framework vecLib"
9957      cat >conftest.$ac_ext <<_ACEOF
9958 #line $LINENO "configure"
9959 #include "confdefs.h"
9960
9961 #ifdef F77_DUMMY_MAIN
9962 #  ifdef __cplusplus
9963      extern "C"
9964 #  endif
9965    int F77_DUMMY_MAIN() { return 1; }
9966 #endif
9967 int
9968 main ()
9969 {
9970
9971   ;
9972   return 0;
9973 }
9974 _ACEOF
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9977   (eval $ac_link) 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); } &&
9981          { ac_try='test -s conftest$ac_exeext'
9982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983   (eval $ac_try) 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); }; }; then
9987   ac_cv_ld_altivec=yes
9988 else
9989   echo "$as_me: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9991 ac_cv_ld_altivec=no
9992 fi
9993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9994      LDFLAGS=$save_LDFLAGS
9995
9996 fi
9997 echo "$as_me:$LINENO: result: $ac_cv_ld_altivec" >&5
9998 echo "${ECHO_T}$ac_cv_ld_altivec" >&6
9999 if test x"$ac_cv_ld_altivec" != x"no"; then
10000   idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
10001   motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
10002   memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
10003   vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
10004 fi
10005 fi # end if mingw32
10006
10007
10008
10009 # Check whether --with- or --without- was given.
10010 if test "${with_+set}" = set; then
10011   withval="$with_"
10012
10013 fi;
10014
10015 # Check whether --with- or --without- was given.
10016 if test "${with_+set}" = set; then
10017   withval="$with_"
10018
10019 fi;
10020
10021
10022 # Check whether --with-tuning or --without-tuning was given.
10023 if test "${with_tuning+set}" = set; then
10024   withval="$with_tuning"
10025
10026 fi;
10027 if test "x$with_tuning" != "x"; then
10028     TUNING="$with_tuning"
10029 else
10030     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
10031     else
10032         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
10033     fi
10034 fi
10035
10036 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
10037 then
10038     ARCH="${ARCH} mmx"
10039     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
10040 fi
10041
10042 # Check whether --enable-optimizations or --disable-optimizations was given.
10043 if test "${enable_optimizations+set}" = set; then
10044   enableval="$enable_optimizations"
10045    if test x$enable_optimizations = xno; then OPTIMS=0; fi
10046 else
10047    OPTIMS=1
10048 fi;
10049
10050 # Check whether --enable-altivec or --disable-altivec was given.
10051 if test "${enable_altivec+set}" = set; then
10052   enableval="$enable_altivec"
10053    if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
10054     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
10055 else
10056    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
10057     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
10058 fi;
10059
10060 DEBUG=0
10061 # Check whether --enable-debug or --disable-debug was given.
10062 if test "${enable_debug+set}" = set; then
10063   enableval="$enable_debug"
10064    if test x$enable_debug = xyes; then DEBUG=1; fi
10065 fi;
10066
10067 RELEASE=0
10068 # Check whether --enable-release or --disable-release was given.
10069 if test "${enable_release+set}" = set; then
10070   enableval="$enable_release"
10071    if test x$enable_release = xyes; then RELEASE=1; fi
10072 else
10073    VERSION="${VERSION}_`date +%Y-%m-%d`"
10074 fi;
10075
10076
10077
10078 # Check whether --with- or --without- was given.
10079 if test "${with_+set}" = set; then
10080   withval="$with_"
10081
10082 fi;
10083
10084 # Check whether --enable-dvd or --disable-dvd was given.
10085 if test "${enable_dvd+set}" = set; then
10086   enableval="$enable_dvd"
10087
10088 fi;
10089 if test "x$enable_dvd" != "xno"
10090 then
10091
10092 # Check whether --with-dvdcss or --without-dvdcss was given.
10093 if test "${with_dvdcss+set}" = set; then
10094   withval="$with_dvdcss"
10095
10096 fi;
10097
10098 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
10099 if test "${with_dvdcss_tree+set}" = set; then
10100   withval="$with_dvdcss_tree"
10101
10102 fi;
10103   case "x$with_dvdcss" in
10104   x|xyes)
10105     if test "x$with_dvdcss_tree" = x
10106     then
10107
10108 for ac_header in dvdcss/dvdcss.h
10109 do
10110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10112   echo "$as_me:$LINENO: checking for $ac_header" >&5
10113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10115   echo $ECHO_N "(cached) $ECHO_C" >&6
10116 fi
10117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10119 else
10120   # Is the header compilable?
10121 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10123 cat >conftest.$ac_ext <<_ACEOF
10124 #line $LINENO "configure"
10125 #include "confdefs.h"
10126 $ac_includes_default
10127 #include <$ac_header>
10128 _ACEOF
10129 rm -f conftest.$ac_objext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131   (eval $ac_compile) 2>&5
10132   ac_status=$?
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); } &&
10135          { ac_try='test -s conftest.$ac_objext'
10136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137   (eval $ac_try) 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; }; then
10141   ac_header_compiler=yes
10142 else
10143   echo "$as_me: failed program was:" >&5
10144 cat conftest.$ac_ext >&5
10145 ac_header_compiler=no
10146 fi
10147 rm -f conftest.$ac_objext conftest.$ac_ext
10148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10149 echo "${ECHO_T}$ac_header_compiler" >&6
10150
10151 # Is the header present?
10152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10154 cat >conftest.$ac_ext <<_ACEOF
10155 #line $LINENO "configure"
10156 #include "confdefs.h"
10157 #include <$ac_header>
10158 _ACEOF
10159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10161   ac_status=$?
10162   egrep -v '^ *\+' conftest.er1 >conftest.err
10163   rm -f conftest.er1
10164   cat conftest.err >&5
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); } >/dev/null; then
10167   if test -s conftest.err; then
10168     ac_cpp_err=$ac_c_preproc_warn_flag
10169   else
10170     ac_cpp_err=
10171   fi
10172 else
10173   ac_cpp_err=yes
10174 fi
10175 if test -z "$ac_cpp_err"; then
10176   ac_header_preproc=yes
10177 else
10178   echo "$as_me: failed program was:" >&5
10179   cat conftest.$ac_ext >&5
10180   ac_header_preproc=no
10181 fi
10182 rm -f conftest.err conftest.$ac_ext
10183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10184 echo "${ECHO_T}$ac_header_preproc" >&6
10185
10186 # So?  What about this header?
10187 case $ac_header_compiler:$ac_header_preproc in
10188   yes:no )
10189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10193   no:yes )
10194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10196     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10200 esac
10201 echo "$as_me:$LINENO: checking for $ac_header" >&5
10202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10204   echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206   eval "$as_ac_Header=$ac_header_preproc"
10207 fi
10208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10210
10211 fi
10212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10213   cat >>confdefs.h <<_ACEOF
10214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10215 _ACEOF
10216   PLUGINS="${PLUGINS} dvd"
10217           dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
10218 else
10219    { echo "$as_me:$LINENO: WARNING: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." >&5
10220 echo "$as_me: WARNING: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." >&2;}
10221           { { echo "$as_me:$LINENO: error: cannot find libdvdcss headers" >&5
10222 echo "$as_me: error: cannot find libdvdcss headers" >&2;}
10223    { (exit 1); exit 1; }; }
10224 fi
10225
10226 done
10227
10228     else
10229       echo "$as_me:$LINENO: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
10230 echo $ECHO_N "checking for libdvdcss.a in ${with_dvdcss_tree}... $ECHO_C" >&6
10231       real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
10232       if test "x$real_dvdcss_tree" = x
10233       then
10234                 echo "$as_me:$LINENO: result: no" >&5
10235 echo "${ECHO_T}no" >&6
10236         { { echo "$as_me:$LINENO: error: cannot cd to ${with_dvdcss_tree}" >&5
10237 echo "$as_me: error: cannot cd to ${with_dvdcss_tree}" >&2;}
10238    { (exit 1); exit 1; }; }
10239       fi
10240       if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
10241       then
10242                 echo "$as_me:$LINENO: result: ${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&5
10243 echo "${ECHO_T}${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&6
10244         BUILTINS="${BUILTINS} dvd"
10245         dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
10246         dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
10247       else
10248                 echo "$as_me:$LINENO: result: no" >&5
10249 echo "${ECHO_T}no" >&6
10250         { { echo "$as_me:$LINENO: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&5
10251 echo "$as_me: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&2;}
10252    { (exit 1); exit 1; }; }
10253       fi
10254     fi
10255   ;;
10256   xno)
10257         PLUGINS="${PLUGINS} dvd"
10258     dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
10259     dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
10260   ;;
10261   *)
10262     echo "$as_me:$LINENO: checking for dvdcss headers in ${with_dvdcss}" >&5
10263 echo $ECHO_N "checking for dvdcss headers in ${with_dvdcss}... $ECHO_C" >&6
10264     if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
10265     then
10266             echo "$as_me:$LINENO: result: yes" >&5
10267 echo "${ECHO_T}yes" >&6
10268       PLUGINS="${PLUGINS} dvd"
10269       dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
10270       dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
10271     else
10272             echo "$as_me:$LINENO: result: no" >&5
10273 echo "${ECHO_T}no" >&6
10274       { { echo "$as_me:$LINENO: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&5
10275 echo "$as_me: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&2;}
10276    { (exit 1); exit 1; }; }
10277     fi
10278   ;;
10279   esac
10280 fi
10281
10282 # Check whether --enable-dvdread or --disable-dvdread was given.
10283 if test "${enable_dvdread+set}" = set; then
10284   enableval="$enable_dvdread"
10285
10286 fi;
10287 if test "x$enable_dvdread" != "xno"
10288 then
10289
10290 # Check whether --with-dvdread or --without-dvdread was given.
10291 if test "${with_dvdread+set}" = set; then
10292   withval="$with_dvdread"
10293
10294 fi;
10295   if test "x$with_dvdread" = x
10296   then
10297     test_LDFLAGS=""
10298     test_CFLAGS=""
10299   else
10300     test_LDFLAGS="-L${with_dvdread}/lib"
10301     test_CFLAGS="-I${with_dvdread}/include"
10302   fi
10303   CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
10304
10305 for ac_header in dvdread/dvd_reader.h
10306 do
10307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10309   echo "$as_me:$LINENO: checking for $ac_header" >&5
10310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10312   echo $ECHO_N "(cached) $ECHO_C" >&6
10313 fi
10314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10316 else
10317   # Is the header compilable?
10318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10320 cat >conftest.$ac_ext <<_ACEOF
10321 #line $LINENO "configure"
10322 #include "confdefs.h"
10323 $ac_includes_default
10324 #include <$ac_header>
10325 _ACEOF
10326 rm -f conftest.$ac_objext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10328   (eval $ac_compile) 2>&5
10329   ac_status=$?
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); } &&
10332          { ac_try='test -s conftest.$ac_objext'
10333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334   (eval $ac_try) 2>&5
10335   ac_status=$?
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); }; }; then
10338   ac_header_compiler=yes
10339 else
10340   echo "$as_me: failed program was:" >&5
10341 cat conftest.$ac_ext >&5
10342 ac_header_compiler=no
10343 fi
10344 rm -f conftest.$ac_objext conftest.$ac_ext
10345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10346 echo "${ECHO_T}$ac_header_compiler" >&6
10347
10348 # Is the header present?
10349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10351 cat >conftest.$ac_ext <<_ACEOF
10352 #line $LINENO "configure"
10353 #include "confdefs.h"
10354 #include <$ac_header>
10355 _ACEOF
10356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10358   ac_status=$?
10359   egrep -v '^ *\+' conftest.er1 >conftest.err
10360   rm -f conftest.er1
10361   cat conftest.err >&5
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); } >/dev/null; then
10364   if test -s conftest.err; then
10365     ac_cpp_err=$ac_c_preproc_warn_flag
10366   else
10367     ac_cpp_err=
10368   fi
10369 else
10370   ac_cpp_err=yes
10371 fi
10372 if test -z "$ac_cpp_err"; then
10373   ac_header_preproc=yes
10374 else
10375   echo "$as_me: failed program was:" >&5
10376   cat conftest.$ac_ext >&5
10377   ac_header_preproc=no
10378 fi
10379 rm -f conftest.err conftest.$ac_ext
10380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10381 echo "${ECHO_T}$ac_header_preproc" >&6
10382
10383 # So?  What about this header?
10384 case $ac_header_compiler:$ac_header_preproc in
10385   yes:no )
10386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10390   no:yes )
10391     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10393     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10397 esac
10398 echo "$as_me:$LINENO: checking for $ac_header" >&5
10399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10401   echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403   eval "$as_ac_Header=$ac_header_preproc"
10404 fi
10405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10407
10408 fi
10409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10410   cat >>confdefs.h <<_ACEOF
10411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10412 _ACEOF
10413
10414      cat >conftest.$ac_ext <<_ACEOF
10415 #line $LINENO "configure"
10416 #include "confdefs.h"
10417 #include <dvdread/dvd_reader.h>
10418 #ifdef F77_DUMMY_MAIN
10419 #  ifdef __cplusplus
10420      extern "C"
10421 #  endif
10422    int F77_DUMMY_MAIN() { return 1; }
10423 #endif
10424 int
10425 main ()
10426 {
10427 void foo() { int i=DVD_VIDEO_LB_LEN; }
10428   ;
10429   return 0;
10430 }
10431 _ACEOF
10432 rm -f conftest.$ac_objext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434   (eval $ac_compile) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); } &&
10438          { ac_try='test -s conftest.$ac_objext'
10439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440   (eval $ac_try) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; }; then
10444
10445           PLUGINS="${PLUGINS} dvdread"
10446           dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
10447           dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
10448
10449 else
10450   echo "$as_me: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10452
10453           if test "x$enable_dvdread" != x
10454           then
10455             { { echo "$as_me:$LINENO: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" >&5
10456 echo "$as_me: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" >&2;}
10457    { (exit 1); exit 1; }; }
10458           fi
10459
10460 fi
10461 rm -f conftest.$ac_objext conftest.$ac_ext
10462
10463 else
10464
10465     if test "x$enable_dvdread" != x
10466     then
10467       if test "x$with_dvdread" != x
10468       then
10469         { { echo "$as_me:$LINENO: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&5
10470 echo "$as_me: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&2;}
10471    { (exit 1); exit 1; }; }
10472       else
10473         { { echo "$as_me:$LINENO: error: Cannot find dvdread/dvd_reader.h" >&5
10474 echo "$as_me: error: Cannot find dvdread/dvd_reader.h" >&2;}
10475    { (exit 1); exit 1; }; }
10476       fi
10477     fi
10478
10479 fi
10480
10481 done
10482
10483   CPPFLAGS="$save_CPPFLAGS"
10484 fi
10485
10486 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
10487 if test "${enable_dvbpsi+set}" = set; then
10488   enableval="$enable_dvbpsi"
10489
10490 fi;
10491 if test "x$enable_dvbpsi" != "xno"
10492 then
10493
10494 # Check whether --with-dvbpsi or --without-dvbpsi was given.
10495 if test "${with_dvbpsi+set}" = set; then
10496   withval="$with_dvbpsi"
10497
10498 fi;
10499
10500 # Check whether --with-dvbpsi or --without-dvbpsi was given.
10501 if test "${with_dvbpsi+set}" = set; then
10502   withval="$with_dvbpsi"
10503
10504 fi;
10505   case "x$with_dvbpsi" in
10506   x|xyes)
10507     if test "x$with_dvbpsi_tree" = x
10508     then
10509
10510 for ac_header in dvbpsi/dr.h
10511 do
10512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10513 echo "$as_me:$LINENO: checking for $ac_header" >&5
10514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10516   echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518   cat >conftest.$ac_ext <<_ACEOF
10519 #line $LINENO "configure"
10520 #include "confdefs.h"
10521   { { echo "$as_me:$LINENO: error: cannot find libdvbpsi headers" >&5
10522 echo "$as_me: error: cannot find libdvbpsi headers" >&2;}
10523    { (exit 1); exit 1; }; }
10524
10525 #include <$ac_header>
10526 _ACEOF
10527 rm -f conftest.$ac_objext
10528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10529   (eval $ac_compile) 2>&5
10530   ac_status=$?
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); } &&
10533          { ac_try='test -s conftest.$ac_objext'
10534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535   (eval $ac_try) 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); }; }; then
10539   eval "$as_ac_Header=yes"
10540 else
10541   echo "$as_me: failed program was:" >&5
10542 cat conftest.$ac_ext >&5
10543 eval "$as_ac_Header=no"
10544 fi
10545 rm -f conftest.$ac_objext conftest.$ac_ext
10546 fi
10547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10550   cat >>confdefs.h <<_ACEOF
10551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10552 _ACEOF
10553   PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
10554           mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
10555 fi
10556
10557 done
10558
10559     else
10560       echo "$as_me:$LINENO: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
10561 echo $ECHO_N "checking for libdvbpsi.a in ${with_dvbpsi_tree}... $ECHO_C" >&6
10562       real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
10563       if test "x$real_dvbpsi_tree" = x
10564       then
10565                 echo "$as_me:$LINENO: result: no" >&5
10566 echo "${ECHO_T}no" >&6
10567         { { echo "$as_me:$LINENO: error: cannot cd to ${with_dvbpsi_tree}" >&5
10568 echo "$as_me: error: cannot cd to ${with_dvbpsi_tree}" >&2;}
10569    { (exit 1); exit 1; }; }
10570       fi
10571       if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
10572       then
10573                 echo "$as_me:$LINENO: result: ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&5
10574 echo "${ECHO_T}${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&6
10575         BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
10576         mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
10577         mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
10578       else
10579                 echo "$as_me:$LINENO: result: no" >&5
10580 echo "${ECHO_T}no" >&6
10581         { { echo "$as_me:$LINENO: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&5
10582 echo "$as_me: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&2;}
10583    { (exit 1); exit 1; }; }
10584       fi
10585     fi
10586   ;;
10587   xno)
10588       ;;
10589   *)
10590     echo "$as_me:$LINENO: checking for dvbpsi headers in ${with_dvbpsi}" >&5
10591 echo $ECHO_N "checking for dvbpsi headers in ${with_dvbpsi}... $ECHO_C" >&6
10592     if test "x$with_dvbpsi" = x
10593     then
10594       test_LDFLAGS=""
10595       test_CFLAGS=""
10596     else
10597       test_LDFLAGS="-L${with_dvbpsi}/lib"
10598       test_CFLAGS="-I${with_dvbpsi}/include"
10599     fi
10600     CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
10601     if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10602   echo "$as_me:$LINENO: checking for dvbpsi/dr.h" >&5
10603 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
10604 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 fi
10607 echo "$as_me:$LINENO: result: $ac_cv_header_dvbpsi_dr_h" >&5
10608 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
10609 else
10610   # Is the header compilable?
10611 echo "$as_me:$LINENO: checking dvbpsi/dr.h usability" >&5
10612 echo $ECHO_N "checking dvbpsi/dr.h usability... $ECHO_C" >&6
10613 cat >conftest.$ac_ext <<_ACEOF
10614 #line $LINENO "configure"
10615 #include "confdefs.h"
10616 $ac_includes_default
10617 #include <dvbpsi/dr.h>
10618 _ACEOF
10619 rm -f conftest.$ac_objext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10621   (eval $ac_compile) 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); } &&
10625          { ac_try='test -s conftest.$ac_objext'
10626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; }; then
10631   ac_header_compiler=yes
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10635 ac_header_compiler=no
10636 fi
10637 rm -f conftest.$ac_objext conftest.$ac_ext
10638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10639 echo "${ECHO_T}$ac_header_compiler" >&6
10640
10641 # Is the header present?
10642 echo "$as_me:$LINENO: checking dvbpsi/dr.h presence" >&5
10643 echo $ECHO_N "checking dvbpsi/dr.h presence... $ECHO_C" >&6
10644 cat >conftest.$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10646 #include "confdefs.h"
10647 #include <dvbpsi/dr.h>
10648 _ACEOF
10649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10651   ac_status=$?
10652   egrep -v '^ *\+' conftest.er1 >conftest.err
10653   rm -f conftest.er1
10654   cat conftest.err >&5
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); } >/dev/null; then
10657   if test -s conftest.err; then
10658     ac_cpp_err=$ac_c_preproc_warn_flag
10659   else
10660     ac_cpp_err=
10661   fi
10662 else
10663   ac_cpp_err=yes
10664 fi
10665 if test -z "$ac_cpp_err"; then
10666   ac_header_preproc=yes
10667 else
10668   echo "$as_me: failed program was:" >&5
10669   cat conftest.$ac_ext >&5
10670   ac_header_preproc=no
10671 fi
10672 rm -f conftest.err conftest.$ac_ext
10673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10674 echo "${ECHO_T}$ac_header_preproc" >&6
10675
10676 # So?  What about this header?
10677 case $ac_header_compiler:$ac_header_preproc in
10678   yes:no )
10679     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: accepted by the compiler, rejected by the preprocessor!" >&5
10680 echo "$as_me: WARNING: dvbpsi/dr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10681     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&5
10682 echo "$as_me: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&2;};;
10683   no:yes )
10684     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: present but cannot be compiled" >&5
10685 echo "$as_me: WARNING: dvbpsi/dr.h: present but cannot be compiled" >&2;}
10686     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: check for missing prerequisite headers?" >&5
10687 echo "$as_me: WARNING: dvbpsi/dr.h: check for missing prerequisite headers?" >&2;}
10688     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&5
10689 echo "$as_me: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&2;};;
10690 esac
10691 echo "$as_me:$LINENO: checking for dvbpsi/dr.h" >&5
10692 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
10693 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10694   echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696   ac_cv_header_dvbpsi_dr_h=$ac_header_preproc
10697 fi
10698 echo "$as_me:$LINENO: result: $ac_cv_header_dvbpsi_dr_h" >&5
10699 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
10700
10701 fi
10702 if test $ac_cv_header_dvbpsi_dr_h = yes; then
10703
10704       PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
10705       mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
10706       mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
10707
10708 else
10709
10710       if test "x$enable_dvbpsi" != x
10711       then
10712         { { echo "$as_me:$LINENO: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" >&5
10713 echo "$as_me: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" >&2;}
10714    { (exit 1); exit 1; }; }
10715       fi
10716
10717 fi
10718
10719
10720     CPPFLAGS="$save_CPPFLAGS"
10721   ;;
10722   esac
10723 fi
10724
10725 # Check whether --enable-vcd or --disable-vcd was given.
10726 if test "${enable_vcd+set}" = set; then
10727   enableval="$enable_vcd"
10728
10729 fi;
10730
10731 if test x$enable_vcd != xno
10732 then
10733   cat >conftest.$ac_ext <<_ACEOF
10734 #line $LINENO "configure"
10735 #include "confdefs.h"
10736 #include <linux/cdrom.h>
10737
10738 _ACEOF
10739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10740   egrep "cdrom_msf0" >/dev/null 2>&1; then
10741
10742     PLUGINS="${PLUGINS} vcd"
10743
10744 fi
10745 rm -f conftest*
10746
10747
10748   cat >conftest.$ac_ext <<_ACEOF
10749 #line $LINENO "configure"
10750 #include "confdefs.h"
10751 #include <sys/cdio.h>
10752
10753 _ACEOF
10754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10755   egrep "ioc_toc_header " >/dev/null 2>&1; then
10756
10757     PLUGINS="${PLUGINS} vcd"
10758
10759 cat >>confdefs.h <<\_ACEOF
10760 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
10761 _ACEOF
10762
10763
10764 fi
10765 rm -f conftest*
10766
10767
10768   if test "x${SYS}" = "xbsdi"
10769   then
10770     PLUGINS="${PLUGINS} vcd"
10771   fi
10772
10773   if test "x${SYS}" = "xdarwin"
10774   then
10775     PLUGINS="${PLUGINS} vcd"
10776     vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
10777   fi
10778 fi
10779
10780 # Check whether --enable-satellite or --disable-satellite was given.
10781 if test "${enable_satellite+set}" = set; then
10782   enableval="$enable_satellite"
10783    if test x$enable_satellite = xyes
10784     then
10785       PLUGINS="${PLUGINS} satellite"
10786     fi
10787 fi;
10788
10789 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
10790 then
10791   echo "$as_me:$LINENO: checking for inet_pton" >&5
10792 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
10793 if test "${ac_cv_func_inet_pton+set}" = set; then
10794   echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796   cat >conftest.$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10798 #include "confdefs.h"
10799 /* System header to define __stub macros and hopefully few prototypes,
10800     which can conflict with char inet_pton (); below.  */
10801 #include <assert.h>
10802 /* Override any gcc2 internal prototype to avoid an error.  */
10803 #ifdef __cplusplus
10804 extern "C"
10805 #endif
10806 /* We use char because int might match the return type of a gcc2
10807    builtin and then its argument prototype would still apply.  */
10808 char inet_pton ();
10809 char (*f) ();
10810
10811 #ifdef F77_DUMMY_MAIN
10812 #  ifdef __cplusplus
10813      extern "C"
10814 #  endif
10815    int F77_DUMMY_MAIN() { return 1; }
10816 #endif
10817 int
10818 main ()
10819 {
10820 /* The GNU C library defines this for functions which it implements
10821     to always fail with ENOSYS.  Some functions are actually named
10822     something starting with __ and the normal name is an alias.  */
10823 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
10824 choke me
10825 #else
10826 f = inet_pton;
10827 #endif
10828
10829   ;
10830   return 0;
10831 }
10832 _ACEOF
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10835   (eval $ac_link) 2>&5
10836   ac_status=$?
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); } &&
10839          { ac_try='test -s conftest$ac_exeext'
10840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841   (eval $ac_try) 2>&5
10842   ac_status=$?
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); }; }; then
10845   ac_cv_func_inet_pton=yes
10846 else
10847   echo "$as_me: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10849 ac_cv_func_inet_pton=no
10850 fi
10851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10852 fi
10853 echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
10854 echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
10855 if test $ac_cv_func_inet_pton = yes; then
10856   PLUGINS="${PLUGINS} ipv6"
10857 fi
10858
10859 fi
10860 if test "x$SYS" = "xmingw32"
10861 then
10862   echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h" >&5
10863 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h... $ECHO_C" >&6
10864   cat >conftest.$ac_ext <<_ACEOF
10865 #line $LINENO "configure"
10866 #include "confdefs.h"
10867 #include <ws2tcpip.h>
10868
10869 _ACEOF
10870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10871   egrep "addrinfo" >/dev/null 2>&1; then
10872   echo "$as_me:$LINENO: result: yes" >&5
10873 echo "${ECHO_T}yes" >&6
10874     PLUGINS="${PLUGINS} ipv6"
10875 else
10876   echo "$as_me:$LINENO: result: no" >&5
10877 echo "${ECHO_T}no" >&6
10878 fi
10879 rm -f conftest*
10880
10881 fi
10882
10883 # Check whether --enable-avi or --disable-avi was given.
10884 if test "${enable_avi+set}" = set; then
10885   enableval="$enable_avi"
10886
10887 fi;
10888 if test x$enable_avi != xno
10889 then
10890   PLUGINS="${PLUGINS} avi"
10891 fi
10892
10893
10894
10895 # Check whether --with- or --without- was given.
10896 if test "${with_+set}" = set; then
10897   withval="$with_"
10898
10899 fi;
10900
10901 # Check whether --enable-mad or --disable-mad was given.
10902 if test "${enable_mad+set}" = set; then
10903   enableval="$enable_mad"
10904
10905 fi;
10906 if test x$enable_mad = xyes
10907 then
10908
10909 # Check whether --with-mad or --without-mad was given.
10910 if test "${with_mad+set}" = set; then
10911   withval="$with_mad"
10912
10913 fi;
10914   if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
10915   then
10916     mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
10917     mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
10918   fi
10919
10920
10921 # Check whether --with-mad-tree or --without-mad-tree was given.
10922 if test "${with_mad_tree+set}" = set; then
10923   withval="$with_mad_tree"
10924
10925 fi;
10926   if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
10927   then
10928     real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
10929     if test "x$real_mad_tree" = x
10930     then
10931             echo "$as_me:$LINENO: result: no" >&5
10932 echo "${ECHO_T}no" >&6
10933       { { echo "$as_me:$LINENO: error: ${with_mad_tree} directory doesn't exist" >&5
10934 echo "$as_me: error: ${with_mad_tree} directory doesn't exist" >&2;}
10935    { (exit 1); exit 1; }; }
10936     fi
10937         echo "$as_me:$LINENO: checking for mad.h in ${real_mad_tree}/libmad" >&5
10938 echo $ECHO_N "checking for mad.h in ${real_mad_tree}/libmad... $ECHO_C" >&6
10939     if test -f ${real_mad_tree}/libmad/mad.h
10940     then
10941       echo "$as_me:$LINENO: result: yes" >&5
10942 echo "${ECHO_T}yes" >&6
10943       mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
10944       mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
10945       save_LDFLAGS=$LDFLAGS
10946       LDFLAGS=$mad_LDFLAGS
10947       echo "$as_me:$LINENO: checking for mad_bit_init in -lmad" >&5
10948 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
10949 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
10950   echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952   ac_check_lib_save_LIBS=$LIBS
10953 LIBS="-lmad  $LIBS"
10954 cat >conftest.$ac_ext <<_ACEOF
10955 #line $LINENO "configure"
10956 #include "confdefs.h"
10957
10958 /* Override any gcc2 internal prototype to avoid an error.  */
10959 #ifdef __cplusplus
10960 extern "C"
10961 #endif
10962 /* We use char because int might match the return type of a gcc2
10963    builtin and then its argument prototype would still apply.  */
10964 char mad_bit_init ();
10965 #ifdef F77_DUMMY_MAIN
10966 #  ifdef __cplusplus
10967      extern "C"
10968 #  endif
10969    int F77_DUMMY_MAIN() { return 1; }
10970 #endif
10971 int
10972 main ()
10973 {
10974 mad_bit_init ();
10975   ;
10976   return 0;
10977 }
10978 _ACEOF
10979 rm -f conftest.$ac_objext conftest$ac_exeext
10980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981   (eval $ac_link) 2>&5
10982   ac_status=$?
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); } &&
10985          { ac_try='test -s conftest$ac_exeext'
10986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987   (eval $ac_try) 2>&5
10988   ac_status=$?
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); }; }; then
10991   ac_cv_lib_mad_mad_bit_init=yes
10992 else
10993   echo "$as_me: failed program was:" >&5
10994 cat conftest.$ac_ext >&5
10995 ac_cv_lib_mad_mad_bit_init=no
10996 fi
10997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10998 LIBS=$ac_check_lib_save_LIBS
10999 fi
11000 echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_bit_init" >&5
11001 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
11002 if test $ac_cv_lib_mad_mad_bit_init = yes; then
11003
11004         BUILTINS="${BUILTINS} mad"
11005         mad_LDFLAGS="${mad_LDFLAGS} -lmad"
11006
11007 else
11008    { { echo "$as_me:$LINENO: error: the specified tree hasn't been compiled " >&5
11009 echo "$as_me: error: the specified tree hasn't been compiled " >&2;}
11010    { (exit 1); exit 1; }; }
11011
11012 fi
11013
11014       LDFLAGS=$save_LDFLAGS
11015     else
11016       echo "$as_me:$LINENO: result: no" >&5
11017 echo "${ECHO_T}no" >&6
11018       { { echo "$as_me:$LINENO: error: the specified tree doesn't have mad.h" >&5
11019 echo "$as_me: error: the specified tree doesn't have mad.h" >&2;}
11020    { (exit 1); exit 1; }; }
11021     fi
11022   else
11023     save_CFLAGS=$CFLAGS
11024     save_LDFLAGS=$LDFLAGS
11025     CFLAGS="$CFLAGS $mad_CFLAGS"
11026     LDFLAGS="$LDFLAGS $mad_LDFLAGS"
11027
11028 for ac_header in mad.h
11029 do
11030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11032   echo "$as_me:$LINENO: checking for $ac_header" >&5
11033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11035   echo $ECHO_N "(cached) $ECHO_C" >&6
11036 fi
11037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11039 else
11040   # Is the header compilable?
11041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11043 cat >conftest.$ac_ext <<_ACEOF
11044 #line $LINENO "configure"
11045 #include "confdefs.h"
11046 $ac_includes_default
11047 #include <$ac_header>
11048 _ACEOF
11049 rm -f conftest.$ac_objext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11051   (eval $ac_compile) 2>&5
11052   ac_status=$?
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); } &&
11055          { ac_try='test -s conftest.$ac_objext'
11056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057   (eval $ac_try) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); }; }; then
11061   ac_header_compiler=yes
11062 else
11063   echo "$as_me: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11065 ac_header_compiler=no
11066 fi
11067 rm -f conftest.$ac_objext conftest.$ac_ext
11068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11069 echo "${ECHO_T}$ac_header_compiler" >&6
11070
11071 # Is the header present?
11072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11074 cat >conftest.$ac_ext <<_ACEOF
11075 #line $LINENO "configure"
11076 #include "confdefs.h"
11077 #include <$ac_header>
11078 _ACEOF
11079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11081   ac_status=$?
11082   egrep -v '^ *\+' conftest.er1 >conftest.err
11083   rm -f conftest.er1
11084   cat conftest.err >&5
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); } >/dev/null; then
11087   if test -s conftest.err; then
11088     ac_cpp_err=$ac_c_preproc_warn_flag
11089   else
11090     ac_cpp_err=
11091   fi
11092 else
11093   ac_cpp_err=yes
11094 fi
11095 if test -z "$ac_cpp_err"; then
11096   ac_header_preproc=yes
11097 else
11098   echo "$as_me: failed program was:" >&5
11099   cat conftest.$ac_ext >&5
11100   ac_header_preproc=no
11101 fi
11102 rm -f conftest.err conftest.$ac_ext
11103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11104 echo "${ECHO_T}$ac_header_preproc" >&6
11105
11106 # So?  What about this header?
11107 case $ac_header_compiler:$ac_header_preproc in
11108   yes:no )
11109     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11113   no:yes )
11114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11116     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11120 esac
11121 echo "$as_me:$LINENO: checking for $ac_header" >&5
11122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   eval "$as_ac_Header=$ac_header_preproc"
11127 fi
11128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11130
11131 fi
11132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11133   cat >>confdefs.h <<_ACEOF
11134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11135 _ACEOF
11136
11137 else
11138    { { echo "$as_me:$LINENO: error: Cannot find development headers for libmad..." >&5
11139 echo "$as_me: error: Cannot find development headers for libmad..." >&2;}
11140    { (exit 1); exit 1; }; }
11141 fi
11142
11143 done
11144
11145     echo "$as_me:$LINENO: checking for mad_bit_init in -lmad" >&5
11146 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
11147 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
11148   echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150   ac_check_lib_save_LIBS=$LIBS
11151 LIBS="-lmad  $LIBS"
11152 cat >conftest.$ac_ext <<_ACEOF
11153 #line $LINENO "configure"
11154 #include "confdefs.h"
11155
11156 /* Override any gcc2 internal prototype to avoid an error.  */
11157 #ifdef __cplusplus
11158 extern "C"
11159 #endif
11160 /* We use char because int might match the return type of a gcc2
11161    builtin and then its argument prototype would still apply.  */
11162 char mad_bit_init ();
11163 #ifdef F77_DUMMY_MAIN
11164 #  ifdef __cplusplus
11165      extern "C"
11166 #  endif
11167    int F77_DUMMY_MAIN() { return 1; }
11168 #endif
11169 int
11170 main ()
11171 {
11172 mad_bit_init ();
11173   ;
11174   return 0;
11175 }
11176 _ACEOF
11177 rm -f conftest.$ac_objext conftest$ac_exeext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11179   (eval $ac_link) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); } &&
11183          { ac_try='test -s conftest$ac_exeext'
11184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185   (eval $ac_try) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); }; }; then
11189   ac_cv_lib_mad_mad_bit_init=yes
11190 else
11191   echo "$as_me: failed program was:" >&5
11192 cat conftest.$ac_ext >&5
11193 ac_cv_lib_mad_mad_bit_init=no
11194 fi
11195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11196 LIBS=$ac_check_lib_save_LIBS
11197 fi
11198 echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_bit_init" >&5
11199 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
11200 if test $ac_cv_lib_mad_mad_bit_init = yes; then
11201
11202       PLUGINS="${PLUGINS} mad"
11203       mad_LDFLAGS="${mad_LDFLAGS} -lmad"
11204 else
11205    { { echo "$as_me:$LINENO: error: Cannot find libmad library..." >&5
11206 echo "$as_me: error: Cannot find libmad library..." >&2;}
11207    { (exit 1); exit 1; }; }
11208 fi
11209
11210     CFLAGS=$save_CFLAGS
11211     LDFLAGS=$save_LDFLAGS
11212   fi
11213 fi
11214
11215 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
11216 if test "${enable_ffmpeg+set}" = set; then
11217   enableval="$enable_ffmpeg"
11218
11219 fi;
11220 if test "x$enable_ffmpeg" = "xyes"
11221 then
11222
11223 # Check whether --with-ffmpeg or --without-ffmpeg was given.
11224 if test "${with_ffmpeg+set}" = set; then
11225   withval="$with_ffmpeg"
11226
11227 fi;
11228   if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
11229   then
11230     ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
11231     ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
11232   fi
11233
11234
11235 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
11236 if test "${with_ffmpeg_tree+set}" = set; then
11237   withval="$with_ffmpeg_tree"
11238
11239 fi;
11240   if test "x$with_ffmpeg_tree" != "x"
11241   then
11242     echo "$as_me:$LINENO: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
11243 echo $ECHO_N "checking for libavcodec.a in ${with_ffmpeg_tree}... $ECHO_C" >&6
11244     real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
11245     if test "x$real_ffmpeg_tree" = x
11246     then
11247             echo "$as_me:$LINENO: result: no" >&5
11248 echo "${ECHO_T}no" >&6
11249       { { echo "$as_me:$LINENO: error: cannot cd to ${with_ffmpeg_tree}" >&5
11250 echo "$as_me: error: cannot cd to ${with_ffmpeg_tree}" >&2;}
11251    { (exit 1); exit 1; }; }
11252     fi
11253     if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
11254     then
11255             echo "$as_me:$LINENO: result: ${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&5
11256 echo "${ECHO_T}${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&6
11257       BUILTINS="${BUILTINS} ffmpeg"
11258       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
11259       if test x$SYS != xbeos
11260       then
11261         ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
11262       fi
11263       ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
11264     else
11265             echo "$as_me:$LINENO: result: no" >&5
11266 echo "${ECHO_T}no" >&6
11267       { { echo "$as_me:$LINENO: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&5
11268 echo "$as_me: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&2;}
11269    { (exit 1); exit 1; }; }
11270     fi
11271   else
11272     save_CFLAGS=$CFLAGS
11273     save_LDFLAGS=$LDFLAGS
11274     CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
11275     LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS"
11276     if test x$SYS != xbeos
11277     then
11278       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
11279     fi
11280     echo "$as_me:$LINENO: checking for avcodec_init in -lavcodec" >&5
11281 echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6
11282 if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then
11283   echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285   ac_check_lib_save_LIBS=$LIBS
11286 LIBS="-lavcodec  $LIBS"
11287 cat >conftest.$ac_ext <<_ACEOF
11288 #line $LINENO "configure"
11289 #include "confdefs.h"
11290
11291 /* Override any gcc2 internal prototype to avoid an error.  */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 /* We use char because int might match the return type of a gcc2
11296    builtin and then its argument prototype would still apply.  */
11297 char avcodec_init ();
11298 #ifdef F77_DUMMY_MAIN
11299 #  ifdef __cplusplus
11300      extern "C"
11301 #  endif
11302    int F77_DUMMY_MAIN() { return 1; }
11303 #endif
11304 int
11305 main ()
11306 {
11307 avcodec_init ();
11308   ;
11309   return 0;
11310 }
11311 _ACEOF
11312 rm -f conftest.$ac_objext conftest$ac_exeext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314   (eval $ac_link) 2>&5
11315   ac_status=$?
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); } &&
11318          { ac_try='test -s conftest$ac_exeext'
11319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320   (eval $ac_try) 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; }; then
11324   ac_cv_lib_avcodec_avcodec_init=yes
11325 else
11326   echo "$as_me: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 ac_cv_lib_avcodec_avcodec_init=no
11329 fi
11330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11332 fi
11333 echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_init" >&5
11334 echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6
11335 if test $ac_cv_lib_avcodec_avcodec_init = yes; then
11336
11337       BUILTINS="${BUILTINS} ffmpeg"
11338       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
11339       if test x$SYS != xbeos
11340       then
11341         ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
11342       fi
11343 else
11344    { { echo "$as_me:$LINENO: error: Cannot find libavcodec library..." >&5
11345 echo "$as_me: error: Cannot find libavcodec library..." >&2;}
11346    { (exit 1); exit 1; }; }
11347 fi
11348
11349     CFLAGS=$save_CFLAGS
11350     LDFLAGS=$save_LDFLAGS
11351   fi
11352 fi
11353
11354
11355 if test x$SYS = xbeos
11356 then
11357     PLUGINS="${PLUGINS} beos"
11358 fi
11359
11360 # Check whether --enable-a52 or --disable-a52 was given.
11361 if test "${enable_a52+set}" = set; then
11362   enableval="$enable_a52"
11363
11364 fi;
11365 if test "x$enable_a52" != "xno"
11366 then
11367
11368 # Check whether --with-a52-tree or --without-a52-tree was given.
11369 if test "${with_a52_tree+set}" = set; then
11370   withval="$with_a52_tree"
11371
11372 fi;
11373   if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
11374   then
11375     real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
11376     if test "x$real_a52_tree" = x
11377     then
11378             echo "$as_me:$LINENO: result: no" >&5
11379 echo "${ECHO_T}no" >&6
11380       { { echo "$as_me:$LINENO: error: ${with_a52_tree} directory doesn't exist" >&5
11381 echo "$as_me: error: ${with_a52_tree} directory doesn't exist" >&2;}
11382    { (exit 1); exit 1; }; }
11383     fi
11384         echo "$as_me:$LINENO: checking for a52.h in ${real_a52_tree}/include" >&5
11385 echo $ECHO_N "checking for a52.h in ${real_a52_tree}/include... $ECHO_C" >&6
11386     if test -f ${real_a52_tree}/include/a52.h
11387     then
11388       echo "$as_me:$LINENO: result: yes" >&5
11389 echo "${ECHO_T}yes" >&6
11390       a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
11391       a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
11392       save_LDFLAGS=$LDFLAGS
11393       LDFLAGS="$a52_LDFLAGS $LDFLAGS"
11394       echo "$as_me:$LINENO: checking for a52_free in -la52" >&5
11395 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
11396 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
11397   echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399   ac_check_lib_save_LIBS=$LIBS
11400 LIBS="-la52 -lm $LIBS"
11401 cat >conftest.$ac_ext <<_ACEOF
11402 #line $LINENO "configure"
11403 #include "confdefs.h"
11404
11405 /* Override any gcc2 internal prototype to avoid an error.  */
11406 #ifdef __cplusplus
11407 extern "C"
11408 #endif
11409 /* We use char because int might match the return type of a gcc2
11410    builtin and then its argument prototype would still apply.  */
11411 char a52_free ();
11412 #ifdef F77_DUMMY_MAIN
11413 #  ifdef __cplusplus
11414      extern "C"
11415 #  endif
11416    int F77_DUMMY_MAIN() { return 1; }
11417 #endif
11418 int
11419 main ()
11420 {
11421 a52_free ();
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11428   (eval $ac_link) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); } &&
11432          { ac_try='test -s conftest$ac_exeext'
11433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434   (eval $ac_try) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); }; }; then
11438   ac_cv_lib_a52_a52_free=yes
11439 else
11440   echo "$as_me: failed program was:" >&5
11441 cat conftest.$ac_ext >&5
11442 ac_cv_lib_a52_a52_free=no
11443 fi
11444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11446 fi
11447 echo "$as_me:$LINENO: result: $ac_cv_lib_a52_a52_free" >&5
11448 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
11449 if test $ac_cv_lib_a52_a52_free = yes; then
11450
11451         BUILTINS="${BUILTINS} a52"
11452         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
11453         a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
11454
11455 else
11456
11457         if test -f ${real_a52_tree}/liba52/.libs/liba52.a
11458         then
11459           { { echo "$as_me:$LINENO: error: make sure you have at least a52dec-0.7.3" >&5
11460 echo "$as_me: error: make sure you have at least a52dec-0.7.3" >&2;}
11461    { (exit 1); exit 1; }; }
11462         else
11463           { { echo "$as_me:$LINENO: error: the specified tree hasn't been compiled" >&5
11464 echo "$as_me: error: the specified tree hasn't been compiled" >&2;}
11465    { (exit 1); exit 1; }; }
11466         fi
11467
11468 fi
11469
11470       LDFLAGS=$save_LDFLAGS
11471     else
11472       echo "$as_me:$LINENO: result: no" >&5
11473 echo "${ECHO_T}no" >&6
11474       { { echo "$as_me:$LINENO: error: the specified tree doesn't have a52.h" >&5
11475 echo "$as_me: error: the specified tree doesn't have a52.h" >&2;}
11476    { (exit 1); exit 1; }; }
11477     fi
11478   else
11479 for ac_header in a52dec/a52.h
11480 do
11481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11483   echo "$as_me:$LINENO: checking for $ac_header" >&5
11484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11486   echo $ECHO_N "(cached) $ECHO_C" >&6
11487 fi
11488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11490 else
11491   # Is the header compilable?
11492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11494 cat >conftest.$ac_ext <<_ACEOF
11495 #line $LINENO "configure"
11496 #include "confdefs.h"
11497 $ac_includes_default
11498 #include <$ac_header>
11499 _ACEOF
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502   (eval $ac_compile) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); } &&
11506          { ac_try='test -s conftest.$ac_objext'
11507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508   (eval $ac_try) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; }; then
11512   ac_header_compiler=yes
11513 else
11514   echo "$as_me: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11516 ac_header_compiler=no
11517 fi
11518 rm -f conftest.$ac_objext conftest.$ac_ext
11519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11520 echo "${ECHO_T}$ac_header_compiler" >&6
11521
11522 # Is the header present?
11523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11525 cat >conftest.$ac_ext <<_ACEOF
11526 #line $LINENO "configure"
11527 #include "confdefs.h"
11528 #include <$ac_header>
11529 _ACEOF
11530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11532   ac_status=$?
11533   egrep -v '^ *\+' conftest.er1 >conftest.err
11534   rm -f conftest.er1
11535   cat conftest.err >&5
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); } >/dev/null; then
11538   if test -s conftest.err; then
11539     ac_cpp_err=$ac_c_preproc_warn_flag
11540   else
11541     ac_cpp_err=
11542   fi
11543 else
11544   ac_cpp_err=yes
11545 fi
11546 if test -z "$ac_cpp_err"; then
11547   ac_header_preproc=yes
11548 else
11549   echo "$as_me: failed program was:" >&5
11550   cat conftest.$ac_ext >&5
11551   ac_header_preproc=no
11552 fi
11553 rm -f conftest.err conftest.$ac_ext
11554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11555 echo "${ECHO_T}$ac_header_preproc" >&6
11556
11557 # So?  What about this header?
11558 case $ac_header_compiler:$ac_header_preproc in
11559   yes:no )
11560     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11564   no:yes )
11565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11567     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11571 esac
11572 echo "$as_me:$LINENO: checking for $ac_header" >&5
11573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11575   echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11577   eval "$as_ac_Header=$ac_header_preproc"
11578 fi
11579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11581
11582 fi
11583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11584   cat >>confdefs.h <<_ACEOF
11585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11586 _ACEOF
11587
11588       echo "$as_me:$LINENO: checking for a52_free in -la52" >&5
11589 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
11590 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
11591   echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593   ac_check_lib_save_LIBS=$LIBS
11594 LIBS="-la52 -lm $LIBS"
11595 cat >conftest.$ac_ext <<_ACEOF
11596 #line $LINENO "configure"
11597 #include "confdefs.h"
11598
11599 /* Override any gcc2 internal prototype to avoid an error.  */
11600 #ifdef __cplusplus
11601 extern "C"
11602 #endif
11603 /* We use char because int might match the return type of a gcc2
11604    builtin and then its argument prototype would still apply.  */
11605 char a52_free ();
11606 #ifdef F77_DUMMY_MAIN
11607 #  ifdef __cplusplus
11608      extern "C"
11609 #  endif
11610    int F77_DUMMY_MAIN() { return 1; }
11611 #endif
11612 int
11613 main ()
11614 {
11615 a52_free ();
11616   ;
11617   return 0;
11618 }
11619 _ACEOF
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11622   (eval $ac_link) 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); } &&
11626          { ac_try='test -s conftest$ac_exeext'
11627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628   (eval $ac_try) 2>&5
11629   ac_status=$?
11630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); }; }; then
11632   ac_cv_lib_a52_a52_free=yes
11633 else
11634   echo "$as_me: failed program was:" >&5
11635 cat conftest.$ac_ext >&5
11636 ac_cv_lib_a52_a52_free=no
11637 fi
11638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11640 fi
11641 echo "$as_me:$LINENO: result: $ac_cv_lib_a52_a52_free" >&5
11642 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
11643 if test $ac_cv_lib_a52_a52_free = yes; then
11644
11645         BUILTINS="${BUILTINS} a52"
11646         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
11647         a52_CFLAGS="${a52_CFLAGS}"
11648
11649 fi
11650
11651
11652 fi
11653
11654 done
11655
11656   fi
11657 fi
11658
11659 # Check whether --enable-vorbis or --disable-vorbis was given.
11660 if test "${enable_vorbis+set}" = set; then
11661   enableval="$enable_vorbis"
11662
11663 fi;
11664 if test "x$enable_vorbis" != "xno"
11665 then
11666
11667 for ac_header in ogg/ogg.h
11668 do
11669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11671   echo "$as_me:$LINENO: checking for $ac_header" >&5
11672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11674   echo $ECHO_N "(cached) $ECHO_C" >&6
11675 fi
11676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11678 else
11679   # Is the header compilable?
11680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11682 cat >conftest.$ac_ext <<_ACEOF
11683 #line $LINENO "configure"
11684 #include "confdefs.h"
11685 $ac_includes_default
11686 #include <$ac_header>
11687 _ACEOF
11688 rm -f conftest.$ac_objext
11689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690   (eval $ac_compile) 2>&5
11691   ac_status=$?
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); } &&
11694          { ac_try='test -s conftest.$ac_objext'
11695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696   (eval $ac_try) 2>&5
11697   ac_status=$?
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); }; }; then
11700   ac_header_compiler=yes
11701 else
11702   echo "$as_me: failed program was:" >&5
11703 cat conftest.$ac_ext >&5
11704 ac_header_compiler=no
11705 fi
11706 rm -f conftest.$ac_objext conftest.$ac_ext
11707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11708 echo "${ECHO_T}$ac_header_compiler" >&6
11709
11710 # Is the header present?
11711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716 #include <$ac_header>
11717 _ACEOF
11718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11720   ac_status=$?
11721   egrep -v '^ *\+' conftest.er1 >conftest.err
11722   rm -f conftest.er1
11723   cat conftest.err >&5
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); } >/dev/null; then
11726   if test -s conftest.err; then
11727     ac_cpp_err=$ac_c_preproc_warn_flag
11728   else
11729     ac_cpp_err=
11730   fi
11731 else
11732   ac_cpp_err=yes
11733 fi
11734 if test -z "$ac_cpp_err"; then
11735   ac_header_preproc=yes
11736 else
11737   echo "$as_me: failed program was:" >&5
11738   cat conftest.$ac_ext >&5
11739   ac_header_preproc=no
11740 fi
11741 rm -f conftest.err conftest.$ac_ext
11742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6
11744
11745 # So?  What about this header?
11746 case $ac_header_compiler:$ac_header_preproc in
11747   yes:no )
11748     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11752   no:yes )
11753     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11755     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11759 esac
11760 echo "$as_me:$LINENO: checking for $ac_header" >&5
11761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11763   echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765   eval "$as_ac_Header=$ac_header_preproc"
11766 fi
11767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11769
11770 fi
11771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11772   cat >>confdefs.h <<_ACEOF
11773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11774 _ACEOF
11775
11776         #PLUGINS="${PLUGINS} vorbis"
11777     vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
11778
11779 fi
11780
11781 done
11782
11783 fi
11784
11785
11786
11787 # Check whether --with- or --without- was given.
11788 if test "${with_+set}" = set; then
11789   withval="$with_"
11790
11791 fi;
11792
11793 # Check whether --enable-x11 or --disable-x11 was given.
11794 if test "${enable_x11+set}" = set; then
11795   enableval="$enable_x11"
11796
11797 fi;
11798 if test x$enable_x11 != xno &&
11799   (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
11800   if test x$x_includes = xNONE; then
11801     x_includes=/usr/X11R6/include
11802   fi
11803   if test x$x_libraries = xNONE; then
11804     x_libraries=/usr/X11R6/lib
11805   fi
11806   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
11807
11808 for ac_header in X11/Xlib.h
11809 do
11810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11812   echo "$as_me:$LINENO: checking for $ac_header" >&5
11813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11815   echo $ECHO_N "(cached) $ECHO_C" >&6
11816 fi
11817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11819 else
11820   # Is the header compilable?
11821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11823 cat >conftest.$ac_ext <<_ACEOF
11824 #line $LINENO "configure"
11825 #include "confdefs.h"
11826 $ac_includes_default
11827 #include <$ac_header>
11828 _ACEOF
11829 rm -f conftest.$ac_objext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11831   (eval $ac_compile) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); } &&
11835          { ac_try='test -s conftest.$ac_objext'
11836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837   (eval $ac_try) 2>&5
11838   ac_status=$?
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); }; }; then
11841   ac_header_compiler=yes
11842 else
11843   echo "$as_me: failed program was:" >&5
11844 cat conftest.$ac_ext >&5
11845 ac_header_compiler=no
11846 fi
11847 rm -f conftest.$ac_objext conftest.$ac_ext
11848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11849 echo "${ECHO_T}$ac_header_compiler" >&6
11850
11851 # Is the header present?
11852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11854 cat >conftest.$ac_ext <<_ACEOF
11855 #line $LINENO "configure"
11856 #include "confdefs.h"
11857 #include <$ac_header>
11858 _ACEOF
11859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11861   ac_status=$?
11862   egrep -v '^ *\+' conftest.er1 >conftest.err
11863   rm -f conftest.er1
11864   cat conftest.err >&5
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); } >/dev/null; then
11867   if test -s conftest.err; then
11868     ac_cpp_err=$ac_c_preproc_warn_flag
11869   else
11870     ac_cpp_err=
11871   fi
11872 else
11873   ac_cpp_err=yes
11874 fi
11875 if test -z "$ac_cpp_err"; then
11876   ac_header_preproc=yes
11877 else
11878   echo "$as_me: failed program was:" >&5
11879   cat conftest.$ac_ext >&5
11880   ac_header_preproc=no
11881 fi
11882 rm -f conftest.err conftest.$ac_ext
11883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 echo "${ECHO_T}$ac_header_preproc" >&6
11885
11886 # So?  What about this header?
11887 case $ac_header_compiler:$ac_header_preproc in
11888   yes:no )
11889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11893   no:yes )
11894     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11896     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11900 esac
11901 echo "$as_me:$LINENO: checking for $ac_header" >&5
11902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11904   echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906   eval "$as_ac_Header=$ac_header_preproc"
11907 fi
11908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11910
11911 fi
11912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11913   cat >>confdefs.h <<_ACEOF
11914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11915 _ACEOF
11916
11917     PLUGINS="${PLUGINS} x11"
11918     x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
11919     x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
11920
11921 fi
11922
11923 done
11924
11925   CPPFLAGS="$save_CPPFLAGS"
11926 fi
11927
11928 # Check whether --enable-xvideo or --disable-xvideo was given.
11929 if test "${enable_xvideo+set}" = set; then
11930   enableval="$enable_xvideo"
11931
11932 fi;
11933 if test x$enable_xvideo != xno &&
11934   (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
11935   if test x$x_includes = xNONE; then
11936     x_includes=/usr/X11R6/include
11937   fi
11938   if test x$x_libraries = xNONE; then
11939     x_libraries=/usr/X11R6/lib
11940   fi
11941   save_CPPFLAGS=$CPPFLAGS
11942   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
11943
11944 for ac_header in X11/extensions/Xv.h
11945 do
11946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11948   echo "$as_me:$LINENO: checking for $ac_header" >&5
11949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 fi
11953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11955 else
11956   # Is the header compilable?
11957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11959 cat >conftest.$ac_ext <<_ACEOF
11960 #line $LINENO "configure"
11961 #include "confdefs.h"
11962 $ac_includes_default
11963 #include <$ac_header>
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967   (eval $ac_compile) 2>&5
11968   ac_status=$?
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); } &&
11971          { ac_try='test -s conftest.$ac_objext'
11972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973   (eval $ac_try) 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); }; }; then
11977   ac_header_compiler=yes
11978 else
11979   echo "$as_me: failed program was:" >&5
11980 cat conftest.$ac_ext >&5
11981 ac_header_compiler=no
11982 fi
11983 rm -f conftest.$ac_objext conftest.$ac_ext
11984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11985 echo "${ECHO_T}$ac_header_compiler" >&6
11986
11987 # Is the header present?
11988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11990 cat >conftest.$ac_ext <<_ACEOF
11991 #line $LINENO "configure"
11992 #include "confdefs.h"
11993 #include <$ac_header>
11994 _ACEOF
11995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11997   ac_status=$?
11998   egrep -v '^ *\+' conftest.er1 >conftest.err
11999   rm -f conftest.er1
12000   cat conftest.err >&5
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); } >/dev/null; then
12003   if test -s conftest.err; then
12004     ac_cpp_err=$ac_c_preproc_warn_flag
12005   else
12006     ac_cpp_err=
12007   fi
12008 else
12009   ac_cpp_err=yes
12010 fi
12011 if test -z "$ac_cpp_err"; then
12012   ac_header_preproc=yes
12013 else
12014   echo "$as_me: failed program was:" >&5
12015   cat conftest.$ac_ext >&5
12016   ac_header_preproc=no
12017 fi
12018 rm -f conftest.err conftest.$ac_ext
12019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12020 echo "${ECHO_T}$ac_header_preproc" >&6
12021
12022 # So?  What about this header?
12023 case $ac_header_compiler:$ac_header_preproc in
12024   yes:no )
12025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12029   no:yes )
12030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12032     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12036 esac
12037 echo "$as_me:$LINENO: checking for $ac_header" >&5
12038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12040   echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042   eval "$as_ac_Header=$ac_header_preproc"
12043 fi
12044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12046
12047 fi
12048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12049   cat >>confdefs.h <<_ACEOF
12050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12051 _ACEOF
12052
12053     save_CFLAGS=$CFLAGS
12054     CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
12055     echo "$as_me:$LINENO: checking for XvSetPortAttribute in -lXv_pic" >&5
12056 echo $ECHO_N "checking for XvSetPortAttribute in -lXv_pic... $ECHO_C" >&6
12057 if test "${ac_cv_lib_Xv_pic_XvSetPortAttribute+set}" = set; then
12058   echo $ECHO_N "(cached) $ECHO_C" >&6
12059 else
12060   ac_check_lib_save_LIBS=$LIBS
12061 LIBS="-lXv_pic  $LIBS"
12062 cat >conftest.$ac_ext <<_ACEOF
12063 #line $LINENO "configure"
12064 #include "confdefs.h"
12065
12066 /* Override any gcc2 internal prototype to avoid an error.  */
12067 #ifdef __cplusplus
12068 extern "C"
12069 #endif
12070 /* We use char because int might match the return type of a gcc2
12071    builtin and then its argument prototype would still apply.  */
12072 char XvSetPortAttribute ();
12073 #ifdef F77_DUMMY_MAIN
12074 #  ifdef __cplusplus
12075      extern "C"
12076 #  endif
12077    int F77_DUMMY_MAIN() { return 1; }
12078 #endif
12079 int
12080 main ()
12081 {
12082 XvSetPortAttribute ();
12083   ;
12084   return 0;
12085 }
12086 _ACEOF
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12089   (eval $ac_link) 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); } &&
12093          { ac_try='test -s conftest$ac_exeext'
12094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095   (eval $ac_try) 2>&5
12096   ac_status=$?
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); }; }; then
12099   ac_cv_lib_Xv_pic_XvSetPortAttribute=yes
12100 else
12101   echo "$as_me: failed program was:" >&5
12102 cat conftest.$ac_ext >&5
12103 ac_cv_lib_Xv_pic_XvSetPortAttribute=no
12104 fi
12105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12106 LIBS=$ac_check_lib_save_LIBS
12107 fi
12108 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_pic_XvSetPortAttribute" >&5
12109 echo "${ECHO_T}$ac_cv_lib_Xv_pic_XvSetPortAttribute" >&6
12110 if test $ac_cv_lib_Xv_pic_XvSetPortAttribute = yes; then
12111   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
12112       PLUGINS="${PLUGINS} xvideo"
12113       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
12114       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
12115 else
12116   # We don't have Xv_pic, let's make xvideo.a as builtin
12117       BUILTINS="${BUILTINS} xvideo"
12118       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
12119       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
12120 fi
12121
12122     CFLAGS="$save_CFLAGS"
12123
12124   CPPFLAGS="$save_CPPFLAGS"
12125 fi
12126
12127 done
12128
12129 fi
12130
12131 # Check whether --enable-sdl or --disable-sdl was given.
12132 if test "${enable_sdl+set}" = set; then
12133   enableval="$enable_sdl"
12134
12135 fi;
12136 if test "x$enable_sdl" != "xno"
12137 then
12138   SDL_PATH=$PATH
12139
12140 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
12141 if test "${with_sdl_config_path+set}" = set; then
12142   withval="$with_sdl_config_path"
12143    if test "x$with_sdl_config_path" != "xno"
12144       then
12145         SDL_PATH="$with_sdl_config_path:$PATH"
12146       fi
12147 fi;
12148   # Extract the first word of "sdl12-config", so it can be a program name with args.
12149 set dummy sdl12-config; ac_word=$2
12150 echo "$as_me:$LINENO: checking for $ac_word" >&5
12151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12152 if test "${ac_cv_path_SDL12_CONFIG+set}" = set; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   case $SDL12_CONFIG in
12156   [\\/]* | ?:[\\/]*)
12157   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
12158   ;;
12159   *)
12160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $SDL_PATH
12162 do
12163   IFS=$as_save_IFS
12164   test -z "$as_dir" && as_dir=.
12165   for ac_exec_ext in '' $ac_executable_extensions; do
12166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167     ac_cv_path_SDL12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12169     break 2
12170   fi
12171 done
12172 done
12173
12174   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
12175   ;;
12176 esac
12177 fi
12178 SDL12_CONFIG=$ac_cv_path_SDL12_CONFIG
12179
12180 if test -n "$SDL12_CONFIG"; then
12181   echo "$as_me:$LINENO: result: $SDL12_CONFIG" >&5
12182 echo "${ECHO_T}$SDL12_CONFIG" >&6
12183 else
12184   echo "$as_me:$LINENO: result: no" >&5
12185 echo "${ECHO_T}no" >&6
12186 fi
12187
12188   SDL_CONFIG=${SDL12_CONFIG}
12189   SDL_HEADER="SDL12/SDL.h"
12190   if test x${SDL_CONFIG} = xno
12191   then
12192     # Extract the first word of "sdl11-config", so it can be a program name with args.
12193 set dummy sdl11-config; ac_word=$2
12194 echo "$as_me:$LINENO: checking for $ac_word" >&5
12195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12196 if test "${ac_cv_path_SDL11_CONFIG+set}" = set; then
12197   echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199   case $SDL11_CONFIG in
12200   [\\/]* | ?:[\\/]*)
12201   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
12202   ;;
12203   *)
12204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $SDL_PATH
12206 do
12207   IFS=$as_save_IFS
12208   test -z "$as_dir" && as_dir=.
12209   for ac_exec_ext in '' $ac_executable_extensions; do
12210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211     ac_cv_path_SDL11_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12213     break 2
12214   fi
12215 done
12216 done
12217
12218   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
12219   ;;
12220 esac
12221 fi
12222 SDL11_CONFIG=$ac_cv_path_SDL11_CONFIG
12223
12224 if test -n "$SDL11_CONFIG"; then
12225   echo "$as_me:$LINENO: result: $SDL11_CONFIG" >&5
12226 echo "${ECHO_T}$SDL11_CONFIG" >&6
12227 else
12228   echo "$as_me:$LINENO: result: no" >&5
12229 echo "${ECHO_T}no" >&6
12230 fi
12231
12232     SDL_CONFIG=${SDL11_CONFIG}
12233     SDL_HEADER="SDL11/SDL.h"
12234   fi
12235   if test x${SDL_CONFIG} = xno
12236   then
12237     # Extract the first word of "sdl-config", so it can be a program name with args.
12238 set dummy sdl-config; ac_word=$2
12239 echo "$as_me:$LINENO: checking for $ac_word" >&5
12240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12241 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12242   echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244   case $SDL_CONFIG in
12245   [\\/]* | ?:[\\/]*)
12246   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12247   ;;
12248   *)
12249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $SDL_PATH
12251 do
12252   IFS=$as_save_IFS
12253   test -z "$as_dir" && as_dir=.
12254   for ac_exec_ext in '' $ac_executable_extensions; do
12255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12256     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12258     break 2
12259   fi
12260 done
12261 done
12262
12263   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12264   ;;
12265 esac
12266 fi
12267 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12268
12269 if test -n "$SDL_CONFIG"; then
12270   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12271 echo "${ECHO_T}$SDL_CONFIG" >&6
12272 else
12273   echo "$as_me:$LINENO: result: no" >&5
12274 echo "${ECHO_T}no" >&6
12275 fi
12276
12277     SDL_HEADER="SDL/SDL.h"
12278   fi
12279   # check for cross-compiling
12280   SDL_PREFIX=
12281
12282 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
12283 if test "${with_sdl_prefix+set}" = set; then
12284   withval="$with_sdl_prefix"
12285
12286 fi;
12287   if test "x$with_sdl_prefix" != "xno" -a "x$with_sdl_prefix" != "x"
12288   then
12289     SDL_PREFIX="--prefix=$with_sdl_prefix"
12290   fi
12291   if test x${SDL_CONFIG} != xno
12292   then
12293     PLUGINS="${PLUGINS} sdl"
12294     sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} ${SDL_PREFIX} --cflags`"
12295     sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} ${SDL_PREFIX} --libs | sed 's,-rdynamic,,'`"
12296     CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
12297
12298 for ac_header in ${SDL_HEADER}
12299 do
12300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12302   echo "$as_me:$LINENO: checking for $ac_header" >&5
12303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12305   echo $ECHO_N "(cached) $ECHO_C" >&6
12306 fi
12307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12309 else
12310   # Is the header compilable?
12311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12313 cat >conftest.$ac_ext <<_ACEOF
12314 #line $LINENO "configure"
12315 #include "confdefs.h"
12316 $ac_includes_default
12317 #include <$ac_header>
12318 _ACEOF
12319 rm -f conftest.$ac_objext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12321   (eval $ac_compile) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); } &&
12325          { ac_try='test -s conftest.$ac_objext'
12326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327   (eval $ac_try) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; }; then
12331   ac_header_compiler=yes
12332 else
12333   echo "$as_me: failed program was:" >&5
12334 cat conftest.$ac_ext >&5
12335 ac_header_compiler=no
12336 fi
12337 rm -f conftest.$ac_objext conftest.$ac_ext
12338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12339 echo "${ECHO_T}$ac_header_compiler" >&6
12340
12341 # Is the header present?
12342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12344 cat >conftest.$ac_ext <<_ACEOF
12345 #line $LINENO "configure"
12346 #include "confdefs.h"
12347 #include <$ac_header>
12348 _ACEOF
12349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12351   ac_status=$?
12352   egrep -v '^ *\+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } >/dev/null; then
12357   if test -s conftest.err; then
12358     ac_cpp_err=$ac_c_preproc_warn_flag
12359   else
12360     ac_cpp_err=
12361   fi
12362 else
12363   ac_cpp_err=yes
12364 fi
12365 if test -z "$ac_cpp_err"; then
12366   ac_header_preproc=yes
12367 else
12368   echo "$as_me: failed program was:" >&5
12369   cat conftest.$ac_ext >&5
12370   ac_header_preproc=no
12371 fi
12372 rm -f conftest.err conftest.$ac_ext
12373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12374 echo "${ECHO_T}$ac_header_preproc" >&6
12375
12376 # So?  What about this header?
12377 case $ac_header_compiler:$ac_header_preproc in
12378   yes:no )
12379     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12383   no:yes )
12384     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12386     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12390 esac
12391 echo "$as_me:$LINENO: checking for $ac_header" >&5
12392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12394   echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396   eval "$as_ac_Header=$ac_header_preproc"
12397 fi
12398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12400
12401 fi
12402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12403   cat >>confdefs.h <<_ACEOF
12404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12405 _ACEOF
12406
12407 cat >>confdefs.h <<_ACEOF
12408 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
12409 _ACEOF
12410
12411 else
12412    { { echo "$as_me:$LINENO: error: The development package for SDL is not installed.
12413 Please install it and try again. Alternatively you can also configure with
12414 --disable-sdl." >&5
12415 echo "$as_me: error: The development package for SDL is not installed.
12416 Please install it and try again. Alternatively you can also configure with
12417 --disable-sdl." >&2;}
12418    { (exit 1); exit 1; }; }
12419
12420 fi
12421
12422 done
12423
12424     CPPFLAGS="$save_CPPFLAGS"
12425     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
12426     then
12427       { { echo "$as_me:$LINENO: error: The development package for SDL is not installed.
12428 Please install it and try again. Alternatively you can also configure with
12429 --disable-sdl." >&5
12430 echo "$as_me: error: The development package for SDL is not installed.
12431 Please install it and try again. Alternatively you can also configure with
12432 --disable-sdl." >&2;}
12433    { (exit 1); exit 1; }; }
12434     fi
12435   elif test "x$enable_sdl" =  "xyes"
12436   then
12437     { { echo "$as_me:$LINENO: error: I couldn't find the SDL package. You can download libSDL
12438 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
12439     " >&5
12440 echo "$as_me: error: I couldn't find the SDL package. You can download libSDL
12441 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
12442     " >&2;}
12443    { (exit 1); exit 1; }; }
12444   fi
12445 fi
12446
12447 # Check whether --enable-qte or --disable-qte was given.
12448 if test "${enable_qte+set}" = set; then
12449   enableval="$enable_qte"
12450
12451 fi;
12452 if test "x${enable_qte}" != "xno"
12453 then
12454
12455 # Check whether --with-qte or --without-qte was given.
12456 if test "${with_qte+set}" = set; then
12457   withval="$with_qte"
12458
12459 fi;
12460   if test "x${with_qte}" = "x"
12461   then
12462     test_LDFLAGS="-L${QTDIR}/lib"
12463     test_CFLAGS="-I${QTDIR}/include"
12464   else
12465     test_LDFLAGS="-L${with_qte}/lib"
12466     test_CFLAGS="-I${with_qte}/include"
12467   fi
12468
12469   CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
12470
12471 for ac_header in qt.h
12472 do
12473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12475   echo "$as_me:$LINENO: checking for $ac_header" >&5
12476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 fi
12480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12482 else
12483   # Is the header compilable?
12484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12486 cat >conftest.$ac_ext <<_ACEOF
12487 #line $LINENO "configure"
12488 #include "confdefs.h"
12489 $ac_includes_default
12490 #include <$ac_header>
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494   (eval $ac_compile) 2>&5
12495   ac_status=$?
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); } &&
12498          { ac_try='test -s conftest.$ac_objext'
12499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500   (eval $ac_try) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); }; }; then
12504   ac_header_compiler=yes
12505 else
12506   echo "$as_me: failed program was:" >&5
12507 cat conftest.$ac_ext >&5
12508 ac_header_compiler=no
12509 fi
12510 rm -f conftest.$ac_objext conftest.$ac_ext
12511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12512 echo "${ECHO_T}$ac_header_compiler" >&6
12513
12514 # Is the header present?
12515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12517 cat >conftest.$ac_ext <<_ACEOF
12518 #line $LINENO "configure"
12519 #include "confdefs.h"
12520 #include <$ac_header>
12521 _ACEOF
12522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12523   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12524   ac_status=$?
12525   egrep -v '^ *\+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } >/dev/null; then
12530   if test -s conftest.err; then
12531     ac_cpp_err=$ac_c_preproc_warn_flag
12532   else
12533     ac_cpp_err=
12534   fi
12535 else
12536   ac_cpp_err=yes
12537 fi
12538 if test -z "$ac_cpp_err"; then
12539   ac_header_preproc=yes
12540 else
12541   echo "$as_me: failed program was:" >&5
12542   cat conftest.$ac_ext >&5
12543   ac_header_preproc=no
12544 fi
12545 rm -f conftest.err conftest.$ac_ext
12546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12547 echo "${ECHO_T}$ac_header_preproc" >&6
12548
12549 # So?  What about this header?
12550 case $ac_header_compiler:$ac_header_preproc in
12551   yes:no )
12552     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12556   no:yes )
12557     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12559     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12563 esac
12564 echo "$as_me:$LINENO: checking for $ac_header" >&5
12565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12567   echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569   eval "$as_ac_Header=$ac_header_preproc"
12570 fi
12571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12573
12574 fi
12575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12576   cat >>confdefs.h <<_ACEOF
12577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12578 _ACEOF
12579
12580     qte_CFLAGS="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
12581     qte_LDFLAGS="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
12582     if test "x${with_qte}" = "x"
12583     then
12584       PLUGINS="${PLUGINS} qte"
12585     else
12586       BUILTINS="${BUILTINS} qte"
12587     fi
12588
12589 fi
12590
12591 done
12592
12593   CPPFLAGS="${save_CPPFLAGS}"
12594 fi
12595
12596 # Check whether --enable-directx or --disable-directx was given.
12597 if test "${enable_directx+set}" = set; then
12598   enableval="$enable_directx"
12599
12600 fi;
12601 if test "x$enable_directx" != "xno"
12602 then
12603   if test x$SYS = xmingw32
12604   then
12605
12606 # Check whether --with-directx or --without-directx was given.
12607 if test "${with_directx+set}" = set; then
12608   withval="$with_directx"
12609
12610 fi;
12611     if test "x$with_directx" = "x"
12612     then
12613
12614 for ac_header in ddraw.h
12615 do
12616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12618   echo "$as_me:$LINENO: checking for $ac_header" >&5
12619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12621   echo $ECHO_N "(cached) $ECHO_C" >&6
12622 fi
12623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12625 else
12626   # Is the header compilable?
12627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12629 cat >conftest.$ac_ext <<_ACEOF
12630 #line $LINENO "configure"
12631 #include "confdefs.h"
12632 $ac_includes_default
12633 #include <$ac_header>
12634 _ACEOF
12635 rm -f conftest.$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637   (eval $ac_compile) 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); } &&
12641          { ac_try='test -s conftest.$ac_objext'
12642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643   (eval $ac_try) 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); }; }; then
12647   ac_header_compiler=yes
12648 else
12649   echo "$as_me: failed program was:" >&5
12650 cat conftest.$ac_ext >&5
12651 ac_header_compiler=no
12652 fi
12653 rm -f conftest.$ac_objext conftest.$ac_ext
12654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12655 echo "${ECHO_T}$ac_header_compiler" >&6
12656
12657 # Is the header present?
12658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12660 cat >conftest.$ac_ext <<_ACEOF
12661 #line $LINENO "configure"
12662 #include "confdefs.h"
12663 #include <$ac_header>
12664 _ACEOF
12665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12667   ac_status=$?
12668   egrep -v '^ *\+' conftest.er1 >conftest.err
12669   rm -f conftest.er1
12670   cat conftest.err >&5
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } >/dev/null; then
12673   if test -s conftest.err; then
12674     ac_cpp_err=$ac_c_preproc_warn_flag
12675   else
12676     ac_cpp_err=
12677   fi
12678 else
12679   ac_cpp_err=yes
12680 fi
12681 if test -z "$ac_cpp_err"; then
12682   ac_header_preproc=yes
12683 else
12684   echo "$as_me: failed program was:" >&5
12685   cat conftest.$ac_ext >&5
12686   ac_header_preproc=no
12687 fi
12688 rm -f conftest.err conftest.$ac_ext
12689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12690 echo "${ECHO_T}$ac_header_preproc" >&6
12691
12692 # So?  What about this header?
12693 case $ac_header_compiler:$ac_header_preproc in
12694   yes:no )
12695     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12699   no:yes )
12700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12702     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12706 esac
12707 echo "$as_me:$LINENO: checking for $ac_header" >&5
12708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12710   echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712   eval "$as_ac_Header=$ac_header_preproc"
12713 fi
12714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12716
12717 fi
12718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12719   cat >>confdefs.h <<_ACEOF
12720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12721 _ACEOF
12722   PLUGINS="${PLUGINS} directx"
12723         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
12724 fi
12725
12726 done
12727
12728     else
12729       echo "$as_me:$LINENO: checking for directX headers in ${with_directx}" >&5
12730 echo $ECHO_N "checking for directX headers in ${with_directx}... $ECHO_C" >&6
12731       if test -f ${with_directx}/ddraw.h
12732       then
12733         PLUGINS="${PLUGINS} directx"
12734         directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
12735         directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
12736         echo "$as_me:$LINENO: result: yes" >&5
12737 echo "${ECHO_T}yes" >&6
12738       else
12739         echo "$as_me:$LINENO: result: no" >&5
12740 echo "${ECHO_T}no" >&6
12741         { { echo "$as_me:$LINENO: error: Cannot find ${with_directx}/ddraw.h!" >&5
12742 echo "$as_me: error: Cannot find ${with_directx}/ddraw.h!" >&2;}
12743    { (exit 1); exit 1; }; }
12744       fi
12745     fi
12746   fi
12747 fi
12748
12749 # Check whether --enable-fb or --disable-fb was given.
12750 if test "${enable_fb+set}" = set; then
12751   enableval="$enable_fb"
12752
12753 fi;
12754     if test x$enable_fb != xno
12755     then
12756
12757 for ac_header in linux/fb.h
12758 do
12759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12761   echo "$as_me:$LINENO: checking for $ac_header" >&5
12762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12764   echo $ECHO_N "(cached) $ECHO_C" >&6
12765 fi
12766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12768 else
12769   # Is the header compilable?
12770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12772 cat >conftest.$ac_ext <<_ACEOF
12773 #line $LINENO "configure"
12774 #include "confdefs.h"
12775 $ac_includes_default
12776 #include <$ac_header>
12777 _ACEOF
12778 rm -f conftest.$ac_objext
12779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780   (eval $ac_compile) 2>&5
12781   ac_status=$?
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); } &&
12784          { ac_try='test -s conftest.$ac_objext'
12785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786   (eval $ac_try) 2>&5
12787   ac_status=$?
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); }; }; then
12790   ac_header_compiler=yes
12791 else
12792   echo "$as_me: failed program was:" >&5
12793 cat conftest.$ac_ext >&5
12794 ac_header_compiler=no
12795 fi
12796 rm -f conftest.$ac_objext conftest.$ac_ext
12797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12798 echo "${ECHO_T}$ac_header_compiler" >&6
12799
12800 # Is the header present?
12801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12803 cat >conftest.$ac_ext <<_ACEOF
12804 #line $LINENO "configure"
12805 #include "confdefs.h"
12806 #include <$ac_header>
12807 _ACEOF
12808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12809   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12810   ac_status=$?
12811   egrep -v '^ *\+' conftest.er1 >conftest.err
12812   rm -f conftest.er1
12813   cat conftest.err >&5
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); } >/dev/null; then
12816   if test -s conftest.err; then
12817     ac_cpp_err=$ac_c_preproc_warn_flag
12818   else
12819     ac_cpp_err=
12820   fi
12821 else
12822   ac_cpp_err=yes
12823 fi
12824 if test -z "$ac_cpp_err"; then
12825   ac_header_preproc=yes
12826 else
12827   echo "$as_me: failed program was:" >&5
12828   cat conftest.$ac_ext >&5
12829   ac_header_preproc=no
12830 fi
12831 rm -f conftest.err conftest.$ac_ext
12832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12833 echo "${ECHO_T}$ac_header_preproc" >&6
12834
12835 # So?  What about this header?
12836 case $ac_header_compiler:$ac_header_preproc in
12837   yes:no )
12838     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12842   no:yes )
12843     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12845     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12849 esac
12850 echo "$as_me:$LINENO: checking for $ac_header" >&5
12851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12853   echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855   eval "$as_ac_Header=$ac_header_preproc"
12856 fi
12857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12859
12860 fi
12861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12862   cat >>confdefs.h <<_ACEOF
12863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12864 _ACEOF
12865
12866         PLUGINS="${PLUGINS} fb"
12867
12868 fi
12869
12870 done
12871
12872     fi
12873
12874 # Check whether --enable-mga or --disable-mga was given.
12875 if test "${enable_mga+set}" = set; then
12876   enableval="$enable_mga"
12877    if test x$enable_mga = xyes
12878     then
12879       PLUGINS="${PLUGINS} mga xmga"
12880     fi
12881 fi;
12882
12883 # Check whether --enable-ggi or --disable-ggi was given.
12884 if test "${enable_ggi+set}" = set; then
12885   enableval="$enable_ggi"
12886
12887 fi;
12888 if test x$enable_ggi = xyes
12889 then
12890   PLUGINS="${PLUGINS} ggi"
12891   ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
12892
12893 # Check whether --with-ggi or --without-ggi was given.
12894 if test "${with_ggi+set}" = set; then
12895   withval="$with_ggi"
12896    if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
12897       then
12898         CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
12899         ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
12900       fi
12901 fi;
12902 fi
12903
12904 # Check whether --enable-glide or --disable-glide was given.
12905 if test "${enable_glide+set}" = set; then
12906   enableval="$enable_glide"
12907
12908 fi;
12909 if test x$enable_glide = xyes
12910 then
12911   PLUGINS="${PLUGINS} glide"
12912   glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
12913   glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
12914
12915 # Check whether --with-glide or --without-glide was given.
12916 if test "${with_glide+set}" = set; then
12917   withval="$with_glide"
12918    if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
12919       then
12920         glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
12921         glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
12922       fi
12923 fi;
12924 fi
12925
12926 # Check whether --enable-aa or --disable-aa was given.
12927 if test "${enable_aa+set}" = set; then
12928   enableval="$enable_aa"
12929
12930 fi;
12931 if test x$enable_aa = xyes
12932 then
12933   if test "${ac_cv_header_aalib_h+set}" = set; then
12934   echo "$as_me:$LINENO: checking for aalib.h" >&5
12935 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
12936 if test "${ac_cv_header_aalib_h+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 fi
12939 echo "$as_me:$LINENO: result: $ac_cv_header_aalib_h" >&5
12940 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
12941 else
12942   # Is the header compilable?
12943 echo "$as_me:$LINENO: checking aalib.h usability" >&5
12944 echo $ECHO_N "checking aalib.h usability... $ECHO_C" >&6
12945 cat >conftest.$ac_ext <<_ACEOF
12946 #line $LINENO "configure"
12947 #include "confdefs.h"
12948 $ac_includes_default
12949 #include <aalib.h>
12950 _ACEOF
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953   (eval $ac_compile) 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } &&
12957          { ac_try='test -s conftest.$ac_objext'
12958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959   (eval $ac_try) 2>&5
12960   ac_status=$?
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); }; }; then
12963   ac_header_compiler=yes
12964 else
12965   echo "$as_me: failed program was:" >&5
12966 cat conftest.$ac_ext >&5
12967 ac_header_compiler=no
12968 fi
12969 rm -f conftest.$ac_objext conftest.$ac_ext
12970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12971 echo "${ECHO_T}$ac_header_compiler" >&6
12972
12973 # Is the header present?
12974 echo "$as_me:$LINENO: checking aalib.h presence" >&5
12975 echo $ECHO_N "checking aalib.h presence... $ECHO_C" >&6
12976 cat >conftest.$ac_ext <<_ACEOF
12977 #line $LINENO "configure"
12978 #include "confdefs.h"
12979 #include <aalib.h>
12980 _ACEOF
12981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12983   ac_status=$?
12984   egrep -v '^ *\+' conftest.er1 >conftest.err
12985   rm -f conftest.er1
12986   cat conftest.err >&5
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); } >/dev/null; then
12989   if test -s conftest.err; then
12990     ac_cpp_err=$ac_c_preproc_warn_flag
12991   else
12992     ac_cpp_err=
12993   fi
12994 else
12995   ac_cpp_err=yes
12996 fi
12997 if test -z "$ac_cpp_err"; then
12998   ac_header_preproc=yes
12999 else
13000   echo "$as_me: failed program was:" >&5
13001   cat conftest.$ac_ext >&5
13002   ac_header_preproc=no
13003 fi
13004 rm -f conftest.err conftest.$ac_ext
13005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13006 echo "${ECHO_T}$ac_header_preproc" >&6
13007
13008 # So?  What about this header?
13009 case $ac_header_compiler:$ac_header_preproc in
13010   yes:no )
13011     { echo "$as_me:$LINENO: WARNING: aalib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13012 echo "$as_me: WARNING: aalib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13013     { echo "$as_me:$LINENO: WARNING: aalib.h: proceeding with the preprocessor's result" >&5
13014 echo "$as_me: WARNING: aalib.h: proceeding with the preprocessor's result" >&2;};;
13015   no:yes )
13016     { echo "$as_me:$LINENO: WARNING: aalib.h: present but cannot be compiled" >&5
13017 echo "$as_me: WARNING: aalib.h: present but cannot be compiled" >&2;}
13018     { echo "$as_me:$LINENO: WARNING: aalib.h: check for missing prerequisite headers?" >&5
13019 echo "$as_me: WARNING: aalib.h: check for missing prerequisite headers?" >&2;}
13020     { echo "$as_me:$LINENO: WARNING: aalib.h: proceeding with the preprocessor's result" >&5
13021 echo "$as_me: WARNING: aalib.h: proceeding with the preprocessor's result" >&2;};;
13022 esac
13023 echo "$as_me:$LINENO: checking for aalib.h" >&5
13024 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
13025 if test "${ac_cv_header_aalib_h+set}" = set; then
13026   echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028   ac_cv_header_aalib_h=$ac_header_preproc
13029 fi
13030 echo "$as_me:$LINENO: result: $ac_cv_header_aalib_h" >&5
13031 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
13032
13033 fi
13034 if test $ac_cv_header_aalib_h = yes; then
13035   have_aa="true"
13036 else
13037   have_aa="false"
13038 fi
13039
13040
13041   if test x$have_aa = xtrue
13042   then
13043     PLUGINS="${PLUGINS} aa"
13044     aa_LDFLAGS="${aa_LDFLAGS} -laa"
13045   fi
13046 fi
13047
13048
13049
13050 # Check whether --with- or --without- was given.
13051 if test "${with_+set}" = set; then
13052   withval="$with_"
13053
13054 fi;
13055
13056 # Check whether --enable-dsp or --disable-dsp was given.
13057 if test "${enable_dsp+set}" = set; then
13058   enableval="$enable_dsp"
13059
13060 fi;
13061
13062 if test x$enable_dsp != xno &&
13063   (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
13064 then
13065
13066
13067
13068 for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h
13069 do
13070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13072   echo "$as_me:$LINENO: checking for $ac_header" >&5
13073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13075   echo $ECHO_N "(cached) $ECHO_C" >&6
13076 fi
13077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13079 else
13080   # Is the header compilable?
13081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13083 cat >conftest.$ac_ext <<_ACEOF
13084 #line $LINENO "configure"
13085 #include "confdefs.h"
13086 $ac_includes_default
13087 #include <$ac_header>
13088 _ACEOF
13089 rm -f conftest.$ac_objext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13091   (eval $ac_compile) 2>&5
13092   ac_status=$?
13093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); } &&
13095          { ac_try='test -s conftest.$ac_objext'
13096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097   (eval $ac_try) 2>&5
13098   ac_status=$?
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); }; }; then
13101   ac_header_compiler=yes
13102 else
13103   echo "$as_me: failed program was:" >&5
13104 cat conftest.$ac_ext >&5
13105 ac_header_compiler=no
13106 fi
13107 rm -f conftest.$ac_objext conftest.$ac_ext
13108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13109 echo "${ECHO_T}$ac_header_compiler" >&6
13110
13111 # Is the header present?
13112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13114 cat >conftest.$ac_ext <<_ACEOF
13115 #line $LINENO "configure"
13116 #include "confdefs.h"
13117 #include <$ac_header>
13118 _ACEOF
13119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13121   ac_status=$?
13122   egrep -v '^ *\+' conftest.er1 >conftest.err
13123   rm -f conftest.er1
13124   cat conftest.err >&5
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); } >/dev/null; then
13127   if test -s conftest.err; then
13128     ac_cpp_err=$ac_c_preproc_warn_flag
13129   else
13130     ac_cpp_err=
13131   fi
13132 else
13133   ac_cpp_err=yes
13134 fi
13135 if test -z "$ac_cpp_err"; then
13136   ac_header_preproc=yes
13137 else
13138   echo "$as_me: failed program was:" >&5
13139   cat conftest.$ac_ext >&5
13140   ac_header_preproc=no
13141 fi
13142 rm -f conftest.err conftest.$ac_ext
13143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13144 echo "${ECHO_T}$ac_header_preproc" >&6
13145
13146 # So?  What about this header?
13147 case $ac_header_compiler:$ac_header_preproc in
13148   yes:no )
13149     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13153   no:yes )
13154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13156     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13160 esac
13161 echo "$as_me:$LINENO: checking for $ac_header" >&5
13162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   eval "$as_ac_Header=$ac_header_preproc"
13167 fi
13168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13170
13171 fi
13172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13173   cat >>confdefs.h <<_ACEOF
13174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13175 _ACEOF
13176
13177     PLUGINS="${PLUGINS} dsp"
13178     echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
13179 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6
13180 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
13181   echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183   ac_check_lib_save_LIBS=$LIBS
13184 LIBS="-lossaudio  $LIBS"
13185 cat >conftest.$ac_ext <<_ACEOF
13186 #line $LINENO "configure"
13187 #include "confdefs.h"
13188
13189
13190 #ifdef F77_DUMMY_MAIN
13191 #  ifdef __cplusplus
13192      extern "C"
13193 #  endif
13194    int F77_DUMMY_MAIN() { return 1; }
13195 #endif
13196 int
13197 main ()
13198 {
13199 main ();
13200   ;
13201   return 0;
13202 }
13203 _ACEOF
13204 rm -f conftest.$ac_objext conftest$ac_exeext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13206   (eval $ac_link) 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); } &&
13210          { ac_try='test -s conftest$ac_exeext'
13211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212   (eval $ac_try) 2>&5
13213   ac_status=$?
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); }; }; then
13216   ac_cv_lib_ossaudio_main=yes
13217 else
13218   echo "$as_me: failed program was:" >&5
13219 cat conftest.$ac_ext >&5
13220 ac_cv_lib_ossaudio_main=no
13221 fi
13222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13223 LIBS=$ac_check_lib_save_LIBS
13224 fi
13225 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
13226 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6
13227 if test $ac_cv_lib_ossaudio_main = yes; then
13228   dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
13229 fi
13230
13231
13232 fi
13233
13234 done
13235
13236 fi
13237
13238 # Check whether --enable-esd or --disable-esd was given.
13239 if test "${enable_esd+set}" = set; then
13240   enableval="$enable_esd"
13241   if test x$enable_esd = xyes
13242    then
13243      # Extract the first word of "esd-config", so it can be a program name with args.
13244 set dummy esd-config; ac_word=$2
13245 echo "$as_me:$LINENO: checking for $ac_word" >&5
13246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13247 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
13248   echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250   case $ESD_CONFIG in
13251   [\\/]* | ?:[\\/]*)
13252   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
13253   ;;
13254   *)
13255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $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_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13264     break 2
13265   fi
13266 done
13267 done
13268
13269   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
13270   ;;
13271 esac
13272 fi
13273 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
13274
13275 if test -n "$ESD_CONFIG"; then
13276   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
13277 echo "${ECHO_T}$ESD_CONFIG" >&6
13278 else
13279   echo "$as_me:$LINENO: result: no" >&5
13280 echo "${ECHO_T}no" >&6
13281 fi
13282
13283      if test x${ESD_CONFIG} != xno
13284      then
13285        PLUGINS="${PLUGINS} esd"
13286        esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
13287        esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
13288      fi
13289    fi
13290 fi;
13291
13292 # Check whether --enable-arts or --disable-arts was given.
13293 if test "${enable_arts+set}" = set; then
13294   enableval="$enable_arts"
13295   if test x$enable_arts = xyes
13296    then
13297      # Extract the first word of "artsc-config", so it can be a program name with args.
13298 set dummy artsc-config; ac_word=$2
13299 echo "$as_me:$LINENO: checking for $ac_word" >&5
13300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13301 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
13302   echo $ECHO_N "(cached) $ECHO_C" >&6
13303 else
13304   case $ARTS_CONFIG in
13305   [\\/]* | ?:[\\/]*)
13306   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
13307   ;;
13308   *)
13309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13311 do
13312   IFS=$as_save_IFS
13313   test -z "$as_dir" && as_dir=.
13314   for ac_exec_ext in '' $ac_executable_extensions; do
13315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13316     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13318     break 2
13319   fi
13320 done
13321 done
13322
13323   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
13324   ;;
13325 esac
13326 fi
13327 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
13328
13329 if test -n "$ARTS_CONFIG"; then
13330   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
13331 echo "${ECHO_T}$ARTS_CONFIG" >&6
13332 else
13333   echo "$as_me:$LINENO: result: no" >&5
13334 echo "${ECHO_T}no" >&6
13335 fi
13336
13337      if test x${ARTS_CONFIG} != xno
13338      then
13339        PLUGINS="${PLUGINS} arts"
13340        arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
13341        arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
13342      fi
13343    fi
13344 fi;
13345
13346 # Check whether --enable-alsa or --disable-alsa was given.
13347 if test "${enable_alsa+set}" = set; then
13348   enableval="$enable_alsa"
13349   if test x$enable_alsa = xyes
13350    then
13351      if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
13352   echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
13353 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
13354 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
13355   echo $ECHO_N "(cached) $ECHO_C" >&6
13356 fi
13357 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
13358 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
13359 else
13360   # Is the header compilable?
13361 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
13362 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
13363 cat >conftest.$ac_ext <<_ACEOF
13364 #line $LINENO "configure"
13365 #include "confdefs.h"
13366 $ac_includes_default
13367 #include <alsa/asoundlib.h>
13368 _ACEOF
13369 rm -f conftest.$ac_objext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371   (eval $ac_compile) 2>&5
13372   ac_status=$?
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); } &&
13375          { ac_try='test -s conftest.$ac_objext'
13376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377   (eval $ac_try) 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); }; }; then
13381   ac_header_compiler=yes
13382 else
13383   echo "$as_me: failed program was:" >&5
13384 cat conftest.$ac_ext >&5
13385 ac_header_compiler=no
13386 fi
13387 rm -f conftest.$ac_objext conftest.$ac_ext
13388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13389 echo "${ECHO_T}$ac_header_compiler" >&6
13390
13391 # Is the header present?
13392 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
13393 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
13394 cat >conftest.$ac_ext <<_ACEOF
13395 #line $LINENO "configure"
13396 #include "confdefs.h"
13397 #include <alsa/asoundlib.h>
13398 _ACEOF
13399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13401   ac_status=$?
13402   egrep -v '^ *\+' conftest.er1 >conftest.err
13403   rm -f conftest.er1
13404   cat conftest.err >&5
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); } >/dev/null; then
13407   if test -s conftest.err; then
13408     ac_cpp_err=$ac_c_preproc_warn_flag
13409   else
13410     ac_cpp_err=
13411   fi
13412 else
13413   ac_cpp_err=yes
13414 fi
13415 if test -z "$ac_cpp_err"; then
13416   ac_header_preproc=yes
13417 else
13418   echo "$as_me: failed program was:" >&5
13419   cat conftest.$ac_ext >&5
13420   ac_header_preproc=no
13421 fi
13422 rm -f conftest.err conftest.$ac_ext
13423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13424 echo "${ECHO_T}$ac_header_preproc" >&6
13425
13426 # So?  What about this header?
13427 case $ac_header_compiler:$ac_header_preproc in
13428   yes:no )
13429     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13430 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13431     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
13432 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;};;
13433   no:yes )
13434     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
13435 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
13436     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
13437 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
13438     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
13439 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;};;
13440 esac
13441 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
13442 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
13443 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
13444   echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446   ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
13447 fi
13448 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
13449 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
13450
13451 fi
13452 if test $ac_cv_header_alsa_asoundlib_h = yes; then
13453   echo "$as_me:$LINENO: checking for main in -lasound" >&5
13454 echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6
13455 if test "${ac_cv_lib_asound_main+set}" = set; then
13456   echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458   ac_check_lib_save_LIBS=$LIBS
13459 LIBS="-lasound  $LIBS"
13460 cat >conftest.$ac_ext <<_ACEOF
13461 #line $LINENO "configure"
13462 #include "confdefs.h"
13463
13464
13465 #ifdef F77_DUMMY_MAIN
13466 #  ifdef __cplusplus
13467      extern "C"
13468 #  endif
13469    int F77_DUMMY_MAIN() { return 1; }
13470 #endif
13471 int
13472 main ()
13473 {
13474 main ();
13475   ;
13476   return 0;
13477 }
13478 _ACEOF
13479 rm -f conftest.$ac_objext conftest$ac_exeext
13480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13481   (eval $ac_link) 2>&5
13482   ac_status=$?
13483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484   (exit $ac_status); } &&
13485          { ac_try='test -s conftest$ac_exeext'
13486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487   (eval $ac_try) 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; }; then
13491   ac_cv_lib_asound_main=yes
13492 else
13493   echo "$as_me: failed program was:" >&5
13494 cat conftest.$ac_ext >&5
13495 ac_cv_lib_asound_main=no
13496 fi
13497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13498 LIBS=$ac_check_lib_save_LIBS
13499 fi
13500 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_main" >&5
13501 echo "${ECHO_T}$ac_cv_lib_asound_main" >&6
13502 if test $ac_cv_lib_asound_main = yes; then
13503   have_alsa="true"
13504 else
13505   have_alsa="false"
13506 fi
13507
13508 else
13509   have_alsa="false"
13510 fi
13511
13512
13513      if test x$have_alsa = xtrue
13514      then
13515        PLUGINS="${PLUGINS} alsa"
13516        alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
13517      fi
13518    fi
13519 fi;
13520
13521 # Check whether --enable-waveout or --disable-waveout was given.
13522 if test "${enable_waveout+set}" = set; then
13523   enableval="$enable_waveout"
13524
13525 fi;
13526 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
13527   then
13528     PLUGINS="${PLUGINS} waveout"
13529     waveout_LDFLAGS="-lwinmm"
13530 fi
13531
13532
13533
13534 # Check whether --with- or --without- was given.
13535 if test "${with_+set}" = set; then
13536   withval="$with_"
13537
13538 fi;
13539
13540 # Check whether --enable-gtk or --disable-gtk was given.
13541 if test "${enable_gtk+set}" = set; then
13542   enableval="$enable_gtk"
13543
13544 fi;
13545 if test x$enable_gtk != xno
13546 then
13547   GTK_PATH=$PATH
13548
13549 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
13550 if test "${with_gtk_config_path+set}" = set; then
13551   withval="$with_gtk_config_path"
13552    if test "x$with_gtk_config_path" != "xno"
13553       then
13554         GTK_PATH="$with_gtk_config_path:$PATH"
13555       fi
13556 fi;
13557   # look for gtk-config
13558   # Extract the first word of "gtk12-config", so it can be a program name with args.
13559 set dummy gtk12-config; ac_word=$2
13560 echo "$as_me:$LINENO: checking for $ac_word" >&5
13561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13562 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
13563   echo $ECHO_N "(cached) $ECHO_C" >&6
13564 else
13565   case $GTK12_CONFIG in
13566   [\\/]* | ?:[\\/]*)
13567   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
13568   ;;
13569   *)
13570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $GTK_PATH
13572 do
13573   IFS=$as_save_IFS
13574   test -z "$as_dir" && as_dir=.
13575   for ac_exec_ext in '' $ac_executable_extensions; do
13576   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13577     ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13579     break 2
13580   fi
13581 done
13582 done
13583
13584   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
13585   ;;
13586 esac
13587 fi
13588 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
13589
13590 if test -n "$GTK12_CONFIG"; then
13591   echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
13592 echo "${ECHO_T}$GTK12_CONFIG" >&6
13593 else
13594   echo "$as_me:$LINENO: result: no" >&5
13595 echo "${ECHO_T}no" >&6
13596 fi
13597
13598   GTK_CONFIG=${GTK12_CONFIG}
13599   if test x${GTK_CONFIG} = xno
13600   then
13601     # Extract the first word of "gtk-config", so it can be a program name with args.
13602 set dummy gtk-config; ac_word=$2
13603 echo "$as_me:$LINENO: checking for $ac_word" >&5
13604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13605 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
13606   echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608   case $GTK_CONFIG in
13609   [\\/]* | ?:[\\/]*)
13610   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
13611   ;;
13612   *)
13613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $GTK_PATH
13615 do
13616   IFS=$as_save_IFS
13617   test -z "$as_dir" && as_dir=.
13618   for ac_exec_ext in '' $ac_executable_extensions; do
13619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13622     break 2
13623   fi
13624 done
13625 done
13626
13627   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13628   ;;
13629 esac
13630 fi
13631 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
13632
13633 if test -n "$GTK_CONFIG"; then
13634   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
13635 echo "${ECHO_T}$GTK_CONFIG" >&6
13636 else
13637   echo "$as_me:$LINENO: result: no" >&5
13638 echo "${ECHO_T}no" >&6
13639 fi
13640
13641   fi
13642   if test x${GTK_CONFIG} != xno
13643   then
13644     if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
13645     then
13646       { { echo "$as_me:$LINENO: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." >&5
13647 echo "$as_me: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." >&2;}
13648    { (exit 1); exit 1; }; }
13649     fi
13650     gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
13651     gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
13652     # now look for the gtk.h header
13653     CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
13654     ac_cv_gtk_headers=yes
13655
13656
13657
13658 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
13659 do
13660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13662   echo "$as_me:$LINENO: checking for $ac_header" >&5
13663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 fi
13667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13669 else
13670   # Is the header compilable?
13671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13673 cat >conftest.$ac_ext <<_ACEOF
13674 #line $LINENO "configure"
13675 #include "confdefs.h"
13676 $ac_includes_default
13677 #include <$ac_header>
13678 _ACEOF
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681   (eval $ac_compile) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); } &&
13685          { ac_try='test -s conftest.$ac_objext'
13686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687   (eval $ac_try) 2>&5
13688   ac_status=$?
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); }; }; then
13691   ac_header_compiler=yes
13692 else
13693   echo "$as_me: failed program was:" >&5
13694 cat conftest.$ac_ext >&5
13695 ac_header_compiler=no
13696 fi
13697 rm -f conftest.$ac_objext conftest.$ac_ext
13698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13699 echo "${ECHO_T}$ac_header_compiler" >&6
13700
13701 # Is the header present?
13702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13704 cat >conftest.$ac_ext <<_ACEOF
13705 #line $LINENO "configure"
13706 #include "confdefs.h"
13707 #include <$ac_header>
13708 _ACEOF
13709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13710   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13711   ac_status=$?
13712   egrep -v '^ *\+' conftest.er1 >conftest.err
13713   rm -f conftest.er1
13714   cat conftest.err >&5
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); } >/dev/null; then
13717   if test -s conftest.err; then
13718     ac_cpp_err=$ac_c_preproc_warn_flag
13719   else
13720     ac_cpp_err=
13721   fi
13722 else
13723   ac_cpp_err=yes
13724 fi
13725 if test -z "$ac_cpp_err"; then
13726   ac_header_preproc=yes
13727 else
13728   echo "$as_me: failed program was:" >&5
13729   cat conftest.$ac_ext >&5
13730   ac_header_preproc=no
13731 fi
13732 rm -f conftest.err conftest.$ac_ext
13733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13734 echo "${ECHO_T}$ac_header_preproc" >&6
13735
13736 # So?  What about this header?
13737 case $ac_header_compiler:$ac_header_preproc in
13738   yes:no )
13739     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13743   no:yes )
13744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13746     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13750 esac
13751 echo "$as_me:$LINENO: checking for $ac_header" >&5
13752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13754   echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756   eval "$as_ac_Header=$ac_header_preproc"
13757 fi
13758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13760
13761 fi
13762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13763   cat >>confdefs.h <<_ACEOF
13764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13765 _ACEOF
13766
13767 else
13768
13769       ac_cv_gtk_headers=no
13770       echo "Cannot find gtk development headers."
13771
13772 fi
13773
13774 done
13775
13776     if test "x$ac_cv_gtk_headers" = xyes
13777     then
13778       PLUGINS="${PLUGINS} gtk"
13779       ALIASES="${ALIASES} gvlc"
13780     fi
13781     CPPFLAGS="$save_CPPFLAGS"
13782   fi
13783 fi
13784
13785 # Check whether --enable-familiar or --disable-familiar was given.
13786 if test "${enable_familiar+set}" = set; then
13787   enableval="$enable_familiar"
13788
13789 fi;
13790 if test "x${enable_familiar}" = "xyes"
13791 then
13792   GTK_PATH="${PATH}"
13793
13794 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
13795 if test "${with_gtk_config_path+set}" = set; then
13796   withval="$with_gtk_config_path"
13797    if test "x${with_gtk_config_path}" != "xno"
13798       then
13799         GTK_PATH="${with_gtk_config_path}:${PATH}"
13800       fi
13801 fi;
13802   # look for gtk-config
13803   # Extract the first word of "gtk12-config", so it can be a program name with args.
13804 set dummy gtk12-config; ac_word=$2
13805 echo "$as_me:$LINENO: checking for $ac_word" >&5
13806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13807 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
13808   echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810   case $GTK12_CONFIG in
13811   [\\/]* | ?:[\\/]*)
13812   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
13813   ;;
13814   *)
13815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816 for as_dir in ${GTK_PATH}
13817 do
13818   IFS=$as_save_IFS
13819   test -z "$as_dir" && as_dir=.
13820   for ac_exec_ext in '' $ac_executable_extensions; do
13821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13822     ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13824     break 2
13825   fi
13826 done
13827 done
13828
13829   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
13830   ;;
13831 esac
13832 fi
13833 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
13834
13835 if test -n "$GTK12_CONFIG"; then
13836   echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
13837 echo "${ECHO_T}$GTK12_CONFIG" >&6
13838 else
13839   echo "$as_me:$LINENO: result: no" >&5
13840 echo "${ECHO_T}no" >&6
13841 fi
13842
13843   GTK_CONFIG=${GTK12_CONFIG}
13844   if test "x${GTK_CONFIG}" = "xno"
13845   then
13846     # Extract the first word of "gtk-config", so it can be a program name with args.
13847 set dummy gtk-config; ac_word=$2
13848 echo "$as_me:$LINENO: checking for $ac_word" >&5
13849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13850 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
13851   echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853   case $GTK_CONFIG in
13854   [\\/]* | ?:[\\/]*)
13855   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
13856   ;;
13857   *)
13858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859 for as_dir in ${GTK_PATH}
13860 do
13861   IFS=$as_save_IFS
13862   test -z "$as_dir" && as_dir=.
13863   for ac_exec_ext in '' $ac_executable_extensions; do
13864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13865     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13867     break 2
13868   fi
13869 done
13870 done
13871
13872   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13873   ;;
13874 esac
13875 fi
13876 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
13877
13878 if test -n "$GTK_CONFIG"; then
13879   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
13880 echo "${ECHO_T}$GTK_CONFIG" >&6
13881 else
13882   echo "$as_me:$LINENO: result: no" >&5
13883 echo "${ECHO_T}no" >&6
13884 fi
13885
13886   fi
13887   # check for cross-compiling
13888   GTK_PREFIX=
13889
13890 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
13891 if test "${with_gtk_prefix+set}" = set; then
13892   withval="$with_gtk_prefix"
13893
13894 fi;
13895   if test "x$with_gtk_prefix" != "xno" -a "x$with_gtk_prefix" != "x"
13896   then
13897     GTK_PREFIX="--prefix=$with_gtk_prefix"
13898   fi
13899   if test "x${GTK_CONFIG}" != "xno"
13900   then
13901     if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
13902     then
13903       { { echo "$as_me:$LINENO: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-familiar." >&5
13904 echo "$as_me: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-familiar." >&2;}
13905    { (exit 1); exit 1; }; }
13906     fi
13907     familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} ${GTK_PREFIX} --cflags gtk gthread`"
13908     familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} ${GTK_PREFIX} --libs gtk gthread | sed 's,-rdynamic,,'`"
13909     # now look for the gtk.h header
13910     CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
13911     ac_cv_gtk_headers=yes
13912
13913
13914
13915 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
13916 do
13917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13919   echo "$as_me:$LINENO: checking for $ac_header" >&5
13920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13922   echo $ECHO_N "(cached) $ECHO_C" >&6
13923 fi
13924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13926 else
13927   # Is the header compilable?
13928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13930 cat >conftest.$ac_ext <<_ACEOF
13931 #line $LINENO "configure"
13932 #include "confdefs.h"
13933 $ac_includes_default
13934 #include <$ac_header>
13935 _ACEOF
13936 rm -f conftest.$ac_objext
13937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13938   (eval $ac_compile) 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); } &&
13942          { ac_try='test -s conftest.$ac_objext'
13943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944   (eval $ac_try) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; }; then
13948   ac_header_compiler=yes
13949 else
13950   echo "$as_me: failed program was:" >&5
13951 cat conftest.$ac_ext >&5
13952 ac_header_compiler=no
13953 fi
13954 rm -f conftest.$ac_objext conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13956 echo "${ECHO_T}$ac_header_compiler" >&6
13957
13958 # Is the header present?
13959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13961 cat >conftest.$ac_ext <<_ACEOF
13962 #line $LINENO "configure"
13963 #include "confdefs.h"
13964 #include <$ac_header>
13965 _ACEOF
13966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13968   ac_status=$?
13969   egrep -v '^ *\+' conftest.er1 >conftest.err
13970   rm -f conftest.er1
13971   cat conftest.err >&5
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); } >/dev/null; then
13974   if test -s conftest.err; then
13975     ac_cpp_err=$ac_c_preproc_warn_flag
13976   else
13977     ac_cpp_err=
13978   fi
13979 else
13980   ac_cpp_err=yes
13981 fi
13982 if test -z "$ac_cpp_err"; then
13983   ac_header_preproc=yes
13984 else
13985   echo "$as_me: failed program was:" >&5
13986   cat conftest.$ac_ext >&5
13987   ac_header_preproc=no
13988 fi
13989 rm -f conftest.err conftest.$ac_ext
13990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13991 echo "${ECHO_T}$ac_header_preproc" >&6
13992
13993 # So?  What about this header?
13994 case $ac_header_compiler:$ac_header_preproc in
13995   yes:no )
13996     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14000   no:yes )
14001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14003     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14007 esac
14008 echo "$as_me:$LINENO: checking for $ac_header" >&5
14009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011   echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013   eval "$as_ac_Header=$ac_header_preproc"
14014 fi
14015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14017
14018 fi
14019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14020   cat >>confdefs.h <<_ACEOF
14021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14022 _ACEOF
14023
14024 else
14025
14026       ac_cv_gtk_headers=no
14027       echo "Cannot find gtk development headers."
14028
14029 fi
14030
14031 done
14032
14033
14034     # now look for gpe support
14035
14036 # Check whether --with-gpe-prefix or --without-gpe-prefix was given.
14037 if test "${with_gpe_prefix+set}" = set; then
14038   withval="$with_gpe_prefix"
14039
14040 fi;
14041     if test "x$with_gpe_prefix" != "xno"  -a "x$with_gpe_prefix" != "x"
14042     then
14043       gpe_CFLAGS="-I$with_gpe_prefix/include"
14044       gpe_LDFLAGS="-lXi -lgdk_pixbuf -L$with_gpe_prefix/lib -lgpewidget"
14045       # now look for gpe/init.h header file
14046       save_CFLAGS=$CFLAGS
14047       save_LDFLAGS=$LDFLAGS
14048       CFLAGS="${familiar_CFLAGS} ${gpe_CFLAGS}"
14049       LDFLAGS="${familiar_LDFLAGS} ${gpe_LDFLAGS}"
14050       CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS} ${gpe_CFLAGS}"
14051       ac_cv_gpe_headers=yes
14052
14053 for ac_header in gpe/init.h
14054 do
14055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14057   echo "$as_me:$LINENO: checking for $ac_header" >&5
14058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14060   echo $ECHO_N "(cached) $ECHO_C" >&6
14061 fi
14062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14064 else
14065   # Is the header compilable?
14066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14068 cat >conftest.$ac_ext <<_ACEOF
14069 #line $LINENO "configure"
14070 #include "confdefs.h"
14071 $ac_includes_default
14072 #include <$ac_header>
14073 _ACEOF
14074 rm -f conftest.$ac_objext
14075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14076   (eval $ac_compile) 2>&5
14077   ac_status=$?
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); } &&
14080          { ac_try='test -s conftest.$ac_objext'
14081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082   (eval $ac_try) 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); }; }; then
14086   ac_header_compiler=yes
14087 else
14088   echo "$as_me: failed program was:" >&5
14089 cat conftest.$ac_ext >&5
14090 ac_header_compiler=no
14091 fi
14092 rm -f conftest.$ac_objext conftest.$ac_ext
14093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14094 echo "${ECHO_T}$ac_header_compiler" >&6
14095
14096 # Is the header present?
14097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14099 cat >conftest.$ac_ext <<_ACEOF
14100 #line $LINENO "configure"
14101 #include "confdefs.h"
14102 #include <$ac_header>
14103 _ACEOF
14104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14106   ac_status=$?
14107   egrep -v '^ *\+' conftest.er1 >conftest.err
14108   rm -f conftest.er1
14109   cat conftest.err >&5
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); } >/dev/null; then
14112   if test -s conftest.err; then
14113     ac_cpp_err=$ac_c_preproc_warn_flag
14114   else
14115     ac_cpp_err=
14116   fi
14117 else
14118   ac_cpp_err=yes
14119 fi
14120 if test -z "$ac_cpp_err"; then
14121   ac_header_preproc=yes
14122 else
14123   echo "$as_me: failed program was:" >&5
14124   cat conftest.$ac_ext >&5
14125   ac_header_preproc=no
14126 fi
14127 rm -f conftest.err conftest.$ac_ext
14128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14129 echo "${ECHO_T}$ac_header_preproc" >&6
14130
14131 # So?  What about this header?
14132 case $ac_header_compiler:$ac_header_preproc in
14133   yes:no )
14134     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14138   no:yes )
14139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14141     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14145 esac
14146 echo "$as_me:$LINENO: checking for $ac_header" >&5
14147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14149   echo $ECHO_N "(cached) $ECHO_C" >&6
14150 else
14151   eval "$as_ac_Header=$ac_header_preproc"
14152 fi
14153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14155
14156 fi
14157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14158   cat >>confdefs.h <<_ACEOF
14159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14160 _ACEOF
14161
14162 else
14163    ac_cv_gpe_headers=no
14164           { { echo "$as_me:$LINENO: error: Cannot find development headers for libgpewidget..." >&5
14165 echo "$as_me: error: Cannot find development headers for libgpewidget..." >&2;}
14166    { (exit 1); exit 1; }; }
14167 fi
14168
14169 done
14170
14171 #      AC_CHECK_LIB(gpewidget, gpe_application_init,
14172 #        [ gpe_LDFLAGS="${gpe_LDFLAGS} -lgpewidget" ],
14173 #        [ AC_MSG_ERROR([Cannot find libgpewidget library...]) ])
14174       CFLAGS=$save_CFLAGS
14175       LDFLAGS=$save_LDFLAG
14176       if test "x${ac_cv_gpe_headers}" = "xyes"
14177       then
14178         familiar_CFLAGS="${familiar_CFLAGS} ${gpe_CFLAGS}"
14179         familiar_LDFLAGS="${familiar_LDFLAGS} ${gpe_LDFLAGS}"
14180       fi
14181     fi
14182     if test "x${ac_cv_gtk_headers}" = "xyes"
14183     then
14184       PLUGINS="${PLUGINS} familiar"
14185     fi
14186     CPPFLAGS="${save_CPPFLAGS}"
14187   fi
14188 fi
14189
14190 # Check whether --enable-gnome or --disable-gnome was given.
14191 if test "${enable_gnome+set}" = set; then
14192   enableval="$enable_gnome"
14193   if test x$enable_gnome = xyes; then
14194     # look for gnome-config
14195     # Extract the first word of "gnome-config", so it can be a program name with args.
14196 set dummy gnome-config; ac_word=$2
14197 echo "$as_me:$LINENO: checking for $ac_word" >&5
14198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14199 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
14200   echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202   case $GNOME_CONFIG in
14203   [\\/]* | ?:[\\/]*)
14204   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
14205   ;;
14206   *)
14207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 for as_dir in $PATH
14209 do
14210   IFS=$as_save_IFS
14211   test -z "$as_dir" && as_dir=.
14212   for ac_exec_ext in '' $ac_executable_extensions; do
14213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14214     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14216     break 2
14217   fi
14218 done
14219 done
14220
14221   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
14222   ;;
14223 esac
14224 fi
14225 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
14226
14227 if test -n "$GNOME_CONFIG"; then
14228   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
14229 echo "${ECHO_T}$GNOME_CONFIG" >&6
14230 else
14231   echo "$as_me:$LINENO: result: no" >&5
14232 echo "${ECHO_T}no" >&6
14233 fi
14234
14235     if test -x ${GNOME_CONFIG}
14236     then
14237        gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
14238        gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
14239     fi
14240     # now look for the gnome.h header
14241     CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
14242
14243 for ac_header in gnome.h
14244 do
14245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14247   echo "$as_me:$LINENO: checking for $ac_header" >&5
14248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14250   echo $ECHO_N "(cached) $ECHO_C" >&6
14251 fi
14252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14254 else
14255   # Is the header compilable?
14256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14258 cat >conftest.$ac_ext <<_ACEOF
14259 #line $LINENO "configure"
14260 #include "confdefs.h"
14261 $ac_includes_default
14262 #include <$ac_header>
14263 _ACEOF
14264 rm -f conftest.$ac_objext
14265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14266   (eval $ac_compile) 2>&5
14267   ac_status=$?
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); } &&
14270          { ac_try='test -s conftest.$ac_objext'
14271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272   (eval $ac_try) 2>&5
14273   ac_status=$?
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); }; }; then
14276   ac_header_compiler=yes
14277 else
14278   echo "$as_me: failed program was:" >&5
14279 cat conftest.$ac_ext >&5
14280 ac_header_compiler=no
14281 fi
14282 rm -f conftest.$ac_objext conftest.$ac_ext
14283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14284 echo "${ECHO_T}$ac_header_compiler" >&6
14285
14286 # Is the header present?
14287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14289 cat >conftest.$ac_ext <<_ACEOF
14290 #line $LINENO "configure"
14291 #include "confdefs.h"
14292 #include <$ac_header>
14293 _ACEOF
14294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14296   ac_status=$?
14297   egrep -v '^ *\+' conftest.er1 >conftest.err
14298   rm -f conftest.er1
14299   cat conftest.err >&5
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); } >/dev/null; then
14302   if test -s conftest.err; then
14303     ac_cpp_err=$ac_c_preproc_warn_flag
14304   else
14305     ac_cpp_err=
14306   fi
14307 else
14308   ac_cpp_err=yes
14309 fi
14310 if test -z "$ac_cpp_err"; then
14311   ac_header_preproc=yes
14312 else
14313   echo "$as_me: failed program was:" >&5
14314   cat conftest.$ac_ext >&5
14315   ac_header_preproc=no
14316 fi
14317 rm -f conftest.err conftest.$ac_ext
14318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14319 echo "${ECHO_T}$ac_header_preproc" >&6
14320
14321 # So?  What about this header?
14322 case $ac_header_compiler:$ac_header_preproc in
14323   yes:no )
14324     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14328   no:yes )
14329     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14331     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14335 esac
14336 echo "$as_me:$LINENO: checking for $ac_header" >&5
14337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14339   echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341   eval "$as_ac_Header=$ac_header_preproc"
14342 fi
14343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14345
14346 fi
14347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14348   cat >>confdefs.h <<_ACEOF
14349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14350 _ACEOF
14351
14352       PLUGINS="${PLUGINS} gnome"
14353       ALIASES="${ALIASES} gnome-vlc"
14354
14355 else
14356
14357       { { echo "$as_me:$LINENO: error: Can't find gnome headers. Please install the gnome
14358 developement tools or remove the --enable-gnome option" >&5
14359 echo "$as_me: error: Can't find gnome headers. Please install the gnome
14360 developement tools or remove the --enable-gnome option" >&2;}
14361    { (exit 1); exit 1; }; }
14362
14363 fi
14364
14365 done
14366
14367     CPPFLAGS="$save_CPPFLAGS"
14368   fi
14369 fi;
14370
14371 # Check whether --enable-qt or --disable-qt was given.
14372 if test "${enable_qt+set}" = set; then
14373   enableval="$enable_qt"
14374   if test x$enable_qt = xyes; then
14375      PLUGINS="${PLUGINS} qt"
14376      ALIASES="${ALIASES} qvlc"
14377      qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
14378      qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
14379      if test -x ${QTDIR}/bin/moc
14380      then
14381        MOC=${QTDIR}/bin/moc
14382      else
14383        MOC=moc
14384      fi
14385    fi
14386 fi;
14387
14388 # Check whether --enable-kde or --disable-kde was given.
14389 if test "${enable_kde+set}" = set; then
14390   enableval="$enable_kde"
14391   if test x$enable_kde = xyes; then
14392      PLUGINS="${PLUGINS} kde"
14393      ALIASES="${ALIASES} kvlc"
14394      kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
14395      kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
14396      kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
14397      if test -x ${QTDIR}/bin/moc
14398      then
14399        MOC=${QTDIR}/bin/moc
14400      else
14401        MOC=moc
14402      fi
14403    fi
14404 fi;
14405
14406 # Check whether --enable-opie or --disable-opie was given.
14407 if test "${enable_opie+set}" = set; then
14408   enableval="$enable_opie"
14409   if test "x${enable_opie}" = "xyes"; then
14410
14411 # Check whether --with-qte or --without-qte was given.
14412 if test "${with_qte+set}" = set; then
14413   withval="$with_qte"
14414
14415 fi;
14416      if test "x${with_qte}" = "x"
14417      then
14418        test_LDFLAGS="-L${QTDIR}/lib"
14419        test_CFLAGS="-I${QTDIR}/include"
14420      else
14421        test_LDFLAGS="-L${with_qte}/lib"
14422        test_CFLAGS="-I${with_qte}/include"
14423      fi
14424
14425      PLUGINS="${PLUGINS} opie"
14426      opie_LDFLAGS="${opie_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
14427      opie_CFLAGS="${opie_CFLAGS} ${test_CFLAGS}-DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
14428      if test -x ${QTDIR}/bin/moc
14429      then
14430        MOC=${QTDIR}/bin/moc
14431      else
14432        MOC=moc
14433      fi
14434    fi
14435 fi;
14436
14437 # Check whether --enable-macosx or --disable-macosx was given.
14438 if test "${enable_macosx+set}" = set; then
14439   enableval="$enable_macosx"
14440   if test x$enable_macosx = xyes
14441    then
14442      BUILTINS="${BUILTINS} macosx"
14443      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
14444    fi
14445 else
14446
14447 for ac_header in Cocoa/Cocoa.h
14448 do
14449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14451   echo "$as_me:$LINENO: checking for $ac_header" >&5
14452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14454   echo $ECHO_N "(cached) $ECHO_C" >&6
14455 fi
14456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14458 else
14459   # Is the header compilable?
14460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14462 cat >conftest.$ac_ext <<_ACEOF
14463 #line $LINENO "configure"
14464 #include "confdefs.h"
14465 $ac_includes_default
14466 #include <$ac_header>
14467 _ACEOF
14468 rm -f conftest.$ac_objext
14469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14470   (eval $ac_compile) 2>&5
14471   ac_status=$?
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); } &&
14474          { ac_try='test -s conftest.$ac_objext'
14475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476   (eval $ac_try) 2>&5
14477   ac_status=$?
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); }; }; then
14480   ac_header_compiler=yes
14481 else
14482   echo "$as_me: failed program was:" >&5
14483 cat conftest.$ac_ext >&5
14484 ac_header_compiler=no
14485 fi
14486 rm -f conftest.$ac_objext conftest.$ac_ext
14487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14488 echo "${ECHO_T}$ac_header_compiler" >&6
14489
14490 # Is the header present?
14491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14493 cat >conftest.$ac_ext <<_ACEOF
14494 #line $LINENO "configure"
14495 #include "confdefs.h"
14496 #include <$ac_header>
14497 _ACEOF
14498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14499   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14500   ac_status=$?
14501   egrep -v '^ *\+' conftest.er1 >conftest.err
14502   rm -f conftest.er1
14503   cat conftest.err >&5
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); } >/dev/null; then
14506   if test -s conftest.err; then
14507     ac_cpp_err=$ac_c_preproc_warn_flag
14508   else
14509     ac_cpp_err=
14510   fi
14511 else
14512   ac_cpp_err=yes
14513 fi
14514 if test -z "$ac_cpp_err"; then
14515   ac_header_preproc=yes
14516 else
14517   echo "$as_me: failed program was:" >&5
14518   cat conftest.$ac_ext >&5
14519   ac_header_preproc=no
14520 fi
14521 rm -f conftest.err conftest.$ac_ext
14522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14523 echo "${ECHO_T}$ac_header_preproc" >&6
14524
14525 # So?  What about this header?
14526 case $ac_header_compiler:$ac_header_preproc in
14527   yes:no )
14528     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14532   no:yes )
14533     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14535     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14539 esac
14540 echo "$as_me:$LINENO: checking for $ac_header" >&5
14541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14543   echo $ECHO_N "(cached) $ECHO_C" >&6
14544 else
14545   eval "$as_ac_Header=$ac_header_preproc"
14546 fi
14547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14549
14550 fi
14551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14552   cat >>confdefs.h <<_ACEOF
14553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14554 _ACEOF
14555  BUILTINS="${BUILTINS} macosx"
14556      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
14557
14558 fi
14559
14560 done
14561
14562 fi;
14563
14564 # Check whether --enable-qnx or --disable-qnx was given.
14565 if test "${enable_qnx+set}" = set; then
14566   enableval="$enable_qnx"
14567
14568 fi;
14569     if test x$enable_qnx != xno
14570     then
14571
14572 for ac_header in Ph.h
14573 do
14574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14576   echo "$as_me:$LINENO: checking for $ac_header" >&5
14577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14579   echo $ECHO_N "(cached) $ECHO_C" >&6
14580 fi
14581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14583 else
14584   # Is the header compilable?
14585 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14587 cat >conftest.$ac_ext <<_ACEOF
14588 #line $LINENO "configure"
14589 #include "confdefs.h"
14590 $ac_includes_default
14591 #include <$ac_header>
14592 _ACEOF
14593 rm -f conftest.$ac_objext
14594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14595   (eval $ac_compile) 2>&5
14596   ac_status=$?
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); } &&
14599          { ac_try='test -s conftest.$ac_objext'
14600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601   (eval $ac_try) 2>&5
14602   ac_status=$?
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); }; }; then
14605   ac_header_compiler=yes
14606 else
14607   echo "$as_me: failed program was:" >&5
14608 cat conftest.$ac_ext >&5
14609 ac_header_compiler=no
14610 fi
14611 rm -f conftest.$ac_objext conftest.$ac_ext
14612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14613 echo "${ECHO_T}$ac_header_compiler" >&6
14614
14615 # Is the header present?
14616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14618 cat >conftest.$ac_ext <<_ACEOF
14619 #line $LINENO "configure"
14620 #include "confdefs.h"
14621 #include <$ac_header>
14622 _ACEOF
14623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14624   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14625   ac_status=$?
14626   egrep -v '^ *\+' conftest.er1 >conftest.err
14627   rm -f conftest.er1
14628   cat conftest.err >&5
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); } >/dev/null; then
14631   if test -s conftest.err; then
14632     ac_cpp_err=$ac_c_preproc_warn_flag
14633   else
14634     ac_cpp_err=
14635   fi
14636 else
14637   ac_cpp_err=yes
14638 fi
14639 if test -z "$ac_cpp_err"; then
14640   ac_header_preproc=yes
14641 else
14642   echo "$as_me: failed program was:" >&5
14643   cat conftest.$ac_ext >&5
14644   ac_header_preproc=no
14645 fi
14646 rm -f conftest.err conftest.$ac_ext
14647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14648 echo "${ECHO_T}$ac_header_preproc" >&6
14649
14650 # So?  What about this header?
14651 case $ac_header_compiler:$ac_header_preproc in
14652   yes:no )
14653     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14657   no:yes )
14658     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14660     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14664 esac
14665 echo "$as_me:$LINENO: checking for $ac_header" >&5
14666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14668   echo $ECHO_N "(cached) $ECHO_C" >&6
14669 else
14670   eval "$as_ac_Header=$ac_header_preproc"
14671 fi
14672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14674
14675 fi
14676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14677   cat >>confdefs.h <<_ACEOF
14678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14679 _ACEOF
14680
14681         PLUGINS="${PLUGINS} qnx"
14682         qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
14683
14684 fi
14685
14686 done
14687
14688     fi
14689
14690 # Check whether --enable-intfwin or --disable-intfwin was given.
14691 if test "${enable_intfwin+set}" = set; then
14692   enableval="$enable_intfwin"
14693    if test "x$enable_intfwin" != "xno"
14694   then
14695
14696 # Check whether --with-bcbuilder or --without-bcbuilder was given.
14697 if test "${with_bcbuilder+set}" = set; then
14698   withval="$with_bcbuilder"
14699
14700 fi;
14701     if test "x$with_bcbuilder" != "x"
14702     then
14703       BCBUILDER="$with_bcbuilder"
14704     fi
14705     PLUGINS="${PLUGINS} intfwin"
14706   fi
14707 fi;
14708
14709 # Check whether --enable-ncurses or --disable-ncurses was given.
14710 if test "${enable_ncurses+set}" = set; then
14711   enableval="$enable_ncurses"
14712   if test x$enable_ncurses = xyes; then
14713      PLUGINS="${PLUGINS} ncurses"
14714      ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
14715    fi
14716 fi;
14717
14718 # Check whether --enable-lirc or --disable-lirc was given.
14719 if test "${enable_lirc+set}" = set; then
14720   enableval="$enable_lirc"
14721
14722 fi;
14723 if test x$enable_lirc = xyes
14724 then
14725   if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14726   echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14727 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
14728 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14729   echo $ECHO_N "(cached) $ECHO_C" >&6
14730 fi
14731 echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14732 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
14733 else
14734   # Is the header compilable?
14735 echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
14736 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6
14737 cat >conftest.$ac_ext <<_ACEOF
14738 #line $LINENO "configure"
14739 #include "confdefs.h"
14740 $ac_includes_default
14741 #include <lirc/lirc_client.h>
14742 _ACEOF
14743 rm -f conftest.$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745   (eval $ac_compile) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); } &&
14749          { ac_try='test -s conftest.$ac_objext'
14750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751   (eval $ac_try) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; }; then
14755   ac_header_compiler=yes
14756 else
14757   echo "$as_me: failed program was:" >&5
14758 cat conftest.$ac_ext >&5
14759 ac_header_compiler=no
14760 fi
14761 rm -f conftest.$ac_objext conftest.$ac_ext
14762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14763 echo "${ECHO_T}$ac_header_compiler" >&6
14764
14765 # Is the header present?
14766 echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
14767 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6
14768 cat >conftest.$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14770 #include "confdefs.h"
14771 #include <lirc/lirc_client.h>
14772 _ACEOF
14773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14774   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14775   ac_status=$?
14776   egrep -v '^ *\+' conftest.er1 >conftest.err
14777   rm -f conftest.er1
14778   cat conftest.err >&5
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); } >/dev/null; then
14781   if test -s conftest.err; then
14782     ac_cpp_err=$ac_c_preproc_warn_flag
14783   else
14784     ac_cpp_err=
14785   fi
14786 else
14787   ac_cpp_err=yes
14788 fi
14789 if test -z "$ac_cpp_err"; then
14790   ac_header_preproc=yes
14791 else
14792   echo "$as_me: failed program was:" >&5
14793   cat conftest.$ac_ext >&5
14794   ac_header_preproc=no
14795 fi
14796 rm -f conftest.err conftest.$ac_ext
14797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14798 echo "${ECHO_T}$ac_header_preproc" >&6
14799
14800 # So?  What about this header?
14801 case $ac_header_compiler:$ac_header_preproc in
14802   yes:no )
14803     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
14804 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14805     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14806 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;};;
14807   no:yes )
14808     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
14809 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
14810     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
14811 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
14812     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14813 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;};;
14814 esac
14815 echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14816 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
14817 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14818   echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820   ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
14821 fi
14822 echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14823 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
14824
14825 fi
14826 if test $ac_cv_header_lirc_lirc_client_h = yes; then
14827   echo "$as_me:$LINENO: checking for lirc_init in -llirc_client" >&5
14828 echo $ECHO_N "checking for lirc_init in -llirc_client... $ECHO_C" >&6
14829 if test "${ac_cv_lib_lirc_client_lirc_init+set}" = set; then
14830   echo $ECHO_N "(cached) $ECHO_C" >&6
14831 else
14832   ac_check_lib_save_LIBS=$LIBS
14833 LIBS="-llirc_client  $LIBS"
14834 cat >conftest.$ac_ext <<_ACEOF
14835 #line $LINENO "configure"
14836 #include "confdefs.h"
14837
14838 /* Override any gcc2 internal prototype to avoid an error.  */
14839 #ifdef __cplusplus
14840 extern "C"
14841 #endif
14842 /* We use char because int might match the return type of a gcc2
14843    builtin and then its argument prototype would still apply.  */
14844 char lirc_init ();
14845 #ifdef F77_DUMMY_MAIN
14846 #  ifdef __cplusplus
14847      extern "C"
14848 #  endif
14849    int F77_DUMMY_MAIN() { return 1; }
14850 #endif
14851 int
14852 main ()
14853 {
14854 lirc_init ();
14855   ;
14856   return 0;
14857 }
14858 _ACEOF
14859 rm -f conftest.$ac_objext conftest$ac_exeext
14860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14861   (eval $ac_link) 2>&5
14862   ac_status=$?
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); } &&
14865          { ac_try='test -s conftest$ac_exeext'
14866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867   (eval $ac_try) 2>&5
14868   ac_status=$?
14869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870   (exit $ac_status); }; }; then
14871   ac_cv_lib_lirc_client_lirc_init=yes
14872 else
14873   echo "$as_me: failed program was:" >&5
14874 cat conftest.$ac_ext >&5
14875 ac_cv_lib_lirc_client_lirc_init=no
14876 fi
14877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14879 fi
14880 echo "$as_me:$LINENO: result: $ac_cv_lib_lirc_client_lirc_init" >&5
14881 echo "${ECHO_T}$ac_cv_lib_lirc_client_lirc_init" >&6
14882 if test $ac_cv_lib_lirc_client_lirc_init = yes; then
14883   have_lirc="true"
14884 else
14885   have_lirc="false"
14886 fi
14887
14888 else
14889   have_lirc="false"
14890 fi
14891
14892
14893   if test x$have_lirc = xtrue
14894   then
14895     PLUGINS="${PLUGINS} lirc"
14896     lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
14897   fi
14898 fi
14899
14900
14901 # Check whether --with- or --without- was given.
14902 if test "${with_+set}" = set; then
14903   withval="$with_"
14904
14905 fi;
14906
14907
14908 # Check whether --with-words or --without-words was given.
14909 if test "${with_words+set}" = set; then
14910   withval="$with_words"
14911
14912 fi;
14913   case "x$with_words" in
14914     xbig)
14915       ac_cv_c_bigendian=yes
14916       ;;
14917     xlittle)
14918       ac_cv_c_bigendian=no
14919       ;;
14920     *)
14921                   echo "$as_me:$LINENO: checking whether the byte order is big-endian" >&5
14922 echo $ECHO_N "checking whether the byte order is big-endian... $ECHO_C" >&6
14923 if test "${ac_cv_c_bigendian+set}" = set; then
14924   echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926   ac_cv_c_bigendian=unknown
14927         cat >conftest.c <<EOF
14928         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
14929         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
14930         void _a(void) { char*s = (char*)am; s = (char *)ai; }
14931         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
14932         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
14933         void _e(void) { char*s = (char*)em; s = (char*)ei; }
14934         int main(void) { _a(); _e(); return 0; }
14935 EOF
14936
14937         if test -f conftest.c
14938         then
14939           if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
14940               && test -f conftest.o
14941           then
14942             if test "`strings conftest.o | grep BIGenDianSyS`"
14943             then
14944               ac_cv_c_bigendian=yes
14945             fi
14946             if test "`strings conftest.o | grep LiTTleEnDian`"
14947             then
14948               ac_cv_c_bigendian=no
14949             fi
14950           fi
14951         fi
14952
14953 fi
14954 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14955 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14956       if test x$ac_cv_c_bigendian = xunknown
14957       then
14958         { { echo "$as_me:$LINENO: error: Could not guess endianness, please use --with-words" >&5
14959 echo "$as_me: error: Could not guess endianness, please use --with-words" >&2;}
14960    { (exit 1); exit 1; }; }
14961       fi
14962       ;;
14963   esac
14964 if test $ac_cv_c_bigendian = yes
14965 then
14966
14967 cat >>confdefs.h <<\_ACEOF
14968 #define WORDS_BIGENDIAN 1
14969 _ACEOF
14970
14971 fi
14972
14973 GPROF=0
14974 # Check whether --enable-gprof or --disable-gprof was given.
14975 if test "${enable_gprof+set}" = set; then
14976   enableval="$enable_gprof"
14977    if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
14978 fi;
14979
14980 CPROF=0
14981 # Check whether --enable-cprof or --disable-cprof was given.
14982 if test "${enable_cprof+set}" = set; then
14983   enableval="$enable_cprof"
14984    if test "x$enable_cprof" = "xyes";
14985   then
14986     LDFLAGS="${LDFLAGS} -lcprof"
14987     CPROF=1
14988   fi
14989
14990 fi;
14991
14992 # Check whether --enable-pth or --disable-pth was given.
14993 if test "${enable_pth+set}" = set; then
14994   enableval="$enable_pth"
14995    if test "x$enable_pth" = "xyes"; then
14996
14997 echo "$as_me:$LINENO: checking for pth_init in -lpth" >&5
14998 echo $ECHO_N "checking for pth_init in -lpth... $ECHO_C" >&6
14999 if test "${ac_cv_lib_pth_pth_init+set}" = set; then
15000   echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002   ac_check_lib_save_LIBS=$LIBS
15003 LIBS="-lpth  $LIBS"
15004 cat >conftest.$ac_ext <<_ACEOF
15005 #line $LINENO "configure"
15006 #include "confdefs.h"
15007
15008 /* Override any gcc2 internal prototype to avoid an error.  */
15009 #ifdef __cplusplus
15010 extern "C"
15011 #endif
15012 /* We use char because int might match the return type of a gcc2
15013    builtin and then its argument prototype would still apply.  */
15014 char pth_init ();
15015 #ifdef F77_DUMMY_MAIN
15016 #  ifdef __cplusplus
15017      extern "C"
15018 #  endif
15019    int F77_DUMMY_MAIN() { return 1; }
15020 #endif
15021 int
15022 main ()
15023 {
15024 pth_init ();
15025   ;
15026   return 0;
15027 }
15028 _ACEOF
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15031   (eval $ac_link) 2>&5
15032   ac_status=$?
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); } &&
15035          { ac_try='test -s conftest$ac_exeext'
15036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037   (eval $ac_try) 2>&5
15038   ac_status=$?
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); }; }; then
15041   ac_cv_lib_pth_pth_init=yes
15042 else
15043   echo "$as_me: failed program was:" >&5
15044 cat conftest.$ac_ext >&5
15045 ac_cv_lib_pth_pth_init=no
15046 fi
15047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15048 LIBS=$ac_check_lib_save_LIBS
15049 fi
15050 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_init" >&5
15051 echo "${ECHO_T}$ac_cv_lib_pth_pth_init" >&6
15052 if test $ac_cv_lib_pth_pth_init = yes; then
15053   cat >>confdefs.h <<_ACEOF
15054 #define HAVE_LIBPTH 1
15055 _ACEOF
15056
15057   LIBS="-lpth $LIBS"
15058
15059 fi
15060
15061     cat >conftest.$ac_ext <<_ACEOF
15062 #line $LINENO "configure"
15063 #include "confdefs.h"
15064 #include <pth.h>
15065
15066 _ACEOF
15067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15068   egrep "pth_init" >/dev/null 2>&1; then
15069
15070
15071 cat >>confdefs.h <<\_ACEOF
15072 #define PTH_INIT_IN_PTH_H 1
15073 _ACEOF
15074
15075     THREAD_LIB="-lpth"
15076     fi
15077 fi
15078 rm -f conftest*
15079
15080
15081 fi;
15082
15083 # Check whether --enable-st or --disable-st was given.
15084 if test "${enable_st+set}" = set; then
15085   enableval="$enable_st"
15086    if test "x$enable_st" = "xyes"; then
15087
15088 echo "$as_me:$LINENO: checking for st_init in -lst" >&5
15089 echo $ECHO_N "checking for st_init in -lst... $ECHO_C" >&6
15090 if test "${ac_cv_lib_st_st_init+set}" = set; then
15091   echo $ECHO_N "(cached) $ECHO_C" >&6
15092 else
15093   ac_check_lib_save_LIBS=$LIBS
15094 LIBS="-lst  $LIBS"
15095 cat >conftest.$ac_ext <<_ACEOF
15096 #line $LINENO "configure"
15097 #include "confdefs.h"
15098
15099 /* Override any gcc2 internal prototype to avoid an error.  */
15100 #ifdef __cplusplus
15101 extern "C"
15102 #endif
15103 /* We use char because int might match the return type of a gcc2
15104    builtin and then its argument prototype would still apply.  */
15105 char st_init ();
15106 #ifdef F77_DUMMY_MAIN
15107 #  ifdef __cplusplus
15108      extern "C"
15109 #  endif
15110    int F77_DUMMY_MAIN() { return 1; }
15111 #endif
15112 int
15113 main ()
15114 {
15115 st_init ();
15116   ;
15117   return 0;
15118 }
15119 _ACEOF
15120 rm -f conftest.$ac_objext conftest$ac_exeext
15121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15122   (eval $ac_link) 2>&5
15123   ac_status=$?
15124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); } &&
15126          { ac_try='test -s conftest$ac_exeext'
15127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128   (eval $ac_try) 2>&5
15129   ac_status=$?
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); }; }; then
15132   ac_cv_lib_st_st_init=yes
15133 else
15134   echo "$as_me: failed program was:" >&5
15135 cat conftest.$ac_ext >&5
15136 ac_cv_lib_st_st_init=no
15137 fi
15138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15139 LIBS=$ac_check_lib_save_LIBS
15140 fi
15141 echo "$as_me:$LINENO: result: $ac_cv_lib_st_st_init" >&5
15142 echo "${ECHO_T}$ac_cv_lib_st_st_init" >&6
15143 if test $ac_cv_lib_st_st_init = yes; then
15144   cat >>confdefs.h <<_ACEOF
15145 #define HAVE_LIBST 1
15146 _ACEOF
15147
15148   LIBS="-lst $LIBS"
15149
15150 fi
15151
15152     cat >conftest.$ac_ext <<_ACEOF
15153 #line $LINENO "configure"
15154 #include "confdefs.h"
15155 #include <st.h>
15156
15157 _ACEOF
15158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15159   egrep "st_init" >/dev/null 2>&1; then
15160
15161
15162 cat >>confdefs.h <<\_ACEOF
15163 #define ST_INIT_IN_ST_H 1
15164 _ACEOF
15165
15166     THREAD_LIB="-lst"
15167     fi
15168 fi
15169 rm -f conftest*
15170
15171
15172 fi;
15173
15174 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
15175
15176 # Check whether --enable-plugins or --disable-plugins was given.
15177 if test "${enable_plugins+set}" = set; then
15178   enableval="$enable_plugins"
15179   if test x$enable_plugins = xno
15180    then
15181      BUILTINS="${BUILTINS} ${PLUGINS}"
15182      PLUGINS=
15183    fi
15184 fi;
15185
15186 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
15187 then
15188   echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
15189   echo "as built-in"
15190   BUILTINS="${BUILTINS} ${PLUGINS}"
15191   PLUGINS=
15192 fi
15193
15194
15195 cat >>confdefs.h <<_ACEOF
15196 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
15197 _ACEOF
15198
15199
15200 cat >>confdefs.h <<_ACEOF
15201 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
15202 _ACEOF
15203
15204
15205 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
15206
15207 cat >>confdefs.h <<_ACEOF
15208 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
15209 _ACEOF
15210
15211
15212 cat >>confdefs.h <<_ACEOF
15213 #define MODULE_SYMBOL $VLC_SYMBOL
15214 _ACEOF
15215
15216
15217 DATA_PATH="${ac_tool_prefix}/share/videolan"
15218
15219 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323 ac_config_files="$ac_config_files Makefile.config Makefile.opts po/Makefile.in"
15324 cat >confcache <<\_ACEOF
15325 # This file is a shell script that caches the results of configure
15326 # tests run on this system so they can be shared between configure
15327 # scripts and configure runs, see configure's option --config-cache.
15328 # It is not useful on other systems.  If it contains results you don't
15329 # want to keep, you may remove or edit it.
15330 #
15331 # config.status only pays attention to the cache file if you give it
15332 # the --recheck option to rerun configure.
15333 #
15334 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15335 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15336 # following values.
15337
15338 _ACEOF
15339
15340 # The following way of writing the cache mishandles newlines in values,
15341 # but we know of no workaround that is simple, portable, and efficient.
15342 # So, don't put newlines in cache variables' values.
15343 # Ultrix sh set writes to stderr and can't be redirected directly,
15344 # and sets the high bit in the cache file unless we assign to the vars.
15345 {
15346   (set) 2>&1 |
15347     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15348     *ac_space=\ *)
15349       # `set' does not quote correctly, so add quotes (double-quote
15350       # substitution turns \\\\ into \\, and sed turns \\ into \).
15351       sed -n \
15352         "s/'/'\\\\''/g;
15353           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15354       ;;
15355     *)
15356       # `set' quotes correctly as required by POSIX, so do not add quotes.
15357       sed -n \
15358         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15359       ;;
15360     esac;
15361 } |
15362   sed '
15363      t clear
15364      : clear
15365      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15366      t end
15367      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15368      : end' >>confcache
15369 if cmp -s $cache_file confcache; then :; else
15370   if test -w $cache_file; then
15371     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15372     cat confcache >$cache_file
15373   else
15374     echo "not updating unwritable cache $cache_file"
15375   fi
15376 fi
15377 rm -f confcache
15378
15379 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15380 # Let make expand exec_prefix.
15381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15382
15383 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15384 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15385 # trailing colons and then remove the whole line if VPATH becomes empty
15386 # (actually we leave an empty line to preserve line numbers).
15387 if test "x$srcdir" = x.; then
15388   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15389 s/:*\$(srcdir):*/:/;
15390 s/:*\${srcdir}:*/:/;
15391 s/:*@srcdir@:*/:/;
15392 s/^\([^=]*=[    ]*\):*/\1/;
15393 s/:*$//;
15394 s/^[^=]*=[      ]*$//;
15395 }'
15396 fi
15397
15398 DEFS=-DHAVE_CONFIG_H
15399
15400
15401 : ${CONFIG_STATUS=./config.status}
15402 ac_clean_files_save=$ac_clean_files
15403 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15404 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15405 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15406 cat >$CONFIG_STATUS <<_ACEOF
15407 #! $SHELL
15408 # Generated by $as_me.
15409 # Run this file to recreate the current configuration.
15410 # Compiler output produced by configure, useful for debugging
15411 # configure, is in config.log if it exists.
15412
15413 debug=false
15414 SHELL=\${CONFIG_SHELL-$SHELL}
15415 _ACEOF
15416
15417 cat >>$CONFIG_STATUS <<\_ACEOF
15418
15419 ## --------------------- ##
15420 ## M4sh Initialization.  ##
15421 ## --------------------- ##
15422
15423 # Be Bourne compatible
15424 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15425   emulate sh
15426   NULLCMD=:
15427 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15428   set -o posix
15429 fi
15430
15431 # NLS nuisances.
15432 # Support unset when possible.
15433 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15434   as_unset=unset
15435 else
15436   as_unset=false
15437 fi
15438
15439 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15440     { $as_unset LANG || test "${LANG+set}" != set; } ||
15441       { LANG=C; export LANG; }
15442 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15443     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15444       { LC_ALL=C; export LC_ALL; }
15445 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15446     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15447       { LC_TIME=C; export LC_TIME; }
15448 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15449     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15450       { LC_CTYPE=C; export LC_CTYPE; }
15451 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15452     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15453       { LANGUAGE=C; export LANGUAGE; }
15454 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15455     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15456       { LC_COLLATE=C; export LC_COLLATE; }
15457 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15458     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15459       { LC_NUMERIC=C; export LC_NUMERIC; }
15460 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15461     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15462       { LC_MESSAGES=C; export LC_MESSAGES; }
15463
15464
15465 # Name of the executable.
15466 as_me=`(basename "$0") 2>/dev/null ||
15467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15468          X"$0" : 'X\(//\)$' \| \
15469          X"$0" : 'X\(/\)$' \| \
15470          .     : '\(.\)' 2>/dev/null ||
15471 echo X/"$0" |
15472     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15473           /^X\/\(\/\/\)$/{ s//\1/; q; }
15474           /^X\/\(\/\).*/{ s//\1/; q; }
15475           s/.*/./; q'`
15476
15477 # PATH needs CR, and LINENO needs CR and PATH.
15478 # Avoid depending upon Character Ranges.
15479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15482 as_cr_digits='0123456789'
15483 as_cr_alnum=$as_cr_Letters$as_cr_digits
15484
15485 # The user is always right.
15486 if test "${PATH_SEPARATOR+set}" != set; then
15487   echo "#! /bin/sh" >conftest.sh
15488   echo  "exit 0"   >>conftest.sh
15489   chmod +x conftest.sh
15490   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15491     PATH_SEPARATOR=';'
15492   else
15493     PATH_SEPARATOR=:
15494   fi
15495   rm -f conftest.sh
15496 fi
15497
15498
15499   as_lineno_1=$LINENO
15500   as_lineno_2=$LINENO
15501   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15502   test "x$as_lineno_1" != "x$as_lineno_2" &&
15503   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15504   # Find who we are.  Look in the path if we contain no path at all
15505   # relative or not.
15506   case $0 in
15507     *[\\/]* ) as_myself=$0 ;;
15508     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15509 for as_dir in $PATH
15510 do
15511   IFS=$as_save_IFS
15512   test -z "$as_dir" && as_dir=.
15513   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15514 done
15515
15516        ;;
15517   esac
15518   # We did not find ourselves, most probably we were run as `sh COMMAND'
15519   # in which case we are not to be found in the path.
15520   if test "x$as_myself" = x; then
15521     as_myself=$0
15522   fi
15523   if test ! -f "$as_myself"; then
15524     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15525 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15526    { (exit 1); exit 1; }; }
15527   fi
15528   case $CONFIG_SHELL in
15529   '')
15530     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15531 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15532 do
15533   IFS=$as_save_IFS
15534   test -z "$as_dir" && as_dir=.
15535   for as_base in sh bash ksh sh5; do
15536          case $as_dir in
15537          /*)
15538            if ("$as_dir/$as_base" -c '
15539   as_lineno_1=$LINENO
15540   as_lineno_2=$LINENO
15541   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15542   test "x$as_lineno_1" != "x$as_lineno_2" &&
15543   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15544              CONFIG_SHELL=$as_dir/$as_base
15545              export CONFIG_SHELL
15546              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15547            fi;;
15548          esac
15549        done
15550 done
15551 ;;
15552   esac
15553
15554   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15555   # uniformly replaced by the line number.  The first 'sed' inserts a
15556   # line-number line before each line; the second 'sed' does the real
15557   # work.  The second script uses 'N' to pair each line-number line
15558   # with the numbered line, and appends trailing '-' during
15559   # substitution so that $LINENO is not a special case at line end.
15560   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15561   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15562   sed '=' <$as_myself |
15563     sed '
15564       N
15565       s,$,-,
15566       : loop
15567       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15568       t loop
15569       s,-$,,
15570       s,^['$as_cr_digits']*\n,,
15571     ' >$as_me.lineno &&
15572   chmod +x $as_me.lineno ||
15573     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15574 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15575    { (exit 1); exit 1; }; }
15576
15577   # Don't try to exec as it changes $[0], causing all sort of problems
15578   # (the dirname of $[0] is not the place where we might find the
15579   # original and so on.  Autoconf is especially sensible to this).
15580   . ./$as_me.lineno
15581   # Exit status is that of the last command.
15582   exit
15583 }
15584
15585
15586 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15587   *c*,-n*) ECHO_N= ECHO_C='
15588 ' ECHO_T='      ' ;;
15589   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15590   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15591 esac
15592
15593 if expr a : '\(a\)' >/dev/null 2>&1; then
15594   as_expr=expr
15595 else
15596   as_expr=false
15597 fi
15598
15599 rm -f conf$$ conf$$.exe conf$$.file
15600 echo >conf$$.file
15601 if ln -s conf$$.file conf$$ 2>/dev/null; then
15602   # We could just check for DJGPP; but this test a) works b) is more generic
15603   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15604   if test -f conf$$.exe; then
15605     # Don't use ln at all; we don't have any links
15606     as_ln_s='cp -p'
15607   else
15608     as_ln_s='ln -s'
15609   fi
15610 elif ln conf$$.file conf$$ 2>/dev/null; then
15611   as_ln_s=ln
15612 else
15613   as_ln_s='cp -p'
15614 fi
15615 rm -f conf$$ conf$$.exe conf$$.file
15616
15617 as_executable_p="test -f"
15618
15619 # Sed expression to map a string onto a valid CPP name.
15620 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15621
15622 # Sed expression to map a string onto a valid variable name.
15623 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15624
15625
15626 # IFS
15627 # We need space, tab and new line, in precisely that order.
15628 as_nl='
15629 '
15630 IFS="   $as_nl"
15631
15632 # CDPATH.
15633 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
15634
15635 exec 6>&1
15636
15637 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15638 # report actual input values of CONFIG_FILES etc. instead of their
15639 # values after options handling.  Logging --version etc. is OK.
15640 exec 5>>config.log
15641 {
15642   echo
15643   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15644 ## Running $as_me. ##
15645 _ASBOX
15646 } >&5
15647 cat >&5 <<_CSEOF
15648
15649 This file was extended by $as_me, which was
15650 generated by GNU Autoconf 2.53.  Invocation command line was
15651
15652   CONFIG_FILES    = $CONFIG_FILES
15653   CONFIG_HEADERS  = $CONFIG_HEADERS
15654   CONFIG_LINKS    = $CONFIG_LINKS
15655   CONFIG_COMMANDS = $CONFIG_COMMANDS
15656   $ $0 $@
15657
15658 _CSEOF
15659 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15660 echo >&5
15661 _ACEOF
15662
15663 # Files that config.status was made for.
15664 if test -n "$ac_config_files"; then
15665   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15666 fi
15667
15668 if test -n "$ac_config_headers"; then
15669   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15670 fi
15671
15672 if test -n "$ac_config_links"; then
15673   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15674 fi
15675
15676 if test -n "$ac_config_commands"; then
15677   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15678 fi
15679
15680 cat >>$CONFIG_STATUS <<\_ACEOF
15681
15682 ac_cs_usage="\
15683 \`$as_me' instantiates files from templates according to the
15684 current configuration.
15685
15686 Usage: $0 [OPTIONS] [FILE]...
15687
15688   -h, --help       print this help, then exit
15689   -V, --version    print version number, then exit
15690   -d, --debug      don't remove temporary files
15691       --recheck    update $as_me by reconfiguring in the same conditions
15692   --file=FILE[:TEMPLATE]
15693                    instantiate the configuration file FILE
15694   --header=FILE[:TEMPLATE]
15695                    instantiate the configuration header FILE
15696
15697 Configuration files:
15698 $config_files
15699
15700 Configuration headers:
15701 $config_headers
15702
15703 Configuration commands:
15704 $config_commands
15705
15706 Report bugs to <bug-autoconf@gnu.org>."
15707 _ACEOF
15708
15709 cat >>$CONFIG_STATUS <<_ACEOF
15710 ac_cs_version="\\
15711 config.status
15712 configured by $0, generated by GNU Autoconf 2.53,
15713   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15714
15715 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15716 Free Software Foundation, Inc.
15717 This config.status script is free software; the Free Software Foundation
15718 gives unlimited permission to copy, distribute and modify it."
15719 srcdir=$srcdir
15720 INSTALL="$INSTALL"
15721 _ACEOF
15722
15723 cat >>$CONFIG_STATUS <<\_ACEOF
15724 # If no file are specified by the user, then we need to provide default
15725 # value.  By we need to know if files were specified by the user.
15726 ac_need_defaults=:
15727 while test $# != 0
15728 do
15729   case $1 in
15730   --*=*)
15731     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15732     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15733     shift
15734     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
15735     shift
15736     ;;
15737   -*);;
15738   *) # This is not an option, so the user has probably given explicit
15739      # arguments.
15740      ac_need_defaults=false;;
15741   esac
15742
15743   case $1 in
15744   # Handling of the options.
15745 _ACEOF
15746 cat >>$CONFIG_STATUS <<_ACEOF
15747   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15748     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15749     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15750 _ACEOF
15751 cat >>$CONFIG_STATUS <<\_ACEOF
15752   --version | --vers* | -V )
15753     echo "$ac_cs_version"; exit 0 ;;
15754   --he | --h)
15755     # Conflict between --help and --header
15756     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15757 Try \`$0 --help' for more information." >&5
15758 echo "$as_me: error: ambiguous option: $1
15759 Try \`$0 --help' for more information." >&2;}
15760    { (exit 1); exit 1; }; };;
15761   --help | --hel | -h )
15762     echo "$ac_cs_usage"; exit 0 ;;
15763   --debug | --d* | -d )
15764     debug=: ;;
15765   --file | --fil | --fi | --f )
15766     shift
15767     CONFIG_FILES="$CONFIG_FILES $1"
15768     ac_need_defaults=false;;
15769   --header | --heade | --head | --hea )
15770     shift
15771     CONFIG_HEADERS="$CONFIG_HEADERS $1"
15772     ac_need_defaults=false;;
15773
15774   # This is an error.
15775   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15776 Try \`$0 --help' for more information." >&5
15777 echo "$as_me: error: unrecognized option: $1
15778 Try \`$0 --help' for more information." >&2;}
15779    { (exit 1); exit 1; }; } ;;
15780
15781   *) ac_config_targets="$ac_config_targets $1" ;;
15782
15783   esac
15784   shift
15785 done
15786
15787 _ACEOF
15788
15789 cat >>$CONFIG_STATUS <<_ACEOF
15790 #
15791 # INIT-COMMANDS section.
15792 #
15793
15794
15795
15796 _ACEOF
15797
15798
15799
15800 cat >>$CONFIG_STATUS <<\_ACEOF
15801 for ac_config_target in $ac_config_targets
15802 do
15803   case "$ac_config_target" in
15804   # Handling of arguments.
15805   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
15806   "Makefile.opts" ) CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
15807   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15808   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15809   "include/defs.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/defs.h" ;;
15810   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15811 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15812    { (exit 1); exit 1; }; };;
15813   esac
15814 done
15815
15816 # If the user did not use the arguments to specify the items to instantiate,
15817 # then the envvar interface is used.  Set only those that are not.
15818 # We use the long form for the default assignment because of an extremely
15819 # bizarre bug on SunOS 4.1.3.
15820 if $ac_need_defaults; then
15821   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15822   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15823   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15824 fi
15825
15826 # Create a temporary directory, and hook for its removal unless debugging.
15827 $debug ||
15828 {
15829   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15830   trap '{ (exit 1); exit 1; }' 1 2 13 15
15831 }
15832
15833 # Create a (secure) tmp directory for tmp files.
15834 : ${TMPDIR=/tmp}
15835 {
15836   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15837   test -n "$tmp" && test -d "$tmp"
15838 }  ||
15839 {
15840   tmp=$TMPDIR/cs$$-$RANDOM
15841   (umask 077 && mkdir $tmp)
15842 } ||
15843 {
15844    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15845    { (exit 1); exit 1; }
15846 }
15847
15848 _ACEOF
15849
15850 cat >>$CONFIG_STATUS <<_ACEOF
15851
15852 #
15853 # CONFIG_FILES section.
15854 #
15855
15856 # No need to generate the scripts if there are no CONFIG_FILES.
15857 # This happens for instance when ./config.status config.h
15858 if test -n "\$CONFIG_FILES"; then
15859   # Protect against being on the right side of a sed subst in config.status.
15860   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15861    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15862 s,@SHELL@,$SHELL,;t t
15863 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15864 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15865 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15866 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15867 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15868 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15869 s,@exec_prefix@,$exec_prefix,;t t
15870 s,@prefix@,$prefix,;t t
15871 s,@program_transform_name@,$program_transform_name,;t t
15872 s,@bindir@,$bindir,;t t
15873 s,@sbindir@,$sbindir,;t t
15874 s,@libexecdir@,$libexecdir,;t t
15875 s,@datadir@,$datadir,;t t
15876 s,@sysconfdir@,$sysconfdir,;t t
15877 s,@sharedstatedir@,$sharedstatedir,;t t
15878 s,@localstatedir@,$localstatedir,;t t
15879 s,@libdir@,$libdir,;t t
15880 s,@includedir@,$includedir,;t t
15881 s,@oldincludedir@,$oldincludedir,;t t
15882 s,@infodir@,$infodir,;t t
15883 s,@mandir@,$mandir,;t t
15884 s,@build_alias@,$build_alias,;t t
15885 s,@host_alias@,$host_alias,;t t
15886 s,@target_alias@,$target_alias,;t t
15887 s,@DEFS@,$DEFS,;t t
15888 s,@ECHO_C@,$ECHO_C,;t t
15889 s,@ECHO_N@,$ECHO_N,;t t
15890 s,@ECHO_T@,$ECHO_T,;t t
15891 s,@LIBS@,$LIBS,;t t
15892 s,@build@,$build,;t t
15893 s,@build_cpu@,$build_cpu,;t t
15894 s,@build_vendor@,$build_vendor,;t t
15895 s,@build_os@,$build_os,;t t
15896 s,@host@,$host,;t t
15897 s,@host_cpu@,$host_cpu,;t t
15898 s,@host_vendor@,$host_vendor,;t t
15899 s,@host_os@,$host_os,;t t
15900 s,@target@,$target,;t t
15901 s,@target_cpu@,$target_cpu,;t t
15902 s,@target_vendor@,$target_vendor,;t t
15903 s,@target_os@,$target_os,;t t
15904 s,@SET_MAKE@,$SET_MAKE,;t t
15905 s,@CC@,$CC,;t t
15906 s,@CFLAGS@,$CFLAGS,;t t
15907 s,@LDFLAGS@,$LDFLAGS,;t t
15908 s,@CPPFLAGS@,$CPPFLAGS,;t t
15909 s,@ac_ct_CC@,$ac_ct_CC,;t t
15910 s,@EXEEXT@,$EXEEXT,;t t
15911 s,@OBJEXT@,$OBJEXT,;t t
15912 s,@CPP@,$CPP,;t t
15913 s,@RANLIB@,$RANLIB,;t t
15914 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15915 s,@STRIP@,$STRIP,;t t
15916 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15917 s,@AR@,$AR,;t t
15918 s,@ac_ct_AR@,$ac_ct_AR,;t t
15919 s,@LD@,$LD,;t t
15920 s,@ac_ct_LD@,$ac_ct_LD,;t t
15921 s,@GMAKE@,$GMAKE,;t t
15922 s,@ALLOCA@,$ALLOCA,;t t
15923 s,@GLIBC21@,$GLIBC21,;t t
15924 s,@LIBICONV@,$LIBICONV,;t t
15925 s,@USE_NLS@,$USE_NLS,;t t
15926 s,@MSGFMT@,$MSGFMT,;t t
15927 s,@GMSGFMT@,$GMSGFMT,;t t
15928 s,@XGETTEXT@,$XGETTEXT,;t t
15929 s,@INTLBISON@,$INTLBISON,;t t
15930 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15931 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15932 s,@CATALOGS@,$CATALOGS,;t t
15933 s,@CATOBJEXT@,$CATOBJEXT,;t t
15934 s,@GMOFILES@,$GMOFILES,;t t
15935 s,@INTLLIBS@,$INTLLIBS,;t t
15936 s,@INTLOBJS@,$INTLOBJS,;t t
15937 s,@POFILES@,$POFILES,;t t
15938 s,@POSUB@,$POSUB,;t t
15939 s,@DATADIRNAME@,$DATADIRNAME,;t t
15940 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15941 s,@GENCAT@,$GENCAT,;t t
15942 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15943 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15944 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15945 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15946 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15947 s,@WINDRES@,$WINDRES,;t t
15948 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
15949 s,@SDL12_CONFIG@,$SDL12_CONFIG,;t t
15950 s,@SDL11_CONFIG@,$SDL11_CONFIG,;t t
15951 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
15952 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
15953 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
15954 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
15955 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
15956 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
15957 s,@DATA_PATH@,$DATA_PATH,;t t
15958 s,@PLUGIN_PATH@,$PLUGIN_PATH,;t t
15959 s,@SYS@,$SYS,;t t
15960 s,@ARCH@,$ARCH,;t t
15961 s,@PLUGINS@,$PLUGINS,;t t
15962 s,@BUILTINS@,$BUILTINS,;t t
15963 s,@ALIASES@,$ALIASES,;t t
15964 s,@DEBUG@,$DEBUG,;t t
15965 s,@ASM@,$ASM,;t t
15966 s,@CPROF@,$CPROF,;t t
15967 s,@GPROF@,$GPROF,;t t
15968 s,@OPTIMS@,$OPTIMS,;t t
15969 s,@TUNING@,$TUNING,;t t
15970 s,@RELEASE@,$RELEASE,;t t
15971 s,@MOC@,$MOC,;t t
15972 s,@BCBUILDER@,$BCBUILDER,;t t
15973 s,@PACKAGE@,$PACKAGE,;t t
15974 s,@VERSION@,$VERSION,;t t
15975 s,@NEED_GETOPT@,$NEED_GETOPT,;t t
15976 s,@CFLAGS_OPTIM@,$CFLAGS_OPTIM,;t t
15977 s,@CFLAGS_OPTIM_NODEBUG@,$CFLAGS_OPTIM_NODEBUG,;t t
15978 s,@vlc_CFLAGS@,$vlc_CFLAGS,;t t
15979 s,@plugins_CFLAGS@,$plugins_CFLAGS,;t t
15980 s,@builtins_CFLAGS@,$builtins_CFLAGS,;t t
15981 s,@a52_CFLAGS@,$a52_CFLAGS,;t t
15982 s,@arts_CFLAGS@,$arts_CFLAGS,;t t
15983 s,@dvd_CFLAGS@,$dvd_CFLAGS,;t t
15984 s,@dvdread_CFLAGS@,$dvdread_CFLAGS,;t t
15985 s,@mpeg_ts_dvbpsi_CFLAGS@,$mpeg_ts_dvbpsi_CFLAGS,;t t
15986 s,@directx_CFLAGS@,$directx_CFLAGS,;t t
15987 s,@esd_CFLAGS@,$esd_CFLAGS,;t t
15988 s,@familiar_CFLAGS@,$familiar_CFLAGS,;t t
15989 s,@ffmpeg_CFLAGS@,$ffmpeg_CFLAGS,;t t
15990 s,@glide_CFLAGS@,$glide_CFLAGS,;t t
15991 s,@gnome_CFLAGS@,$gnome_CFLAGS,;t t
15992 s,@gtk_CFLAGS@,$gtk_CFLAGS,;t t
15993 s,@kde_CFLAGS@,$kde_CFLAGS,;t t
15994 s,@idctaltivec_CFLAGS@,$idctaltivec_CFLAGS,;t t
15995 s,@macosx_CFLAGS@,$macosx_CFLAGS,;t t
15996 s,@mad_CFLAGS@,$mad_CFLAGS,;t t
15997 s,@memcpyaltivec_CFLAGS@,$memcpyaltivec_CFLAGS,;t t
15998 s,@motionaltivec_CFLAGS@,$motionaltivec_CFLAGS,;t t
15999 s,@opie_CFLAGS@,$opie_CFLAGS,;t t
16000 s,@qt_CFLAGS@,$qt_CFLAGS,;t t
16001 s,@qte_CFLAGS@,$qte_CFLAGS,;t t
16002 s,@sdl_CFLAGS@,$sdl_CFLAGS,;t t
16003 s,@x11_CFLAGS@,$x11_CFLAGS,;t t
16004 s,@xvideo_CFLAGS@,$xvideo_CFLAGS,;t t
16005 s,@vlc_LDFLAGS@,$vlc_LDFLAGS,;t t
16006 s,@plugins_LDFLAGS@,$plugins_LDFLAGS,;t t
16007 s,@builtins_LDFLAGS@,$builtins_LDFLAGS,;t t
16008 s,@a52_LDFLAGS@,$a52_LDFLAGS,;t t
16009 s,@aa_LDFLAGS@,$aa_LDFLAGS,;t t
16010 s,@alsa_LDFLAGS@,$alsa_LDFLAGS,;t t
16011 s,@arts_LDFLAGS@,$arts_LDFLAGS,;t t
16012 s,@beos_LDFLAGS@,$beos_LDFLAGS,;t t
16013 s,@chroma_i420_rgb_LDFLAGS@,$chroma_i420_rgb_LDFLAGS,;t t
16014 s,@directx_LDFLAGS@,$directx_LDFLAGS,;t t
16015 s,@dsp_LDFLAGS@,$dsp_LDFLAGS,;t t
16016 s,@dvd_LDFLAGS@,$dvd_LDFLAGS,;t t
16017 s,@dvdread_LDFLAGS@,$dvdread_LDFLAGS,;t t
16018 s,@mpeg_ts_dvbpsi_LDFLAGS@,$mpeg_ts_dvbpsi_LDFLAGS,;t t
16019 s,@esd_LDFLAGS@,$esd_LDFLAGS,;t t
16020 s,@familiar_LDFLAGS@,$familiar_LDFLAGS,;t t
16021 s,@filter_distort_LDFLAGS@,$filter_distort_LDFLAGS,;t t
16022 s,@ffmpeg_LDFLAGS@,$ffmpeg_LDFLAGS,;t t
16023 s,@ggi_LDFLAGS@,$ggi_LDFLAGS,;t t
16024 s,@glide_LDFLAGS@,$glide_LDFLAGS,;t t
16025 s,@gnome_LDFLAGS@,$gnome_LDFLAGS,;t t
16026 s,@gtk_LDFLAGS@,$gtk_LDFLAGS,;t t
16027 s,@http_LDFLAGS@,$http_LDFLAGS,;t t
16028 s,@idctaltivec_LDFLAGS@,$idctaltivec_LDFLAGS,;t t
16029 s,@imdct_LDFLAGS@,$imdct_LDFLAGS,;t t
16030 s,@imdct3dn_LDFLAGS@,$imdct3dn_LDFLAGS,;t t
16031 s,@imdctsse_LDFLAGS@,$imdctsse_LDFLAGS,;t t
16032 s,@ipv4_LDFLAGS@,$ipv4_LDFLAGS,;t t
16033 s,@ipv6_LDFLAGS@,$ipv6_LDFLAGS,;t t
16034 s,@kde_LDFLAGS@,$kde_LDFLAGS,;t t
16035 s,@lirc_LDFLAGS@,$lirc_LDFLAGS,;t t
16036 s,@macosx_LDFLAGS@,$macosx_LDFLAGS,;t t
16037 s,@mad_LDFLAGS@,$mad_LDFLAGS,;t t
16038 s,@memcpyaltivec_LDFLAGS@,$memcpyaltivec_LDFLAGS,;t t
16039 s,@motionaltivec_LDFLAGS@,$motionaltivec_LDFLAGS,;t t
16040 s,@ncurses_LDFLAGS@,$ncurses_LDFLAGS,;t t
16041 s,@opie_LDFLAGS@,$opie_LDFLAGS,;t t
16042 s,@qnx_LDFLAGS@,$qnx_LDFLAGS,;t t
16043 s,@qt_LDFLAGS@,$qt_LDFLAGS,;t t
16044 s,@qte_LDFLAGS@,$qte_LDFLAGS,;t t
16045 s,@rc_LDFLAGS@,$rc_LDFLAGS,;t t
16046 s,@sdl_LDFLAGS@,$sdl_LDFLAGS,;t t
16047 s,@vcd_LDFLAGS@,$vcd_LDFLAGS,;t t
16048 s,@vorbis_LDFLAGS@,$vorbis_LDFLAGS,;t t
16049 s,@waveout_LDFLAGS@,$waveout_LDFLAGS,;t t
16050 s,@x11_LDFLAGS@,$x11_LDFLAGS,;t t
16051 s,@xvideo_LDFLAGS@,$xvideo_LDFLAGS,;t t
16052 CEOF
16053
16054 _ACEOF
16055
16056   cat >>$CONFIG_STATUS <<\_ACEOF
16057   # Split the substitutions into bite-sized pieces for seds with
16058   # small command number limits, like on Digital OSF/1 and HP-UX.
16059   ac_max_sed_lines=48
16060   ac_sed_frag=1 # Number of current file.
16061   ac_beg=1 # First line for current file.
16062   ac_end=$ac_max_sed_lines # Line after last line for current file.
16063   ac_more_lines=:
16064   ac_sed_cmds=
16065   while $ac_more_lines; do
16066     if test $ac_beg -gt 1; then
16067       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16068     else
16069       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16070     fi
16071     if test ! -s $tmp/subs.frag; then
16072       ac_more_lines=false
16073     else
16074       # The purpose of the label and of the branching condition is to
16075       # speed up the sed processing (if there are no `@' at all, there
16076       # is no need to browse any of the substitutions).
16077       # These are the two extra sed commands mentioned above.
16078       (echo ':t
16079   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16080       if test -z "$ac_sed_cmds"; then
16081         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16082       else
16083         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16084       fi
16085       ac_sed_frag=`expr $ac_sed_frag + 1`
16086       ac_beg=$ac_end
16087       ac_end=`expr $ac_end + $ac_max_sed_lines`
16088     fi
16089   done
16090   if test -z "$ac_sed_cmds"; then
16091     ac_sed_cmds=cat
16092   fi
16093 fi # test -n "$CONFIG_FILES"
16094
16095 _ACEOF
16096 cat >>$CONFIG_STATUS <<\_ACEOF
16097 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16098   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16099   case $ac_file in
16100   - | *:- | *:-:* ) # input from stdin
16101         cat >$tmp/stdin
16102         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16103         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16104   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16105         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16106   * )   ac_file_in=$ac_file.in ;;
16107   esac
16108
16109   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16110   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16112          X"$ac_file" : 'X\(//\)[^/]' \| \
16113          X"$ac_file" : 'X\(//\)$' \| \
16114          X"$ac_file" : 'X\(/\)' \| \
16115          .     : '\(.\)' 2>/dev/null ||
16116 echo X"$ac_file" |
16117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16118           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16119           /^X\(\/\/\)$/{ s//\1/; q; }
16120           /^X\(\/\).*/{ s//\1/; q; }
16121           s/.*/./; q'`
16122   { case "$ac_dir" in
16123   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16124   *)                      as_incr_dir=.;;
16125 esac
16126 as_dummy="$ac_dir"
16127 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16128   case $as_mkdir_dir in
16129     # Skip DOS drivespec
16130     ?:) as_incr_dir=$as_mkdir_dir ;;
16131     *)
16132       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16133       test -d "$as_incr_dir" ||
16134         mkdir "$as_incr_dir" ||
16135         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16136 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16137    { (exit 1); exit 1; }; }
16138     ;;
16139   esac
16140 done; }
16141
16142   ac_builddir=.
16143
16144 if test "$ac_dir" != .; then
16145   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16146   # A "../" for each directory in $ac_dir_suffix.
16147   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16148 else
16149   ac_dir_suffix= ac_top_builddir=
16150 fi
16151
16152 case $srcdir in
16153   .)  # No --srcdir option.  We are building in place.
16154     ac_srcdir=.
16155     if test -z "$ac_top_builddir"; then
16156        ac_top_srcdir=.
16157     else
16158        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16159     fi ;;
16160   [\\/]* | ?:[\\/]* )  # Absolute path.
16161     ac_srcdir=$srcdir$ac_dir_suffix;
16162     ac_top_srcdir=$srcdir ;;
16163   *) # Relative path.
16164     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16165     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16166 esac
16167 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16168 # absolute.
16169 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16170 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16171 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16172 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16173
16174
16175   case $INSTALL in
16176   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16177   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16178   esac
16179
16180   if test x"$ac_file" != x-; then
16181     { echo "$as_me:$LINENO: creating $ac_file" >&5
16182 echo "$as_me: creating $ac_file" >&6;}
16183     rm -f "$ac_file"
16184   fi
16185   # Let's still pretend it is `configure' which instantiates (i.e., don't
16186   # use $as_me), people would be surprised to read:
16187   #    /* config.h.  Generated by config.status.  */
16188   if test x"$ac_file" = x-; then
16189     configure_input=
16190   else
16191     configure_input="$ac_file.  "
16192   fi
16193   configure_input=$configure_input"Generated from `echo $ac_file_in |
16194                                      sed 's,.*/,,'` by configure."
16195
16196   # First look for the input files in the build tree, otherwise in the
16197   # src tree.
16198   ac_file_inputs=`IFS=:
16199     for f in $ac_file_in; do
16200       case $f in
16201       -) echo $tmp/stdin ;;
16202       [\\/$]*)
16203          # Absolute (can't be DOS-style, as IFS=:)
16204          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16205 echo "$as_me: error: cannot find input file: $f" >&2;}
16206    { (exit 1); exit 1; }; }
16207          echo $f;;
16208       *) # Relative
16209          if test -f "$f"; then
16210            # Build tree
16211            echo $f
16212          elif test -f "$srcdir/$f"; then
16213            # Source tree
16214            echo $srcdir/$f
16215          else
16216            # /dev/null tree
16217            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16218 echo "$as_me: error: cannot find input file: $f" >&2;}
16219    { (exit 1); exit 1; }; }
16220          fi;;
16221       esac
16222     done` || { (exit 1); exit 1; }
16223 _ACEOF
16224 cat >>$CONFIG_STATUS <<_ACEOF
16225   sed "$ac_vpsub
16226 $extrasub
16227 _ACEOF
16228 cat >>$CONFIG_STATUS <<\_ACEOF
16229 :t
16230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16231 s,@configure_input@,$configure_input,;t t
16232 s,@srcdir@,$ac_srcdir,;t t
16233 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16234 s,@top_srcdir@,$ac_top_srcdir,;t t
16235 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16236 s,@builddir@,$ac_builddir,;t t
16237 s,@abs_builddir@,$ac_abs_builddir,;t t
16238 s,@top_builddir@,$ac_top_builddir,;t t
16239 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16240 s,@INSTALL@,$ac_INSTALL,;t t
16241 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16242   rm -f $tmp/stdin
16243   if test x"$ac_file" != x-; then
16244     mv $tmp/out $ac_file
16245   else
16246     cat $tmp/out
16247     rm -f $tmp/out
16248   fi
16249
16250 done
16251 _ACEOF
16252 cat >>$CONFIG_STATUS <<\_ACEOF
16253
16254 #
16255 # CONFIG_HEADER section.
16256 #
16257
16258 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16259 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16260 #
16261 # ac_d sets the value in "#define NAME VALUE" lines.
16262 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16263 ac_dB='[        ].*$,\1#\2'
16264 ac_dC=' '
16265 ac_dD=',;t'
16266 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16267 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16268 ac_uB='$,\1#\2define\3'
16269 ac_uC=' '
16270 ac_uD=',;t'
16271
16272 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16273   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16274   case $ac_file in
16275   - | *:- | *:-:* ) # input from stdin
16276         cat >$tmp/stdin
16277         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16278         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16279   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16280         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16281   * )   ac_file_in=$ac_file.in ;;
16282   esac
16283
16284   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16285 echo "$as_me: creating $ac_file" >&6;}
16286
16287   # First look for the input files in the build tree, otherwise in the
16288   # src tree.
16289   ac_file_inputs=`IFS=:
16290     for f in $ac_file_in; do
16291       case $f in
16292       -) echo $tmp/stdin ;;
16293       [\\/$]*)
16294          # Absolute (can't be DOS-style, as IFS=:)
16295          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16296 echo "$as_me: error: cannot find input file: $f" >&2;}
16297    { (exit 1); exit 1; }; }
16298          echo $f;;
16299       *) # Relative
16300          if test -f "$f"; then
16301            # Build tree
16302            echo $f
16303          elif test -f "$srcdir/$f"; then
16304            # Source tree
16305            echo $srcdir/$f
16306          else
16307            # /dev/null tree
16308            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16309 echo "$as_me: error: cannot find input file: $f" >&2;}
16310    { (exit 1); exit 1; }; }
16311          fi;;
16312       esac
16313     done` || { (exit 1); exit 1; }
16314   # Remove the trailing spaces.
16315   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16316
16317 _ACEOF
16318
16319 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16320 # `conftest.undefs', that substitutes the proper values into
16321 # config.h.in to produce config.h.  The first handles `#define'
16322 # templates, and the second `#undef' templates.
16323 # And first: Protect against being on the right side of a sed subst in
16324 # config.status.  Protect against being in an unquoted here document
16325 # in config.status.
16326 rm -f conftest.defines conftest.undefs
16327 # Using a here document instead of a string reduces the quoting nightmare.
16328 # Putting comments in sed scripts is not portable.
16329 #
16330 # `end' is used to avoid that the second main sed command (meant for
16331 # 0-ary CPP macros) applies to n-ary macro definitions.
16332 # See the Autoconf documentation for `clear'.
16333 cat >confdef2sed.sed <<\_ACEOF
16334 s/[\\&,]/\\&/g
16335 s,[\\$`],\\&,g
16336 t clear
16337 : clear
16338 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16339 t end
16340 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16341 : end
16342 _ACEOF
16343 # If some macros were called several times there might be several times
16344 # the same #defines, which is useless.  Nevertheless, we may not want to
16345 # sort them, since we want the *last* AC-DEFINE to be honored.
16346 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16347 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16348 rm -f confdef2sed.sed
16349
16350 # This sed command replaces #undef with comments.  This is necessary, for
16351 # example, in the case of _POSIX_SOURCE, which is predefined and required
16352 # on some systems where configure will not decide to define it.
16353 cat >>conftest.undefs <<\_ACEOF
16354 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16355 _ACEOF
16356
16357 # Break up conftest.defines because some shells have a limit on the size
16358 # of here documents, and old seds have small limits too (100 cmds).
16359 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16360 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16361 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16362 echo '  :' >>$CONFIG_STATUS
16363 rm -f conftest.tail
16364 while grep . conftest.defines >/dev/null
16365 do
16366   # Write a limited-size here document to $tmp/defines.sed.
16367   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16368   # Speed up: don't consider the non `#define' lines.
16369   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16370   # Work around the forget-to-reset-the-flag bug.
16371   echo 't clr' >>$CONFIG_STATUS
16372   echo ': clr' >>$CONFIG_STATUS
16373   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16374   echo 'CEOF
16375   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16376   rm -f $tmp/in
16377   mv $tmp/out $tmp/in
16378 ' >>$CONFIG_STATUS
16379   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16380   rm -f conftest.defines
16381   mv conftest.tail conftest.defines
16382 done
16383 rm -f conftest.defines
16384 echo '  fi # egrep' >>$CONFIG_STATUS
16385 echo >>$CONFIG_STATUS
16386
16387 # Break up conftest.undefs because some shells have a limit on the size
16388 # of here documents, and old seds have small limits too (100 cmds).
16389 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16390 rm -f conftest.tail
16391 while grep . conftest.undefs >/dev/null
16392 do
16393   # Write a limited-size here document to $tmp/undefs.sed.
16394   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16395   # Speed up: don't consider the non `#undef'
16396   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16397   # Work around the forget-to-reset-the-flag bug.
16398   echo 't clr' >>$CONFIG_STATUS
16399   echo ': clr' >>$CONFIG_STATUS
16400   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16401   echo 'CEOF
16402   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16403   rm -f $tmp/in
16404   mv $tmp/out $tmp/in
16405 ' >>$CONFIG_STATUS
16406   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16407   rm -f conftest.undefs
16408   mv conftest.tail conftest.undefs
16409 done
16410 rm -f conftest.undefs
16411
16412 cat >>$CONFIG_STATUS <<\_ACEOF
16413   # Let's still pretend it is `configure' which instantiates (i.e., don't
16414   # use $as_me), people would be surprised to read:
16415   #    /* config.h.  Generated by config.status.  */
16416   if test x"$ac_file" = x-; then
16417     echo "/* Generated by configure.  */" >$tmp/config.h
16418   else
16419     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16420   fi
16421   cat $tmp/in >>$tmp/config.h
16422   rm -f $tmp/in
16423   if test x"$ac_file" != x-; then
16424     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16425       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16426 echo "$as_me: $ac_file is unchanged" >&6;}
16427     else
16428       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16430          X"$ac_file" : 'X\(//\)[^/]' \| \
16431          X"$ac_file" : 'X\(//\)$' \| \
16432          X"$ac_file" : 'X\(/\)' \| \
16433          .     : '\(.\)' 2>/dev/null ||
16434 echo X"$ac_file" |
16435     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16436           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16437           /^X\(\/\/\)$/{ s//\1/; q; }
16438           /^X\(\/\).*/{ s//\1/; q; }
16439           s/.*/./; q'`
16440       { case "$ac_dir" in
16441   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16442   *)                      as_incr_dir=.;;
16443 esac
16444 as_dummy="$ac_dir"
16445 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16446   case $as_mkdir_dir in
16447     # Skip DOS drivespec
16448     ?:) as_incr_dir=$as_mkdir_dir ;;
16449     *)
16450       as_incr_dir=$as_incr_dir/$as_mkdir_dir
16451       test -d "$as_incr_dir" ||
16452         mkdir "$as_incr_dir" ||
16453         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16454 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16455    { (exit 1); exit 1; }; }
16456     ;;
16457   esac
16458 done; }
16459
16460       rm -f $ac_file
16461       mv $tmp/config.h $ac_file
16462     fi
16463   else
16464     cat $tmp/config.h
16465     rm -f $tmp/config.h
16466   fi
16467 done
16468 _ACEOF
16469 cat >>$CONFIG_STATUS <<\_ACEOF
16470
16471 #
16472 # CONFIG_COMMANDS section.
16473 #
16474 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16475   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16476   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16477   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16478 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16479          X"$ac_dest" : 'X\(//\)[^/]' \| \
16480          X"$ac_dest" : 'X\(//\)$' \| \
16481          X"$ac_dest" : 'X\(/\)' \| \
16482          .     : '\(.\)' 2>/dev/null ||
16483 echo X"$ac_dest" |
16484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16485           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16486           /^X\(\/\/\)$/{ s//\1/; q; }
16487           /^X\(\/\).*/{ s//\1/; q; }
16488           s/.*/./; q'`
16489   ac_builddir=.
16490
16491 if test "$ac_dir" != .; then
16492   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16493   # A "../" for each directory in $ac_dir_suffix.
16494   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16495 else
16496   ac_dir_suffix= ac_top_builddir=
16497 fi
16498
16499 case $srcdir in
16500   .)  # No --srcdir option.  We are building in place.
16501     ac_srcdir=.
16502     if test -z "$ac_top_builddir"; then
16503        ac_top_srcdir=.
16504     else
16505        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16506     fi ;;
16507   [\\/]* | ?:[\\/]* )  # Absolute path.
16508     ac_srcdir=$srcdir$ac_dir_suffix;
16509     ac_top_srcdir=$srcdir ;;
16510   *) # Relative path.
16511     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16512     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16513 esac
16514 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16515 # absolute.
16516 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16517 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16518 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16519 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16520
16521
16522   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16523 echo "$as_me: executing $ac_dest commands" >&6;}
16524   case $ac_dest in
16525     default-1 ) for ac_file in $CONFIG_FILES; do
16526         # Support "outfile[:infile[:infile...]]"
16527         case "$ac_file" in
16528           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16529         esac
16530         # PO directories have a Makefile.in generated from Makefile.in.in.
16531         case "$ac_file" in */Makefile.in)
16532           # Adjust a relative srcdir.
16533           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16534           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16535           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16536           # In autoconf-2.13 it is called $ac_given_srcdir.
16537           # In autoconf-2.50 it is called $srcdir.
16538           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16539           case "$ac_given_srcdir" in
16540             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16541             /*) top_srcdir="$ac_given_srcdir" ;;
16542             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16543           esac
16544           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16545             rm -f "$ac_dir/POTFILES"
16546             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16547             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16548             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16549             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16550           fi
16551           ;;
16552         esac
16553       done ;;
16554   esac
16555 done
16556 _ACEOF
16557
16558 cat >>$CONFIG_STATUS <<\_ACEOF
16559
16560 { (exit 0); exit 0; }
16561 _ACEOF
16562 chmod +x $CONFIG_STATUS
16563 ac_clean_files=$ac_clean_files_save
16564
16565
16566 # configure is writing to config.log, and then calls config.status.
16567 # config.status does its own redirection, appending to config.log.
16568 # Unfortunately, on DOS this fails, as config.log is still kept open
16569 # by configure, so config.status won't be able to write to it; its
16570 # output is simply discarded.  So we exec the FD to /dev/null,
16571 # effectively closing config.log, so it can be properly (re)opened and
16572 # appended to by config.status.  When coming back to configure, we
16573 # need to make the FD available again.
16574 if test "$no_create" != yes; then
16575   ac_cs_success=:
16576   exec 5>/dev/null
16577   $SHELL $CONFIG_STATUS || ac_cs_success=false
16578   exec 5>>config.log
16579   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16580   # would make configure fail if this is the last instruction.
16581   $ac_cs_success || { (exit 1); exit 1; }
16582 fi
16583
16584
16585 echo "
16586 vlc configuration
16587 --------------------
16588 vlc version           : ${VERSION}
16589 system                : ${SYS}
16590 architecture          : ${ARCH}
16591 optimizations         : ${OPTIMS}
16592 tuning                : ${TUNING}
16593 debug mode            : ${DEBUG}
16594 release               : ${RELEASE}
16595 cprof/gprof support   : ${CPROF}/${GPROF}
16596 need builtin getopt   : ${NEED_GETOPT}
16597 built-in modules      :${BUILTINS}
16598 plug-in modules       :${PLUGINS}
16599 vlc aliases           :${ALIASES}
16600
16601 You may now tune Makefile.opts at your convenience, for instance to choose
16602 which modules get compiled as plugins.
16603
16604 To build vlc and its plugins, type \`$VLC_MAKE'.
16605 "
16606