]> git.sesse.net Git - vlc/blob - configure
* now --fullscreen works with BeOS video output
[vlc] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
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 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43   else
44     $as_unset $as_var
45   fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50   as_expr=expr
51 else
52   as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56   as_basename=basename
57 else
58   as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65          X"$0" : 'X\(//\)$' \| \
66          X"$0" : 'X\(/\)$' \| \
67          .     : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70           /^X\/\(\/\/\)$/{ s//\1/; q; }
71           /^X\/\(\/\).*/{ s//\1/; q; }
72           s/.*/./; q'`
73
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="/nonexistent;."; 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              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216   as_mkdir_p=:
217 else
218   as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS="   $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete.  It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
269
270 ac_unique_file="include/main.h"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
273 #include <stdio.h>
274 #if HAVE_SYS_TYPES_H
275 # include <sys/types.h>
276 #endif
277 #if HAVE_SYS_STAT_H
278 # include <sys/stat.h>
279 #endif
280 #if STDC_HEADERS
281 # include <stdlib.h>
282 # include <stddef.h>
283 #else
284 # if HAVE_STDLIB_H
285 #  include <stdlib.h>
286 # endif
287 #endif
288 #if HAVE_STRING_H
289 # if !STDC_HEADERS && HAVE_MEMORY_H
290 #  include <memory.h>
291 # endif
292 # include <string.h>
293 #endif
294 #if HAVE_STRINGS_H
295 # include <strings.h>
296 #endif
297 #if HAVE_INTTYPES_H
298 # include <inttypes.h>
299 #else
300 # if HAVE_STDINT_H
301 #  include <stdint.h>
302 # endif
303 #endif
304 #if HAVE_UNISTD_H
305 # include <unistd.h>
306 #endif"
307
308 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP AR ac_ct_AR LD ac_ct_LD GMAKE EGREP ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA WINDRES ac_ct_WINDRES SDL12_CONFIG SDL11_CONFIG SDL_CONFIG ESD_CONFIG ARTS_CONFIG GTK12_CONFIG GTK_CONFIG GNOME_CONFIG DATA_PATH PLUGIN_PATH SYS ARCH PLUGINS BUILTINS ALIASES DEBUG ASM CPROF GPROF OPTIMS TUNING RELEASE MOC BCBUILDER PACKAGE VERSION NEED_GETOPT CFLAGS_OPTIM CFLAGS_OPTIM_NODEBUG vlc_CFLAGS plugins_CFLAGS builtins_CFLAGS a52_CFLAGS arts_CFLAGS dvd_CFLAGS dvdread_CFLAGS mpeg_ts_dvbpsi_CFLAGS directx_CFLAGS esd_CFLAGS familiar_CFLAGS ffmpeg_CFLAGS glide_CFLAGS gnome_CFLAGS gtk_CFLAGS kde_CFLAGS idctaltivec_CFLAGS macosx_CFLAGS mad_CFLAGS memcpyaltivec_CFLAGS motionaltivec_CFLAGS opie_CFLAGS qt_CFLAGS qte_CFLAGS sdl_CFLAGS x11_CFLAGS xvideo_CFLAGS vlc_LDFLAGS plugins_LDFLAGS builtins_LDFLAGS a52_LDFLAGS aa_LDFLAGS alsa_LDFLAGS arts_LDFLAGS beos_LDFLAGS chroma_i420_rgb_LDFLAGS directx_LDFLAGS dsp_LDFLAGS dvd_LDFLAGS dvdread_LDFLAGS mpeg_ts_dvbpsi_LDFLAGS esd_LDFLAGS familiar_LDFLAGS filter_distort_LDFLAGS ffmpeg_LDFLAGS ggi_LDFLAGS glide_LDFLAGS gnome_LDFLAGS gtk_LDFLAGS http_LDFLAGS idctaltivec_LDFLAGS imdct_LDFLAGS imdct3dn_LDFLAGS imdctsse_LDFLAGS ipv4_LDFLAGS ipv6_LDFLAGS kde_LDFLAGS lirc_LDFLAGS macosx_LDFLAGS mad_LDFLAGS memcpyaltivec_LDFLAGS motionaltivec_LDFLAGS ncurses_LDFLAGS opie_LDFLAGS qnx_LDFLAGS qt_LDFLAGS qte_LDFLAGS rc_LDFLAGS sdl_LDFLAGS vcd_LDFLAGS vorbis_LDFLAGS waveout_LDFLAGS x11_LDFLAGS xvideo_LDFLAGS LIBOBJS LTLIBOBJS'
309 ac_subst_files=''
310
311 # Initialize some variables set by options.
312 ac_init_help=
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
316 cache_file=/dev/null
317 exec_prefix=NONE
318 no_create=
319 no_recursion=
320 prefix=NONE
321 program_prefix=NONE
322 program_suffix=NONE
323 program_transform_name=s,x,x,
324 silent=
325 site=
326 srcdir=
327 verbose=
328 x_includes=NONE
329 x_libraries=NONE
330
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
348
349 ac_prev=
350 for ac_option
351 do
352   # If the previous option needs an argument, assign it.
353   if test -n "$ac_prev"; then
354     eval "$ac_prev=\$ac_option"
355     ac_prev=
356     continue
357   fi
358
359   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
360
361   # Accept the important Cygnus configure options, so we can diagnose typos.
362
363   case $ac_option in
364
365   -bindir | --bindir | --bindi | --bind | --bin | --bi)
366     ac_prev=bindir ;;
367   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368     bindir=$ac_optarg ;;
369
370   -build | --build | --buil | --bui | --bu)
371     ac_prev=build_alias ;;
372   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373     build_alias=$ac_optarg ;;
374
375   -cache-file | --cache-file | --cache-fil | --cache-fi \
376   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377     ac_prev=cache_file ;;
378   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380     cache_file=$ac_optarg ;;
381
382   --config-cache | -C)
383     cache_file=config.cache ;;
384
385   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386     ac_prev=datadir ;;
387   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388   | --da=*)
389     datadir=$ac_optarg ;;
390
391   -disable-* | --disable-*)
392     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393     # Reject names that are not valid shell variable names.
394     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396    { (exit 1); exit 1; }; }
397     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398     eval "enable_$ac_feature=no" ;;
399
400   -enable-* | --enable-*)
401     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402     # Reject names that are not valid shell variable names.
403     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405    { (exit 1); exit 1; }; }
406     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407     case $ac_option in
408       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
409       *) ac_optarg=yes ;;
410     esac
411     eval "enable_$ac_feature='$ac_optarg'" ;;
412
413   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415   | --exec | --exe | --ex)
416     ac_prev=exec_prefix ;;
417   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419   | --exec=* | --exe=* | --ex=*)
420     exec_prefix=$ac_optarg ;;
421
422   -gas | --gas | --ga | --g)
423     # Obsolete; use --with-gas.
424     with_gas=yes ;;
425
426   -help | --help | --hel | --he | -h)
427     ac_init_help=long ;;
428   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429     ac_init_help=recursive ;;
430   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431     ac_init_help=short ;;
432
433   -host | --host | --hos | --ho)
434     ac_prev=host_alias ;;
435   -host=* | --host=* | --hos=* | --ho=*)
436     host_alias=$ac_optarg ;;
437
438   -includedir | --includedir | --includedi | --included | --include \
439   | --includ | --inclu | --incl | --inc)
440     ac_prev=includedir ;;
441   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442   | --includ=* | --inclu=* | --incl=* | --inc=*)
443     includedir=$ac_optarg ;;
444
445   -infodir | --infodir | --infodi | --infod | --info | --inf)
446     ac_prev=infodir ;;
447   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448     infodir=$ac_optarg ;;
449
450   -libdir | --libdir | --libdi | --libd)
451     ac_prev=libdir ;;
452   -libdir=* | --libdir=* | --libdi=* | --libd=*)
453     libdir=$ac_optarg ;;
454
455   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456   | --libexe | --libex | --libe)
457     ac_prev=libexecdir ;;
458   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459   | --libexe=* | --libex=* | --libe=*)
460     libexecdir=$ac_optarg ;;
461
462   -localstatedir | --localstatedir | --localstatedi | --localstated \
463   | --localstate | --localstat | --localsta | --localst \
464   | --locals | --local | --loca | --loc | --lo)
465     ac_prev=localstatedir ;;
466   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469     localstatedir=$ac_optarg ;;
470
471   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472     ac_prev=mandir ;;
473   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474     mandir=$ac_optarg ;;
475
476   -nfp | --nfp | --nf)
477     # Obsolete; use --without-fp.
478     with_fp=no ;;
479
480   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481   | --no-cr | --no-c | -n)
482     no_create=yes ;;
483
484   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486     no_recursion=yes ;;
487
488   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490   | --oldin | --oldi | --old | --ol | --o)
491     ac_prev=oldincludedir ;;
492   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495     oldincludedir=$ac_optarg ;;
496
497   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498     ac_prev=prefix ;;
499   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
500     prefix=$ac_optarg ;;
501
502   -program-prefix | --program-prefix | --program-prefi | --program-pref \
503   | --program-pre | --program-pr | --program-p)
504     ac_prev=program_prefix ;;
505   -program-prefix=* | --program-prefix=* | --program-prefi=* \
506   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507     program_prefix=$ac_optarg ;;
508
509   -program-suffix | --program-suffix | --program-suffi | --program-suff \
510   | --program-suf | --program-su | --program-s)
511     ac_prev=program_suffix ;;
512   -program-suffix=* | --program-suffix=* | --program-suffi=* \
513   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514     program_suffix=$ac_optarg ;;
515
516   -program-transform-name | --program-transform-name \
517   | --program-transform-nam | --program-transform-na \
518   | --program-transform-n | --program-transform- \
519   | --program-transform | --program-transfor \
520   | --program-transfo | --program-transf \
521   | --program-trans | --program-tran \
522   | --progr-tra | --program-tr | --program-t)
523     ac_prev=program_transform_name ;;
524   -program-transform-name=* | --program-transform-name=* \
525   | --program-transform-nam=* | --program-transform-na=* \
526   | --program-transform-n=* | --program-transform-=* \
527   | --program-transform=* | --program-transfor=* \
528   | --program-transfo=* | --program-transf=* \
529   | --program-trans=* | --program-tran=* \
530   | --progr-tra=* | --program-tr=* | --program-t=*)
531     program_transform_name=$ac_optarg ;;
532
533   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534   | -silent | --silent | --silen | --sile | --sil)
535     silent=yes ;;
536
537   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538     ac_prev=sbindir ;;
539   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540   | --sbi=* | --sb=*)
541     sbindir=$ac_optarg ;;
542
543   -sharedstatedir | --sharedstatedir | --sharedstatedi \
544   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545   | --sharedst | --shareds | --shared | --share | --shar \
546   | --sha | --sh)
547     ac_prev=sharedstatedir ;;
548   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551   | --sha=* | --sh=*)
552     sharedstatedir=$ac_optarg ;;
553
554   -site | --site | --sit)
555     ac_prev=site ;;
556   -site=* | --site=* | --sit=*)
557     site=$ac_optarg ;;
558
559   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560     ac_prev=srcdir ;;
561   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
562     srcdir=$ac_optarg ;;
563
564   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565   | --syscon | --sysco | --sysc | --sys | --sy)
566     ac_prev=sysconfdir ;;
567   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569     sysconfdir=$ac_optarg ;;
570
571   -target | --target | --targe | --targ | --tar | --ta | --t)
572     ac_prev=target_alias ;;
573   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574     target_alias=$ac_optarg ;;
575
576   -v | -verbose | --verbose | --verbos | --verbo | --verb)
577     verbose=yes ;;
578
579   -version | --version | --versio | --versi | --vers | -V)
580     ac_init_version=: ;;
581
582   -with-* | --with-*)
583     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584     # Reject names that are not valid shell variable names.
585     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586       { echo "$as_me: error: invalid package name: $ac_package" >&2
587    { (exit 1); exit 1; }; }
588     ac_package=`echo $ac_package| sed 's/-/_/g'`
589     case $ac_option in
590       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591       *) ac_optarg=yes ;;
592     esac
593     eval "with_$ac_package='$ac_optarg'" ;;
594
595   -without-* | --without-*)
596     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597     # Reject names that are not valid shell variable names.
598     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599       { echo "$as_me: error: invalid package name: $ac_package" >&2
600    { (exit 1); exit 1; }; }
601     ac_package=`echo $ac_package | sed 's/-/_/g'`
602     eval "with_$ac_package=no" ;;
603
604   --x)
605     # Obsolete; use --with-x.
606     with_x=yes ;;
607
608   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609   | --x-incl | --x-inc | --x-in | --x-i)
610     ac_prev=x_includes ;;
611   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613     x_includes=$ac_optarg ;;
614
615   -x-libraries | --x-libraries | --x-librarie | --x-librari \
616   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617     ac_prev=x_libraries ;;
618   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620     x_libraries=$ac_optarg ;;
621
622   -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624    { (exit 1); exit 1; }; }
625     ;;
626
627   *=*)
628     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629     # Reject names that are not valid shell variable names.
630     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632    { (exit 1); exit 1; }; }
633     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634     eval "$ac_envvar='$ac_optarg'"
635     export $ac_envvar ;;
636
637   *)
638     # FIXME: should be removed in autoconf 3.0.
639     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
643     ;;
644
645   esac
646 done
647
648 if test -n "$ac_prev"; then
649   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650   { echo "$as_me: error: missing argument to $ac_option" >&2
651    { (exit 1); exit 1; }; }
652 fi
653
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
656 do
657   eval ac_val=$`echo $ac_var`
658   case $ac_val in
659     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661    { (exit 1); exit 1; }; };;
662   esac
663 done
664
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667               localstatedir libdir includedir oldincludedir infodir mandir
668 do
669   eval ac_val=$`echo $ac_var`
670   case $ac_val in
671     [\\/$]* | ?:[\\/]* ) ;;
672     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673    { (exit 1); exit 1; }; };;
674   esac
675 done
676
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
680 build=$build_alias
681 host=$host_alias
682 target=$target_alias
683
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686   if test "x$build_alias" = x; then
687     cross_compiling=maybe
688     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689     If a cross compiler is detected then cross compile mode will be used." >&2
690   elif test "x$build_alias" != "x$host_alias"; then
691     cross_compiling=yes
692   fi
693 fi
694
695 ac_tool_prefix=
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
697
698 test "$silent" = yes && exec 6>/dev/null
699
700
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703   ac_srcdir_defaulted=yes
704   # Try the directory containing this script, then its parent.
705   ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707          X"$0" : 'X\(//\)[^/]' \| \
708          X"$0" : 'X\(//\)$' \| \
709          X"$0" : 'X\(/\)' \| \
710          .     : '\(.\)' 2>/dev/null ||
711 echo X"$0" |
712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714           /^X\(\/\/\)$/{ s//\1/; q; }
715           /^X\(\/\).*/{ s//\1/; q; }
716           s/.*/./; q'`
717   srcdir=$ac_confdir
718   if test ! -r $srcdir/$ac_unique_file; then
719     srcdir=..
720   fi
721 else
722   ac_srcdir_defaulted=no
723 fi
724 if test ! -r $srcdir/$ac_unique_file; then
725   if test "$ac_srcdir_defaulted" = yes; then
726     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727    { (exit 1); exit 1; }; }
728   else
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730    { (exit 1); exit 1; }; }
731   fi
732 fi
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735    { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
750 ac_env_CC_value=$CC
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CPP_set=${CPP+set}
766 ac_env_CPP_value=$CPP
767 ac_cv_env_CPP_set=${CPP+set}
768 ac_cv_env_CPP_value=$CPP
769
770 #
771 # Report the --help message.
772 #
773 if test "$ac_init_help" = "long"; then
774   # Omit some internal or obsolete options to make the list less imposing.
775   # This message is too long to be a string in the A/UX 3.1 sh.
776   cat <<_ACEOF
777 \`configure' configures this package to adapt to many kinds of systems.
778
779 Usage: $0 [OPTION]... [VAR=VALUE]...
780
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE.  See below for descriptions of some of the useful variables.
783
784 Defaults for the options are specified in brackets.
785
786 Configuration:
787   -h, --help              display this help and exit
788       --help=short        display options specific to this package
789       --help=recursive    display the short help of all the included packages
790   -V, --version           display version information and exit
791   -q, --quiet, --silent   do not print \`checking...' messages
792       --cache-file=FILE   cache test results in FILE [disabled]
793   -C, --config-cache      alias for \`--cache-file=config.cache'
794   -n, --no-create         do not create output files
795       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
796
797 _ACEOF
798
799   cat <<_ACEOF
800 Installation directories:
801   --prefix=PREFIX         install architecture-independent files in PREFIX
802                           [$ac_default_prefix]
803   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
804                           [PREFIX]
805
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
810
811 For better control, use the options below.
812
813 Fine tuning of the installation directories:
814   --bindir=DIR           user executables [EPREFIX/bin]
815   --sbindir=DIR          system admin executables [EPREFIX/sbin]
816   --libexecdir=DIR       program executables [EPREFIX/libexec]
817   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
818   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
819   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
820   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
821   --libdir=DIR           object code libraries [EPREFIX/lib]
822   --includedir=DIR       C header files [PREFIX/include]
823   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
824   --infodir=DIR          info documentation [PREFIX/info]
825   --mandir=DIR           man documentation [PREFIX/man]
826 _ACEOF
827
828   cat <<\_ACEOF
829
830 System types:
831   --build=BUILD     configure for building on BUILD [guessed]
832   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
833   --target=TARGET   configure for building compilers for TARGET [HOST]
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838
839   cat <<\_ACEOF
840
841 Optional Features:
842   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
843   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
844   --disable-nls           do not use Native Language Support
845   --disable-optimizations disable compiler optimizations (default enabled)
846   --disable-altivec       disable altivec optimizations (default enabled on PPC)
847   --enable-debug          debug mode (default disabled)
848   --enable-release        activate extra optimizations (default disabled)
849   --enable-dvd            DVD input module (default enabled)
850   --enable-dvdread        dvdread input module (default disabled)
851   --enable-dvbpsi        dvbpsi ts demux module (default disabled)
852   --enable-vcd            VCD support for Linux, FreeBSD and MacOS X (default enabled)
853   --enable-satellite      satellite card support (default disabled)
854   --enable-avi            AVI demux module (default enabled)
855   --enable-mad            libmad module (default disabled)
856   --enable-ffmpeg         ffmpeg codec (default disabled)
857   --enable-a52            AC3 support with liba52 (default enabled)
858   --enable-vorbis         Ogg/Vorbis decoder support (default enabled)
859   --enable-x11            X11 support (default enabled)
860   --enable-xvideo         XVideo support (default enabled)
861   --enable-sdl            SDL support (default enabled)
862   --enable-qte            QT Embedded support (default disabled)
863   --enable-directx        Win32 DirectX support (default enabled on Win32)
864   --enable-fb             Linux framebuffer support (default enabled on Linux)
865   --enable-mga            Linux kernel Matrox support (default disabled)
866   --enable-ggi            GGI support (default disabled)
867   --enable-glide          Glide (3dfx) support (default disabled)
868   --enable-aa             aalib output (default disabled)
869   --enable-dsp            Linux /dev/dsp support (enabled on Linux)
870   --enable-esd            Esound library support (default disabled)
871   --enable-arts           aRts sound server (default disabled)
872   --enable-alsa           ALSA sound support for Linux (default disabled)
873   --enable-waveout        Win32 waveOut module (default enabled on Win32)
874   --enable-gtk            Gtk+ support (default enabled)
875   --enable-familiar       Familiar Gtk+ support (default disabled)
876   --enable-gnome          Gnome interface support (default disabled)
877   --enable-qt             Qt interface support (default disabled)
878   --enable-kde            KDE interface support (default disabled)
879   --enable-opie           Qt embedded interface support (default disabled)
880   --enable-macosx         MacOS X support (default enabled on MacOS X)
881   --enable-qnx            QNX RTOS support (default enabled on QNX RTOS)
882   --enable-intfwin        Win32 interface support (default disabled)
883   --enable-ncurses        ncurses interface support (default disabled)
884   --enable-lirc           lirc support (default disabled)
885   --enable-gprof          gprof profiling (default disabled)
886   --enable-cprof          cprof profiling (default disabled)
887   --enable-pth            GNU Pth support (default disabled)
888   --enable-st             State Threads (default disabled)
889   --disable-plugins       make all plug-ins built-in (default plug-ins enabled)
890
891 Optional Packages:
892   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
893   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
894   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
895   --with-included-gettext use the GNU gettext library included here
896
897 Optimization options:
898   --with-tuning=ARCH      enable special tuning for an architecture
899                           (default i686 on IA-32 and 750 on PPC)
900 Input plugins:
901     --with-dvdcss=PATH    libdvdcss headers and libraries
902     --with-dvdcss-tree=PATH libdvdcss tree for static linking
903     --with-dvdread=PATH   libdvdread headers and libraries
904     --with-dvbpsi=PATH    libdvbpsi headers and libraries
905     --with-dvbpsi-tree=PATH libdvbpsi tree for static linking
906 Codec plugins:
907     --with-mad=PATH       path to libmad
908     --with-mad-tree=PATH  mad tree for static linking
909     --with-ffmpeg=PATH    path to ffmpeg installation
910     --with-ffmpeg-tree=PATH ffmpeg tree for static linking
911     --with-a52-tree=PATH  a52dec tree for static linking
912 Video plugins:
913     --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)
914     --with-sdl-prefix=PATH path to libsdl (needed for cross-compiling),
915                                e.g use as:
916                                --with-sdl-prefix=/usr/local/arm/2.95.3/arm-linux/usr)
917     --with-qte=PATH       Qt Embedded headers and libraries
918     --with-directx=PATH   Win32 DirectX headers and libraries
919     --with-ggi=PATH       path to libggi
920     --with-glide=PATH     path to libglide
921 Audio plugins:
922 Interface plugins:
923     --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)
924     --with-gtk-prefix=PATH path to libgtk (needed for cross-compiling),
925                           e.g use as:
926                           --with-gtk-prefix=/usr/local/arm/2.95.3/arm-linux/usr)
927     --with-gpe-prefix=PATH gpe installation path prefix (default search in \$PATH)
928     --with-bcbuilder=PATH Borland C++ Builder installation path
929 Misc options:
930   --with-words=endianness set endianness (big or little)
931
932 Some influential environment variables:
933   CC          C compiler command
934   CFLAGS      C compiler flags
935   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
936               nonstandard directory <lib dir>
937   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
938               headers in a nonstandard directory <include dir>
939   CPP         C preprocessor
940
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
943
944 _ACEOF
945 fi
946
947 if test "$ac_init_help" = "recursive"; then
948   # If there are subdirs, report their specific --help.
949   ac_popdir=`pwd`
950   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951     test -d $ac_dir || continue
952     ac_builddir=.
953
954 if test "$ac_dir" != .; then
955   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956   # A "../" for each directory in $ac_dir_suffix.
957   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 else
959   ac_dir_suffix= ac_top_builddir=
960 fi
961
962 case $srcdir in
963   .)  # No --srcdir option.  We are building in place.
964     ac_srcdir=.
965     if test -z "$ac_top_builddir"; then
966        ac_top_srcdir=.
967     else
968        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969     fi ;;
970   [\\/]* | ?:[\\/]* )  # Absolute path.
971     ac_srcdir=$srcdir$ac_dir_suffix;
972     ac_top_srcdir=$srcdir ;;
973   *) # Relative path.
974     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975     ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 esac
977 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
978 # absolute.
979 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
980 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
981 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
982 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
983
984     cd $ac_dir
985     # Check for guested configure; otherwise get Cygnus style configure.
986     if test -f $ac_srcdir/configure.gnu; then
987       echo
988       $SHELL $ac_srcdir/configure.gnu  --help=recursive
989     elif test -f $ac_srcdir/configure; then
990       echo
991       $SHELL $ac_srcdir/configure  --help=recursive
992     elif test -f $ac_srcdir/configure.ac ||
993            test -f $ac_srcdir/configure.in; then
994       echo
995       $ac_configure --help
996     else
997       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998     fi
999     cd $ac_popdir
1000   done
1001 fi
1002
1003 test -n "$ac_init_help" && exit 0
1004 if $ac_init_version; then
1005   cat <<\_ACEOF
1006
1007 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1008 Free Software Foundation, Inc.
1009 This configure script is free software; the Free Software Foundation
1010 gives unlimited permission to copy, distribute and modify it.
1011 _ACEOF
1012   exit 0
1013 fi
1014 exec 5>config.log
1015 cat >&5 <<_ACEOF
1016 This file contains any messages produced by compilers while
1017 running configure, to aid debugging if configure makes a mistake.
1018
1019 It was created by $as_me, which was
1020 generated by GNU Autoconf 2.54.  Invocation command line was
1021
1022   $ $0 $@
1023
1024 _ACEOF
1025 {
1026 cat <<_ASUNAME
1027 ## --------- ##
1028 ## Platform. ##
1029 ## --------- ##
1030
1031 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1032 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1033 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1034 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1035 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1036
1037 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1038 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1039
1040 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1041 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1042 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1043 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1044 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1045 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1046 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1047
1048 _ASUNAME
1049
1050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1051 for as_dir in $PATH
1052 do
1053   IFS=$as_save_IFS
1054   test -z "$as_dir" && as_dir=.
1055   echo "PATH: $as_dir"
1056 done
1057
1058 } >&5
1059
1060 cat >&5 <<_ACEOF
1061
1062
1063 ## ----------- ##
1064 ## Core tests. ##
1065 ## ----------- ##
1066
1067 _ACEOF
1068
1069
1070 # Keep a trace of the command line.
1071 # Strip out --no-create and --no-recursion so they do not pile up.
1072 # Also quote any args containing shell meta-characters.
1073 ac_configure_args=
1074 ac_sep=
1075 for ac_arg
1076 do
1077   case $ac_arg in
1078   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079   | --no-cr | --no-c | -n ) continue ;;
1080   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082     continue ;;
1083   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085   esac
1086   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087   # Get rid of the leading space.
1088   ac_sep=" "
1089 done
1090
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log.  We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097   # Save into config.log some information that might help in debugging.
1098   {
1099     echo
1100
1101     cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106     echo
1107     # The following way of writing the cache mishandles newlines in values,
1108 {
1109   (set) 2>&1 |
1110     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111     *ac_space=\ *)
1112       sed -n \
1113         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115       ;;
1116     *)
1117       sed -n \
1118         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119       ;;
1120     esac;
1121 }
1122     echo
1123
1124     cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129     echo
1130     for ac_var in $ac_subst_vars
1131     do
1132       eval ac_val=$`echo $ac_var`
1133       echo "$ac_var='"'"'$ac_val'"'"'"
1134     done | sort
1135     echo
1136
1137     if test -n "$ac_subst_files"; then
1138       cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143       echo
1144       for ac_var in $ac_subst_files
1145       do
1146         eval ac_val=$`echo $ac_var`
1147         echo "$ac_var='"'"'$ac_val'"'"'"
1148       done | sort
1149       echo
1150     fi
1151
1152     if test -s confdefs.h; then
1153       cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158       echo
1159       sed "/^$/d" confdefs.h | sort
1160       echo
1161     fi
1162     test "$ac_signal" != 0 &&
1163       echo "$as_me: caught signal $ac_signal"
1164     echo "$as_me: exit $exit_status"
1165   } >&5
1166   rm -f core core.* *.core &&
1167   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168     exit $exit_status
1169      ' 0
1170 for ac_signal in 1 2 13 15; do
1171   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1174
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1179
1180 # Predefined preprocessor variables.
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1205
1206
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210   if test "x$prefix" != xNONE; then
1211     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212   else
1213     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214   fi
1215 fi
1216 for ac_site_file in $CONFIG_SITE; do
1217   if test -r "$ac_site_file"; then
1218     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220     sed 's/^/| /' "$ac_site_file" >&5
1221     . "$ac_site_file"
1222   fi
1223 done
1224
1225 if test -r "$cache_file"; then
1226   # Some versions of bash will fail to source /dev/null (special
1227   # files actually), so we avoid doing that.
1228   if test -f "$cache_file"; then
1229     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231     case $cache_file in
1232       [\\/]* | ?:[\\/]* ) . $cache_file;;
1233       *)                      . ./$cache_file;;
1234     esac
1235   fi
1236 else
1237   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239   >$cache_file
1240 fi
1241
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248   eval ac_new_set=\$ac_env_${ac_var}_set
1249   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250   eval ac_new_val="\$ac_env_${ac_var}_value"
1251   case $ac_old_set,$ac_new_set in
1252     set,)
1253       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255       ac_cache_corrupted=: ;;
1256     ,set)
1257       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259       ac_cache_corrupted=: ;;
1260     ,);;
1261     *)
1262       if test "x$ac_old_val" != "x$ac_new_val"; then
1263         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1266 echo "$as_me:   former value:  $ac_old_val" >&2;}
1267         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1268 echo "$as_me:   current value: $ac_new_val" >&2;}
1269         ac_cache_corrupted=:
1270       fi;;
1271   esac
1272   # Pass precious variables to config.status.
1273   if test "$ac_new_set" = set; then
1274     case $ac_new_val in
1275     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277     *) ac_arg=$ac_var=$ac_new_val ;;
1278     esac
1279     case " $ac_configure_args " in
1280       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1281       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282     esac
1283   fi
1284 done
1285 if $ac_cache_corrupted; then
1286   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290    { (exit 1); exit 1; }; }
1291 fi
1292
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317           ac_config_headers="$ac_config_headers include/defs.h"
1318
1319 ac_aux_dir=
1320 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1321   if test -f $ac_dir/install-sh; then
1322     ac_aux_dir=$ac_dir
1323     ac_install_sh="$ac_aux_dir/install-sh -c"
1324     break
1325   elif test -f $ac_dir/install.sh; then
1326     ac_aux_dir=$ac_dir
1327     ac_install_sh="$ac_aux_dir/install.sh -c"
1328     break
1329   elif test -f $ac_dir/shtool; then
1330     ac_aux_dir=$ac_dir
1331     ac_install_sh="$ac_aux_dir/shtool install -c"
1332     break
1333   fi
1334 done
1335 if test -z "$ac_aux_dir"; then
1336   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1337 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1338    { (exit 1); exit 1; }; }
1339 fi
1340 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343
1344 # Make sure we can run config.sub.
1345 $ac_config_sub sun4 >/dev/null 2>&1 ||
1346   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1347 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1348    { (exit 1); exit 1; }; }
1349
1350 echo "$as_me:$LINENO: checking build system type" >&5
1351 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1352 if test "${ac_cv_build+set}" = set; then
1353   echo $ECHO_N "(cached) $ECHO_C" >&6
1354 else
1355   ac_cv_build_alias=$build_alias
1356 test -z "$ac_cv_build_alias" &&
1357   ac_cv_build_alias=`$ac_config_guess`
1358 test -z "$ac_cv_build_alias" &&
1359   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1360 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1361    { (exit 1); exit 1; }; }
1362 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1363   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1364 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1365    { (exit 1); exit 1; }; }
1366
1367 fi
1368 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1369 echo "${ECHO_T}$ac_cv_build" >&6
1370 build=$ac_cv_build
1371 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1374
1375
1376 echo "$as_me:$LINENO: checking host system type" >&5
1377 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1378 if test "${ac_cv_host+set}" = set; then
1379   echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381   ac_cv_host_alias=$host_alias
1382 test -z "$ac_cv_host_alias" &&
1383   ac_cv_host_alias=$ac_cv_build_alias
1384 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1385   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1386 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1387    { (exit 1); exit 1; }; }
1388
1389 fi
1390 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1391 echo "${ECHO_T}$ac_cv_host" >&6
1392 host=$ac_cv_host
1393 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1394 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1395 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1396
1397
1398 echo "$as_me:$LINENO: checking target system type" >&5
1399 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1400 if test "${ac_cv_target+set}" = set; then
1401   echo $ECHO_N "(cached) $ECHO_C" >&6
1402 else
1403   ac_cv_target_alias=$target_alias
1404 test "x$ac_cv_target_alias" = "x" &&
1405   ac_cv_target_alias=$ac_cv_host_alias
1406 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1407   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1408 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1409    { (exit 1); exit 1; }; }
1410
1411 fi
1412 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1413 echo "${ECHO_T}$ac_cv_target" >&6
1414 target=$ac_cv_target
1415 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1418
1419
1420 # The aliases save the names the user supplied, while $host etc.
1421 # will get canonicalized.
1422 test -n "$target_alias" &&
1423   test "$program_prefix$program_suffix$program_transform_name" = \
1424     NONENONEs,x,x, &&
1425   program_prefix=${target_alias}-
1426
1427 PACKAGE="vlc"
1428 VERSION="0.4.6"
1429 CODENAME=Ourumov
1430
1431 save_CFLAGS="${CFLAGS}"
1432 save_CPPFLAGS="${CPPFLAGS}"
1433 save_LDFLAGS="${LDFLAGS}"
1434
1435 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1436 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1437 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1438 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   cat >conftest.make <<\_ACEOF
1442 all:
1443         @echo 'ac_maketemp="${MAKE}"'
1444 _ACEOF
1445 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1446 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1447 if test -n "$ac_maketemp"; then
1448   eval ac_cv_prog_make_${ac_make}_set=yes
1449 else
1450   eval ac_cv_prog_make_${ac_make}_set=no
1451 fi
1452 rm -f conftest.make
1453 fi
1454 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1455   echo "$as_me:$LINENO: result: yes" >&5
1456 echo "${ECHO_T}yes" >&6
1457   SET_MAKE=
1458 else
1459   echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1461   SET_MAKE="MAKE=${MAKE-make}"
1462 fi
1463
1464 ac_ext=c
1465 ac_cpp='$CPP $CPPFLAGS'
1466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1469 if test -n "$ac_tool_prefix"; then
1470   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475   echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477   if test -n "$CC"; then
1478   ac_cv_prog_CC="$CC" # Let the user override the test.
1479 else
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1482 do
1483   IFS=$as_save_IFS
1484   test -z "$as_dir" && as_dir=.
1485   for ac_exec_ext in '' $ac_executable_extensions; do
1486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489     break 2
1490   fi
1491 done
1492 done
1493
1494 fi
1495 fi
1496 CC=$ac_cv_prog_CC
1497 if test -n "$CC"; then
1498   echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1500 else
1501   echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1503 fi
1504
1505 fi
1506 if test -z "$ac_cv_prog_CC"; then
1507   ac_ct_CC=$CC
1508   # Extract the first word of "gcc", so it can be a program name with args.
1509 set dummy gcc; 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_ac_ct_CC+set}" = set; then
1513   echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515   if test -n "$ac_ct_CC"; then
1516   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1538 else
1539   echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1541 fi
1542
1543   CC=$ac_ct_CC
1544 else
1545   CC="$ac_cv_prog_CC"
1546 fi
1547
1548 if test -z "$CC"; then
1549   if test -n "$ac_tool_prefix"; then
1550   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1551 set dummy ${ac_tool_prefix}cc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555   echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557   if test -n "$CC"; then
1558   ac_cv_prog_CC="$CC" # Let the user override the test.
1559 else
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 for as_dir in $PATH
1562 do
1563   IFS=$as_save_IFS
1564   test -z "$as_dir" && as_dir=.
1565   for ac_exec_ext in '' $ac_executable_extensions; do
1566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567     ac_cv_prog_CC="${ac_tool_prefix}cc"
1568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569     break 2
1570   fi
1571 done
1572 done
1573
1574 fi
1575 fi
1576 CC=$ac_cv_prog_CC
1577 if test -n "$CC"; then
1578   echo "$as_me:$LINENO: result: $CC" >&5
1579 echo "${ECHO_T}$CC" >&6
1580 else
1581   echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1583 fi
1584
1585 fi
1586 if test -z "$ac_cv_prog_CC"; then
1587   ac_ct_CC=$CC
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_ac_ct_CC+set}" = set; then
1593   echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595   if test -n "$ac_ct_CC"; then
1596   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1597 else
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1600 do
1601   IFS=$as_save_IFS
1602   test -z "$as_dir" && as_dir=.
1603   for ac_exec_ext in '' $ac_executable_extensions; do
1604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605     ac_cv_prog_ac_ct_CC="cc"
1606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607     break 2
1608   fi
1609 done
1610 done
1611
1612 fi
1613 fi
1614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615 if test -n "$ac_ct_CC"; then
1616   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1617 echo "${ECHO_T}$ac_ct_CC" >&6
1618 else
1619   echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1621 fi
1622
1623   CC=$ac_ct_CC
1624 else
1625   CC="$ac_cv_prog_CC"
1626 fi
1627
1628 fi
1629 if test -z "$CC"; then
1630   # Extract the first word of "cc", so it can be a program name with args.
1631 set dummy cc; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_CC+set}" = set; then
1635   echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637   if test -n "$CC"; then
1638   ac_cv_prog_CC="$CC" # Let the user override the test.
1639 else
1640   ac_prog_rejected=no
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644   IFS=$as_save_IFS
1645   test -z "$as_dir" && as_dir=.
1646   for ac_exec_ext in '' $ac_executable_extensions; do
1647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1649        ac_prog_rejected=yes
1650        continue
1651      fi
1652     ac_cv_prog_CC="cc"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 if test $ac_prog_rejected = yes; then
1660   # We found a bogon in the path, so make sure we never use it.
1661   set dummy $ac_cv_prog_CC
1662   shift
1663   if test $# != 0; then
1664     # We chose a different compiler from the bogus one.
1665     # However, it has the same basename, so the bogon will be chosen
1666     # first if we set CC to just the basename; use the full file name.
1667     shift
1668     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1669   fi
1670 fi
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 fi
1683 if test -z "$CC"; then
1684   if test -n "$ac_tool_prefix"; then
1685   for ac_prog in cl
1686   do
1687     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692   echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694   if test -n "$CC"; then
1695   ac_cv_prog_CC="$CC" # Let the user override the test.
1696 else
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700   IFS=$as_save_IFS
1701   test -z "$as_dir" && as_dir=.
1702   for ac_exec_ext in '' $ac_executable_extensions; do
1703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706     break 2
1707   fi
1708 done
1709 done
1710
1711 fi
1712 fi
1713 CC=$ac_cv_prog_CC
1714 if test -n "$CC"; then
1715   echo "$as_me:$LINENO: result: $CC" >&5
1716 echo "${ECHO_T}$CC" >&6
1717 else
1718   echo "$as_me:$LINENO: result: no" >&5
1719 echo "${ECHO_T}no" >&6
1720 fi
1721
1722     test -n "$CC" && break
1723   done
1724 fi
1725 if test -z "$CC"; then
1726   ac_ct_CC=$CC
1727   for ac_prog in cl
1728 do
1729   # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1734   echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736   if test -n "$ac_ct_CC"; then
1737   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742   IFS=$as_save_IFS
1743   test -z "$as_dir" && as_dir=.
1744   for ac_exec_ext in '' $ac_executable_extensions; do
1745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746     ac_cv_prog_ac_ct_CC="$ac_prog"
1747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748     break 2
1749   fi
1750 done
1751 done
1752
1753 fi
1754 fi
1755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756 if test -n "$ac_ct_CC"; then
1757   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758 echo "${ECHO_T}$ac_ct_CC" >&6
1759 else
1760   echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1762 fi
1763
1764   test -n "$ac_ct_CC" && break
1765 done
1766
1767   CC=$ac_ct_CC
1768 fi
1769
1770 fi
1771
1772
1773 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1774 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1775    { (exit 1); exit 1; }; }
1776
1777 # Provide some information about the compiler.
1778 echo "$as_me:$LINENO:" \
1779      "checking for C compiler version" >&5
1780 ac_compiler=`set X $ac_compile; echo $2`
1781 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1782   (eval $ac_compiler --version </dev/null >&5) 2>&5
1783   ac_status=$?
1784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1785   (exit $ac_status); }
1786 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1787   (eval $ac_compiler -v </dev/null >&5) 2>&5
1788   ac_status=$?
1789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790   (exit $ac_status); }
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1792   (eval $ac_compiler -V </dev/null >&5) 2>&5
1793   ac_status=$?
1794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795   (exit $ac_status); }
1796
1797 cat >conftest.$ac_ext <<_ACEOF
1798 #line $LINENO "configure"
1799 #include "confdefs.h"
1800
1801 int
1802 main ()
1803 {
1804
1805   ;
1806   return 0;
1807 }
1808 _ACEOF
1809 ac_clean_files_save=$ac_clean_files
1810 ac_clean_files="$ac_clean_files a.out a.exe"
1811 # Try to create an executable without -o first, disregard a.out.
1812 # It will help us diagnose broken compilers, and finding out an intuition
1813 # of exeext.
1814 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1815 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1816 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1817 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1818   (eval $ac_link_default) 2>&5
1819   ac_status=$?
1820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821   (exit $ac_status); }; then
1822   # Find the output, starting from the most likely.  This scheme is
1823 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1824 # resort.
1825
1826 # Be careful to initialize this variable, since it used to be cached.
1827 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1828 ac_cv_exeext=
1829 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1830   test -f "$ac_file" || continue
1831   case $ac_file in
1832     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1833     a.out ) # We found the default executable, but exeext='' is most
1834             # certainly right.
1835             break;;
1836     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1837           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1838           export ac_cv_exeext
1839           break;;
1840     * ) break;;
1841   esac
1842 done
1843 else
1844   echo "$as_me: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1846 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1847 check \`config.log' for details." >&5
1848 echo "$as_me: error: C compiler cannot create executables
1849 check \`config.log' for details." >&2;}
1850    { (exit 77); exit 77; }; }
1851 fi
1852
1853 ac_exeext=$ac_cv_exeext
1854 echo "$as_me:$LINENO: result: $ac_file" >&5
1855 echo "${ECHO_T}$ac_file" >&6
1856
1857 # Check the compiler produces executables we can run.  If not, either
1858 # the compiler is broken, or we cross compile.
1859 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1860 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1861 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1862 # If not cross compiling, check that we can run a simple program.
1863 if test "$cross_compiling" != yes; then
1864   if { ac_try='./$ac_file'
1865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1866   (eval $ac_try) 2>&5
1867   ac_status=$?
1868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869   (exit $ac_status); }; }; then
1870     cross_compiling=no
1871   else
1872     if test "$cross_compiling" = maybe; then
1873         cross_compiling=yes
1874     else
1875         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1876 If you meant to cross compile, use \`--host'." >&5
1877 echo "$as_me: error: cannot run C compiled programs.
1878 If you meant to cross compile, use \`--host'." >&2;}
1879    { (exit 1); exit 1; }; }
1880     fi
1881   fi
1882 fi
1883 echo "$as_me:$LINENO: result: yes" >&5
1884 echo "${ECHO_T}yes" >&6
1885
1886 rm -f a.out a.exe conftest$ac_cv_exeext
1887 ac_clean_files=$ac_clean_files_save
1888 # Check the compiler produces executables we can run.  If not, either
1889 # the compiler is broken, or we cross compile.
1890 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1891 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1892 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1893 echo "${ECHO_T}$cross_compiling" >&6
1894
1895 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1896 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1898   (eval $ac_link) 2>&5
1899   ac_status=$?
1900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901   (exit $ac_status); }; then
1902   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1903 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1904 # work properly (i.e., refer to `conftest.exe'), while it won't with
1905 # `rm'.
1906 for ac_file in conftest.exe conftest conftest.*; do
1907   test -f "$ac_file" || continue
1908   case $ac_file in
1909     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1910     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1911           export ac_cv_exeext
1912           break;;
1913     * ) break;;
1914   esac
1915 done
1916 else
1917   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1918 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1919    { (exit 1); exit 1; }; }
1920 fi
1921
1922 rm -f conftest$ac_cv_exeext
1923 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1924 echo "${ECHO_T}$ac_cv_exeext" >&6
1925
1926 rm -f conftest.$ac_ext
1927 EXEEXT=$ac_cv_exeext
1928 ac_exeext=$EXEEXT
1929 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1930 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1931 if test "${ac_cv_objext+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   cat >conftest.$ac_ext <<_ACEOF
1935 #line $LINENO "configure"
1936 #include "confdefs.h"
1937
1938 int
1939 main ()
1940 {
1941
1942   ;
1943   return 0;
1944 }
1945 _ACEOF
1946 rm -f conftest.o conftest.obj
1947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1948   (eval $ac_compile) 2>&5
1949   ac_status=$?
1950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951   (exit $ac_status); }; then
1952   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1953   case $ac_file in
1954     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1955     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1956        break;;
1957   esac
1958 done
1959 else
1960   echo "$as_me: failed program was:" >&5
1961 cat conftest.$ac_ext >&5
1962 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1963 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1964    { (exit 1); exit 1; }; }
1965 fi
1966
1967 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1968 fi
1969 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1970 echo "${ECHO_T}$ac_cv_objext" >&6
1971 OBJEXT=$ac_cv_objext
1972 ac_objext=$OBJEXT
1973 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1974 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1975 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   cat >conftest.$ac_ext <<_ACEOF
1979 #line $LINENO "configure"
1980 #include "confdefs.h"
1981
1982 int
1983 main ()
1984 {
1985 #ifndef __GNUC__
1986        choke me
1987 #endif
1988
1989   ;
1990   return 0;
1991 }
1992 _ACEOF
1993 rm -f conftest.$ac_objext
1994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995   (eval $ac_compile) 2>&5
1996   ac_status=$?
1997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998   (exit $ac_status); } &&
1999          { ac_try='test -s conftest.$ac_objext'
2000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001   (eval $ac_try) 2>&5
2002   ac_status=$?
2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004   (exit $ac_status); }; }; then
2005   ac_compiler_gnu=yes
2006 else
2007   echo "$as_me: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2009 ac_compiler_gnu=no
2010 fi
2011 rm -f conftest.$ac_objext conftest.$ac_ext
2012 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2013
2014 fi
2015 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2016 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2017 GCC=`test $ac_compiler_gnu = yes && echo yes`
2018 ac_test_CFLAGS=${CFLAGS+set}
2019 ac_save_CFLAGS=$CFLAGS
2020 CFLAGS="-g"
2021 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2022 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2023 if test "${ac_cv_prog_cc_g+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   cat >conftest.$ac_ext <<_ACEOF
2027 #line $LINENO "configure"
2028 #include "confdefs.h"
2029
2030 int
2031 main ()
2032 {
2033
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 rm -f conftest.$ac_objext
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040   (eval $ac_compile) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); } &&
2044          { ac_try='test -s conftest.$ac_objext'
2045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046   (eval $ac_try) 2>&5
2047   ac_status=$?
2048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049   (exit $ac_status); }; }; then
2050   ac_cv_prog_cc_g=yes
2051 else
2052   echo "$as_me: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2054 ac_cv_prog_cc_g=no
2055 fi
2056 rm -f conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2060 if test "$ac_test_CFLAGS" = set; then
2061   CFLAGS=$ac_save_CFLAGS
2062 elif test $ac_cv_prog_cc_g = yes; then
2063   if test "$GCC" = yes; then
2064     CFLAGS="-g -O2"
2065   else
2066     CFLAGS="-g"
2067   fi
2068 else
2069   if test "$GCC" = yes; then
2070     CFLAGS="-O2"
2071   else
2072     CFLAGS=
2073   fi
2074 fi
2075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   ac_cv_prog_cc_stdc=no
2081 ac_save_CC=$CC
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2084 #include "confdefs.h"
2085 #include <stdarg.h>
2086 #include <stdio.h>
2087 #include <sys/types.h>
2088 #include <sys/stat.h>
2089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2090 struct buf { int x; };
2091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2092 static char *e (p, i)
2093      char **p;
2094      int i;
2095 {
2096   return p[i];
2097 }
2098 static char *f (char * (*g) (char **, int), char **p, ...)
2099 {
2100   char *s;
2101   va_list v;
2102   va_start (v,p);
2103   s = g (p, va_arg (v,int));
2104   va_end (v);
2105   return s;
2106 }
2107 int test (int i, double x);
2108 struct s1 {int (*f) (int a);};
2109 struct s2 {int (*f) (double a);};
2110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2111 int argc;
2112 char **argv;
2113 int
2114 main ()
2115 {
2116 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 # Don't try gcc -ansi; that turns off useful extensions and
2122 # breaks some systems' header files.
2123 # AIX                   -qlanglvl=ansi
2124 # Ultrix and OSF/1      -std1
2125 # HP-UX 10.20 and later -Ae
2126 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2127 # SVR4                  -Xc -D__EXTENSIONS__
2128 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2129 do
2130   CC="$ac_save_CC $ac_arg"
2131   rm -f conftest.$ac_objext
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133   (eval $ac_compile) 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); } &&
2137          { ac_try='test -s conftest.$ac_objext'
2138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139   (eval $ac_try) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; }; then
2143   ac_cv_prog_cc_stdc=$ac_arg
2144 break
2145 else
2146   echo "$as_me: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2148 fi
2149 rm -f conftest.$ac_objext
2150 done
2151 rm -f conftest.$ac_ext conftest.$ac_objext
2152 CC=$ac_save_CC
2153
2154 fi
2155
2156 case "x$ac_cv_prog_cc_stdc" in
2157   x|xno)
2158     echo "$as_me:$LINENO: result: none needed" >&5
2159 echo "${ECHO_T}none needed" >&6 ;;
2160   *)
2161     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2162 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2163     CC="$CC $ac_cv_prog_cc_stdc" ;;
2164 esac
2165
2166 # Some people use a C++ compiler to compile C.  Since we use `exit',
2167 # in C++ we need to declare it.  In case someone uses the same compiler
2168 # for both compiling C and C++ we need to have the C++ compiler decide
2169 # the declaration of exit, since it's the most demanding environment.
2170 cat >conftest.$ac_ext <<_ACEOF
2171 #ifndef __cplusplus
2172   choke me
2173 #endif
2174 _ACEOF
2175 rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177   (eval $ac_compile) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); } &&
2181          { ac_try='test -s conftest.$ac_objext'
2182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183   (eval $ac_try) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }; }; then
2187   for ac_declaration in \
2188    ''\
2189    '#include <stdlib.h>' \
2190    'extern "C" void std::exit (int) throw (); using std::exit;' \
2191    'extern "C" void std::exit (int); using std::exit;' \
2192    'extern "C" void exit (int) throw ();' \
2193    'extern "C" void exit (int);' \
2194    'void exit (int);'
2195 do
2196   cat >conftest.$ac_ext <<_ACEOF
2197 #line $LINENO "configure"
2198 #include "confdefs.h"
2199 #include <stdlib.h>
2200 $ac_declaration
2201 int
2202 main ()
2203 {
2204 exit (42);
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 rm -f conftest.$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211   (eval $ac_compile) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); } &&
2215          { ac_try='test -s conftest.$ac_objext'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; }; then
2221   :
2222 else
2223   echo "$as_me: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2225 continue
2226 fi
2227 rm -f conftest.$ac_objext conftest.$ac_ext
2228   cat >conftest.$ac_ext <<_ACEOF
2229 #line $LINENO "configure"
2230 #include "confdefs.h"
2231 $ac_declaration
2232 int
2233 main ()
2234 {
2235 exit (42);
2236   ;
2237   return 0;
2238 }
2239 _ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242   (eval $ac_compile) 2>&5
2243   ac_status=$?
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); } &&
2246          { ac_try='test -s conftest.$ac_objext'
2247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248   (eval $ac_try) 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }; }; then
2252   break
2253 else
2254   echo "$as_me: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2256 fi
2257 rm -f conftest.$ac_objext conftest.$ac_ext
2258 done
2259 rm -f conftest*
2260 if test -n "$ac_declaration"; then
2261   echo '#ifdef __cplusplus' >>confdefs.h
2262   echo $ac_declaration      >>confdefs.h
2263   echo '#endif'             >>confdefs.h
2264 fi
2265
2266 else
2267   echo "$as_me: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2269 fi
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2271 ac_ext=c
2272 ac_cpp='$CPP $CPPFLAGS'
2273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2276
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2283 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2284 # On Suns, sometimes $CPP names a directory.
2285 if test -n "$CPP" && test -d "$CPP"; then
2286   CPP=
2287 fi
2288 if test -z "$CPP"; then
2289   if test "${ac_cv_prog_CPP+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292       # Double quotes because CPP needs to be expanded
2293     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2294     do
2295       ac_preproc_ok=false
2296 for ac_c_preproc_warn_flag in '' yes
2297 do
2298   # Use a header file that comes with gcc, so configuring glibc
2299   # with a fresh cross-compiler works.
2300   # On the NeXT, cc -E runs the code through the compiler's parser,
2301   # not just through cpp. "Syntax error" is here to catch this case.
2302   cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2305 #include <assert.h>
2306                      Syntax error
2307 _ACEOF
2308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2309   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2310   ac_status=$?
2311   grep -v '^ *+' conftest.er1 >conftest.err
2312   rm -f conftest.er1
2313   cat conftest.err >&5
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); } >/dev/null; then
2316   if test -s conftest.err; then
2317     ac_cpp_err=$ac_c_preproc_warn_flag
2318   else
2319     ac_cpp_err=
2320   fi
2321 else
2322   ac_cpp_err=yes
2323 fi
2324 if test -z "$ac_cpp_err"; then
2325   :
2326 else
2327   echo "$as_me: failed program was:" >&5
2328   cat conftest.$ac_ext >&5
2329   # Broken: fails on valid input.
2330 continue
2331 fi
2332 rm -f conftest.err conftest.$ac_ext
2333
2334   # OK, works on sane cases.  Now check whether non-existent headers
2335   # can be detected and how.
2336   cat >conftest.$ac_ext <<_ACEOF
2337 #line $LINENO "configure"
2338 #include "confdefs.h"
2339 #include <ac_nonexistent.h>
2340 _ACEOF
2341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2343   ac_status=$?
2344   grep -v '^ *+' conftest.er1 >conftest.err
2345   rm -f conftest.er1
2346   cat conftest.err >&5
2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); } >/dev/null; then
2349   if test -s conftest.err; then
2350     ac_cpp_err=$ac_c_preproc_warn_flag
2351   else
2352     ac_cpp_err=
2353   fi
2354 else
2355   ac_cpp_err=yes
2356 fi
2357 if test -z "$ac_cpp_err"; then
2358   # Broken: success on invalid input.
2359 continue
2360 else
2361   echo "$as_me: failed program was:" >&5
2362   cat conftest.$ac_ext >&5
2363   # Passes both tests.
2364 ac_preproc_ok=:
2365 break
2366 fi
2367 rm -f conftest.err conftest.$ac_ext
2368
2369 done
2370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2371 rm -f conftest.err conftest.$ac_ext
2372 if $ac_preproc_ok; then
2373   break
2374 fi
2375
2376     done
2377     ac_cv_prog_CPP=$CPP
2378
2379 fi
2380   CPP=$ac_cv_prog_CPP
2381 else
2382   ac_cv_prog_CPP=$CPP
2383 fi
2384 echo "$as_me:$LINENO: result: $CPP" >&5
2385 echo "${ECHO_T}$CPP" >&6
2386 ac_preproc_ok=false
2387 for ac_c_preproc_warn_flag in '' yes
2388 do
2389   # Use a header file that comes with gcc, so configuring glibc
2390   # with a fresh cross-compiler works.
2391   # On the NeXT, cc -E runs the code through the compiler's parser,
2392   # not just through cpp. "Syntax error" is here to catch this case.
2393   cat >conftest.$ac_ext <<_ACEOF
2394 #line $LINENO "configure"
2395 #include "confdefs.h"
2396 #include <assert.h>
2397                      Syntax error
2398 _ACEOF
2399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2401   ac_status=$?
2402   grep -v '^ *+' conftest.er1 >conftest.err
2403   rm -f conftest.er1
2404   cat conftest.err >&5
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); } >/dev/null; then
2407   if test -s conftest.err; then
2408     ac_cpp_err=$ac_c_preproc_warn_flag
2409   else
2410     ac_cpp_err=
2411   fi
2412 else
2413   ac_cpp_err=yes
2414 fi
2415 if test -z "$ac_cpp_err"; then
2416   :
2417 else
2418   echo "$as_me: failed program was:" >&5
2419   cat conftest.$ac_ext >&5
2420   # Broken: fails on valid input.
2421 continue
2422 fi
2423 rm -f conftest.err conftest.$ac_ext
2424
2425   # OK, works on sane cases.  Now check whether non-existent headers
2426   # can be detected and how.
2427   cat >conftest.$ac_ext <<_ACEOF
2428 #line $LINENO "configure"
2429 #include "confdefs.h"
2430 #include <ac_nonexistent.h>
2431 _ACEOF
2432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2433   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2434   ac_status=$?
2435   grep -v '^ *+' conftest.er1 >conftest.err
2436   rm -f conftest.er1
2437   cat conftest.err >&5
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); } >/dev/null; then
2440   if test -s conftest.err; then
2441     ac_cpp_err=$ac_c_preproc_warn_flag
2442   else
2443     ac_cpp_err=
2444   fi
2445 else
2446   ac_cpp_err=yes
2447 fi
2448 if test -z "$ac_cpp_err"; then
2449   # Broken: success on invalid input.
2450 continue
2451 else
2452   echo "$as_me: failed program was:" >&5
2453   cat conftest.$ac_ext >&5
2454   # Passes both tests.
2455 ac_preproc_ok=:
2456 break
2457 fi
2458 rm -f conftest.err conftest.$ac_ext
2459
2460 done
2461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2462 rm -f conftest.err conftest.$ac_ext
2463 if $ac_preproc_ok; then
2464   :
2465 else
2466   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2467 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2468    { (exit 1); exit 1; }; }
2469 fi
2470
2471 ac_ext=c
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476
2477
2478 if test -n "$ac_tool_prefix"; then
2479   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2481 echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2483 if test "${ac_cv_prog_RANLIB+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   if test -n "$RANLIB"; then
2487   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492   IFS=$as_save_IFS
2493   test -z "$as_dir" && as_dir=.
2494   for ac_exec_ext in '' $ac_executable_extensions; do
2495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498     break 2
2499   fi
2500 done
2501 done
2502
2503 fi
2504 fi
2505 RANLIB=$ac_cv_prog_RANLIB
2506 if test -n "$RANLIB"; then
2507   echo "$as_me:$LINENO: result: $RANLIB" >&5
2508 echo "${ECHO_T}$RANLIB" >&6
2509 else
2510   echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2512 fi
2513
2514 fi
2515 if test -z "$ac_cv_prog_RANLIB"; then
2516   ac_ct_RANLIB=$RANLIB
2517   # Extract the first word of "ranlib", so it can be a program name with args.
2518 set dummy ranlib; ac_word=$2
2519 echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2521 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2522   echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524   if test -n "$ac_ct_RANLIB"; then
2525   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530   IFS=$as_save_IFS
2531   test -z "$as_dir" && as_dir=.
2532   for ac_exec_ext in '' $ac_executable_extensions; do
2533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534     ac_cv_prog_ac_ct_RANLIB="ranlib"
2535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536     break 2
2537   fi
2538 done
2539 done
2540
2541   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2542 fi
2543 fi
2544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2545 if test -n "$ac_ct_RANLIB"; then
2546   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2547 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2548 else
2549   echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6
2551 fi
2552
2553   RANLIB=$ac_ct_RANLIB
2554 else
2555   RANLIB="$ac_cv_prog_RANLIB"
2556 fi
2557
2558 if test -n "$ac_tool_prefix"; then
2559   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2560 set dummy ${ac_tool_prefix}strip; ac_word=$2
2561 echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2563 if test "${ac_cv_prog_STRIP+set}" = set; then
2564   echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566   if test -n "$STRIP"; then
2567   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2571 do
2572   IFS=$as_save_IFS
2573   test -z "$as_dir" && as_dir=.
2574   for ac_exec_ext in '' $ac_executable_extensions; do
2575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578     break 2
2579   fi
2580 done
2581 done
2582
2583 fi
2584 fi
2585 STRIP=$ac_cv_prog_STRIP
2586 if test -n "$STRIP"; then
2587   echo "$as_me:$LINENO: result: $STRIP" >&5
2588 echo "${ECHO_T}$STRIP" >&6
2589 else
2590   echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6
2592 fi
2593
2594 fi
2595 if test -z "$ac_cv_prog_STRIP"; then
2596   ac_ct_STRIP=$STRIP
2597   # Extract the first word of "strip", so it can be a program name with args.
2598 set dummy strip; ac_word=$2
2599 echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2601 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2602   echo $ECHO_N "(cached) $ECHO_C" >&6
2603 else
2604   if test -n "$ac_ct_STRIP"; then
2605   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610   IFS=$as_save_IFS
2611   test -z "$as_dir" && as_dir=.
2612   for ac_exec_ext in '' $ac_executable_extensions; do
2613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614     ac_cv_prog_ac_ct_STRIP="strip"
2615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616     break 2
2617   fi
2618 done
2619 done
2620
2621   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2622 fi
2623 fi
2624 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2625 if test -n "$ac_ct_STRIP"; then
2626   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2627 echo "${ECHO_T}$ac_ct_STRIP" >&6
2628 else
2629   echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6
2631 fi
2632
2633   STRIP=$ac_ct_STRIP
2634 else
2635   STRIP="$ac_cv_prog_STRIP"
2636 fi
2637
2638 if test -n "$ac_tool_prefix"; then
2639   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}ar; ac_word=$2
2641 echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2643 if test "${ac_cv_prog_AR+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   if test -n "$AR"; then
2647   ac_cv_prog_AR="$AR" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654   for ac_exec_ext in '' $ac_executable_extensions; do
2655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656     ac_cv_prog_AR="${ac_tool_prefix}ar"
2657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661 done
2662
2663 fi
2664 fi
2665 AR=$ac_cv_prog_AR
2666 if test -n "$AR"; then
2667   echo "$as_me:$LINENO: result: $AR" >&5
2668 echo "${ECHO_T}$AR" >&6
2669 else
2670   echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6
2672 fi
2673
2674 fi
2675 if test -z "$ac_cv_prog_AR"; then
2676   ac_ct_AR=$AR
2677   # Extract the first word of "ar", so it can be a program name with args.
2678 set dummy ar; ac_word=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2682   echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684   if test -n "$ac_ct_AR"; then
2685   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690   IFS=$as_save_IFS
2691   test -z "$as_dir" && as_dir=.
2692   for ac_exec_ext in '' $ac_executable_extensions; do
2693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694     ac_cv_prog_ac_ct_AR="ar"
2695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696     break 2
2697   fi
2698 done
2699 done
2700
2701   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
2702 fi
2703 fi
2704 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2705 if test -n "$ac_ct_AR"; then
2706   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2707 echo "${ECHO_T}$ac_ct_AR" >&6
2708 else
2709   echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2711 fi
2712
2713   AR=$ac_ct_AR
2714 else
2715   AR="$ac_cv_prog_AR"
2716 fi
2717
2718 if test -n "$ac_tool_prefix"; then
2719   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}ld; ac_word=$2
2721 echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2723 if test "${ac_cv_prog_LD+set}" = set; then
2724   echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726   if test -n "$LD"; then
2727   ac_cv_prog_LD="$LD" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732   IFS=$as_save_IFS
2733   test -z "$as_dir" && as_dir=.
2734   for ac_exec_ext in '' $ac_executable_extensions; do
2735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736     ac_cv_prog_LD="${ac_tool_prefix}ld"
2737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738     break 2
2739   fi
2740 done
2741 done
2742
2743 fi
2744 fi
2745 LD=$ac_cv_prog_LD
2746 if test -n "$LD"; then
2747   echo "$as_me:$LINENO: result: $LD" >&5
2748 echo "${ECHO_T}$LD" >&6
2749 else
2750   echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2752 fi
2753
2754 fi
2755 if test -z "$ac_cv_prog_LD"; then
2756   ac_ct_LD=$LD
2757   # Extract the first word of "ld", so it can be a program name with args.
2758 set dummy ld; ac_word=$2
2759 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2762   echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764   if test -n "$ac_ct_LD"; then
2765   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770   IFS=$as_save_IFS
2771   test -z "$as_dir" && as_dir=.
2772   for ac_exec_ext in '' $ac_executable_extensions; do
2773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774     ac_cv_prog_ac_ct_LD="ld"
2775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776     break 2
2777   fi
2778 done
2779 done
2780
2781   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD=":"
2782 fi
2783 fi
2784 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2785 if test -n "$ac_ct_LD"; then
2786   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2787 echo "${ECHO_T}$ac_ct_LD" >&6
2788 else
2789   echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2791 fi
2792
2793   LD=$ac_ct_LD
2794 else
2795   LD="$ac_cv_prog_LD"
2796 fi
2797
2798
2799 # Extract the first word of "gmake", so it can be a program name with args.
2800 set dummy gmake; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_path_GMAKE+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806   case $GMAKE in
2807   [\\/]* | ?:[\\/]*)
2808   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
2809   ;;
2810   *)
2811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814   IFS=$as_save_IFS
2815   test -z "$as_dir" && as_dir=.
2816   for ac_exec_ext in '' $ac_executable_extensions; do
2817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
2819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820     break 2
2821   fi
2822 done
2823 done
2824
2825   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
2826   ;;
2827 esac
2828 fi
2829 GMAKE=$ac_cv_path_GMAKE
2830
2831 if test -n "$GMAKE"; then
2832   echo "$as_me:$LINENO: result: $GMAKE" >&5
2833 echo "${ECHO_T}$GMAKE" >&6
2834 else
2835   echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2837 fi
2838
2839 if test "x$GMAKE" = "xno"; then
2840   echo "$as_me:$LINENO: checking whether GNU make is installed" >&5
2841 echo $ECHO_N "checking whether GNU make is installed... $ECHO_C" >&6
2842 if test "${ac_cv_gmake+set}" = set; then
2843   echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845   if make --version | grep -q -i gnu; then
2846          ac_cv_gmake="yes"
2847        else
2848          echo "This software needs you to install GNU make to compile properly."
2849          echo "You can get it from http://www.gnu.org/."
2850          exit
2851        fi
2852 fi
2853 echo "$as_me:$LINENO: result: $ac_cv_gmake" >&5
2854 echo "${ECHO_T}$ac_cv_gmake" >&6
2855   VLC_MAKE="make"
2856 else
2857   VLC_MAKE="gmake"
2858 fi
2859
2860 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
2861
2862
2863 cat >>confdefs.h <<_ACEOF
2864 #define VLC_PACKAGE "$PACKAGE"
2865 _ACEOF
2866
2867
2868 cat >>confdefs.h <<_ACEOF
2869 #define VLC_VERSION "$VERSION"
2870 _ACEOF
2871
2872 if test -n "$ac_tool_prefix"; then
2873   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_prog_RANLIB+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   if test -n "$RANLIB"; then
2881   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886   IFS=$as_save_IFS
2887   test -z "$as_dir" && as_dir=.
2888   for ac_exec_ext in '' $ac_executable_extensions; do
2889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892     break 2
2893   fi
2894 done
2895 done
2896
2897 fi
2898 fi
2899 RANLIB=$ac_cv_prog_RANLIB
2900 if test -n "$RANLIB"; then
2901   echo "$as_me:$LINENO: result: $RANLIB" >&5
2902 echo "${ECHO_T}$RANLIB" >&6
2903 else
2904   echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2906 fi
2907
2908 fi
2909 if test -z "$ac_cv_prog_RANLIB"; then
2910   ac_ct_RANLIB=$RANLIB
2911   # Extract the first word of "ranlib", so it can be a program name with args.
2912 set dummy ranlib; ac_word=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2916   echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918   if test -n "$ac_ct_RANLIB"; then
2919   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924   IFS=$as_save_IFS
2925   test -z "$as_dir" && as_dir=.
2926   for ac_exec_ext in '' $ac_executable_extensions; do
2927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928     ac_cv_prog_ac_ct_RANLIB="ranlib"
2929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930     break 2
2931   fi
2932 done
2933 done
2934
2935   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2936 fi
2937 fi
2938 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2939 if test -n "$ac_ct_RANLIB"; then
2940   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2941 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2942 else
2943   echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2945 fi
2946
2947   RANLIB=$ac_ct_RANLIB
2948 else
2949   RANLIB="$ac_cv_prog_RANLIB"
2950 fi
2951
2952
2953
2954         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2955 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2956 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2957   echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959   ac_check_lib_save_LIBS=$LIBS
2960 LIBS="-lcposix  $LIBS"
2961 cat >conftest.$ac_ext <<_ACEOF
2962 #line $LINENO "configure"
2963 #include "confdefs.h"
2964
2965 /* Override any gcc2 internal prototype to avoid an error.  */
2966 #ifdef __cplusplus
2967 extern "C"
2968 #endif
2969 /* We use char because int might match the return type of a gcc2
2970    builtin and then its argument prototype would still apply.  */
2971 char strerror ();
2972 int
2973 main ()
2974 {
2975 strerror ();
2976   ;
2977   return 0;
2978 }
2979 _ACEOF
2980 rm -f conftest.$ac_objext conftest$ac_exeext
2981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2982   (eval $ac_link) 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); } &&
2986          { ac_try='test -s conftest$ac_exeext'
2987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988   (eval $ac_try) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }; }; then
2992   ac_cv_lib_cposix_strerror=yes
2993 else
2994   echo "$as_me: failed program was:" >&5
2995 cat conftest.$ac_ext >&5
2996 ac_cv_lib_cposix_strerror=no
2997 fi
2998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2999 LIBS=$ac_check_lib_save_LIBS
3000 fi
3001 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3002 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3003 if test $ac_cv_lib_cposix_strerror = yes; then
3004   LIBS="$LIBS -lcposix"
3005 fi
3006
3007
3008
3009
3010 echo "$as_me:$LINENO: checking for egrep" >&5
3011 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3012 if test "${ac_cv_prog_egrep+set}" = set; then
3013   echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3016     then ac_cv_prog_egrep='grep -E'
3017     else ac_cv_prog_egrep='egrep'
3018     fi
3019 fi
3020 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3021 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3022  EGREP=$ac_cv_prog_egrep
3023
3024
3025 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3026 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3027 if test "${ac_cv_header_stdc+set}" = set; then
3028   echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030   cat >conftest.$ac_ext <<_ACEOF
3031 #line $LINENO "configure"
3032 #include "confdefs.h"
3033 #include <stdlib.h>
3034 #include <stdarg.h>
3035 #include <string.h>
3036 #include <float.h>
3037
3038 _ACEOF
3039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3040   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3041   ac_status=$?
3042   grep -v '^ *+' conftest.er1 >conftest.err
3043   rm -f conftest.er1
3044   cat conftest.err >&5
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); } >/dev/null; then
3047   if test -s conftest.err; then
3048     ac_cpp_err=$ac_c_preproc_warn_flag
3049   else
3050     ac_cpp_err=
3051   fi
3052 else
3053   ac_cpp_err=yes
3054 fi
3055 if test -z "$ac_cpp_err"; then
3056   ac_cv_header_stdc=yes
3057 else
3058   echo "$as_me: failed program was:" >&5
3059   cat conftest.$ac_ext >&5
3060   ac_cv_header_stdc=no
3061 fi
3062 rm -f conftest.err conftest.$ac_ext
3063
3064 if test $ac_cv_header_stdc = yes; then
3065   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3066   cat >conftest.$ac_ext <<_ACEOF
3067 #line $LINENO "configure"
3068 #include "confdefs.h"
3069 #include <string.h>
3070
3071 _ACEOF
3072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3073   $EGREP "memchr" >/dev/null 2>&1; then
3074   :
3075 else
3076   ac_cv_header_stdc=no
3077 fi
3078 rm -f conftest*
3079
3080 fi
3081
3082 if test $ac_cv_header_stdc = yes; then
3083   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3084   cat >conftest.$ac_ext <<_ACEOF
3085 #line $LINENO "configure"
3086 #include "confdefs.h"
3087 #include <stdlib.h>
3088
3089 _ACEOF
3090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3091   $EGREP "free" >/dev/null 2>&1; then
3092   :
3093 else
3094   ac_cv_header_stdc=no
3095 fi
3096 rm -f conftest*
3097
3098 fi
3099
3100 if test $ac_cv_header_stdc = yes; then
3101   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3102   if test "$cross_compiling" = yes; then
3103   :
3104 else
3105   cat >conftest.$ac_ext <<_ACEOF
3106 #line $LINENO "configure"
3107 #include "confdefs.h"
3108 #include <ctype.h>
3109 #if ((' ' & 0x0FF) == 0x020)
3110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3112 #else
3113 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3114                      || ('j' <= (c) && (c) <= 'r') \
3115                      || ('s' <= (c) && (c) <= 'z'))
3116 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3117 #endif
3118
3119 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3120 int
3121 main ()
3122 {
3123   int i;
3124   for (i = 0; i < 256; i++)
3125     if (XOR (islower (i), ISLOWER (i))
3126         || toupper (i) != TOUPPER (i))
3127       exit(2);
3128   exit (0);
3129 }
3130 _ACEOF
3131 rm -f conftest$ac_exeext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3133   (eval $ac_link) 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138   (eval $ac_try) 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; }; then
3142   :
3143 else
3144   echo "$as_me: program exited with status $ac_status" >&5
3145 echo "$as_me: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3147 ( exit $ac_status )
3148 ac_cv_header_stdc=no
3149 fi
3150 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3151 fi
3152 fi
3153 fi
3154 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3155 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3156 if test $ac_cv_header_stdc = yes; then
3157
3158 cat >>confdefs.h <<\_ACEOF
3159 #define STDC_HEADERS 1
3160 _ACEOF
3161
3162 fi
3163
3164 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3165 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3166 if test "${ac_cv_c_const+set}" = set; then
3167   echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169   cat >conftest.$ac_ext <<_ACEOF
3170 #line $LINENO "configure"
3171 #include "confdefs.h"
3172
3173 int
3174 main ()
3175 {
3176 /* FIXME: Include the comments suggested by Paul. */
3177 #ifndef __cplusplus
3178   /* Ultrix mips cc rejects this.  */
3179   typedef int charset[2];
3180   const charset x;
3181   /* SunOS 4.1.1 cc rejects this.  */
3182   char const *const *ccp;
3183   char **p;
3184   /* NEC SVR4.0.2 mips cc rejects this.  */
3185   struct point {int x, y;};
3186   static struct point const zero = {0,0};
3187   /* AIX XL C 1.02.0.0 rejects this.
3188      It does not let you subtract one const X* pointer from another in
3189      an arm of an if-expression whose if-part is not a constant
3190      expression */
3191   const char *g = "string";
3192   ccp = &g + (g ? g-g : 0);
3193   /* HPUX 7.0 cc rejects these. */
3194   ++ccp;
3195   p = (char**) ccp;
3196   ccp = (char const *const *) p;
3197   { /* SCO 3.2v4 cc rejects this.  */
3198     char *t;
3199     char const *s = 0 ? (char *) 0 : (char const *) 0;
3200
3201     *t++ = 0;
3202   }
3203   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3204     int x[] = {25, 17};
3205     const int *foo = &x[0];
3206     ++foo;
3207   }
3208   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3209     typedef const int *iptr;
3210     iptr p = 0;
3211     ++p;
3212   }
3213   { /* AIX XL C 1.02.0.0 rejects this saying
3214        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3215     struct s { int j; const int *ap[3]; };
3216     struct s *b; b->j = 5;
3217   }
3218   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3219     const int foo = 10;
3220   }
3221 #endif
3222
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229   (eval $ac_compile) 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); } &&
3233          { ac_try='test -s conftest.$ac_objext'
3234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235   (eval $ac_try) 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; }; then
3239   ac_cv_c_const=yes
3240 else
3241   echo "$as_me: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 ac_cv_c_const=no
3244 fi
3245 rm -f conftest.$ac_objext conftest.$ac_ext
3246 fi
3247 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3248 echo "${ECHO_T}$ac_cv_c_const" >&6
3249 if test $ac_cv_c_const = no; then
3250
3251 cat >>confdefs.h <<\_ACEOF
3252 #define const
3253 _ACEOF
3254
3255 fi
3256
3257 echo "$as_me:$LINENO: checking for inline" >&5
3258 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3259 if test "${ac_cv_c_inline+set}" = set; then
3260   echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262   ac_cv_c_inline=no
3263 for ac_kw in inline __inline__ __inline; do
3264   cat >conftest.$ac_ext <<_ACEOF
3265 #line $LINENO "configure"
3266 #include "confdefs.h"
3267 #ifndef __cplusplus
3268 typedef int foo_t;
3269 static $ac_kw foo_t static_foo () {return 0; }
3270 $ac_kw foo_t foo () {return 0; }
3271 #endif
3272
3273 _ACEOF
3274 rm -f conftest.$ac_objext
3275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276   (eval $ac_compile) 2>&5
3277   ac_status=$?
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); } &&
3280          { ac_try='test -s conftest.$ac_objext'
3281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282   (eval $ac_try) 2>&5
3283   ac_status=$?
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); }; }; then
3286   ac_cv_c_inline=$ac_kw; break
3287 else
3288   echo "$as_me: failed program was:" >&5
3289 cat conftest.$ac_ext >&5
3290 fi
3291 rm -f conftest.$ac_objext conftest.$ac_ext
3292 done
3293
3294 fi
3295 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3296 echo "${ECHO_T}$ac_cv_c_inline" >&6
3297 case $ac_cv_c_inline in
3298   inline | yes) ;;
3299   no)
3300 cat >>confdefs.h <<\_ACEOF
3301 #define inline
3302 _ACEOF
3303  ;;
3304   *)  cat >>confdefs.h <<_ACEOF
3305 #define inline $ac_cv_c_inline
3306 _ACEOF
3307  ;;
3308 esac
3309
3310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3321                   inttypes.h stdint.h unistd.h
3322 do
3323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3324 echo "$as_me:$LINENO: checking for $ac_header" >&5
3325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   cat >conftest.$ac_ext <<_ACEOF
3330 #line $LINENO "configure"
3331 #include "confdefs.h"
3332 $ac_includes_default
3333
3334 #include <$ac_header>
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338   (eval $ac_compile) 2>&5
3339   ac_status=$?
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); } &&
3342          { ac_try='test -s conftest.$ac_objext'
3343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344   (eval $ac_try) 2>&5
3345   ac_status=$?
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); }; }; then
3348   eval "$as_ac_Header=yes"
3349 else
3350   echo "$as_me: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 eval "$as_ac_Header=no"
3353 fi
3354 rm -f conftest.$ac_objext conftest.$ac_ext
3355 fi
3356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3359   cat >>confdefs.h <<_ACEOF
3360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3361 _ACEOF
3362
3363 fi
3364
3365 done
3366
3367
3368 echo "$as_me:$LINENO: checking for off_t" >&5
3369 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3370 if test "${ac_cv_type_off_t+set}" = set; then
3371   echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373   cat >conftest.$ac_ext <<_ACEOF
3374 #line $LINENO "configure"
3375 #include "confdefs.h"
3376 $ac_includes_default
3377 int
3378 main ()
3379 {
3380 if ((off_t *) 0)
3381   return 0;
3382 if (sizeof (off_t))
3383   return 0;
3384   ;
3385   return 0;
3386 }
3387 _ACEOF
3388 rm -f conftest.$ac_objext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3390   (eval $ac_compile) 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); } &&
3394          { ac_try='test -s conftest.$ac_objext'
3395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396   (eval $ac_try) 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; }; then
3400   ac_cv_type_off_t=yes
3401 else
3402   echo "$as_me: failed program was:" >&5
3403 cat conftest.$ac_ext >&5
3404 ac_cv_type_off_t=no
3405 fi
3406 rm -f conftest.$ac_objext conftest.$ac_ext
3407 fi
3408 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3409 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3410 if test $ac_cv_type_off_t = yes; then
3411   :
3412 else
3413
3414 cat >>confdefs.h <<_ACEOF
3415 #define off_t long
3416 _ACEOF
3417
3418 fi
3419
3420 echo "$as_me:$LINENO: checking for size_t" >&5
3421 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3422 if test "${ac_cv_type_size_t+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   cat >conftest.$ac_ext <<_ACEOF
3426 #line $LINENO "configure"
3427 #include "confdefs.h"
3428 $ac_includes_default
3429 int
3430 main ()
3431 {
3432 if ((size_t *) 0)
3433   return 0;
3434 if (sizeof (size_t))
3435   return 0;
3436   ;
3437   return 0;
3438 }
3439 _ACEOF
3440 rm -f conftest.$ac_objext
3441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3442   (eval $ac_compile) 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); } &&
3446          { ac_try='test -s conftest.$ac_objext'
3447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448   (eval $ac_try) 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); }; }; then
3452   ac_cv_type_size_t=yes
3453 else
3454   echo "$as_me: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3456 ac_cv_type_size_t=no
3457 fi
3458 rm -f conftest.$ac_objext conftest.$ac_ext
3459 fi
3460 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3461 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3462 if test $ac_cv_type_size_t = yes; then
3463   :
3464 else
3465
3466 cat >>confdefs.h <<_ACEOF
3467 #define size_t unsigned
3468 _ACEOF
3469
3470 fi
3471
3472 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3473 # for constant arguments.  Useless!
3474 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3475 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3476 if test "${ac_cv_working_alloca_h+set}" = set; then
3477   echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479   cat >conftest.$ac_ext <<_ACEOF
3480 #line $LINENO "configure"
3481 #include "confdefs.h"
3482 #include <alloca.h>
3483 int
3484 main ()
3485 {
3486 char *p = (char *) alloca (2 * sizeof (int));
3487   ;
3488   return 0;
3489 }
3490 _ACEOF
3491 rm -f conftest.$ac_objext conftest$ac_exeext
3492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3493   (eval $ac_link) 2>&5
3494   ac_status=$?
3495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); } &&
3497          { ac_try='test -s conftest$ac_exeext'
3498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499   (eval $ac_try) 2>&5
3500   ac_status=$?
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); }; }; then
3503   ac_cv_working_alloca_h=yes
3504 else
3505   echo "$as_me: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3507 ac_cv_working_alloca_h=no
3508 fi
3509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3510 fi
3511 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3512 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3513 if test $ac_cv_working_alloca_h = yes; then
3514
3515 cat >>confdefs.h <<\_ACEOF
3516 #define HAVE_ALLOCA_H 1
3517 _ACEOF
3518
3519 fi
3520
3521 echo "$as_me:$LINENO: checking for alloca" >&5
3522 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3523 if test "${ac_cv_func_alloca_works+set}" = set; then
3524   echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526   cat >conftest.$ac_ext <<_ACEOF
3527 #line $LINENO "configure"
3528 #include "confdefs.h"
3529 #ifdef __GNUC__
3530 # define alloca __builtin_alloca
3531 #else
3532 # ifdef _MSC_VER
3533 #  include <malloc.h>
3534 #  define alloca _alloca
3535 # else
3536 #  if HAVE_ALLOCA_H
3537 #   include <alloca.h>
3538 #  else
3539 #   ifdef _AIX
3540  #pragma alloca
3541 #   else
3542 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3543 char *alloca ();
3544 #    endif
3545 #   endif
3546 #  endif
3547 # endif
3548 #endif
3549
3550 int
3551 main ()
3552 {
3553 char *p = (char *) alloca (1);
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext conftest$ac_exeext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3560   (eval $ac_link) 2>&5
3561   ac_status=$?
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } &&
3564          { ac_try='test -s conftest$ac_exeext'
3565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566   (eval $ac_try) 2>&5
3567   ac_status=$?
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); }; }; then
3570   ac_cv_func_alloca_works=yes
3571 else
3572   echo "$as_me: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3574 ac_cv_func_alloca_works=no
3575 fi
3576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3577 fi
3578 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3579 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3580
3581 if test $ac_cv_func_alloca_works = yes; then
3582
3583 cat >>confdefs.h <<\_ACEOF
3584 #define HAVE_ALLOCA 1
3585 _ACEOF
3586
3587 else
3588   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3589 # that cause trouble.  Some versions do not even contain alloca or
3590 # contain a buggy version.  If you still want to use their alloca,
3591 # use ar to extract alloca.o from them instead of compiling alloca.c.
3592
3593 ALLOCA=alloca.$ac_objext
3594
3595 cat >>confdefs.h <<\_ACEOF
3596 #define C_ALLOCA 1
3597 _ACEOF
3598
3599
3600 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3601 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3602 if test "${ac_cv_os_cray+set}" = set; then
3603   echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605   cat >conftest.$ac_ext <<_ACEOF
3606 #line $LINENO "configure"
3607 #include "confdefs.h"
3608 #if defined(CRAY) && ! defined(CRAY2)
3609 webecray
3610 #else
3611 wenotbecray
3612 #endif
3613
3614 _ACEOF
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616   $EGREP "webecray" >/dev/null 2>&1; then
3617   ac_cv_os_cray=yes
3618 else
3619   ac_cv_os_cray=no
3620 fi
3621 rm -f conftest*
3622
3623 fi
3624 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3625 echo "${ECHO_T}$ac_cv_os_cray" >&6
3626 if test $ac_cv_os_cray = yes; then
3627   for ac_func in _getb67 GETB67 getb67; do
3628     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3629 echo "$as_me:$LINENO: checking for $ac_func" >&5
3630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3631 if eval "test \"\${$as_ac_var+set}\" = set"; then
3632   echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634   cat >conftest.$ac_ext <<_ACEOF
3635 #line $LINENO "configure"
3636 #include "confdefs.h"
3637 /* System header to define __stub macros and hopefully few prototypes,
3638     which can conflict with char $ac_func (); below.  */
3639 #include <assert.h>
3640 /* Override any gcc2 internal prototype to avoid an error.  */
3641 #ifdef __cplusplus
3642 extern "C"
3643 #endif
3644 /* We use char because int might match the return type of a gcc2
3645    builtin and then its argument prototype would still apply.  */
3646 char $ac_func ();
3647 char (*f) ();
3648
3649 int
3650 main ()
3651 {
3652 /* The GNU C library defines this for functions which it implements
3653     to always fail with ENOSYS.  Some functions are actually named
3654     something starting with __ and the normal name is an alias.  */
3655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3656 choke me
3657 #else
3658 f = $ac_func;
3659 #endif
3660
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 rm -f conftest.$ac_objext conftest$ac_exeext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3667   (eval $ac_link) 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } &&
3671          { ac_try='test -s conftest$ac_exeext'
3672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673   (eval $ac_try) 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); }; }; then
3677   eval "$as_ac_var=yes"
3678 else
3679   echo "$as_me: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3681 eval "$as_ac_var=no"
3682 fi
3683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3684 fi
3685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3687 if test `eval echo '${'$as_ac_var'}'` = yes; then
3688
3689 cat >>confdefs.h <<_ACEOF
3690 #define CRAY_STACKSEG_END $ac_func
3691 _ACEOF
3692
3693     break
3694 fi
3695
3696   done
3697 fi
3698
3699 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3700 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3701 if test "${ac_cv_c_stack_direction+set}" = set; then
3702   echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704   if test "$cross_compiling" = yes; then
3705   ac_cv_c_stack_direction=0
3706 else
3707   cat >conftest.$ac_ext <<_ACEOF
3708 #line $LINENO "configure"
3709 #include "confdefs.h"
3710 int
3711 find_stack_direction ()
3712 {
3713   static char *addr = 0;
3714   auto char dummy;
3715   if (addr == 0)
3716     {
3717       addr = &dummy;
3718       return find_stack_direction ();
3719     }
3720   else
3721     return (&dummy > addr) ? 1 : -1;
3722 }
3723
3724 int
3725 main ()
3726 {
3727   exit (find_stack_direction () < 0);
3728 }
3729 _ACEOF
3730 rm -f conftest$ac_exeext
3731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3732   (eval $ac_link) 2>&5
3733   ac_status=$?
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737   (eval $ac_try) 2>&5
3738   ac_status=$?
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); }; }; then
3741   ac_cv_c_stack_direction=1
3742 else
3743   echo "$as_me: program exited with status $ac_status" >&5
3744 echo "$as_me: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3746 ( exit $ac_status )
3747 ac_cv_c_stack_direction=-1
3748 fi
3749 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3750 fi
3751 fi
3752 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3753 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3754
3755 cat >>confdefs.h <<_ACEOF
3756 #define STACK_DIRECTION $ac_cv_c_stack_direction
3757 _ACEOF
3758
3759
3760 fi
3761
3762
3763
3764 for ac_header in stdlib.h unistd.h
3765 do
3766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3768   echo "$as_me:$LINENO: checking for $ac_header" >&5
3769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 fi
3773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3775 else
3776   # Is the header compilable?
3777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3779 cat >conftest.$ac_ext <<_ACEOF
3780 #line $LINENO "configure"
3781 #include "confdefs.h"
3782 $ac_includes_default
3783 #include <$ac_header>
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787   (eval $ac_compile) 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } &&
3791          { ac_try='test -s conftest.$ac_objext'
3792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793   (eval $ac_try) 2>&5
3794   ac_status=$?
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); }; }; then
3797   ac_header_compiler=yes
3798 else
3799   echo "$as_me: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3801 ac_header_compiler=no
3802 fi
3803 rm -f conftest.$ac_objext conftest.$ac_ext
3804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3805 echo "${ECHO_T}$ac_header_compiler" >&6
3806
3807 # Is the header present?
3808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3810 cat >conftest.$ac_ext <<_ACEOF
3811 #line $LINENO "configure"
3812 #include "confdefs.h"
3813 #include <$ac_header>
3814 _ACEOF
3815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3817   ac_status=$?
3818   grep -v '^ *+' conftest.er1 >conftest.err
3819   rm -f conftest.er1
3820   cat conftest.err >&5
3821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822   (exit $ac_status); } >/dev/null; then
3823   if test -s conftest.err; then
3824     ac_cpp_err=$ac_c_preproc_warn_flag
3825   else
3826     ac_cpp_err=
3827   fi
3828 else
3829   ac_cpp_err=yes
3830 fi
3831 if test -z "$ac_cpp_err"; then
3832   ac_header_preproc=yes
3833 else
3834   echo "$as_me: failed program was:" >&5
3835   cat conftest.$ac_ext >&5
3836   ac_header_preproc=no
3837 fi
3838 rm -f conftest.err conftest.$ac_ext
3839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3840 echo "${ECHO_T}$ac_header_preproc" >&6
3841
3842 # So?  What about this header?
3843 case $ac_header_compiler:$ac_header_preproc in
3844   yes:no )
3845     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3849   no:yes )
3850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3852     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3856 esac
3857 echo "$as_me:$LINENO: checking for $ac_header" >&5
3858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3860   echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862   eval "$as_ac_Header=$ac_header_preproc"
3863 fi
3864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3866
3867 fi
3868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3869   cat >>confdefs.h <<_ACEOF
3870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3871 _ACEOF
3872
3873 fi
3874
3875 done
3876
3877
3878 for ac_func in getpagesize
3879 do
3880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3881 echo "$as_me:$LINENO: checking for $ac_func" >&5
3882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3883 if eval "test \"\${$as_ac_var+set}\" = set"; then
3884   echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886   cat >conftest.$ac_ext <<_ACEOF
3887 #line $LINENO "configure"
3888 #include "confdefs.h"
3889 /* System header to define __stub macros and hopefully few prototypes,
3890     which can conflict with char $ac_func (); below.  */
3891 #include <assert.h>
3892 /* Override any gcc2 internal prototype to avoid an error.  */
3893 #ifdef __cplusplus
3894 extern "C"
3895 #endif
3896 /* We use char because int might match the return type of a gcc2
3897    builtin and then its argument prototype would still apply.  */
3898 char $ac_func ();
3899 char (*f) ();
3900
3901 int
3902 main ()
3903 {
3904 /* The GNU C library defines this for functions which it implements
3905     to always fail with ENOSYS.  Some functions are actually named
3906     something starting with __ and the normal name is an alias.  */
3907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3908 choke me
3909 #else
3910 f = $ac_func;
3911 #endif
3912
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 rm -f conftest.$ac_objext conftest$ac_exeext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3919   (eval $ac_link) 2>&5
3920   ac_status=$?
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); } &&
3923          { ac_try='test -s conftest$ac_exeext'
3924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925   (eval $ac_try) 2>&5
3926   ac_status=$?
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); }; }; then
3929   eval "$as_ac_var=yes"
3930 else
3931   echo "$as_me: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3933 eval "$as_ac_var=no"
3934 fi
3935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3936 fi
3937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3939 if test `eval echo '${'$as_ac_var'}'` = yes; then
3940   cat >>confdefs.h <<_ACEOF
3941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3942 _ACEOF
3943
3944 fi
3945 done
3946
3947 echo "$as_me:$LINENO: checking for working mmap" >&5
3948 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3949 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   if test "$cross_compiling" = yes; then
3953   ac_cv_func_mmap_fixed_mapped=no
3954 else
3955   cat >conftest.$ac_ext <<_ACEOF
3956 #line $LINENO "configure"
3957 #include "confdefs.h"
3958 $ac_includes_default
3959 /* malloc might have been renamed as rpl_malloc. */
3960 #undef malloc
3961
3962 /* Thanks to Mike Haertel and Jim Avera for this test.
3963    Here is a matrix of mmap possibilities:
3964         mmap private not fixed
3965         mmap private fixed at somewhere currently unmapped
3966         mmap private fixed at somewhere already mapped
3967         mmap shared not fixed
3968         mmap shared fixed at somewhere currently unmapped
3969         mmap shared fixed at somewhere already mapped
3970    For private mappings, we should verify that changes cannot be read()
3971    back from the file, nor mmap's back from the file at a different
3972    address.  (There have been systems where private was not correctly
3973    implemented like the infamous i386 svr4.0, and systems where the
3974    VM page cache was not coherent with the file system buffer cache
3975    like early versions of FreeBSD and possibly contemporary NetBSD.)
3976    For shared mappings, we should conversely verify that changes get
3977    propagated back to all the places they're supposed to be.
3978
3979    Grep wants private fixed already mapped.
3980    The main things grep needs to know about mmap are:
3981    * does it exist and is it safe to write into the mmap'd area
3982    * how to use it (BSD variants)  */
3983
3984 #include <fcntl.h>
3985 #include <sys/mman.h>
3986
3987 #if !STDC_HEADERS && !HAVE_STDLIB_H
3988 char *malloc ();
3989 #endif
3990
3991 /* This mess was copied from the GNU getpagesize.h.  */
3992 #if !HAVE_GETPAGESIZE
3993 /* Assume that all systems that can run configure have sys/param.h.  */
3994 # if !HAVE_SYS_PARAM_H
3995 #  define HAVE_SYS_PARAM_H 1
3996 # endif
3997
3998 # ifdef _SC_PAGESIZE
3999 #  define getpagesize() sysconf(_SC_PAGESIZE)
4000 # else /* no _SC_PAGESIZE */
4001 #  if HAVE_SYS_PARAM_H
4002 #   include <sys/param.h>
4003 #   ifdef EXEC_PAGESIZE
4004 #    define getpagesize() EXEC_PAGESIZE
4005 #   else /* no EXEC_PAGESIZE */
4006 #    ifdef NBPG
4007 #     define getpagesize() NBPG * CLSIZE
4008 #     ifndef CLSIZE
4009 #      define CLSIZE 1
4010 #     endif /* no CLSIZE */
4011 #    else /* no NBPG */
4012 #     ifdef NBPC
4013 #      define getpagesize() NBPC
4014 #     else /* no NBPC */
4015 #      ifdef PAGESIZE
4016 #       define getpagesize() PAGESIZE
4017 #      endif /* PAGESIZE */
4018 #     endif /* no NBPC */
4019 #    endif /* no NBPG */
4020 #   endif /* no EXEC_PAGESIZE */
4021 #  else /* no HAVE_SYS_PARAM_H */
4022 #   define getpagesize() 8192   /* punt totally */
4023 #  endif /* no HAVE_SYS_PARAM_H */
4024 # endif /* no _SC_PAGESIZE */
4025
4026 #endif /* no HAVE_GETPAGESIZE */
4027
4028 int
4029 main ()
4030 {
4031   char *data, *data2, *data3;
4032   int i, pagesize;
4033   int fd;
4034
4035   pagesize = getpagesize ();
4036
4037   /* First, make a file with some known garbage in it. */
4038   data = (char *) malloc (pagesize);
4039   if (!data)
4040     exit (1);
4041   for (i = 0; i < pagesize; ++i)
4042     *(data + i) = rand ();
4043   umask (0);
4044   fd = creat ("conftest.mmap", 0600);
4045   if (fd < 0)
4046     exit (1);
4047   if (write (fd, data, pagesize) != pagesize)
4048     exit (1);
4049   close (fd);
4050
4051   /* Next, try to mmap the file at a fixed address which already has
4052      something else allocated at it.  If we can, also make sure that
4053      we see the same garbage.  */
4054   fd = open ("conftest.mmap", O_RDWR);
4055   if (fd < 0)
4056     exit (1);
4057   data2 = (char *) malloc (2 * pagesize);
4058   if (!data2)
4059     exit (1);
4060   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4061   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4062                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4063     exit (1);
4064   for (i = 0; i < pagesize; ++i)
4065     if (*(data + i) != *(data2 + i))
4066       exit (1);
4067
4068   /* Finally, make sure that changes to the mapped area do not
4069      percolate back to the file as seen by read().  (This is a bug on
4070      some variants of i386 svr4.0.)  */
4071   for (i = 0; i < pagesize; ++i)
4072     *(data2 + i) = *(data2 + i) + 1;
4073   data3 = (char *) malloc (pagesize);
4074   if (!data3)
4075     exit (1);
4076   if (read (fd, data3, pagesize) != pagesize)
4077     exit (1);
4078   for (i = 0; i < pagesize; ++i)
4079     if (*(data + i) != *(data3 + i))
4080       exit (1);
4081   close (fd);
4082   exit (0);
4083 }
4084 _ACEOF
4085 rm -f conftest$ac_exeext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4087   (eval $ac_link) 2>&5
4088   ac_status=$?
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092   (eval $ac_try) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; }; then
4096   ac_cv_func_mmap_fixed_mapped=yes
4097 else
4098   echo "$as_me: program exited with status $ac_status" >&5
4099 echo "$as_me: failed program was:" >&5
4100 cat conftest.$ac_ext >&5
4101 ( exit $ac_status )
4102 ac_cv_func_mmap_fixed_mapped=no
4103 fi
4104 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4105 fi
4106 fi
4107 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4108 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4109 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4110
4111 cat >>confdefs.h <<\_ACEOF
4112 #define HAVE_MMAP 1
4113 _ACEOF
4114
4115 fi
4116 rm -f conftest.mmap
4117
4118
4119     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
4120 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4121 if test "${ac_cv_gnu_library_2_1+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   cat >conftest.$ac_ext <<_ACEOF
4125 #line $LINENO "configure"
4126 #include "confdefs.h"
4127
4128 #include <features.h>
4129 #ifdef __GNU_LIBRARY__
4130  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4131   Lucky GNU user
4132  #endif
4133 #endif
4134
4135 _ACEOF
4136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
4138   ac_cv_gnu_library_2_1=yes
4139 else
4140   ac_cv_gnu_library_2_1=no
4141 fi
4142 rm -f conftest*
4143
4144
4145
4146 fi
4147 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
4148 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4149
4150     GLIBC21="$ac_cv_gnu_library_2_1"
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
4165 stdlib.h string.h unistd.h sys/param.h
4166 do
4167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4169   echo "$as_me:$LINENO: checking for $ac_header" >&5
4170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4172   echo $ECHO_N "(cached) $ECHO_C" >&6
4173 fi
4174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4176 else
4177   # Is the header compilable?
4178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4180 cat >conftest.$ac_ext <<_ACEOF
4181 #line $LINENO "configure"
4182 #include "confdefs.h"
4183 $ac_includes_default
4184 #include <$ac_header>
4185 _ACEOF
4186 rm -f conftest.$ac_objext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188   (eval $ac_compile) 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } &&
4192          { ac_try='test -s conftest.$ac_objext'
4193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194   (eval $ac_try) 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); }; }; then
4198   ac_header_compiler=yes
4199 else
4200   echo "$as_me: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4202 ac_header_compiler=no
4203 fi
4204 rm -f conftest.$ac_objext conftest.$ac_ext
4205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4206 echo "${ECHO_T}$ac_header_compiler" >&6
4207
4208 # Is the header present?
4209 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4211 cat >conftest.$ac_ext <<_ACEOF
4212 #line $LINENO "configure"
4213 #include "confdefs.h"
4214 #include <$ac_header>
4215 _ACEOF
4216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4218   ac_status=$?
4219   grep -v '^ *+' conftest.er1 >conftest.err
4220   rm -f conftest.er1
4221   cat conftest.err >&5
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } >/dev/null; then
4224   if test -s conftest.err; then
4225     ac_cpp_err=$ac_c_preproc_warn_flag
4226   else
4227     ac_cpp_err=
4228   fi
4229 else
4230   ac_cpp_err=yes
4231 fi
4232 if test -z "$ac_cpp_err"; then
4233   ac_header_preproc=yes
4234 else
4235   echo "$as_me: failed program was:" >&5
4236   cat conftest.$ac_ext >&5
4237   ac_header_preproc=no
4238 fi
4239 rm -f conftest.err conftest.$ac_ext
4240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4241 echo "${ECHO_T}$ac_header_preproc" >&6
4242
4243 # So?  What about this header?
4244 case $ac_header_compiler:$ac_header_preproc in
4245   yes:no )
4246     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4250   no:yes )
4251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4253     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4257 esac
4258 echo "$as_me:$LINENO: checking for $ac_header" >&5
4259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   eval "$as_ac_Header=$ac_header_preproc"
4264 fi
4265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4267
4268 fi
4269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4270   cat >>confdefs.h <<_ACEOF
4271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4272 _ACEOF
4273
4274 fi
4275
4276 done
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
4300 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
4301 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
4302 do
4303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4304 echo "$as_me:$LINENO: checking for $ac_func" >&5
4305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4306 if eval "test \"\${$as_ac_var+set}\" = set"; then
4307   echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309   cat >conftest.$ac_ext <<_ACEOF
4310 #line $LINENO "configure"
4311 #include "confdefs.h"
4312 /* System header to define __stub macros and hopefully few prototypes,
4313     which can conflict with char $ac_func (); below.  */
4314 #include <assert.h>
4315 /* Override any gcc2 internal prototype to avoid an error.  */
4316 #ifdef __cplusplus
4317 extern "C"
4318 #endif
4319 /* We use char because int might match the return type of a gcc2
4320    builtin and then its argument prototype would still apply.  */
4321 char $ac_func ();
4322 char (*f) ();
4323
4324 int
4325 main ()
4326 {
4327 /* The GNU C library defines this for functions which it implements
4328     to always fail with ENOSYS.  Some functions are actually named
4329     something starting with __ and the normal name is an alias.  */
4330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4331 choke me
4332 #else
4333 f = $ac_func;
4334 #endif
4335
4336   ;
4337   return 0;
4338 }
4339 _ACEOF
4340 rm -f conftest.$ac_objext conftest$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342   (eval $ac_link) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); } &&
4346          { ac_try='test -s conftest$ac_exeext'
4347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348   (eval $ac_try) 2>&5
4349   ac_status=$?
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); }; }; then
4352   eval "$as_ac_var=yes"
4353 else
4354   echo "$as_me: failed program was:" >&5
4355 cat conftest.$ac_ext >&5
4356 eval "$as_ac_var=no"
4357 fi
4358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4359 fi
4360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4362 if test `eval echo '${'$as_ac_var'}'` = yes; then
4363   cat >>confdefs.h <<_ACEOF
4364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4365 _ACEOF
4366
4367 fi
4368 done
4369
4370
4371
4372
4373
4374 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4375 if test "${with_libiconv_prefix+set}" = set; then
4376   withval="$with_libiconv_prefix"
4377
4378     for dir in `echo "$withval" | tr : ' '`; do
4379       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
4380       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
4381     done
4382
4383 fi;
4384
4385   echo "$as_me:$LINENO: checking for iconv" >&5
4386 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
4387 if test "${am_cv_func_iconv+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390
4391     am_cv_func_iconv="no, consider installing GNU libiconv"
4392     am_cv_lib_iconv=no
4393     cat >conftest.$ac_ext <<_ACEOF
4394 #line $LINENO "configure"
4395 #include "confdefs.h"
4396 #include <stdlib.h>
4397 #include <iconv.h>
4398 int
4399 main ()
4400 {
4401 iconv_t cd = iconv_open("","");
4402        iconv(cd,NULL,NULL,NULL,NULL);
4403        iconv_close(cd);
4404   ;
4405   return 0;
4406 }
4407 _ACEOF
4408 rm -f conftest.$ac_objext conftest$ac_exeext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4410   (eval $ac_link) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); } &&
4414          { ac_try='test -s conftest$ac_exeext'
4415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416   (eval $ac_try) 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }; }; then
4420   am_cv_func_iconv=yes
4421 else
4422   echo "$as_me: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 fi
4425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4426     if test "$am_cv_func_iconv" != yes; then
4427       am_save_LIBS="$LIBS"
4428       LIBS="$LIBS -liconv"
4429       cat >conftest.$ac_ext <<_ACEOF
4430 #line $LINENO "configure"
4431 #include "confdefs.h"
4432 #include <stdlib.h>
4433 #include <iconv.h>
4434 int
4435 main ()
4436 {
4437 iconv_t cd = iconv_open("","");
4438          iconv(cd,NULL,NULL,NULL,NULL);
4439          iconv_close(cd);
4440   ;
4441   return 0;
4442 }
4443 _ACEOF
4444 rm -f conftest.$ac_objext conftest$ac_exeext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4446   (eval $ac_link) 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); } &&
4450          { ac_try='test -s conftest$ac_exeext'
4451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452   (eval $ac_try) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; }; then
4456   am_cv_lib_iconv=yes
4457         am_cv_func_iconv=yes
4458 else
4459   echo "$as_me: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4461 fi
4462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4463       LIBS="$am_save_LIBS"
4464     fi
4465
4466 fi
4467 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4468 echo "${ECHO_T}$am_cv_func_iconv" >&6
4469   if test "$am_cv_func_iconv" = yes; then
4470
4471 cat >>confdefs.h <<\_ACEOF
4472 #define HAVE_ICONV 1
4473 _ACEOF
4474
4475     echo "$as_me:$LINENO: checking for iconv declaration" >&5
4476 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
4477     if test "${am_cv_proto_iconv+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480
4481       cat >conftest.$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4483 #include "confdefs.h"
4484
4485 #include <stdlib.h>
4486 #include <iconv.h>
4487 extern
4488 #ifdef __cplusplus
4489 "C"
4490 #endif
4491 #if defined(__STDC__) || defined(__cplusplus)
4492 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4493 #else
4494 size_t iconv();
4495 #endif
4496
4497 int
4498 main ()
4499 {
4500
4501   ;
4502   return 0;
4503 }
4504 _ACEOF
4505 rm -f conftest.$ac_objext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507   (eval $ac_compile) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); } &&
4511          { ac_try='test -s conftest.$ac_objext'
4512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513   (eval $ac_try) 2>&5
4514   ac_status=$?
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); }; }; then
4517   am_cv_proto_iconv_arg1=""
4518 else
4519   echo "$as_me: failed program was:" >&5
4520 cat conftest.$ac_ext >&5
4521 am_cv_proto_iconv_arg1="const"
4522 fi
4523 rm -f conftest.$ac_objext conftest.$ac_ext
4524       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);"
4525 fi
4526
4527     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4528     echo "$as_me:$LINENO: result: ${ac_t:-
4529          }$am_cv_proto_iconv" >&5
4530 echo "${ECHO_T}${ac_t:-
4531          }$am_cv_proto_iconv" >&6
4532
4533 cat >>confdefs.h <<_ACEOF
4534 #define ICONV_CONST $am_cv_proto_iconv_arg1
4535 _ACEOF
4536
4537   fi
4538   LIBICONV=
4539   if test "$am_cv_lib_iconv" = yes; then
4540     LIBICONV="-liconv"
4541   fi
4542
4543
4544
4545   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
4546 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4547 if test "${am_cv_langinfo_codeset+set}" = set; then
4548   echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550   cat >conftest.$ac_ext <<_ACEOF
4551 #line $LINENO "configure"
4552 #include "confdefs.h"
4553 #include <langinfo.h>
4554 int
4555 main ()
4556 {
4557 char* cs = nl_langinfo(CODESET);
4558   ;
4559   return 0;
4560 }
4561 _ACEOF
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4564   (eval $ac_link) 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); } &&
4568          { ac_try='test -s conftest$ac_exeext'
4569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570   (eval $ac_try) 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); }; }; then
4574   am_cv_langinfo_codeset=yes
4575 else
4576   echo "$as_me: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 am_cv_langinfo_codeset=no
4579 fi
4580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4581
4582 fi
4583 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
4584 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4585   if test $am_cv_langinfo_codeset = yes; then
4586
4587 cat >>confdefs.h <<\_ACEOF
4588 #define HAVE_LANGINFO_CODESET 1
4589 _ACEOF
4590
4591   fi
4592
4593    if test $ac_cv_header_locale_h = yes; then
4594     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4595 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4596 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   cat >conftest.$ac_ext <<_ACEOF
4600 #line $LINENO "configure"
4601 #include "confdefs.h"
4602 #include <locale.h>
4603 int
4604 main ()
4605 {
4606 return LC_MESSAGES
4607   ;
4608   return 0;
4609 }
4610 _ACEOF
4611 rm -f conftest.$ac_objext conftest$ac_exeext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4613   (eval $ac_link) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); } &&
4617          { ac_try='test -s conftest$ac_exeext'
4618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619   (eval $ac_try) 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); }; }; then
4623   am_cv_val_LC_MESSAGES=yes
4624 else
4625   echo "$as_me: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 am_cv_val_LC_MESSAGES=no
4628 fi
4629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4630 fi
4631 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4632 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4633     if test $am_cv_val_LC_MESSAGES = yes; then
4634
4635 cat >>confdefs.h <<\_ACEOF
4636 #define HAVE_LC_MESSAGES 1
4637 _ACEOF
4638
4639     fi
4640   fi
4641    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4642 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4643         # Check whether --enable-nls or --disable-nls was given.
4644 if test "${enable_nls+set}" = set; then
4645   enableval="$enable_nls"
4646   USE_NLS=$enableval
4647 else
4648   USE_NLS=yes
4649 fi;
4650     echo "$as_me:$LINENO: result: $USE_NLS" >&5
4651 echo "${ECHO_T}$USE_NLS" >&6
4652
4653
4654     BUILD_INCLUDED_LIBINTL=no
4655     USE_INCLUDED_LIBINTL=no
4656     INTLLIBS=
4657
4658         if test "$USE_NLS" = "yes"; then
4659
4660 cat >>confdefs.h <<\_ACEOF
4661 #define ENABLE_NLS 1
4662 _ACEOF
4663
4664       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4665 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4666
4667 # Check whether --with-included-gettext or --without-included-gettext was given.
4668 if test "${with_included_gettext+set}" = set; then
4669   withval="$with_included_gettext"
4670   nls_cv_force_use_gnu_gettext=$withval
4671 else
4672   nls_cv_force_use_gnu_gettext=no
4673 fi;
4674       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4675 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4676
4677       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4678       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4679                                 CATOBJEXT=NONE
4680
4681
4682
4683
4684         if test "${ac_cv_header_libintl_h+set}" = set; then
4685   echo "$as_me:$LINENO: checking for libintl.h" >&5
4686 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4687 if test "${ac_cv_header_libintl_h+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 fi
4690 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4691 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4692 else
4693   # Is the header compilable?
4694 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4695 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4696 cat >conftest.$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4698 #include "confdefs.h"
4699 $ac_includes_default
4700 #include <libintl.h>
4701 _ACEOF
4702 rm -f conftest.$ac_objext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704   (eval $ac_compile) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); } &&
4708          { ac_try='test -s conftest.$ac_objext'
4709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710   (eval $ac_try) 2>&5
4711   ac_status=$?
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); }; }; then
4714   ac_header_compiler=yes
4715 else
4716   echo "$as_me: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4718 ac_header_compiler=no
4719 fi
4720 rm -f conftest.$ac_objext conftest.$ac_ext
4721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4722 echo "${ECHO_T}$ac_header_compiler" >&6
4723
4724 # Is the header present?
4725 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4726 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4727 cat >conftest.$ac_ext <<_ACEOF
4728 #line $LINENO "configure"
4729 #include "confdefs.h"
4730 #include <libintl.h>
4731 _ACEOF
4732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4734   ac_status=$?
4735   grep -v '^ *+' conftest.er1 >conftest.err
4736   rm -f conftest.er1
4737   cat conftest.err >&5
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); } >/dev/null; then
4740   if test -s conftest.err; then
4741     ac_cpp_err=$ac_c_preproc_warn_flag
4742   else
4743     ac_cpp_err=
4744   fi
4745 else
4746   ac_cpp_err=yes
4747 fi
4748 if test -z "$ac_cpp_err"; then
4749   ac_header_preproc=yes
4750 else
4751   echo "$as_me: failed program was:" >&5
4752   cat conftest.$ac_ext >&5
4753   ac_header_preproc=no
4754 fi
4755 rm -f conftest.err conftest.$ac_ext
4756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4757 echo "${ECHO_T}$ac_header_preproc" >&6
4758
4759 # So?  What about this header?
4760 case $ac_header_compiler:$ac_header_preproc in
4761   yes:no )
4762     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4763 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4764     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4765 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4766   no:yes )
4767     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4768 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4769     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4770 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4771     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4772 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4773 esac
4774 echo "$as_me:$LINENO: checking for libintl.h" >&5
4775 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4776 if test "${ac_cv_header_libintl_h+set}" = set; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779   ac_cv_header_libintl_h=$ac_header_preproc
4780 fi
4781 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4782 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4783
4784 fi
4785 if test $ac_cv_header_libintl_h = yes; then
4786   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4787 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
4788 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   cat >conftest.$ac_ext <<_ACEOF
4792 #line $LINENO "configure"
4793 #include "confdefs.h"
4794 #include <libintl.h>
4795 extern int _nl_msg_cat_cntr;
4796 int
4797 main ()
4798 {
4799 bindtextdomain ("", "");
4800 return (int) gettext ("") + _nl_msg_cat_cntr
4801   ;
4802   return 0;
4803 }
4804 _ACEOF
4805 rm -f conftest.$ac_objext conftest$ac_exeext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4807   (eval $ac_link) 2>&5
4808   ac_status=$?
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); } &&
4811          { ac_try='test -s conftest$ac_exeext'
4812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813   (eval $ac_try) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; }; then
4817   gt_cv_func_gnugettext1_libc=yes
4818 else
4819   echo "$as_me: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 gt_cv_func_gnugettext1_libc=no
4822 fi
4823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4824 fi
4825 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4826 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
4827
4828            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4829              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4830 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4831 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834   gt_save_LIBS="$LIBS"
4835                 LIBS="$LIBS -lintl $LIBICONV"
4836                 cat >conftest.$ac_ext <<_ACEOF
4837 #line $LINENO "configure"
4838 #include "confdefs.h"
4839 #include <libintl.h>
4840 extern int _nl_msg_cat_cntr;
4841 int
4842 main ()
4843 {
4844 bindtextdomain ("", "");
4845 return (int) gettext ("") + _nl_msg_cat_cntr
4846   ;
4847   return 0;
4848 }
4849 _ACEOF
4850 rm -f conftest.$ac_objext conftest$ac_exeext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4852   (eval $ac_link) 2>&5
4853   ac_status=$?
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); } &&
4856          { ac_try='test -s conftest$ac_exeext'
4857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858   (eval $ac_try) 2>&5
4859   ac_status=$?
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); }; }; then
4862   gt_cv_func_gnugettext1_libintl=yes
4863 else
4864   echo "$as_me: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4866 gt_cv_func_gnugettext1_libintl=no
4867 fi
4868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4869                 LIBS="$gt_save_LIBS"
4870 fi
4871 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
4872 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
4873            fi
4874
4875                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4876               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4877                    && test "$PACKAGE" != gettext; }; then
4878
4879 cat >>confdefs.h <<\_ACEOF
4880 #define HAVE_GETTEXT 1
4881 _ACEOF
4882
4883
4884              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4885                                        INTLLIBS="-lintl $LIBICONV"
4886              fi
4887
4888              gt_save_LIBS="$LIBS"
4889              LIBS="$LIBS $INTLLIBS"
4890
4891 for ac_func in dcgettext
4892 do
4893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4894 echo "$as_me:$LINENO: checking for $ac_func" >&5
4895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4896 if eval "test \"\${$as_ac_var+set}\" = set"; then
4897   echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899   cat >conftest.$ac_ext <<_ACEOF
4900 #line $LINENO "configure"
4901 #include "confdefs.h"
4902 /* System header to define __stub macros and hopefully few prototypes,
4903     which can conflict with char $ac_func (); below.  */
4904 #include <assert.h>
4905 /* Override any gcc2 internal prototype to avoid an error.  */
4906 #ifdef __cplusplus
4907 extern "C"
4908 #endif
4909 /* We use char because int might match the return type of a gcc2
4910    builtin and then its argument prototype would still apply.  */
4911 char $ac_func ();
4912 char (*f) ();
4913
4914 int
4915 main ()
4916 {
4917 /* The GNU C library defines this for functions which it implements
4918     to always fail with ENOSYS.  Some functions are actually named
4919     something starting with __ and the normal name is an alias.  */
4920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4921 choke me
4922 #else
4923 f = $ac_func;
4924 #endif
4925
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   eval "$as_ac_var=yes"
4943 else
4944   echo "$as_me: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4946 eval "$as_ac_var=no"
4947 fi
4948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4949 fi
4950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4952 if test `eval echo '${'$as_ac_var'}'` = yes; then
4953   cat >>confdefs.h <<_ACEOF
4954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4955 _ACEOF
4956
4957 fi
4958 done
4959
4960              LIBS="$gt_save_LIBS"
4961
4962                      # Extract the first word of "msgfmt", so it can be a program name with args.
4963 set dummy msgfmt; ac_word=$2
4964 echo "$as_me:$LINENO: checking for $ac_word" >&5
4965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4966 if test "${ac_cv_path_MSGFMT+set}" = set; then
4967   echo $ECHO_N "(cached) $ECHO_C" >&6
4968 else
4969   case "$MSGFMT" in
4970   /*)
4971   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4972   ;;
4973   *)
4974   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4975   for ac_dir in $PATH; do
4976     test -z "$ac_dir" && ac_dir=.
4977     if test -f $ac_dir/$ac_word; then
4978       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
4979         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4980         break
4981       fi
4982     fi
4983   done
4984   IFS="$ac_save_ifs"
4985   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4986   ;;
4987 esac
4988 fi
4989 MSGFMT="$ac_cv_path_MSGFMT"
4990 if test "$MSGFMT" != ":"; then
4991   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4992 echo "${ECHO_T}$MSGFMT" >&6
4993 else
4994   echo "$as_me:$LINENO: result: no" >&5
4995 echo "${ECHO_T}no" >&6
4996 fi
4997
4998              # Extract the first word of "gmsgfmt", so it can be a program name with args.
4999 set dummy gmsgfmt; ac_word=$2
5000 echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5003   echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005   case $GMSGFMT in
5006   [\\/]* | ?:[\\/]*)
5007   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5008   ;;
5009   *)
5010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013   IFS=$as_save_IFS
5014   test -z "$as_dir" && as_dir=.
5015   for ac_exec_ext in '' $ac_executable_extensions; do
5016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019     break 2
5020   fi
5021 done
5022 done
5023
5024   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5025   ;;
5026 esac
5027 fi
5028 GMSGFMT=$ac_cv_path_GMSGFMT
5029
5030 if test -n "$GMSGFMT"; then
5031   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5032 echo "${ECHO_T}$GMSGFMT" >&6
5033 else
5034   echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5036 fi
5037
5038
5039                      # Extract the first word of "xgettext", so it can be a program name with args.
5040 set dummy xgettext; ac_word=$2
5041 echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5043 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5044   echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046   case "$XGETTEXT" in
5047   /*)
5048   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5049   ;;
5050   *)
5051   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5052   for ac_dir in $PATH; do
5053     test -z "$ac_dir" && ac_dir=.
5054     if test -f $ac_dir/$ac_word; then
5055       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
5056         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5057         break
5058       fi
5059     fi
5060   done
5061   IFS="$ac_save_ifs"
5062   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5063   ;;
5064 esac
5065 fi
5066 XGETTEXT="$ac_cv_path_XGETTEXT"
5067 if test "$XGETTEXT" != ":"; then
5068   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5069 echo "${ECHO_T}$XGETTEXT" >&6
5070 else
5071   echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6
5073 fi
5074
5075
5076              CATOBJEXT=.gmo
5077            fi
5078
5079 fi
5080
5081
5082
5083         if test "$CATOBJEXT" = "NONE"; then
5084                           nls_cv_use_gnu_gettext=yes
5085         fi
5086       fi
5087
5088       if test "$nls_cv_use_gnu_gettext" = "yes"; then
5089                 INTLOBJS="\$(GETTOBJS)"
5090         # Extract the first word of "msgfmt", so it can be a program name with args.
5091 set dummy msgfmt; ac_word=$2
5092 echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5094 if test "${ac_cv_path_MSGFMT+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097   case "$MSGFMT" in
5098   /*)
5099   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5100   ;;
5101   *)
5102   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5103   for ac_dir in $PATH; do
5104     test -z "$ac_dir" && ac_dir=.
5105     if test -f $ac_dir/$ac_word; then
5106       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
5107         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5108         break
5109       fi
5110     fi
5111   done
5112   IFS="$ac_save_ifs"
5113   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5114   ;;
5115 esac
5116 fi
5117 MSGFMT="$ac_cv_path_MSGFMT"
5118 if test "$MSGFMT" != ":"; then
5119   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5120 echo "${ECHO_T}$MSGFMT" >&6
5121 else
5122   echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6
5124 fi
5125
5126         # Extract the first word of "gmsgfmt", so it can be a program name with args.
5127 set dummy gmsgfmt; ac_word=$2
5128 echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5131   echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133   case $GMSGFMT in
5134   [\\/]* | ?:[\\/]*)
5135   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5136   ;;
5137   *)
5138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141   IFS=$as_save_IFS
5142   test -z "$as_dir" && as_dir=.
5143   for ac_exec_ext in '' $ac_executable_extensions; do
5144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147     break 2
5148   fi
5149 done
5150 done
5151
5152   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5153   ;;
5154 esac
5155 fi
5156 GMSGFMT=$ac_cv_path_GMSGFMT
5157
5158 if test -n "$GMSGFMT"; then
5159   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5160 echo "${ECHO_T}$GMSGFMT" >&6
5161 else
5162   echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5164 fi
5165
5166         # Extract the first word of "xgettext", so it can be a program name with args.
5167 set dummy xgettext; ac_word=$2
5168 echo "$as_me:$LINENO: checking for $ac_word" >&5
5169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5170 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   case "$XGETTEXT" in
5174   /*)
5175   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5176   ;;
5177   *)
5178   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5179   for ac_dir in $PATH; do
5180     test -z "$ac_dir" && ac_dir=.
5181     if test -f $ac_dir/$ac_word; then
5182       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
5183         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5184         break
5185       fi
5186     fi
5187   done
5188   IFS="$ac_save_ifs"
5189   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5190   ;;
5191 esac
5192 fi
5193 XGETTEXT="$ac_cv_path_XGETTEXT"
5194 if test "$XGETTEXT" != ":"; then
5195   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5196 echo "${ECHO_T}$XGETTEXT" >&6
5197 else
5198   echo "$as_me:$LINENO: result: no" >&5
5199 echo "${ECHO_T}no" >&6
5200 fi
5201
5202
5203         BUILD_INCLUDED_LIBINTL=yes
5204         USE_INCLUDED_LIBINTL=yes
5205         CATOBJEXT=.gmo
5206         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
5207         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
5208       fi
5209
5210                   if test "$GMSGFMT" != ":"; then
5211                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
5212           : ;
5213         else
5214           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
5215 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
5216           GMSGFMT=":"
5217         fi
5218       fi
5219
5220                   if test "$XGETTEXT" != ":"; then
5221                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
5222           : ;
5223         else
5224           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5225 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5226           XGETTEXT=":"
5227         fi
5228       fi
5229
5230             POSUB=po
5231     fi
5232               ac_config_commands="$ac_config_commands default-1"
5233
5234
5235
5236             if test "$PACKAGE" = gettext; then
5237       BUILD_INCLUDED_LIBINTL=yes
5238     fi
5239
5240                                             for ac_prog in bison
5241 do
5242   # Extract the first word of "$ac_prog", so it can be a program name with args.
5243 set dummy $ac_prog; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_INTLBISON+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   if test -n "$INTLBISON"; then
5250   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257   for ac_exec_ext in '' $ac_executable_extensions; do
5258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259     ac_cv_prog_INTLBISON="$ac_prog"
5260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261     break 2
5262   fi
5263 done
5264 done
5265
5266 fi
5267 fi
5268 INTLBISON=$ac_cv_prog_INTLBISON
5269 if test -n "$INTLBISON"; then
5270   echo "$as_me:$LINENO: result: $INTLBISON" >&5
5271 echo "${ECHO_T}$INTLBISON" >&6
5272 else
5273   echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5275 fi
5276
5277   test -n "$INTLBISON" && break
5278 done
5279
5280     if test -z "$INTLBISON"; then
5281       ac_verc_fail=yes
5282     else
5283             echo "$as_me:$LINENO: checking version of bison" >&5
5284 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
5285       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5286       case $ac_prog_version in
5287         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5288         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5289            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5290         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5291       esac
5292       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5293 echo "${ECHO_T}$ac_prog_version" >&6
5294     fi
5295     if test $ac_verc_fail = yes; then
5296       INTLBISON=:
5297     fi
5298
5299                 for lang in $ALL_LINGUAS; do
5300       GMOFILES="$GMOFILES $lang.gmo"
5301       POFILES="$POFILES $lang.po"
5302     done
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314         nls_cv_header_intl=
5315     nls_cv_header_libgt=
5316
5317         DATADIRNAME=share
5318
5319
5320         INSTOBJEXT=.mo
5321
5322
5323         GENCAT=gencat
5324
5325
5326
5327    if test "x$CATOBJEXT" != "x"; then
5328      if test "x$ALL_LINGUAS" = "x"; then
5329        LINGUAS=
5330      else
5331        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5332 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5333        NEW_LINGUAS=
5334        for presentlang in $ALL_LINGUAS; do
5335          useit=no
5336          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
5337            # Use the presentlang catalog if desiredlang is
5338            #   a. equal to presentlang, or
5339            #   b. a variant of presentlang (because in this case,
5340            #      presentlang can be used as a fallback for messages
5341            #      which are not translated in the desiredlang catalog).
5342            case "$desiredlang" in
5343              "$presentlang"*) useit=yes;;
5344            esac
5345          done
5346          if test $useit = yes; then
5347            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5348          fi
5349        done
5350        LINGUAS=$NEW_LINGUAS
5351        echo "$as_me:$LINENO: result: $LINGUAS" >&5
5352 echo "${ECHO_T}$LINGUAS" >&6
5353      fi
5354
5355           if test -n "$LINGUAS"; then
5356        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5357      fi
5358    fi
5359
5360             MKINSTALLDIRS=
5361    if test -n "$ac_aux_dir"; then
5362      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5363    fi
5364    if test -z "$MKINSTALLDIRS"; then
5365      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5366    fi
5367
5368
5369       INTL_LIBTOOL_SUFFIX_PREFIX=
5370
5371
5372
5373 # Find a good install program.  We prefer a C program (faster),
5374 # so one script is as good as another.  But avoid the broken or
5375 # incompatible versions:
5376 # SysV /etc/install, /usr/sbin/install
5377 # SunOS /usr/etc/install
5378 # IRIX /sbin/install
5379 # AIX /bin/install
5380 # AmigaOS /C/install, which installs bootblocks on floppy discs
5381 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5382 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5383 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5384 # ./install, which can be erroneously created by make from ./install.sh.
5385 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5386 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5387 if test -z "$INSTALL"; then
5388 if test "${ac_cv_path_install+set}" = set; then
5389   echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394   IFS=$as_save_IFS
5395   test -z "$as_dir" && as_dir=.
5396   # Account for people who put trailing slashes in PATH elements.
5397 case $as_dir/ in
5398   ./ | .// | /cC/* | \
5399   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5400   /usr/ucb/* ) ;;
5401   *)
5402     # OSF1 and SCO ODT 3.0 have their own names for install.
5403     # Don't use installbsd from OSF since it installs stuff as root
5404     # by default.
5405     for ac_prog in ginstall scoinst install; do
5406       for ac_exec_ext in '' $ac_executable_extensions; do
5407         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5408           if test $ac_prog = install &&
5409             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5410             # AIX install.  It has an incompatible calling convention.
5411             :
5412           elif test $ac_prog = install &&
5413             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5414             # program-specific install script used by HP pwplus--don't use.
5415             :
5416           else
5417             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5418             break 3
5419           fi
5420         fi
5421       done
5422     done
5423     ;;
5424 esac
5425 done
5426
5427
5428 fi
5429   if test "${ac_cv_path_install+set}" = set; then
5430     INSTALL=$ac_cv_path_install
5431   else
5432     # As a last resort, use the slow shell script.  We don't cache a
5433     # path for INSTALL within a source directory, because that will
5434     # break other packages using the cache if that directory is
5435     # removed, or if the path is relative.
5436     INSTALL=$ac_install_sh
5437   fi
5438 fi
5439 echo "$as_me:$LINENO: result: $INSTALL" >&5
5440 echo "${ECHO_T}$INSTALL" >&6
5441
5442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5443 # It thinks the first close brace ends the variable substitution.
5444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5445
5446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5447
5448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5449
5450
5451 case x"${target_os}" in
5452   x)
5453     SYS=unknown
5454     ;;
5455   xlinux*)
5456     SYS=linux
5457     ;;
5458   xbsdi*)
5459     SYS=bsdi
5460     save_CFLAGS="${save_CFLAGS} -pthread"
5461     dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
5462     vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
5463     ;;
5464   x*bsd*)
5465     SYS="${target_os}"
5466     save_CFLAGS="${save_CFLAGS} -pthread"
5467     ;;
5468   xdarwin*)
5469     SYS=darwin
5470     save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
5471     ;;
5472   x*mingw32*)
5473     SYS=mingw32
5474     if test -n "$ac_tool_prefix"; then
5475   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5476 set dummy ${ac_tool_prefix}windres; ac_word=$2
5477 echo "$as_me:$LINENO: checking for $ac_word" >&5
5478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5479 if test "${ac_cv_prog_WINDRES+set}" = set; then
5480   echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482   if test -n "$WINDRES"; then
5483   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5487 do
5488   IFS=$as_save_IFS
5489   test -z "$as_dir" && as_dir=.
5490   for ac_exec_ext in '' $ac_executable_extensions; do
5491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494     break 2
5495   fi
5496 done
5497 done
5498
5499 fi
5500 fi
5501 WINDRES=$ac_cv_prog_WINDRES
5502 if test -n "$WINDRES"; then
5503   echo "$as_me:$LINENO: result: $WINDRES" >&5
5504 echo "${ECHO_T}$WINDRES" >&6
5505 else
5506   echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5508 fi
5509
5510 fi
5511 if test -z "$ac_cv_prog_WINDRES"; then
5512   ac_ct_WINDRES=$WINDRES
5513   # Extract the first word of "windres", so it can be a program name with args.
5514 set dummy windres; ac_word=$2
5515 echo "$as_me:$LINENO: checking for $ac_word" >&5
5516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5517 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5518   echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520   if test -n "$ac_ct_WINDRES"; then
5521   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526   IFS=$as_save_IFS
5527   test -z "$as_dir" && as_dir=.
5528   for ac_exec_ext in '' $ac_executable_extensions; do
5529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530     ac_cv_prog_ac_ct_WINDRES="windres"
5531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5532     break 2
5533   fi
5534 done
5535 done
5536
5537   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
5538 fi
5539 fi
5540 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5541 if test -n "$ac_ct_WINDRES"; then
5542   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5543 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5544 else
5545   echo "$as_me:$LINENO: result: no" >&5
5546 echo "${ECHO_T}no" >&6
5547 fi
5548
5549   WINDRES=$ac_ct_WINDRES
5550 else
5551   WINDRES="$ac_cv_prog_WINDRES"
5552 fi
5553
5554     save_CFLAGS="${save_CFLAGS} -D_OFF_T_ -D_off_t=long"
5555     vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
5556     vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
5557     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
5558     ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
5559     http_LDFLAGS="${http_LDFLAGS} -lws2_32"
5560     rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
5561     ;;
5562   x*nto*)
5563     SYS=nto
5564     x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
5565     xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
5566     ;;
5567   xbeos)
5568     SYS=beos
5569     save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
5570     vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
5571     plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
5572     beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker -ltranslation -lstdc++.r4"
5573     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
5574     ;;
5575   x*)
5576     SYS="${target_os}"
5577     ;;
5578 esac
5579
5580 if test x"${SYS}" != xmingw32; then
5581   plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
5582 fi
5583
5584 if test x$SYS = xmingw32
5585 then
5586     echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
5587 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6
5588 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
5589   echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591   ac_check_lib_save_LIBS=$LIBS
5592 LIBS="-lmingwex  $LIBS"
5593 cat >conftest.$ac_ext <<_ACEOF
5594 #line $LINENO "configure"
5595 #include "confdefs.h"
5596
5597 /* Override any gcc2 internal prototype to avoid an error.  */
5598 #ifdef __cplusplus
5599 extern "C"
5600 #endif
5601 /* We use char because int might match the return type of a gcc2
5602    builtin and then its argument prototype would still apply.  */
5603 char opendir ();
5604 int
5605 main ()
5606 {
5607 opendir ();
5608   ;
5609   return 0;
5610 }
5611 _ACEOF
5612 rm -f conftest.$ac_objext conftest$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614   (eval $ac_link) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); } &&
5618          { ac_try='test -s conftest$ac_exeext'
5619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620   (eval $ac_try) 2>&5
5621   ac_status=$?
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); }; }; then
5624   ac_cv_lib_mingwex_opendir=yes
5625 else
5626   echo "$as_me: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5628 ac_cv_lib_mingwex_opendir=no
5629 fi
5630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5631 LIBS=$ac_check_lib_save_LIBS
5632 fi
5633 echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
5634 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6
5635 if test $ac_cv_lib_mingwex_opendir = yes; then
5636   echo "$as_me:$LINENO: checking for opendir in -lmingw32" >&5
5637 echo $ECHO_N "checking for opendir in -lmingw32... $ECHO_C" >&6
5638 if test "${ac_cv_lib_mingw32_opendir+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   ac_check_lib_save_LIBS=$LIBS
5642 LIBS="-lmingw32  $LIBS"
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5645 #include "confdefs.h"
5646
5647 /* Override any gcc2 internal prototype to avoid an error.  */
5648 #ifdef __cplusplus
5649 extern "C"
5650 #endif
5651 /* We use char because int might match the return type of a gcc2
5652    builtin and then its argument prototype would still apply.  */
5653 char opendir ();
5654 int
5655 main ()
5656 {
5657 opendir ();
5658   ;
5659   return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664   (eval $ac_link) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } &&
5668          { ac_try='test -s conftest$ac_exeext'
5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670   (eval $ac_try) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; }; then
5674   ac_cv_lib_mingw32_opendir=yes
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 ac_cv_lib_mingw32_opendir=no
5679 fi
5680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5681 LIBS=$ac_check_lib_save_LIBS
5682 fi
5683 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_opendir" >&5
5684 echo "${ECHO_T}$ac_cv_lib_mingw32_opendir" >&6
5685 if test $ac_cv_lib_mingw32_opendir = yes; then
5686   vlc_LDFLAGS="${vlc_LDFLAGS}"
5687 else
5688   vlc_LDFLAGS="${vlc_LDFLAGS} -lmingwex"
5689              gtk_LDFLAGS="${gtk_LDFLAGS} -lmingwex"
5690 fi
5691
5692
5693 fi
5694
5695 fi
5696
5697 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
5714 do
5715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5716 echo "$as_me:$LINENO: checking for $ac_func" >&5
5717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5718 if eval "test \"\${$as_ac_var+set}\" = set"; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   cat >conftest.$ac_ext <<_ACEOF
5722 #line $LINENO "configure"
5723 #include "confdefs.h"
5724 /* System header to define __stub macros and hopefully few prototypes,
5725     which can conflict with char $ac_func (); below.  */
5726 #include <assert.h>
5727 /* Override any gcc2 internal prototype to avoid an error.  */
5728 #ifdef __cplusplus
5729 extern "C"
5730 #endif
5731 /* We use char because int might match the return type of a gcc2
5732    builtin and then its argument prototype would still apply.  */
5733 char $ac_func ();
5734 char (*f) ();
5735
5736 int
5737 main ()
5738 {
5739 /* The GNU C library defines this for functions which it implements
5740     to always fail with ENOSYS.  Some functions are actually named
5741     something starting with __ and the normal name is an alias.  */
5742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5743 choke me
5744 #else
5745 f = $ac_func;
5746 #endif
5747
5748   ;
5749   return 0;
5750 }
5751 _ACEOF
5752 rm -f conftest.$ac_objext conftest$ac_exeext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754   (eval $ac_link) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); } &&
5758          { ac_try='test -s conftest$ac_exeext'
5759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760   (eval $ac_try) 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); }; }; then
5764   eval "$as_ac_var=yes"
5765 else
5766   echo "$as_me: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
5768 eval "$as_ac_var=no"
5769 fi
5770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5771 fi
5772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5774 if test `eval echo '${'$as_ac_var'}'` = yes; then
5775   cat >>confdefs.h <<_ACEOF
5776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5777 _ACEOF
5778
5779 fi
5780 done
5781
5782
5783 echo "$as_me:$LINENO: checking for connect" >&5
5784 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5785 if test "${ac_cv_func_connect+set}" = set; then
5786   echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788   cat >conftest.$ac_ext <<_ACEOF
5789 #line $LINENO "configure"
5790 #include "confdefs.h"
5791 /* System header to define __stub macros and hopefully few prototypes,
5792     which can conflict with char connect (); below.  */
5793 #include <assert.h>
5794 /* Override any gcc2 internal prototype to avoid an error.  */
5795 #ifdef __cplusplus
5796 extern "C"
5797 #endif
5798 /* We use char because int might match the return type of a gcc2
5799    builtin and then its argument prototype would still apply.  */
5800 char connect ();
5801 char (*f) ();
5802
5803 int
5804 main ()
5805 {
5806 /* The GNU C library defines this for functions which it implements
5807     to always fail with ENOSYS.  Some functions are actually named
5808     something starting with __ and the normal name is an alias.  */
5809 #if defined (__stub_connect) || defined (__stub___connect)
5810 choke me
5811 #else
5812 f = connect;
5813 #endif
5814
5815   ;
5816   return 0;
5817 }
5818 _ACEOF
5819 rm -f conftest.$ac_objext conftest$ac_exeext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5821   (eval $ac_link) 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); } &&
5825          { ac_try='test -s conftest$ac_exeext'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; }; then
5831   ac_cv_func_connect=yes
5832 else
5833   echo "$as_me: failed program was:" >&5
5834 cat conftest.$ac_ext >&5
5835 ac_cv_func_connect=no
5836 fi
5837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5838 fi
5839 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5840 echo "${ECHO_T}$ac_cv_func_connect" >&6
5841 if test $ac_cv_func_connect = yes; then
5842   :
5843 else
5844
5845   echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5846 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5847 if test "${ac_cv_lib_socket_connect+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   ac_check_lib_save_LIBS=$LIBS
5851 LIBS="-lsocket  $LIBS"
5852 cat >conftest.$ac_ext <<_ACEOF
5853 #line $LINENO "configure"
5854 #include "confdefs.h"
5855
5856 /* Override any gcc2 internal prototype to avoid an error.  */
5857 #ifdef __cplusplus
5858 extern "C"
5859 #endif
5860 /* We use char because int might match the return type of a gcc2
5861    builtin and then its argument prototype would still apply.  */
5862 char connect ();
5863 int
5864 main ()
5865 {
5866 connect ();
5867   ;
5868   return 0;
5869 }
5870 _ACEOF
5871 rm -f conftest.$ac_objext conftest$ac_exeext
5872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5873   (eval $ac_link) 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); } &&
5877          { ac_try='test -s conftest$ac_exeext'
5878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879   (eval $ac_try) 2>&5
5880   ac_status=$?
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); }; }; then
5883   ac_cv_lib_socket_connect=yes
5884 else
5885   echo "$as_me: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5887 ac_cv_lib_socket_connect=no
5888 fi
5889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5891 fi
5892 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5893 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5894 if test $ac_cv_lib_socket_connect = yes; then
5895   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
5896     vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
5897
5898 fi
5899
5900 fi
5901
5902 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5903 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5904 if test "${ac_cv_func_gethostbyname+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   cat >conftest.$ac_ext <<_ACEOF
5908 #line $LINENO "configure"
5909 #include "confdefs.h"
5910 /* System header to define __stub macros and hopefully few prototypes,
5911     which can conflict with char gethostbyname (); below.  */
5912 #include <assert.h>
5913 /* Override any gcc2 internal prototype to avoid an error.  */
5914 #ifdef __cplusplus
5915 extern "C"
5916 #endif
5917 /* We use char because int might match the return type of a gcc2
5918    builtin and then its argument prototype would still apply.  */
5919 char gethostbyname ();
5920 char (*f) ();
5921
5922 int
5923 main ()
5924 {
5925 /* The GNU C library defines this for functions which it implements
5926     to always fail with ENOSYS.  Some functions are actually named
5927     something starting with __ and the normal name is an alias.  */
5928 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5929 choke me
5930 #else
5931 f = gethostbyname;
5932 #endif
5933
5934   ;
5935   return 0;
5936 }
5937 _ACEOF
5938 rm -f conftest.$ac_objext conftest$ac_exeext
5939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5940   (eval $ac_link) 2>&5
5941   ac_status=$?
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); } &&
5944          { ac_try='test -s conftest$ac_exeext'
5945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946   (eval $ac_try) 2>&5
5947   ac_status=$?
5948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); }; }; then
5950   ac_cv_func_gethostbyname=yes
5951 else
5952   echo "$as_me: failed program was:" >&5
5953 cat conftest.$ac_ext >&5
5954 ac_cv_func_gethostbyname=no
5955 fi
5956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5957 fi
5958 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5959 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5960 if test $ac_cv_func_gethostbyname = yes; then
5961   :
5962 else
5963
5964   echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5965 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5966 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   ac_check_lib_save_LIBS=$LIBS
5970 LIBS="-lnsl  $LIBS"
5971 cat >conftest.$ac_ext <<_ACEOF
5972 #line $LINENO "configure"
5973 #include "confdefs.h"
5974
5975 /* Override any gcc2 internal prototype to avoid an error.  */
5976 #ifdef __cplusplus
5977 extern "C"
5978 #endif
5979 /* We use char because int might match the return type of a gcc2
5980    builtin and then its argument prototype would still apply.  */
5981 char gethostbyname ();
5982 int
5983 main ()
5984 {
5985 gethostbyname ();
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992   (eval $ac_link) 2>&5
5993   ac_status=$?
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); } &&
5996          { ac_try='test -s conftest$ac_exeext'
5997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998   (eval $ac_try) 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; }; then
6002   ac_cv_lib_nsl_gethostbyname=yes
6003 else
6004   echo "$as_me: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6006 ac_cv_lib_nsl_gethostbyname=no
6007 fi
6008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6009 LIBS=$ac_check_lib_save_LIBS
6010 fi
6011 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6012 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6013 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6014   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
6015 fi
6016
6017
6018 fi
6019
6020 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6021 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6022 if test "${ac_cv_func_gethostbyname+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   cat >conftest.$ac_ext <<_ACEOF
6026 #line $LINENO "configure"
6027 #include "confdefs.h"
6028 /* System header to define __stub macros and hopefully few prototypes,
6029     which can conflict with char gethostbyname (); below.  */
6030 #include <assert.h>
6031 /* Override any gcc2 internal prototype to avoid an error.  */
6032 #ifdef __cplusplus
6033 extern "C"
6034 #endif
6035 /* We use char because int might match the return type of a gcc2
6036    builtin and then its argument prototype would still apply.  */
6037 char gethostbyname ();
6038 char (*f) ();
6039
6040 int
6041 main ()
6042 {
6043 /* The GNU C library defines this for functions which it implements
6044     to always fail with ENOSYS.  Some functions are actually named
6045     something starting with __ and the normal name is an alias.  */
6046 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6047 choke me
6048 #else
6049 f = gethostbyname;
6050 #endif
6051
6052   ;
6053   return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058   (eval $ac_link) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); } &&
6062          { ac_try='test -s conftest$ac_exeext'
6063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064   (eval $ac_try) 2>&5
6065   ac_status=$?
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); }; }; then
6068   ac_cv_func_gethostbyname=yes
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6072 ac_cv_func_gethostbyname=no
6073 fi
6074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6075 fi
6076 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6077 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6078 if test $ac_cv_func_gethostbyname = yes; then
6079   :
6080 else
6081
6082   echo "$as_me:$LINENO: checking for gethostbyname in -lbind" >&5
6083 echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6
6084 if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
6085   echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087   ac_check_lib_save_LIBS=$LIBS
6088 LIBS="-lbind  $LIBS"
6089 cat >conftest.$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6091 #include "confdefs.h"
6092
6093 /* Override any gcc2 internal prototype to avoid an error.  */
6094 #ifdef __cplusplus
6095 extern "C"
6096 #endif
6097 /* We use char because int might match the return type of a gcc2
6098    builtin and then its argument prototype would still apply.  */
6099 char gethostbyname ();
6100 int
6101 main ()
6102 {
6103 gethostbyname ();
6104   ;
6105   return 0;
6106 }
6107 _ACEOF
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110   (eval $ac_link) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } &&
6114          { ac_try='test -s conftest$ac_exeext'
6115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116   (eval $ac_try) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; }; then
6120   ac_cv_lib_bind_gethostbyname=yes
6121 else
6122   echo "$as_me: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6124 ac_cv_lib_bind_gethostbyname=no
6125 fi
6126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6127 LIBS=$ac_check_lib_save_LIBS
6128 fi
6129 echo "$as_me:$LINENO: result: $ac_cv_lib_bind_gethostbyname" >&5
6130 echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6
6131 if test $ac_cv_lib_bind_gethostbyname = yes; then
6132   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
6133 fi
6134
6135
6136 fi
6137
6138 have_nanosleep=0
6139 echo "$as_me:$LINENO: checking for nanosleep" >&5
6140 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
6141 if test "${ac_cv_func_nanosleep+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6146 #include "confdefs.h"
6147 /* System header to define __stub macros and hopefully few prototypes,
6148     which can conflict with char nanosleep (); below.  */
6149 #include <assert.h>
6150 /* Override any gcc2 internal prototype to avoid an error.  */
6151 #ifdef __cplusplus
6152 extern "C"
6153 #endif
6154 /* We use char because int might match the return type of a gcc2
6155    builtin and then its argument prototype would still apply.  */
6156 char nanosleep ();
6157 char (*f) ();
6158
6159 int
6160 main ()
6161 {
6162 /* The GNU C library defines this for functions which it implements
6163     to always fail with ENOSYS.  Some functions are actually named
6164     something starting with __ and the normal name is an alias.  */
6165 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
6166 choke me
6167 #else
6168 f = nanosleep;
6169 #endif
6170
6171   ;
6172   return 0;
6173 }
6174 _ACEOF
6175 rm -f conftest.$ac_objext conftest$ac_exeext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6177   (eval $ac_link) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } &&
6181          { ac_try='test -s conftest$ac_exeext'
6182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183   (eval $ac_try) 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; }; then
6187   ac_cv_func_nanosleep=yes
6188 else
6189   echo "$as_me: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6191 ac_cv_func_nanosleep=no
6192 fi
6193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6194 fi
6195 echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
6196 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
6197 if test $ac_cv_func_nanosleep = yes; then
6198   have_nanosleep=1
6199 else
6200
6201   echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
6202 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
6203 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206   ac_check_lib_save_LIBS=$LIBS
6207 LIBS="-lrt  $LIBS"
6208 cat >conftest.$ac_ext <<_ACEOF
6209 #line $LINENO "configure"
6210 #include "confdefs.h"
6211
6212 /* Override any gcc2 internal prototype to avoid an error.  */
6213 #ifdef __cplusplus
6214 extern "C"
6215 #endif
6216 /* We use char because int might match the return type of a gcc2
6217    builtin and then its argument prototype would still apply.  */
6218 char nanosleep ();
6219 int
6220 main ()
6221 {
6222 nanosleep ();
6223   ;
6224   return 0;
6225 }
6226 _ACEOF
6227 rm -f conftest.$ac_objext conftest$ac_exeext
6228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6229   (eval $ac_link) 2>&5
6230   ac_status=$?
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); } &&
6233          { ac_try='test -s conftest$ac_exeext'
6234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235   (eval $ac_try) 2>&5
6236   ac_status=$?
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); }; }; then
6239   ac_cv_lib_rt_nanosleep=yes
6240 else
6241   echo "$as_me: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6243 ac_cv_lib_rt_nanosleep=no
6244 fi
6245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6246 LIBS=$ac_check_lib_save_LIBS
6247 fi
6248 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
6249 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
6250 if test $ac_cv_lib_rt_nanosleep = yes; then
6251   vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
6252 else
6253   echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
6254 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
6255 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
6256   echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258   ac_check_lib_save_LIBS=$LIBS
6259 LIBS="-lposix4  $LIBS"
6260 cat >conftest.$ac_ext <<_ACEOF
6261 #line $LINENO "configure"
6262 #include "confdefs.h"
6263
6264 /* Override any gcc2 internal prototype to avoid an error.  */
6265 #ifdef __cplusplus
6266 extern "C"
6267 #endif
6268 /* We use char because int might match the return type of a gcc2
6269    builtin and then its argument prototype would still apply.  */
6270 char nanosleep ();
6271 int
6272 main ()
6273 {
6274 nanosleep ();
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281   (eval $ac_link) 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); } &&
6285          { ac_try='test -s conftest$ac_exeext'
6286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287   (eval $ac_try) 2>&5
6288   ac_status=$?
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); }; }; then
6291   ac_cv_lib_posix4_nanosleep=yes
6292 else
6293   echo "$as_me: failed program was:" >&5
6294 cat conftest.$ac_ext >&5
6295 ac_cv_lib_posix4_nanosleep=no
6296 fi
6297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6298 LIBS=$ac_check_lib_save_LIBS
6299 fi
6300 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
6301 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
6302 if test $ac_cv_lib_posix4_nanosleep = yes; then
6303   vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
6304 fi
6305
6306
6307 fi
6308
6309
6310 fi
6311
6312 if test x$have_nanosleep = x1; then
6313
6314 cat >>confdefs.h <<\_ACEOF
6315 #define HAVE_NANOSLEEP 1
6316 _ACEOF
6317
6318 fi
6319 echo "$as_me:$LINENO: checking for inet_aton" >&5
6320 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
6321 if test "${ac_cv_func_inet_aton+set}" = set; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 #include "confdefs.h"
6327 /* System header to define __stub macros and hopefully few prototypes,
6328     which can conflict with char inet_aton (); below.  */
6329 #include <assert.h>
6330 /* Override any gcc2 internal prototype to avoid an error.  */
6331 #ifdef __cplusplus
6332 extern "C"
6333 #endif
6334 /* We use char because int might match the return type of a gcc2
6335    builtin and then its argument prototype would still apply.  */
6336 char inet_aton ();
6337 char (*f) ();
6338
6339 int
6340 main ()
6341 {
6342 /* The GNU C library defines this for functions which it implements
6343     to always fail with ENOSYS.  Some functions are actually named
6344     something starting with __ and the normal name is an alias.  */
6345 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6346 choke me
6347 #else
6348 f = inet_aton;
6349 #endif
6350
6351   ;
6352   return 0;
6353 }
6354 _ACEOF
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357   (eval $ac_link) 2>&5
6358   ac_status=$?
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } &&
6361          { ac_try='test -s conftest$ac_exeext'
6362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363   (eval $ac_try) 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); }; }; then
6367   ac_cv_func_inet_aton=yes
6368 else
6369   echo "$as_me: failed program was:" >&5
6370 cat conftest.$ac_ext >&5
6371 ac_cv_func_inet_aton=no
6372 fi
6373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6374 fi
6375 echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
6376 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
6377 if test $ac_cv_func_inet_aton = yes; then
6378   :
6379 else
6380
6381   echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6382 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6383 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   ac_check_lib_save_LIBS=$LIBS
6387 LIBS="-lresolv  $LIBS"
6388 cat >conftest.$ac_ext <<_ACEOF
6389 #line $LINENO "configure"
6390 #include "confdefs.h"
6391
6392 /* Override any gcc2 internal prototype to avoid an error.  */
6393 #ifdef __cplusplus
6394 extern "C"
6395 #endif
6396 /* We use char because int might match the return type of a gcc2
6397    builtin and then its argument prototype would still apply.  */
6398 char inet_aton ();
6399 int
6400 main ()
6401 {
6402 inet_aton ();
6403   ;
6404   return 0;
6405 }
6406 _ACEOF
6407 rm -f conftest.$ac_objext conftest$ac_exeext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6409   (eval $ac_link) 2>&5
6410   ac_status=$?
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); } &&
6413          { ac_try='test -s conftest$ac_exeext'
6414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415   (eval $ac_try) 2>&5
6416   ac_status=$?
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); }; }; then
6419   ac_cv_lib_resolv_inet_aton=yes
6420 else
6421   echo "$as_me: failed program was:" >&5
6422 cat conftest.$ac_ext >&5
6423 ac_cv_lib_resolv_inet_aton=no
6424 fi
6425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6426 LIBS=$ac_check_lib_save_LIBS
6427 fi
6428 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6429 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6430 if test $ac_cv_lib_resolv_inet_aton = yes; then
6431   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
6432 fi
6433
6434
6435 fi
6436
6437 echo "$as_me:$LINENO: checking for textdomain" >&5
6438 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
6439 if test "${ac_cv_func_textdomain+set}" = set; then
6440   echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442   cat >conftest.$ac_ext <<_ACEOF
6443 #line $LINENO "configure"
6444 #include "confdefs.h"
6445 /* System header to define __stub macros and hopefully few prototypes,
6446     which can conflict with char textdomain (); below.  */
6447 #include <assert.h>
6448 /* Override any gcc2 internal prototype to avoid an error.  */
6449 #ifdef __cplusplus
6450 extern "C"
6451 #endif
6452 /* We use char because int might match the return type of a gcc2
6453    builtin and then its argument prototype would still apply.  */
6454 char textdomain ();
6455 char (*f) ();
6456
6457 int
6458 main ()
6459 {
6460 /* The GNU C library defines this for functions which it implements
6461     to always fail with ENOSYS.  Some functions are actually named
6462     something starting with __ and the normal name is an alias.  */
6463 #if defined (__stub_textdomain) || defined (__stub___textdomain)
6464 choke me
6465 #else
6466 f = textdomain;
6467 #endif
6468
6469   ;
6470   return 0;
6471 }
6472 _ACEOF
6473 rm -f conftest.$ac_objext conftest$ac_exeext
6474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6475   (eval $ac_link) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); } &&
6479          { ac_try='test -s conftest$ac_exeext'
6480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481   (eval $ac_try) 2>&5
6482   ac_status=$?
6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); }; }; then
6485   ac_cv_func_textdomain=yes
6486 else
6487   echo "$as_me: failed program was:" >&5
6488 cat conftest.$ac_ext >&5
6489 ac_cv_func_textdomain=no
6490 fi
6491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6492 fi
6493 echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
6494 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
6495 if test $ac_cv_func_textdomain = yes; then
6496   :
6497 else
6498
6499   echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
6500 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
6501 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   ac_check_lib_save_LIBS=$LIBS
6505 LIBS="-lintl  $LIBS"
6506 cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6508 #include "confdefs.h"
6509
6510 /* Override any gcc2 internal prototype to avoid an error.  */
6511 #ifdef __cplusplus
6512 extern "C"
6513 #endif
6514 /* We use char because int might match the return type of a gcc2
6515    builtin and then its argument prototype would still apply.  */
6516 char textdomain ();
6517 int
6518 main ()
6519 {
6520 textdomain ();
6521   ;
6522   return 0;
6523 }
6524 _ACEOF
6525 rm -f conftest.$ac_objext conftest$ac_exeext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6527   (eval $ac_link) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); } &&
6531          { ac_try='test -s conftest$ac_exeext'
6532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533   (eval $ac_try) 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); }; }; then
6537   ac_cv_lib_intl_textdomain=yes
6538 else
6539   echo "$as_me: failed program was:" >&5
6540 cat conftest.$ac_ext >&5
6541 ac_cv_lib_intl_textdomain=no
6542 fi
6543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6544 LIBS=$ac_check_lib_save_LIBS
6545 fi
6546 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
6547 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
6548 if test $ac_cv_lib_intl_textdomain = yes; then
6549   save_LDFLAGS="${save_LDFLAGS} -lintl"
6550 fi
6551
6552
6553 fi
6554
6555
6556 NEED_GETOPT=0
6557 echo "$as_me:$LINENO: checking for getopt_long" >&5
6558 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
6559 if test "${ac_cv_func_getopt_long+set}" = set; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   cat >conftest.$ac_ext <<_ACEOF
6563 #line $LINENO "configure"
6564 #include "confdefs.h"
6565 /* System header to define __stub macros and hopefully few prototypes,
6566     which can conflict with char getopt_long (); below.  */
6567 #include <assert.h>
6568 /* Override any gcc2 internal prototype to avoid an error.  */
6569 #ifdef __cplusplus
6570 extern "C"
6571 #endif
6572 /* We use char because int might match the return type of a gcc2
6573    builtin and then its argument prototype would still apply.  */
6574 char getopt_long ();
6575 char (*f) ();
6576
6577 int
6578 main ()
6579 {
6580 /* The GNU C library defines this for functions which it implements
6581     to always fail with ENOSYS.  Some functions are actually named
6582     something starting with __ and the normal name is an alias.  */
6583 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
6584 choke me
6585 #else
6586 f = getopt_long;
6587 #endif
6588
6589   ;
6590   return 0;
6591 }
6592 _ACEOF
6593 rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595   (eval $ac_link) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } &&
6599          { ac_try='test -s conftest$ac_exeext'
6600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601   (eval $ac_try) 2>&5
6602   ac_status=$?
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); }; }; then
6605   ac_cv_func_getopt_long=yes
6606 else
6607   echo "$as_me: failed program was:" >&5
6608 cat conftest.$ac_ext >&5
6609 ac_cv_func_getopt_long=no
6610 fi
6611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6612 fi
6613 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
6614 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
6615 if test $ac_cv_func_getopt_long = yes; then
6616
6617 cat >>confdefs.h <<\_ACEOF
6618 #define HAVE_GETOPT_LONG 1
6619 _ACEOF
6620
6621 else
6622    # FreeBSD has a gnugetopt library for this:
6623   echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
6624 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
6625 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   ac_check_lib_save_LIBS=$LIBS
6629 LIBS="-lgnugetopt  $LIBS"
6630 cat >conftest.$ac_ext <<_ACEOF
6631 #line $LINENO "configure"
6632 #include "confdefs.h"
6633
6634 /* Override any gcc2 internal prototype to avoid an error.  */
6635 #ifdef __cplusplus
6636 extern "C"
6637 #endif
6638 /* We use char because int might match the return type of a gcc2
6639    builtin and then its argument prototype would still apply.  */
6640 char getopt_long ();
6641 int
6642 main ()
6643 {
6644 getopt_long ();
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_lib_gnugetopt_getopt_long=yes
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6665 ac_cv_lib_gnugetopt_getopt_long=no
6666 fi
6667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6668 LIBS=$ac_check_lib_save_LIBS
6669 fi
6670 echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
6671 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
6672 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
6673
6674 cat >>confdefs.h <<\_ACEOF
6675 #define HAVE_GETOPT_LONG 1
6676 _ACEOF
6677  vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
6678 else
6679   NEED_GETOPT=1
6680 fi
6681
6682 fi
6683
6684
6685 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6686 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6687 if test "${ac_cv_type_signal+set}" = set; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690   cat >conftest.$ac_ext <<_ACEOF
6691 #line $LINENO "configure"
6692 #include "confdefs.h"
6693 #include <sys/types.h>
6694 #include <signal.h>
6695 #ifdef signal
6696 # undef signal
6697 #endif
6698 #ifdef __cplusplus
6699 extern "C" void (*signal (int, void (*)(int)))(int);
6700 #else
6701 void (*signal ()) ();
6702 #endif
6703
6704 int
6705 main ()
6706 {
6707 int i;
6708   ;
6709   return 0;
6710 }
6711 _ACEOF
6712 rm -f conftest.$ac_objext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6714   (eval $ac_compile) 2>&5
6715   ac_status=$?
6716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717   (exit $ac_status); } &&
6718          { ac_try='test -s conftest.$ac_objext'
6719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720   (eval $ac_try) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }; }; then
6724   ac_cv_type_signal=void
6725 else
6726   echo "$as_me: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6728 ac_cv_type_signal=int
6729 fi
6730 rm -f conftest.$ac_objext conftest.$ac_ext
6731 fi
6732 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6733 echo "${ECHO_T}$ac_cv_type_signal" >&6
6734
6735 cat >>confdefs.h <<_ACEOF
6736 #define RETSIGTYPE $ac_cv_type_signal
6737 _ACEOF
6738
6739
6740 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6741 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6742 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6743   echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745   ac_check_lib_save_LIBS=$LIBS
6746 LIBS="-ldl  $LIBS"
6747 cat >conftest.$ac_ext <<_ACEOF
6748 #line $LINENO "configure"
6749 #include "confdefs.h"
6750
6751 /* Override any gcc2 internal prototype to avoid an error.  */
6752 #ifdef __cplusplus
6753 extern "C"
6754 #endif
6755 /* We use char because int might match the return type of a gcc2
6756    builtin and then its argument prototype would still apply.  */
6757 char dlopen ();
6758 int
6759 main ()
6760 {
6761 dlopen ();
6762   ;
6763   return 0;
6764 }
6765 _ACEOF
6766 rm -f conftest.$ac_objext conftest$ac_exeext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6768   (eval $ac_link) 2>&5
6769   ac_status=$?
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); } &&
6772          { ac_try='test -s conftest$ac_exeext'
6773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774   (eval $ac_try) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); }; }; then
6778   ac_cv_lib_dl_dlopen=yes
6779 else
6780   echo "$as_me: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6782 ac_cv_lib_dl_dlopen=no
6783 fi
6784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6785 LIBS=$ac_check_lib_save_LIBS
6786 fi
6787 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6788 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6789 if test $ac_cv_lib_dl_dlopen = yes; then
6790   vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
6791 fi
6792
6793 echo "$as_me:$LINENO: checking for cos in -lm" >&5
6794 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
6795 if test "${ac_cv_lib_m_cos+set}" = set; then
6796   echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798   ac_check_lib_save_LIBS=$LIBS
6799 LIBS="-lm  $LIBS"
6800 cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6802 #include "confdefs.h"
6803
6804 /* Override any gcc2 internal prototype to avoid an error.  */
6805 #ifdef __cplusplus
6806 extern "C"
6807 #endif
6808 /* We use char because int might match the return type of a gcc2
6809    builtin and then its argument prototype would still apply.  */
6810 char cos ();
6811 int
6812 main ()
6813 {
6814 cos ();
6815   ;
6816   return 0;
6817 }
6818 _ACEOF
6819 rm -f conftest.$ac_objext conftest$ac_exeext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6821   (eval $ac_link) 2>&5
6822   ac_status=$?
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); } &&
6825          { ac_try='test -s conftest$ac_exeext'
6826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827   (eval $ac_try) 2>&5
6828   ac_status=$?
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); }; }; then
6831   ac_cv_lib_m_cos=yes
6832 else
6833   echo "$as_me: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6835 ac_cv_lib_m_cos=no
6836 fi
6837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6838 LIBS=$ac_check_lib_save_LIBS
6839 fi
6840 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
6841 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
6842 if test $ac_cv_lib_m_cos = yes; then
6843   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
6844   filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
6845 fi
6846
6847 echo "$as_me:$LINENO: checking for pow in -lm" >&5
6848 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
6849 if test "${ac_cv_lib_m_pow+set}" = set; then
6850   echo $ECHO_N "(cached) $ECHO_C" >&6
6851 else
6852   ac_check_lib_save_LIBS=$LIBS
6853 LIBS="-lm  $LIBS"
6854 cat >conftest.$ac_ext <<_ACEOF
6855 #line $LINENO "configure"
6856 #include "confdefs.h"
6857
6858 /* Override any gcc2 internal prototype to avoid an error.  */
6859 #ifdef __cplusplus
6860 extern "C"
6861 #endif
6862 /* We use char because int might match the return type of a gcc2
6863    builtin and then its argument prototype would still apply.  */
6864 char pow ();
6865 int
6866 main ()
6867 {
6868 pow ();
6869   ;
6870   return 0;
6871 }
6872 _ACEOF
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875   (eval $ac_link) 2>&5
6876   ac_status=$?
6877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); } &&
6879          { ac_try='test -s conftest$ac_exeext'
6880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881   (eval $ac_try) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); }; }; then
6885   ac_cv_lib_m_pow=yes
6886 else
6887   echo "$as_me: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6889 ac_cv_lib_m_pow=no
6890 fi
6891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6892 LIBS=$ac_check_lib_save_LIBS
6893 fi
6894 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
6895 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
6896 if test $ac_cv_lib_m_pow = yes; then
6897   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
6898   imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
6899   imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
6900   chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
6901
6902 fi
6903
6904
6905 THREAD_LIB=error
6906 if test "x${THREAD_LIB}" = xerror; then
6907   echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
6908 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
6909 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   ac_check_lib_save_LIBS=$LIBS
6913 LIBS="-lpthread  $LIBS"
6914 cat >conftest.$ac_ext <<_ACEOF
6915 #line $LINENO "configure"
6916 #include "confdefs.h"
6917
6918 /* Override any gcc2 internal prototype to avoid an error.  */
6919 #ifdef __cplusplus
6920 extern "C"
6921 #endif
6922 /* We use char because int might match the return type of a gcc2
6923    builtin and then its argument prototype would still apply.  */
6924 char pthread_attr_init ();
6925 int
6926 main ()
6927 {
6928 pthread_attr_init ();
6929   ;
6930   return 0;
6931 }
6932 _ACEOF
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6935   (eval $ac_link) 2>&5
6936   ac_status=$?
6937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938   (exit $ac_status); } &&
6939          { ac_try='test -s conftest$ac_exeext'
6940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941   (eval $ac_try) 2>&5
6942   ac_status=$?
6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944   (exit $ac_status); }; }; then
6945   ac_cv_lib_pthread_pthread_attr_init=yes
6946 else
6947   echo "$as_me: failed program was:" >&5
6948 cat conftest.$ac_ext >&5
6949 ac_cv_lib_pthread_pthread_attr_init=no
6950 fi
6951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6952 LIBS=$ac_check_lib_save_LIBS
6953 fi
6954 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
6955 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
6956 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
6957   THREAD_LIB="-lpthread"
6958 fi
6959
6960 fi
6961 if test "x${THREAD_LIB}" = xerror; then
6962   echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthreads" >&5
6963 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
6964 if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   ac_check_lib_save_LIBS=$LIBS
6968 LIBS="-lpthreads  $LIBS"
6969 cat >conftest.$ac_ext <<_ACEOF
6970 #line $LINENO "configure"
6971 #include "confdefs.h"
6972
6973 /* Override any gcc2 internal prototype to avoid an error.  */
6974 #ifdef __cplusplus
6975 extern "C"
6976 #endif
6977 /* We use char because int might match the return type of a gcc2
6978    builtin and then its argument prototype would still apply.  */
6979 char pthread_attr_init ();
6980 int
6981 main ()
6982 {
6983 pthread_attr_init ();
6984   ;
6985   return 0;
6986 }
6987 _ACEOF
6988 rm -f conftest.$ac_objext conftest$ac_exeext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990   (eval $ac_link) 2>&5
6991   ac_status=$?
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); } &&
6994          { ac_try='test -s conftest$ac_exeext'
6995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996   (eval $ac_try) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); }; }; then
7000   ac_cv_lib_pthreads_pthread_attr_init=yes
7001 else
7002   echo "$as_me: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7004 ac_cv_lib_pthreads_pthread_attr_init=no
7005 fi
7006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7007 LIBS=$ac_check_lib_save_LIBS
7008 fi
7009 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
7010 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
7011 if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
7012   THREAD_LIB="-lpthreads"
7013 fi
7014
7015 fi
7016 if test "x${THREAD_LIB}" = xerror; then
7017   echo "$as_me:$LINENO: checking for pthread_attr_init in -lc_r" >&5
7018 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6
7019 if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022   ac_check_lib_save_LIBS=$LIBS
7023 LIBS="-lc_r  $LIBS"
7024 cat >conftest.$ac_ext <<_ACEOF
7025 #line $LINENO "configure"
7026 #include "confdefs.h"
7027
7028 /* Override any gcc2 internal prototype to avoid an error.  */
7029 #ifdef __cplusplus
7030 extern "C"
7031 #endif
7032 /* We use char because int might match the return type of a gcc2
7033    builtin and then its argument prototype would still apply.  */
7034 char pthread_attr_init ();
7035 int
7036 main ()
7037 {
7038 pthread_attr_init ();
7039   ;
7040   return 0;
7041 }
7042 _ACEOF
7043 rm -f conftest.$ac_objext conftest$ac_exeext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045   (eval $ac_link) 2>&5
7046   ac_status=$?
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); } &&
7049          { ac_try='test -s conftest$ac_exeext'
7050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051   (eval $ac_try) 2>&5
7052   ac_status=$?
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); }; }; then
7055   ac_cv_lib_c_r_pthread_attr_init=yes
7056 else
7057   echo "$as_me: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7059 ac_cv_lib_c_r_pthread_attr_init=no
7060 fi
7061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7062 LIBS=$ac_check_lib_save_LIBS
7063 fi
7064 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
7065 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6
7066 if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
7067   THREAD_LIB="-lc_r"
7068 fi
7069
7070 fi
7071 if test "x${THREAD_LIB}" = xerror; then
7072   echo "$as_me:$LINENO: checking for pthread_attr_init" >&5
7073 echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6
7074 if test "${ac_cv_func_pthread_attr_init+set}" = set; then
7075   echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077   cat >conftest.$ac_ext <<_ACEOF
7078 #line $LINENO "configure"
7079 #include "confdefs.h"
7080 /* System header to define __stub macros and hopefully few prototypes,
7081     which can conflict with char pthread_attr_init (); below.  */
7082 #include <assert.h>
7083 /* Override any gcc2 internal prototype to avoid an error.  */
7084 #ifdef __cplusplus
7085 extern "C"
7086 #endif
7087 /* We use char because int might match the return type of a gcc2
7088    builtin and then its argument prototype would still apply.  */
7089 char pthread_attr_init ();
7090 char (*f) ();
7091
7092 int
7093 main ()
7094 {
7095 /* The GNU C library defines this for functions which it implements
7096     to always fail with ENOSYS.  Some functions are actually named
7097     something starting with __ and the normal name is an alias.  */
7098 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
7099 choke me
7100 #else
7101 f = pthread_attr_init;
7102 #endif
7103
7104   ;
7105   return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext conftest$ac_exeext
7109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7110   (eval $ac_link) 2>&5
7111   ac_status=$?
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } &&
7114          { ac_try='test -s conftest$ac_exeext'
7115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116   (eval $ac_try) 2>&5
7117   ac_status=$?
7118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119   (exit $ac_status); }; }; then
7120   ac_cv_func_pthread_attr_init=yes
7121 else
7122   echo "$as_me: failed program was:" >&5
7123 cat conftest.$ac_ext >&5
7124 ac_cv_func_pthread_attr_init=no
7125 fi
7126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7127 fi
7128 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_init" >&5
7129 echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6
7130
7131   THREAD_LIB=""
7132 fi
7133
7134 echo "$as_me:$LINENO: checking for cthread_fork in -lthreads" >&5
7135 echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
7136 if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   ac_check_lib_save_LIBS=$LIBS
7140 LIBS="-lthreads  $LIBS"
7141 cat >conftest.$ac_ext <<_ACEOF
7142 #line $LINENO "configure"
7143 #include "confdefs.h"
7144
7145 /* Override any gcc2 internal prototype to avoid an error.  */
7146 #ifdef __cplusplus
7147 extern "C"
7148 #endif
7149 /* We use char because int might match the return type of a gcc2
7150    builtin and then its argument prototype would still apply.  */
7151 char cthread_fork ();
7152 int
7153 main ()
7154 {
7155 cthread_fork ();
7156   ;
7157   return 0;
7158 }
7159 _ACEOF
7160 rm -f conftest.$ac_objext conftest$ac_exeext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7162   (eval $ac_link) 2>&5
7163   ac_status=$?
7164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); } &&
7166          { ac_try='test -s conftest$ac_exeext'
7167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168   (eval $ac_try) 2>&5
7169   ac_status=$?
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); }; }; then
7172   ac_cv_lib_threads_cthread_fork=yes
7173 else
7174   echo "$as_me: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7176 ac_cv_lib_threads_cthread_fork=no
7177 fi
7178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7179 LIBS=$ac_check_lib_save_LIBS
7180 fi
7181 echo "$as_me:$LINENO: result: $ac_cv_lib_threads_cthread_fork" >&5
7182 echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6
7183 if test $ac_cv_lib_threads_cthread_fork = yes; then
7184   THREAD_LIB="-lthreads"
7185 fi
7186
7187
7188 cat >conftest.$ac_ext <<_ACEOF
7189 #line $LINENO "configure"
7190 #include "confdefs.h"
7191 #include <pthread.h>
7192
7193 _ACEOF
7194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7195   $EGREP "pthread_cond_t" >/dev/null 2>&1; then
7196
7197
7198 cat >>confdefs.h <<\_ACEOF
7199 #define PTHREAD_COND_T_IN_PTHREAD_H 1
7200 _ACEOF
7201
7202 fi
7203 rm -f conftest*
7204
7205 cat >conftest.$ac_ext <<_ACEOF
7206 #line $LINENO "configure"
7207 #include "confdefs.h"
7208 #include <strings.h>
7209
7210 _ACEOF
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212   $EGREP "strncasecmp" >/dev/null 2>&1; then
7213
7214
7215 cat >>confdefs.h <<\_ACEOF
7216 #define STRNCASECMP_IN_STRINGS_H 1
7217 _ACEOF
7218
7219 fi
7220 rm -f conftest*
7221
7222
7223
7224
7225
7226
7227
7228 for ac_header in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
7229 do
7230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7232   echo "$as_me:$LINENO: checking for $ac_header" >&5
7233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 fi
7237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7239 else
7240   # Is the header compilable?
7241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7243 cat >conftest.$ac_ext <<_ACEOF
7244 #line $LINENO "configure"
7245 #include "confdefs.h"
7246 $ac_includes_default
7247 #include <$ac_header>
7248 _ACEOF
7249 rm -f conftest.$ac_objext
7250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7251   (eval $ac_compile) 2>&5
7252   ac_status=$?
7253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); } &&
7255          { ac_try='test -s conftest.$ac_objext'
7256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257   (eval $ac_try) 2>&5
7258   ac_status=$?
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); }; }; then
7261   ac_header_compiler=yes
7262 else
7263   echo "$as_me: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7265 ac_header_compiler=no
7266 fi
7267 rm -f conftest.$ac_objext conftest.$ac_ext
7268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7269 echo "${ECHO_T}$ac_header_compiler" >&6
7270
7271 # Is the header present?
7272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7274 cat >conftest.$ac_ext <<_ACEOF
7275 #line $LINENO "configure"
7276 #include "confdefs.h"
7277 #include <$ac_header>
7278 _ACEOF
7279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7281   ac_status=$?
7282   grep -v '^ *+' conftest.er1 >conftest.err
7283   rm -f conftest.er1
7284   cat conftest.err >&5
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); } >/dev/null; then
7287   if test -s conftest.err; then
7288     ac_cpp_err=$ac_c_preproc_warn_flag
7289   else
7290     ac_cpp_err=
7291   fi
7292 else
7293   ac_cpp_err=yes
7294 fi
7295 if test -z "$ac_cpp_err"; then
7296   ac_header_preproc=yes
7297 else
7298   echo "$as_me: failed program was:" >&5
7299   cat conftest.$ac_ext >&5
7300   ac_header_preproc=no
7301 fi
7302 rm -f conftest.err conftest.$ac_ext
7303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7304 echo "${ECHO_T}$ac_header_preproc" >&6
7305
7306 # So?  What about this header?
7307 case $ac_header_compiler:$ac_header_preproc in
7308   yes:no )
7309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7313   no:yes )
7314     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7316     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7320 esac
7321 echo "$as_me:$LINENO: checking for $ac_header" >&5
7322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7324   echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326   eval "$as_ac_Header=$ac_header_preproc"
7327 fi
7328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7330
7331 fi
7332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7333   cat >>confdefs.h <<_ACEOF
7334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7335 _ACEOF
7336
7337 fi
7338
7339 done
7340
7341
7342
7343
7344
7345
7346 for ac_header in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
7347 do
7348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7350   echo "$as_me:$LINENO: checking for $ac_header" >&5
7351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 fi
7355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7357 else
7358   # Is the header compilable?
7359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7361 cat >conftest.$ac_ext <<_ACEOF
7362 #line $LINENO "configure"
7363 #include "confdefs.h"
7364 $ac_includes_default
7365 #include <$ac_header>
7366 _ACEOF
7367 rm -f conftest.$ac_objext
7368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7369   (eval $ac_compile) 2>&5
7370   ac_status=$?
7371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372   (exit $ac_status); } &&
7373          { ac_try='test -s conftest.$ac_objext'
7374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375   (eval $ac_try) 2>&5
7376   ac_status=$?
7377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378   (exit $ac_status); }; }; then
7379   ac_header_compiler=yes
7380 else
7381   echo "$as_me: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7383 ac_header_compiler=no
7384 fi
7385 rm -f conftest.$ac_objext conftest.$ac_ext
7386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7387 echo "${ECHO_T}$ac_header_compiler" >&6
7388
7389 # Is the header present?
7390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7392 cat >conftest.$ac_ext <<_ACEOF
7393 #line $LINENO "configure"
7394 #include "confdefs.h"
7395 #include <$ac_header>
7396 _ACEOF
7397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7399   ac_status=$?
7400   grep -v '^ *+' conftest.er1 >conftest.err
7401   rm -f conftest.er1
7402   cat conftest.err >&5
7403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404   (exit $ac_status); } >/dev/null; then
7405   if test -s conftest.err; then
7406     ac_cpp_err=$ac_c_preproc_warn_flag
7407   else
7408     ac_cpp_err=
7409   fi
7410 else
7411   ac_cpp_err=yes
7412 fi
7413 if test -z "$ac_cpp_err"; then
7414   ac_header_preproc=yes
7415 else
7416   echo "$as_me: failed program was:" >&5
7417   cat conftest.$ac_ext >&5
7418   ac_header_preproc=no
7419 fi
7420 rm -f conftest.err conftest.$ac_ext
7421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7422 echo "${ECHO_T}$ac_header_preproc" >&6
7423
7424 # So?  What about this header?
7425 case $ac_header_compiler:$ac_header_preproc in
7426   yes:no )
7427     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7431   no:yes )
7432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7434     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7438 esac
7439 echo "$as_me:$LINENO: checking for $ac_header" >&5
7440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   eval "$as_ac_Header=$ac_header_preproc"
7445 fi
7446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7448
7449 fi
7450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7451   cat >>confdefs.h <<_ACEOF
7452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7453 _ACEOF
7454
7455 fi
7456
7457 done
7458
7459
7460
7461 for ac_header in dlfcn.h image.h
7462 do
7463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7465   echo "$as_me:$LINENO: checking for $ac_header" >&5
7466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 fi
7470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7472 else
7473   # Is the header compilable?
7474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7476 cat >conftest.$ac_ext <<_ACEOF
7477 #line $LINENO "configure"
7478 #include "confdefs.h"
7479 $ac_includes_default
7480 #include <$ac_header>
7481 _ACEOF
7482 rm -f conftest.$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484   (eval $ac_compile) 2>&5
7485   ac_status=$?
7486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); } &&
7488          { ac_try='test -s conftest.$ac_objext'
7489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490   (eval $ac_try) 2>&5
7491   ac_status=$?
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); }; }; then
7494   ac_header_compiler=yes
7495 else
7496   echo "$as_me: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7498 ac_header_compiler=no
7499 fi
7500 rm -f conftest.$ac_objext conftest.$ac_ext
7501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7502 echo "${ECHO_T}$ac_header_compiler" >&6
7503
7504 # Is the header present?
7505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7507 cat >conftest.$ac_ext <<_ACEOF
7508 #line $LINENO "configure"
7509 #include "confdefs.h"
7510 #include <$ac_header>
7511 _ACEOF
7512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7514   ac_status=$?
7515   grep -v '^ *+' conftest.er1 >conftest.err
7516   rm -f conftest.er1
7517   cat conftest.err >&5
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); } >/dev/null; then
7520   if test -s conftest.err; then
7521     ac_cpp_err=$ac_c_preproc_warn_flag
7522   else
7523     ac_cpp_err=
7524   fi
7525 else
7526   ac_cpp_err=yes
7527 fi
7528 if test -z "$ac_cpp_err"; then
7529   ac_header_preproc=yes
7530 else
7531   echo "$as_me: failed program was:" >&5
7532   cat conftest.$ac_ext >&5
7533   ac_header_preproc=no
7534 fi
7535 rm -f conftest.err conftest.$ac_ext
7536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7537 echo "${ECHO_T}$ac_header_preproc" >&6
7538
7539 # So?  What about this header?
7540 case $ac_header_compiler:$ac_header_preproc in
7541   yes:no )
7542     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7546   no:yes )
7547     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7549     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7553 esac
7554 echo "$as_me:$LINENO: checking for $ac_header" >&5
7555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   eval "$as_ac_Header=$ac_header_preproc"
7560 fi
7561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7563
7564 fi
7565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7566   cat >>confdefs.h <<_ACEOF
7567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7568 _ACEOF
7569
7570 fi
7571
7572 done
7573
7574
7575
7576
7577
7578 for ac_header in arpa/inet.h net/if.h netinet/in.h sys/socket.h
7579 do
7580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7582   echo "$as_me:$LINENO: checking for $ac_header" >&5
7583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7585   echo $ECHO_N "(cached) $ECHO_C" >&6
7586 fi
7587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7589 else
7590   # Is the header compilable?
7591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7593 cat >conftest.$ac_ext <<_ACEOF
7594 #line $LINENO "configure"
7595 #include "confdefs.h"
7596 $ac_includes_default
7597 #include <$ac_header>
7598 _ACEOF
7599 rm -f conftest.$ac_objext
7600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601   (eval $ac_compile) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); } &&
7605          { ac_try='test -s conftest.$ac_objext'
7606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607   (eval $ac_try) 2>&5
7608   ac_status=$?
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); }; }; then
7611   ac_header_compiler=yes
7612 else
7613   echo "$as_me: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7615 ac_header_compiler=no
7616 fi
7617 rm -f conftest.$ac_objext conftest.$ac_ext
7618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7619 echo "${ECHO_T}$ac_header_compiler" >&6
7620
7621 # Is the header present?
7622 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7624 cat >conftest.$ac_ext <<_ACEOF
7625 #line $LINENO "configure"
7626 #include "confdefs.h"
7627 #include <$ac_header>
7628 _ACEOF
7629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7630   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7631   ac_status=$?
7632   grep -v '^ *+' conftest.er1 >conftest.err
7633   rm -f conftest.er1
7634   cat conftest.err >&5
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); } >/dev/null; then
7637   if test -s conftest.err; then
7638     ac_cpp_err=$ac_c_preproc_warn_flag
7639   else
7640     ac_cpp_err=
7641   fi
7642 else
7643   ac_cpp_err=yes
7644 fi
7645 if test -z "$ac_cpp_err"; then
7646   ac_header_preproc=yes
7647 else
7648   echo "$as_me: failed program was:" >&5
7649   cat conftest.$ac_ext >&5
7650   ac_header_preproc=no
7651 fi
7652 rm -f conftest.err conftest.$ac_ext
7653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7654 echo "${ECHO_T}$ac_header_preproc" >&6
7655
7656 # So?  What about this header?
7657 case $ac_header_compiler:$ac_header_preproc in
7658   yes:no )
7659     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7663   no:yes )
7664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7666     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7670 esac
7671 echo "$as_me:$LINENO: checking for $ac_header" >&5
7672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   eval "$as_ac_Header=$ac_header_preproc"
7677 fi
7678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7680
7681 fi
7682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7683   cat >>confdefs.h <<_ACEOF
7684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7685 _ACEOF
7686
7687 fi
7688
7689 done
7690
7691
7692
7693 for ac_header in machine/param.h sys/shm.h
7694 do
7695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7697   echo "$as_me:$LINENO: checking for $ac_header" >&5
7698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 fi
7702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7704 else
7705   # Is the header compilable?
7706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7709 #line $LINENO "configure"
7710 #include "confdefs.h"
7711 $ac_includes_default
7712 #include <$ac_header>
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7716   (eval $ac_compile) 2>&5
7717   ac_status=$?
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); } &&
7720          { ac_try='test -s conftest.$ac_objext'
7721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722   (eval $ac_try) 2>&5
7723   ac_status=$?
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); }; }; then
7726   ac_header_compiler=yes
7727 else
7728   echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 ac_header_compiler=no
7731 fi
7732 rm -f conftest.$ac_objext conftest.$ac_ext
7733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7734 echo "${ECHO_T}$ac_header_compiler" >&6
7735
7736 # Is the header present?
7737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7739 cat >conftest.$ac_ext <<_ACEOF
7740 #line $LINENO "configure"
7741 #include "confdefs.h"
7742 #include <$ac_header>
7743 _ACEOF
7744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7746   ac_status=$?
7747   grep -v '^ *+' conftest.er1 >conftest.err
7748   rm -f conftest.er1
7749   cat conftest.err >&5
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } >/dev/null; then
7752   if test -s conftest.err; then
7753     ac_cpp_err=$ac_c_preproc_warn_flag
7754   else
7755     ac_cpp_err=
7756   fi
7757 else
7758   ac_cpp_err=yes
7759 fi
7760 if test -z "$ac_cpp_err"; then
7761   ac_header_preproc=yes
7762 else
7763   echo "$as_me: failed program was:" >&5
7764   cat conftest.$ac_ext >&5
7765   ac_header_preproc=no
7766 fi
7767 rm -f conftest.err conftest.$ac_ext
7768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7769 echo "${ECHO_T}$ac_header_preproc" >&6
7770
7771 # So?  What about this header?
7772 case $ac_header_compiler:$ac_header_preproc in
7773   yes:no )
7774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7778   no:yes )
7779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7781     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7785 esac
7786 echo "$as_me:$LINENO: checking for $ac_header" >&5
7787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791   eval "$as_ac_Header=$ac_header_preproc"
7792 fi
7793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7795
7796 fi
7797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7798   cat >>confdefs.h <<_ACEOF
7799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7800 _ACEOF
7801
7802 fi
7803
7804 done
7805
7806
7807 for ac_header in linux/version.h
7808 do
7809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7811   echo "$as_me:$LINENO: checking for $ac_header" >&5
7812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7814   echo $ECHO_N "(cached) $ECHO_C" >&6
7815 fi
7816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7818 else
7819   # Is the header compilable?
7820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7822 cat >conftest.$ac_ext <<_ACEOF
7823 #line $LINENO "configure"
7824 #include "confdefs.h"
7825 $ac_includes_default
7826 #include <$ac_header>
7827 _ACEOF
7828 rm -f conftest.$ac_objext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7830   (eval $ac_compile) 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); } &&
7834          { ac_try='test -s conftest.$ac_objext'
7835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836   (eval $ac_try) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; }; then
7840   ac_header_compiler=yes
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 cat conftest.$ac_ext >&5
7844 ac_header_compiler=no
7845 fi
7846 rm -f conftest.$ac_objext conftest.$ac_ext
7847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7848 echo "${ECHO_T}$ac_header_compiler" >&6
7849
7850 # Is the header present?
7851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7853 cat >conftest.$ac_ext <<_ACEOF
7854 #line $LINENO "configure"
7855 #include "confdefs.h"
7856 #include <$ac_header>
7857 _ACEOF
7858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7859   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7860   ac_status=$?
7861   grep -v '^ *+' conftest.er1 >conftest.err
7862   rm -f conftest.er1
7863   cat conftest.err >&5
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); } >/dev/null; then
7866   if test -s conftest.err; then
7867     ac_cpp_err=$ac_c_preproc_warn_flag
7868   else
7869     ac_cpp_err=
7870   fi
7871 else
7872   ac_cpp_err=yes
7873 fi
7874 if test -z "$ac_cpp_err"; then
7875   ac_header_preproc=yes
7876 else
7877   echo "$as_me: failed program was:" >&5
7878   cat conftest.$ac_ext >&5
7879   ac_header_preproc=no
7880 fi
7881 rm -f conftest.err conftest.$ac_ext
7882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7883 echo "${ECHO_T}$ac_header_preproc" >&6
7884
7885 # So?  What about this header?
7886 case $ac_header_compiler:$ac_header_preproc in
7887   yes:no )
7888     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7892   no:yes )
7893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7895     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7899 esac
7900 echo "$as_me:$LINENO: checking for $ac_header" >&5
7901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7903   echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905   eval "$as_ac_Header=$ac_header_preproc"
7906 fi
7907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7909
7910 fi
7911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7912   cat >>confdefs.h <<_ACEOF
7913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7914 _ACEOF
7915
7916 fi
7917
7918 done
7919
7920
7921 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7922 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7923 if test "${ac_cv_header_time+set}" = set; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926   cat >conftest.$ac_ext <<_ACEOF
7927 #line $LINENO "configure"
7928 #include "confdefs.h"
7929 #include <sys/types.h>
7930 #include <sys/time.h>
7931 #include <time.h>
7932
7933 int
7934 main ()
7935 {
7936 if ((struct tm *) 0)
7937 return 0;
7938   ;
7939   return 0;
7940 }
7941 _ACEOF
7942 rm -f conftest.$ac_objext
7943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944   (eval $ac_compile) 2>&5
7945   ac_status=$?
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); } &&
7948          { ac_try='test -s conftest.$ac_objext'
7949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950   (eval $ac_try) 2>&5
7951   ac_status=$?
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); }; }; then
7954   ac_cv_header_time=yes
7955 else
7956   echo "$as_me: failed program was:" >&5
7957 cat conftest.$ac_ext >&5
7958 ac_cv_header_time=no
7959 fi
7960 rm -f conftest.$ac_objext conftest.$ac_ext
7961 fi
7962 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7963 echo "${ECHO_T}$ac_cv_header_time" >&6
7964 if test $ac_cv_header_time = yes; then
7965
7966 cat >>confdefs.h <<\_ACEOF
7967 #define TIME_WITH_SYS_TIME 1
7968 _ACEOF
7969
7970 fi
7971
7972
7973 cat >conftest.$ac_ext <<_ACEOF
7974 #line $LINENO "configure"
7975 #include "confdefs.h"
7976 #include <time.h>
7977
7978 _ACEOF
7979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7980   $EGREP "nanosleep" >/dev/null 2>&1; then
7981
7982
7983 cat >>confdefs.h <<\_ACEOF
7984 #define HAVE_DECL_NANOSLEEP 1
7985 _ACEOF
7986
7987
7988 fi
7989 rm -f conftest*
7990
7991
7992 cat >conftest.$ac_ext <<_ACEOF
7993 #line $LINENO "configure"
7994 #include "confdefs.h"
7995 #include <sys/time.h>
7996
7997 _ACEOF
7998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7999   $EGREP "timespec" >/dev/null 2>&1; then
8000
8001
8002 cat >>confdefs.h <<\_ACEOF
8003 #define HAVE_STRUCT_TIMESPEC 1
8004 _ACEOF
8005
8006
8007 fi
8008 rm -f conftest*
8009
8010
8011
8012
8013
8014
8015 for ac_header in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
8016 do
8017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8019   echo "$as_me:$LINENO: checking for $ac_header" >&5
8020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8022   echo $ECHO_N "(cached) $ECHO_C" >&6
8023 fi
8024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8026 else
8027   # Is the header compilable?
8028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8030 cat >conftest.$ac_ext <<_ACEOF
8031 #line $LINENO "configure"
8032 #include "confdefs.h"
8033 $ac_includes_default
8034 #include <$ac_header>
8035 _ACEOF
8036 rm -f conftest.$ac_objext
8037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8038   (eval $ac_compile) 2>&5
8039   ac_status=$?
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); } &&
8042          { ac_try='test -s conftest.$ac_objext'
8043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044   (eval $ac_try) 2>&5
8045   ac_status=$?
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); }; }; then
8048   ac_header_compiler=yes
8049 else
8050   echo "$as_me: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8052 ac_header_compiler=no
8053 fi
8054 rm -f conftest.$ac_objext conftest.$ac_ext
8055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8056 echo "${ECHO_T}$ac_header_compiler" >&6
8057
8058 # Is the header present?
8059 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8061 cat >conftest.$ac_ext <<_ACEOF
8062 #line $LINENO "configure"
8063 #include "confdefs.h"
8064 #include <$ac_header>
8065 _ACEOF
8066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8068   ac_status=$?
8069   grep -v '^ *+' conftest.er1 >conftest.err
8070   rm -f conftest.er1
8071   cat conftest.err >&5
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); } >/dev/null; then
8074   if test -s conftest.err; then
8075     ac_cpp_err=$ac_c_preproc_warn_flag
8076   else
8077     ac_cpp_err=
8078   fi
8079 else
8080   ac_cpp_err=yes
8081 fi
8082 if test -z "$ac_cpp_err"; then
8083   ac_header_preproc=yes
8084 else
8085   echo "$as_me: failed program was:" >&5
8086   cat conftest.$ac_ext >&5
8087   ac_header_preproc=no
8088 fi
8089 rm -f conftest.err conftest.$ac_ext
8090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8091 echo "${ECHO_T}$ac_header_preproc" >&6
8092
8093 # So?  What about this header?
8094 case $ac_header_compiler:$ac_header_preproc in
8095   yes:no )
8096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8100   no:yes )
8101     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8103     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8107 esac
8108 echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113   eval "$as_ac_Header=$ac_header_preproc"
8114 fi
8115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8117
8118 fi
8119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8120   cat >>confdefs.h <<_ACEOF
8121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8122 _ACEOF
8123
8124 fi
8125
8126 done
8127
8128
8129 if test x$SYS != xmingw32
8130 then
8131   if test x$x_includes = xNONE; then
8132     x_includes=/usr/X11R6/include
8133   fi
8134   if test x$x_libraries = xNONE; then
8135     x_libraries=/usr/X11R6/lib
8136   fi
8137   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
8138
8139 for ac_header in X11/extensions/dpms.h
8140 do
8141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8143   echo "$as_me:$LINENO: checking for $ac_header" >&5
8144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8146   echo $ECHO_N "(cached) $ECHO_C" >&6
8147 fi
8148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8150 else
8151   # Is the header compilable?
8152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8154 cat >conftest.$ac_ext <<_ACEOF
8155 #line $LINENO "configure"
8156 #include "confdefs.h"
8157 $ac_includes_default
8158 #include <$ac_header>
8159 _ACEOF
8160 rm -f conftest.$ac_objext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162   (eval $ac_compile) 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } &&
8166          { ac_try='test -s conftest.$ac_objext'
8167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168   (eval $ac_try) 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; }; then
8172   ac_header_compiler=yes
8173 else
8174   echo "$as_me: failed program was:" >&5
8175 cat conftest.$ac_ext >&5
8176 ac_header_compiler=no
8177 fi
8178 rm -f conftest.$ac_objext conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8180 echo "${ECHO_T}$ac_header_compiler" >&6
8181
8182 # Is the header present?
8183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8185 cat >conftest.$ac_ext <<_ACEOF
8186 #line $LINENO "configure"
8187 #include "confdefs.h"
8188 #include <$ac_header>
8189 _ACEOF
8190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8192   ac_status=$?
8193   grep -v '^ *+' conftest.er1 >conftest.err
8194   rm -f conftest.er1
8195   cat conftest.err >&5
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } >/dev/null; then
8198   if test -s conftest.err; then
8199     ac_cpp_err=$ac_c_preproc_warn_flag
8200   else
8201     ac_cpp_err=
8202   fi
8203 else
8204   ac_cpp_err=yes
8205 fi
8206 if test -z "$ac_cpp_err"; then
8207   ac_header_preproc=yes
8208 else
8209   echo "$as_me: failed program was:" >&5
8210   cat conftest.$ac_ext >&5
8211   ac_header_preproc=no
8212 fi
8213 rm -f conftest.err conftest.$ac_ext
8214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8215 echo "${ECHO_T}$ac_header_preproc" >&6
8216
8217 # So?  What about this header?
8218 case $ac_header_compiler:$ac_header_preproc in
8219   yes:no )
8220     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8224   no:yes )
8225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8227     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8231 esac
8232 echo "$as_me:$LINENO: checking for $ac_header" >&5
8233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   eval "$as_ac_Header=$ac_header_preproc"
8238 fi
8239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8241
8242 fi
8243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8244   cat >>confdefs.h <<_ACEOF
8245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8246 _ACEOF
8247
8248     cat >conftest.$ac_ext <<_ACEOF
8249 #line $LINENO "configure"
8250 #include "confdefs.h"
8251 #include <X11/extensions/dpms.h>
8252
8253 _ACEOF
8254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8255   $EGREP "DPMSInfo" >/dev/null 2>&1; then
8256
8257
8258 cat >>confdefs.h <<\_ACEOF
8259 #define DPMSINFO_IN_DPMS_H 1
8260 _ACEOF
8261
8262
8263 fi
8264 rm -f conftest*
8265
8266
8267 fi
8268
8269 done
8270
8271   CPPFLAGS="$save_CPPFLAGS"
8272 fi
8273
8274 echo "$as_me:$LINENO: checking for ntohl in sys/param.h" >&5
8275 echo $ECHO_N "checking for ntohl in sys/param.h... $ECHO_C" >&6
8276 if test "${ac_cv_c_ntohl_sys_param_h+set}" = set; then
8277   echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279   CFLAGS="${save_CFLAGS} -Wall -Werror"
8280      cat >conftest.$ac_ext <<_ACEOF
8281 #line $LINENO "configure"
8282 #include "confdefs.h"
8283 #include <sys/param.h>
8284 int
8285 main ()
8286 {
8287 void foo() { int meuh; ntohl(meuh); }
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294   (eval $ac_compile) 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -s conftest.$ac_objext'
8299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300   (eval $ac_try) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; }; then
8304   ac_cv_c_ntohl_sys_param_h=yes
8305 else
8306   echo "$as_me: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8308 ac_cv_c_ntohl_sys_param_h=no
8309 fi
8310 rm -f conftest.$ac_objext conftest.$ac_ext
8311 fi
8312 echo "$as_me:$LINENO: result: $ac_cv_c_ntohl_sys_param_h" >&5
8313 echo "${ECHO_T}$ac_cv_c_ntohl_sys_param_h" >&6
8314 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
8315
8316 cat >>confdefs.h <<\_ACEOF
8317 #define NTOHL_IN_SYS_PARAM_H 1
8318 _ACEOF
8319
8320 fi
8321
8322 echo "$as_me:$LINENO: checking if \$CC accepts -finline-limit" >&5
8323 echo $ECHO_N "checking if \$CC accepts -finline-limit... $ECHO_C" >&6
8324 if test "${ac_cv_c_inline_limit+set}" = set; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327   CFLAGS="${save_CFLAGS} -finline-limit-30000"
8328      cat >conftest.$ac_ext <<_ACEOF
8329 #line $LINENO "configure"
8330 #include "confdefs.h"
8331
8332 int
8333 main ()
8334 {
8335
8336   ;
8337   return 0;
8338 }
8339 _ACEOF
8340 rm -f conftest.$ac_objext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8342   (eval $ac_compile) 2>&5
8343   ac_status=$?
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } &&
8346          { ac_try='test -s conftest.$ac_objext'
8347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348   (eval $ac_try) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; }; then
8352   ac_cv_c_inline_limit=yes
8353 else
8354   echo "$as_me: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8356 ac_cv_c_inline_limit=no
8357 fi
8358 rm -f conftest.$ac_objext conftest.$ac_ext
8359 fi
8360 echo "$as_me:$LINENO: result: $ac_cv_c_inline_limit" >&5
8361 echo "${ECHO_T}$ac_cv_c_inline_limit" >&6
8362 if test x"$ac_cv_c_inline_limit" != x"no"; then
8363     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
8364 fi
8365
8366 echo "$as_me:$LINENO: checking if \$CC accepts -Wall -Winline" >&5
8367 echo $ECHO_N "checking if \$CC accepts -Wall -Winline... $ECHO_C" >&6
8368 if test "${ac_cv_c_Wall_Winline+set}" = set; then
8369   echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371   CFLAGS="${save_CFLAGS} -Wall -Winline"
8372      cat >conftest.$ac_ext <<_ACEOF
8373 #line $LINENO "configure"
8374 #include "confdefs.h"
8375
8376 int
8377 main ()
8378 {
8379
8380   ;
8381   return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8386   (eval $ac_compile) 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); } &&
8390          { ac_try='test -s conftest.$ac_objext'
8391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392   (eval $ac_try) 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); }; }; then
8396   ac_cv_c_Wall_Winline=yes
8397 else
8398   echo "$as_me: failed program was:" >&5
8399 cat conftest.$ac_ext >&5
8400 ac_cv_c_Wall_Winline=no
8401 fi
8402 rm -f conftest.$ac_objext conftest.$ac_ext
8403 fi
8404 echo "$as_me:$LINENO: result: $ac_cv_c_Wall_Winline" >&5
8405 echo "${ECHO_T}$ac_cv_c_Wall_Winline" >&6
8406 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
8407     save_CFLAGS="${save_CFLAGS} -Wall -Winline"
8408 else
8409     echo "$as_me:$LINENO: checking if \$CC accepts -wall -winline" >&5
8410 echo $ECHO_N "checking if \$CC accepts -wall -winline... $ECHO_C" >&6
8411 if test "${ac_cv_c_wall_winline+set}" = set; then
8412   echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414   CFLAGS="${save_CFLAGS} -wall -winline"
8415          cat >conftest.$ac_ext <<_ACEOF
8416 #line $LINENO "configure"
8417 #include "confdefs.h"
8418
8419 int
8420 main ()
8421 {
8422
8423   ;
8424   return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest.$ac_objext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8429   (eval $ac_compile) 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } &&
8433          { ac_try='test -s conftest.$ac_objext'
8434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435   (eval $ac_try) 2>&5
8436   ac_status=$?
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); }; }; then
8439   ac_cv_c_wall_winline=yes
8440 else
8441   echo "$as_me: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8443 ac_cv_c_wall_winline=no
8444 fi
8445 rm -f conftest.$ac_objext conftest.$ac_ext
8446 fi
8447 echo "$as_me:$LINENO: result: $ac_cv_c_wall_winline" >&5
8448 echo "${ECHO_T}$ac_cv_c_wall_winline" >&6
8449     if test x"$ac_cv_c_wall_winline" != x"no"; then
8450         save_CFLAGS="${save_CFLAGS} -wall -winline"
8451     fi
8452 fi
8453
8454 echo "$as_me:$LINENO: checking if \$CC accepts -pipe" >&5
8455 echo $ECHO_N "checking if \$CC accepts -pipe... $ECHO_C" >&6
8456 if test "${ac_cv_c_pipe+set}" = set; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 else
8459   CFLAGS="${save_CFLAGS} -pipe"
8460      cat >conftest.$ac_ext <<_ACEOF
8461 #line $LINENO "configure"
8462 #include "confdefs.h"
8463
8464 int
8465 main ()
8466 {
8467
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 rm -f conftest.$ac_objext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8474   (eval $ac_compile) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } &&
8478          { ac_try='test -s conftest.$ac_objext'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; }; then
8484   ac_cv_c_pipe=yes
8485 else
8486   echo "$as_me: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8488 ac_cv_c_pipe=no
8489 fi
8490 rm -f conftest.$ac_objext conftest.$ac_ext
8491 fi
8492 echo "$as_me:$LINENO: result: $ac_cv_c_pipe" >&5
8493 echo "${ECHO_T}$ac_cv_c_pipe" >&6
8494 if test x"$ac_cv_c_pipe" != x"no"; then
8495     save_CFLAGS="${save_CFLAGS} -pipe"
8496 fi
8497
8498 echo "$as_me:$LINENO: checking if \$CC accepts -O3" >&5
8499 echo $ECHO_N "checking if \$CC accepts -O3... $ECHO_C" >&6
8500 if test "${ac_cv_c_o3+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   CFLAGS="${save_CFLAGS} -O3"
8504      cat >conftest.$ac_ext <<_ACEOF
8505 #line $LINENO "configure"
8506 #include "confdefs.h"
8507
8508 int
8509 main ()
8510 {
8511
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518   (eval $ac_compile) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); } &&
8522          { ac_try='test -s conftest.$ac_objext'
8523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524   (eval $ac_try) 2>&5
8525   ac_status=$?
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); }; }; then
8528   ac_cv_c_o3=yes
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 cat conftest.$ac_ext >&5
8532 ac_cv_c_o3=no
8533 fi
8534 rm -f conftest.$ac_objext conftest.$ac_ext
8535 fi
8536 echo "$as_me:$LINENO: result: $ac_cv_c_o3" >&5
8537 echo "${ECHO_T}$ac_cv_c_o3" >&6
8538 if test x"$ac_cv_c_o3" != x"no"; then
8539     CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
8540 else
8541     echo "$as_me:$LINENO: checking if \$CC accepts -O2" >&5
8542 echo $ECHO_N "checking if \$CC accepts -O2... $ECHO_C" >&6
8543 if test "${ac_cv_c_o2+set}" = set; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   CFLAGS="${save_CFLAGS} -O2"
8547          cat >conftest.$ac_ext <<_ACEOF
8548 #line $LINENO "configure"
8549 #include "confdefs.h"
8550
8551 int
8552 main ()
8553 {
8554
8555   ;
8556   return 0;
8557 }
8558 _ACEOF
8559 rm -f conftest.$ac_objext
8560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8561   (eval $ac_compile) 2>&5
8562   ac_status=$?
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); } &&
8565          { ac_try='test -s conftest.$ac_objext'
8566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567   (eval $ac_try) 2>&5
8568   ac_status=$?
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); }; }; then
8571   ac_cv_c_o2=yes
8572 else
8573   echo "$as_me: failed program was:" >&5
8574 cat conftest.$ac_ext >&5
8575 ac_cv_c_o2=no
8576 fi
8577 rm -f conftest.$ac_objext conftest.$ac_ext
8578 fi
8579 echo "$as_me:$LINENO: result: $ac_cv_c_o2" >&5
8580 echo "${ECHO_T}$ac_cv_c_o2" >&6
8581     if test x"$ac_cv_c_o2" != x"no"; then
8582         CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
8583     else
8584         echo "$as_me:$LINENO: checking if \$CC accepts -O" >&5
8585 echo $ECHO_N "checking if \$CC accepts -O... $ECHO_C" >&6
8586 if test "${ac_cv_c_o+set}" = set; then
8587   echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589   CFLAGS="${save_CFLAGS} -O"
8590              cat >conftest.$ac_ext <<_ACEOF
8591 #line $LINENO "configure"
8592 #include "confdefs.h"
8593
8594 int
8595 main ()
8596 {
8597
8598   ;
8599   return 0;
8600 }
8601 _ACEOF
8602 rm -f conftest.$ac_objext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604   (eval $ac_compile) 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } &&
8608          { ac_try='test -s conftest.$ac_objext'
8609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610   (eval $ac_try) 2>&5
8611   ac_status=$?
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); }; }; then
8614   ac_cv_c_o=yes
8615 else
8616   echo "$as_me: failed program was:" >&5
8617 cat conftest.$ac_ext >&5
8618 ac_cv_c_o=no
8619 fi
8620 rm -f conftest.$ac_objext conftest.$ac_ext
8621 fi
8622 echo "$as_me:$LINENO: result: $ac_cv_c_o" >&5
8623 echo "${ECHO_T}$ac_cv_c_o" >&6
8624         if test x"$ac_cv_c_o" != x"no"; then
8625             CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
8626         fi
8627     fi
8628 fi
8629
8630 echo "$as_me:$LINENO: checking if \$CC accepts -ffast-math" >&5
8631 echo $ECHO_N "checking if \$CC accepts -ffast-math... $ECHO_C" >&6
8632 if test "${ac_cv_c_fast_math+set}" = set; then
8633   echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635   CFLAGS="${save_CFLAGS} -ffast-math"
8636      cat >conftest.$ac_ext <<_ACEOF
8637 #line $LINENO "configure"
8638 #include "confdefs.h"
8639
8640 int
8641 main ()
8642 {
8643
8644   ;
8645   return 0;
8646 }
8647 _ACEOF
8648 rm -f conftest.$ac_objext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8650   (eval $ac_compile) 2>&5
8651   ac_status=$?
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } &&
8654          { ac_try='test -s conftest.$ac_objext'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; }; then
8660   ac_cv_c_fast_math=yes
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 cat conftest.$ac_ext >&5
8664 ac_cv_c_fast_math=no
8665 fi
8666 rm -f conftest.$ac_objext conftest.$ac_ext
8667 fi
8668 echo "$as_me:$LINENO: result: $ac_cv_c_fast_math" >&5
8669 echo "${ECHO_T}$ac_cv_c_fast_math" >&6
8670 if test x"$ac_cv_c_fast_math" != x"no"; then
8671     CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
8672 fi
8673
8674 echo "$as_me:$LINENO: checking if \$CC accepts -funroll-loops" >&5
8675 echo $ECHO_N "checking if \$CC accepts -funroll-loops... $ECHO_C" >&6
8676 if test "${ac_cv_c_unroll_loops+set}" = set; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679   CFLAGS="${save_CFLAGS} -funroll-loops"
8680      cat >conftest.$ac_ext <<_ACEOF
8681 #line $LINENO "configure"
8682 #include "confdefs.h"
8683
8684 int
8685 main ()
8686 {
8687
8688   ;
8689   return 0;
8690 }
8691 _ACEOF
8692 rm -f conftest.$ac_objext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8694   (eval $ac_compile) 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } &&
8698          { ac_try='test -s conftest.$ac_objext'
8699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700   (eval $ac_try) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; }; then
8704   ac_cv_c_unroll_loops=yes
8705 else
8706   echo "$as_me: failed program was:" >&5
8707 cat conftest.$ac_ext >&5
8708 ac_cv_c_unroll_loops=no
8709 fi
8710 rm -f conftest.$ac_objext conftest.$ac_ext
8711 fi
8712 echo "$as_me:$LINENO: result: $ac_cv_c_unroll_loops" >&5
8713 echo "${ECHO_T}$ac_cv_c_unroll_loops" >&6
8714 if test x"$ac_cv_c_unroll_loops" != x"no"; then
8715     CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
8716 fi
8717
8718 echo "$as_me:$LINENO: checking if \$CC accepts -fomit-frame-pointer" >&5
8719 echo $ECHO_N "checking if \$CC accepts -fomit-frame-pointer... $ECHO_C" >&6
8720 if test "${ac_cv_c_omit_frame_pointer+set}" = set; then
8721   echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723   CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
8724      cat >conftest.$ac_ext <<_ACEOF
8725 #line $LINENO "configure"
8726 #include "confdefs.h"
8727
8728 int
8729 main ()
8730 {
8731
8732   ;
8733   return 0;
8734 }
8735 _ACEOF
8736 rm -f conftest.$ac_objext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8738   (eval $ac_compile) 2>&5
8739   ac_status=$?
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); } &&
8742          { ac_try='test -s conftest.$ac_objext'
8743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744   (eval $ac_try) 2>&5
8745   ac_status=$?
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); }; }; then
8748   ac_cv_c_omit_frame_pointer=yes
8749 else
8750   echo "$as_me: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8752 ac_cv_c_omit_frame_pointer=no
8753 fi
8754 rm -f conftest.$ac_objext conftest.$ac_ext
8755 fi
8756 echo "$as_me:$LINENO: result: $ac_cv_c_omit_frame_pointer" >&5
8757 echo "${ECHO_T}$ac_cv_c_omit_frame_pointer" >&6
8758 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
8759     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
8760 fi
8761
8762 if test x$SYS = xmingw32
8763 then
8764     echo "$as_me:$LINENO: checking if \$CC accepts -mms-bitfields" >&5
8765 echo $ECHO_N "checking if \$CC accepts -mms-bitfields... $ECHO_C" >&6
8766 if test "${ac_cv_c_mms_bitfields+set}" = set; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   CFLAGS="${save_CFLAGS} -mms-bitfields"
8770          cat >conftest.$ac_ext <<_ACEOF
8771 #line $LINENO "configure"
8772 #include "confdefs.h"
8773
8774 int
8775 main ()
8776 {
8777
8778   ;
8779   return 0;
8780 }
8781 _ACEOF
8782 rm -f conftest.$ac_objext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8784   (eval $ac_compile) 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); } &&
8788          { ac_try='test -s conftest.$ac_objext'
8789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790   (eval $ac_try) 2>&5
8791   ac_status=$?
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); }; }; then
8794   ac_cv_c_mms_bitfields=yes
8795 else
8796   echo "$as_me: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8798 ac_cv_c_mms_bitfields=no
8799 fi
8800 rm -f conftest.$ac_objext conftest.$ac_ext
8801 fi
8802 echo "$as_me:$LINENO: result: $ac_cv_c_mms_bitfields" >&5
8803 echo "${ECHO_T}$ac_cv_c_mms_bitfields" >&6
8804     if test x"$ac_cv_c_mms_bitfields" != x"no"; then
8805         save_CFLAGS="${save_CFLAGS} -mms-bitfields"
8806         plugins_CFLAGS="${plugins_CFLAGS} -mms-bitfields"
8807     else
8808         save_CFLAGS="${save_CFLAGS} -fnative-struct"
8809         plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
8810     fi
8811 fi
8812
8813 echo "$as_me:$LINENO: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
8814 echo $ECHO_N "checking if \$CC accepts -bundle -undefined error -lcc_dynamic... $ECHO_C" >&6
8815 if test "${ac_cv_ld_darwin+set}" = set; then
8816   echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818   CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
8819      cat >conftest.$ac_ext <<_ACEOF
8820 #line $LINENO "configure"
8821 #include "confdefs.h"
8822
8823 int
8824 main ()
8825 {
8826
8827   ;
8828   return 0;
8829 }
8830 _ACEOF
8831 rm -f conftest.$ac_objext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8833   (eval $ac_compile) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); } &&
8837          { ac_try='test -s conftest.$ac_objext'
8838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839   (eval $ac_try) 2>&5
8840   ac_status=$?
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); }; }; then
8843   ac_cv_ld_darwin=yes
8844 else
8845   echo "$as_me: failed program was:" >&5
8846 cat conftest.$ac_ext >&5
8847 ac_cv_ld_darwin=no
8848 fi
8849 rm -f conftest.$ac_objext conftest.$ac_ext
8850 fi
8851 echo "$as_me:$LINENO: result: $ac_cv_ld_darwin" >&5
8852 echo "${ECHO_T}$ac_cv_ld_darwin" >&6
8853 if test x"$ac_cv_ld_darwin" != x"no"; then
8854     plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
8855 fi
8856
8857 echo "$as_me:$LINENO: checking if \$CC accepts -shared" >&5
8858 echo $ECHO_N "checking if \$CC accepts -shared... $ECHO_C" >&6
8859 if test "${ac_cv_ld_plugins+set}" = set; then
8860   echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862   CFLAGS="${save_CFLAGS} -shared"
8863      cat >conftest.$ac_ext <<_ACEOF
8864 #line $LINENO "configure"
8865 #include "confdefs.h"
8866
8867 int
8868 main ()
8869 {
8870
8871   ;
8872   return 0;
8873 }
8874 _ACEOF
8875 rm -f conftest.$ac_objext
8876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8877   (eval $ac_compile) 2>&5
8878   ac_status=$?
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); } &&
8881          { ac_try='test -s conftest.$ac_objext'
8882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883   (eval $ac_try) 2>&5
8884   ac_status=$?
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); }; }; then
8887   ac_cv_ld_plugins=yes
8888 else
8889   echo "$as_me: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 ac_cv_ld_plugins=no
8892 fi
8893 rm -f conftest.$ac_objext conftest.$ac_ext
8894 fi
8895 echo "$as_me:$LINENO: result: $ac_cv_ld_plugins" >&5
8896 echo "${ECHO_T}$ac_cv_ld_plugins" >&6
8897 if test x"$ac_cv_ld_plugins" != x"no"; then
8898     plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
8899 fi
8900
8901 echo "$as_me:$LINENO: checking for variadic cpp macros" >&5
8902 echo $ECHO_N "checking for variadic cpp macros... $ECHO_C" >&6
8903 if test "${ac_cv_cpp_variadic_macros+set}" = set; then
8904   echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906   CFLAGS="${save_CFLAGS}"
8907      cat >conftest.$ac_ext <<_ACEOF
8908 #line $LINENO "configure"
8909 #include "confdefs.h"
8910 #include <stdio.h>
8911           #define a(b,c...) printf(b,##c)
8912 int
8913 main ()
8914 {
8915 a("foo");a("%s","bar");a("%s%s","baz","quux");
8916   ;
8917   return 0;
8918 }
8919 _ACEOF
8920 rm -f conftest.$ac_objext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922   (eval $ac_compile) 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } &&
8926          { ac_try='test -s conftest.$ac_objext'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; }; then
8932   ac_cv_cpp_variadic_macros=yes
8933 else
8934   echo "$as_me: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8936 ac_cv_cpp_variadic_macros=no
8937 fi
8938 rm -f conftest.$ac_objext conftest.$ac_ext
8939 fi
8940 echo "$as_me:$LINENO: result: $ac_cv_cpp_variadic_macros" >&5
8941 echo "${ECHO_T}$ac_cv_cpp_variadic_macros" >&6
8942 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
8943
8944 cat >>confdefs.h <<\_ACEOF
8945 #define HAVE_VARIADIC_MACROS 1
8946 _ACEOF
8947
8948 fi
8949
8950 echo "$as_me:$LINENO: checking __attribute__ ((aligned ())) support" >&5
8951 echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6
8952 if test "${ac_cv_c_attribute_aligned+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   ac_cv_c_attribute_aligned=0
8956         CFLAGS="${save_CFLAGS} -Werror"
8957     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
8958         cat >conftest.$ac_ext <<_ACEOF
8959 #line $LINENO "configure"
8960 #include "confdefs.h"
8961
8962 int
8963 main ()
8964 {
8965 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972   (eval $ac_compile) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -s conftest.$ac_objext'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8986 fi
8987 rm -f conftest.$ac_objext conftest.$ac_ext
8988     done
8989 fi
8990 echo "$as_me:$LINENO: result: $ac_cv_c_attribute_aligned" >&5
8991 echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6
8992 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
8993
8994 cat >>confdefs.h <<_ACEOF
8995 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
8996 _ACEOF
8997
8998 fi
8999
9000 CFLAGS="${save_CFLAGS}"
9001 CPPFLAGS="${save_CPPFLAGS}"
9002 LDFLAGS="${save_LDFLAGS}"
9003
9004 echo "$as_me:$LINENO: checking for boolean_t in sys/types.h" >&5
9005 echo $ECHO_N "checking for boolean_t in sys/types.h... $ECHO_C" >&6
9006 if test "${ac_cv_c_boolean_t_sys_types_h+set}" = set; then
9007   echo $ECHO_N "(cached) $ECHO_C" >&6
9008 else
9009   cat >conftest.$ac_ext <<_ACEOF
9010 #line $LINENO "configure"
9011 #include "confdefs.h"
9012 #include <sys/types.h>
9013 int
9014 main ()
9015 {
9016 boolean_t foo;
9017   ;
9018   return 0;
9019 }
9020 _ACEOF
9021 rm -f conftest.$ac_objext
9022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9023   (eval $ac_compile) 2>&5
9024   ac_status=$?
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); } &&
9027          { ac_try='test -s conftest.$ac_objext'
9028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029   (eval $ac_try) 2>&5
9030   ac_status=$?
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); }; }; then
9033   ac_cv_c_boolean_t_sys_types_h=yes
9034 else
9035   echo "$as_me: failed program was:" >&5
9036 cat conftest.$ac_ext >&5
9037 ac_cv_c_boolean_t_sys_types_h=no
9038 fi
9039 rm -f conftest.$ac_objext conftest.$ac_ext
9040 fi
9041 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_sys_types_h" >&5
9042 echo "${ECHO_T}$ac_cv_c_boolean_t_sys_types_h" >&6
9043 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
9044
9045 cat >>confdefs.h <<\_ACEOF
9046 #define BOOLEAN_T_IN_SYS_TYPES_H 1
9047 _ACEOF
9048
9049 fi
9050
9051 echo "$as_me:$LINENO: checking for boolean_t in pthread.h" >&5
9052 echo $ECHO_N "checking for boolean_t in pthread.h... $ECHO_C" >&6
9053 if test "${ac_cv_c_boolean_t_pthread_h+set}" = set; then
9054   echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056   cat >conftest.$ac_ext <<_ACEOF
9057 #line $LINENO "configure"
9058 #include "confdefs.h"
9059 #include <pthread.h>
9060 int
9061 main ()
9062 {
9063 boolean_t foo;
9064   ;
9065   return 0;
9066 }
9067 _ACEOF
9068 rm -f conftest.$ac_objext
9069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9070   (eval $ac_compile) 2>&5
9071   ac_status=$?
9072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   (exit $ac_status); } &&
9074          { ac_try='test -s conftest.$ac_objext'
9075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076   (eval $ac_try) 2>&5
9077   ac_status=$?
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); }; }; then
9080   ac_cv_c_boolean_t_pthread_h=yes
9081 else
9082   echo "$as_me: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9084 ac_cv_c_boolean_t_pthread_h=no
9085 fi
9086 rm -f conftest.$ac_objext conftest.$ac_ext
9087 fi
9088 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_pthread_h" >&5
9089 echo "${ECHO_T}$ac_cv_c_boolean_t_pthread_h" >&6
9090 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
9091
9092 cat >>confdefs.h <<\_ACEOF
9093 #define BOOLEAN_T_IN_PTHREAD_H 1
9094 _ACEOF
9095
9096 fi
9097
9098 echo "$as_me:$LINENO: checking for boolean_t in cthreads.h" >&5
9099 echo $ECHO_N "checking for boolean_t in cthreads.h... $ECHO_C" >&6
9100 if test "${ac_cv_c_boolean_t_cthreads_h+set}" = set; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103   cat >conftest.$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 #include "confdefs.h"
9106 #include <cthreads.h>
9107 int
9108 main ()
9109 {
9110 boolean_t foo;
9111   ;
9112   return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9117   (eval $ac_compile) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); } &&
9121          { ac_try='test -s conftest.$ac_objext'
9122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123   (eval $ac_try) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); }; }; then
9127   ac_cv_c_boolean_t_cthreads_h=yes
9128 else
9129   echo "$as_me: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9131 ac_cv_c_boolean_t_cthreads_h=no
9132 fi
9133 rm -f conftest.$ac_objext conftest.$ac_ext
9134 fi
9135 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_cthreads_h" >&5
9136 echo "${ECHO_T}$ac_cv_c_boolean_t_cthreads_h" >&6
9137 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
9138
9139 cat >>confdefs.h <<\_ACEOF
9140 #define BOOLEAN_T_IN_CTHREADS_H 1
9141 _ACEOF
9142
9143 fi
9144
9145 case x"${target_cpu}" in
9146   x)
9147     ARCH=unknown
9148     ;;
9149   *)
9150     ARCH="${target_cpu}"
9151     ;;
9152 esac
9153
9154 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"
9155 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"
9156
9157 NETWORK_MODULES="udp http rtp ipv4"
9158
9159 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
9160 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
9161 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
9162 SSE_MODULES="imdctsse downmixsse"
9163 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
9164
9165 if test x$SYS != xbeos
9166 then
9167     PLUGINS="${PLUGINS} ${NETWORK_MODULES}"
9168 fi
9169
9170 echo "$as_me:$LINENO: checking if \$CC groks MMX inline assembly" >&5
9171 echo $ECHO_N "checking if \$CC groks MMX inline assembly... $ECHO_C" >&6
9172 if test "${ac_cv_mmx_inline+set}" = set; then
9173   echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175   cat >conftest.$ac_ext <<_ACEOF
9176 #line $LINENO "configure"
9177 #include "confdefs.h"
9178
9179 int
9180 main ()
9181 {
9182 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
9183   ;
9184   return 0;
9185 }
9186 _ACEOF
9187 rm -f conftest.$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189   (eval $ac_compile) 2>&5
9190   ac_status=$?
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); } &&
9193          { ac_try='test -s conftest.$ac_objext'
9194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195   (eval $ac_try) 2>&5
9196   ac_status=$?
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); }; }; then
9199   ac_cv_mmx_inline=yes
9200 else
9201   echo "$as_me: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9203 ac_cv_mmx_inline=no
9204 fi
9205 rm -f conftest.$ac_objext conftest.$ac_ext
9206 fi
9207 echo "$as_me:$LINENO: result: $ac_cv_mmx_inline" >&5
9208 echo "${ECHO_T}$ac_cv_mmx_inline" >&6
9209 if test x"$ac_cv_mmx_inline" != x"no"; then
9210   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
9211 fi
9212
9213 echo "$as_me:$LINENO: checking if \$CC groks MMX EXT inline assembly" >&5
9214 echo $ECHO_N "checking if \$CC groks MMX EXT inline assembly... $ECHO_C" >&6
9215 if test "${ac_cv_mmxext_inline+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   cat >conftest.$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9220 #include "confdefs.h"
9221
9222 int
9223 main ()
9224 {
9225 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
9226   ;
9227   return 0;
9228 }
9229 _ACEOF
9230 rm -f conftest.$ac_objext
9231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9232   (eval $ac_compile) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); } &&
9236          { ac_try='test -s conftest.$ac_objext'
9237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238   (eval $ac_try) 2>&5
9239   ac_status=$?
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); }; }; then
9242   ac_cv_mmxext_inline=yes
9243 else
9244   echo "$as_me: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9246 ac_cv_mmxext_inline=no
9247 fi
9248 rm -f conftest.$ac_objext conftest.$ac_ext
9249 fi
9250 echo "$as_me:$LINENO: result: $ac_cv_mmxext_inline" >&5
9251 echo "${ECHO_T}$ac_cv_mmxext_inline" >&6
9252 if test x"$ac_cv_mmxext_inline" != x"no"; then
9253   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
9254 fi
9255
9256 echo "$as_me:$LINENO: checking if \$CC groks 3D Now! inline assembly" >&5
9257 echo $ECHO_N "checking if \$CC groks 3D Now! inline assembly... $ECHO_C" >&6
9258 if test "${ac_cv_3dnow_inline+set}" = set; then
9259   echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261   cat >conftest.$ac_ext <<_ACEOF
9262 #line $LINENO "configure"
9263 #include "confdefs.h"
9264
9265 int
9266 main ()
9267 {
9268 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
9269   ;
9270   return 0;
9271 }
9272 _ACEOF
9273 rm -f conftest.$ac_objext
9274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9275   (eval $ac_compile) 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); } &&
9279          { ac_try='test -s conftest.$ac_objext'
9280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281   (eval $ac_try) 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); }; }; then
9285   ac_cv_3dnow_inline=yes
9286 else
9287   echo "$as_me: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9289 ac_cv_3dnow_inline=no
9290 fi
9291 rm -f conftest.$ac_objext conftest.$ac_ext
9292 fi
9293 echo "$as_me:$LINENO: result: $ac_cv_3dnow_inline" >&5
9294 echo "${ECHO_T}$ac_cv_3dnow_inline" >&6
9295 if test x"$ac_cv_3dnow_inline" != x"no"; then
9296
9297 cat >>confdefs.h <<\_ACEOF
9298 #define CAN_COMPILE_3DNOW 1
9299 _ACEOF
9300
9301   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
9302 fi
9303
9304 echo "$as_me:$LINENO: checking if \$CC groks SSE inline assembly" >&5
9305 echo $ECHO_N "checking if \$CC groks SSE inline assembly... $ECHO_C" >&6
9306 if test "${ac_cv_sse_inline+set}" = set; then
9307   echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309   cat >conftest.$ac_ext <<_ACEOF
9310 #line $LINENO "configure"
9311 #include "confdefs.h"
9312
9313 int
9314 main ()
9315 {
9316 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
9317   ;
9318   return 0;
9319 }
9320 _ACEOF
9321 rm -f conftest.$ac_objext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9323   (eval $ac_compile) 2>&5
9324   ac_status=$?
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } &&
9327          { ac_try='test -s conftest.$ac_objext'
9328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329   (eval $ac_try) 2>&5
9330   ac_status=$?
9331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   (exit $ac_status); }; }; then
9333   ac_cv_sse_inline=yes
9334 else
9335   echo "$as_me: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9337 ac_cv_sse_inline=no
9338 fi
9339 rm -f conftest.$ac_objext conftest.$ac_ext
9340 fi
9341 echo "$as_me:$LINENO: result: $ac_cv_sse_inline" >&5
9342 echo "${ECHO_T}$ac_cv_sse_inline" >&6
9343 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
9344
9345 cat >>confdefs.h <<\_ACEOF
9346 #define CAN_COMPILE_SSE 1
9347 _ACEOF
9348
9349   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
9350 fi
9351
9352 # don't try to grok altivec with native mingw32 it doesn't work right now
9353 # we should be able to remove this test with future versions of mingw32
9354 if test x$SYS != xmingw32; then
9355 echo "$as_me:$LINENO: checking if \$CC groks Altivec inline assembly" >&5
9356 echo $ECHO_N "checking if \$CC groks Altivec inline assembly... $ECHO_C" >&6
9357 if test "${ac_cv_altivec_inline+set}" = set; then
9358   echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360   cat >conftest.$ac_ext <<_ACEOF
9361 #line $LINENO "configure"
9362 #include "confdefs.h"
9363
9364 int
9365 main ()
9366 {
9367 asm volatile("vperm 0,1,2,3");
9368   ;
9369   return 0;
9370 }
9371 _ACEOF
9372 rm -f conftest.$ac_objext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9374   (eval $ac_compile) 2>&5
9375   ac_status=$?
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); } &&
9378          { ac_try='test -s conftest.$ac_objext'
9379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380   (eval $ac_try) 2>&5
9381   ac_status=$?
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); }; }; then
9384   ac_cv_altivec_inline=yes
9385 else
9386   echo "$as_me: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9388 save_CFLAGS=$CFLAGS
9389           CFLAGS="$CFLAGS -Wa,-m7400"
9390           cat >conftest.$ac_ext <<_ACEOF
9391 #line $LINENO "configure"
9392 #include "confdefs.h"
9393
9394 int
9395 main ()
9396 {
9397 asm volatile("vperm 0,1,2,3");
9398   ;
9399   return 0;
9400 }
9401 _ACEOF
9402 rm -f conftest.$ac_objext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9404   (eval $ac_compile) 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); } &&
9408          { ac_try='test -s conftest.$ac_objext'
9409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410   (eval $ac_try) 2>&5
9411   ac_status=$?
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); }; }; then
9414   ac_cv_altivec_inline="-Wa,-m7400"
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9418 ac_cv_altivec_inline=no
9419 fi
9420 rm -f conftest.$ac_objext conftest.$ac_ext
9421           CFLAGS=$save_CFLAGS
9422
9423 fi
9424 rm -f conftest.$ac_objext conftest.$ac_ext
9425 fi
9426 echo "$as_me:$LINENO: result: $ac_cv_altivec_inline" >&5
9427 echo "${ECHO_T}$ac_cv_altivec_inline" >&6
9428 if test x"$ac_cv_altivec_inline" != x"no"; then
9429
9430 cat >>confdefs.h <<\_ACEOF
9431 #define CAN_COMPILE_ALTIVEC 1
9432 _ACEOF
9433
9434   if test x"$ac_cv_altivec_inline" != x"yes"; then
9435     idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
9436     motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
9437     memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
9438     vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
9439   fi
9440   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
9441 fi
9442
9443 echo "$as_me:$LINENO: checking if \$CC groks Altivec C extensions" >&5
9444 echo $ECHO_N "checking if \$CC groks Altivec C extensions... $ECHO_C" >&6
9445 if test "${ac_cv_c_altivec+set}" = set; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448   save_CFLAGS=$CFLAGS
9449      CFLAGS="$CFLAGS -faltivec"
9450      # Darwin test
9451      cat >conftest.$ac_ext <<_ACEOF
9452 #line $LINENO "configure"
9453 #include "confdefs.h"
9454
9455 int
9456 main ()
9457 {
9458 vec_mtvscr((vector unsigned int)(0));
9459   ;
9460   return 0;
9461 }
9462 _ACEOF
9463 rm -f conftest.$ac_objext
9464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9465   (eval $ac_compile) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); } &&
9469          { ac_try='test -s conftest.$ac_objext'
9470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471   (eval $ac_try) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); }; }; then
9475   ac_cv_c_altivec=-faltivec
9476 else
9477   echo "$as_me: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9479
9480         # Linux/PPC test
9481         CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
9482         cat >conftest.$ac_ext <<_ACEOF
9483 #line $LINENO "configure"
9484 #include "confdefs.h"
9485
9486 int
9487 main ()
9488 {
9489 vec_mtvscr((vector unsigned int)(0));
9490   ;
9491   return 0;
9492 }
9493 _ACEOF
9494 rm -f conftest.$ac_objext
9495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9496   (eval $ac_compile) 2>&5
9497   ac_status=$?
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } &&
9500          { ac_try='test -s conftest.$ac_objext'
9501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502   (eval $ac_try) 2>&5
9503   ac_status=$?
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); }; }; then
9506   ac_cv_c_altivec="-fvec"
9507 else
9508   echo "$as_me: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9510 ac_cv_c_altivec=no
9511 fi
9512 rm -f conftest.$ac_objext conftest.$ac_ext
9513
9514 fi
9515 rm -f conftest.$ac_objext conftest.$ac_ext
9516      CFLAGS=$save_CFLAGS
9517
9518 fi
9519 echo "$as_me:$LINENO: result: $ac_cv_c_altivec" >&5
9520 echo "${ECHO_T}$ac_cv_c_altivec" >&6
9521 if test x"$ac_cv_c_altivec" != x"no"; then
9522
9523 cat >>confdefs.h <<\_ACEOF
9524 #define CAN_COMPILE_C_ALTIVEC 1
9525 _ACEOF
9526
9527   idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
9528   motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
9529   memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
9530   vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
9531   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
9532 fi
9533
9534 echo "$as_me:$LINENO: checking if linker needs -framework vecLib" >&5
9535 echo $ECHO_N "checking if linker needs -framework vecLib... $ECHO_C" >&6
9536 if test "${ac_cv_ld_altivec+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   save_LDFLAGS=$LDFLAGS
9540      LDFLAGS="$LDFLAGS -framework vecLib"
9541      cat >conftest.$ac_ext <<_ACEOF
9542 #line $LINENO "configure"
9543 #include "confdefs.h"
9544
9545 int
9546 main ()
9547 {
9548
9549   ;
9550   return 0;
9551 }
9552 _ACEOF
9553 rm -f conftest.$ac_objext conftest$ac_exeext
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555   (eval $ac_link) 2>&5
9556   ac_status=$?
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); } &&
9559          { ac_try='test -s conftest$ac_exeext'
9560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561   (eval $ac_try) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); }; }; then
9565   ac_cv_ld_altivec=yes
9566 else
9567   echo "$as_me: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9569 ac_cv_ld_altivec=no
9570 fi
9571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9572      LDFLAGS=$save_LDFLAGS
9573
9574 fi
9575 echo "$as_me:$LINENO: result: $ac_cv_ld_altivec" >&5
9576 echo "${ECHO_T}$ac_cv_ld_altivec" >&6
9577 if test x"$ac_cv_ld_altivec" != x"no"; then
9578   idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
9579   motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
9580   memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
9581   vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
9582 fi
9583 fi # end if mingw32
9584
9585
9586
9587 # Check whether --with- or --without- was given.
9588 if test "${with_+set}" = set; then
9589   withval="$with_"
9590
9591 fi;
9592
9593 # Check whether --with- or --without- was given.
9594 if test "${with_+set}" = set; then
9595   withval="$with_"
9596
9597 fi;
9598
9599
9600 # Check whether --with-tuning or --without-tuning was given.
9601 if test "${with_tuning+set}" = set; then
9602   withval="$with_tuning"
9603
9604 fi;
9605 if test "x$with_tuning" != "x"; then
9606     TUNING="$with_tuning"
9607 else
9608     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
9609     else
9610         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
9611     fi
9612 fi
9613
9614 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
9615 then
9616     ARCH="${ARCH} mmx"
9617     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
9618 fi
9619
9620 # Check whether --enable-optimizations or --disable-optimizations was given.
9621 if test "${enable_optimizations+set}" = set; then
9622   enableval="$enable_optimizations"
9623    if test x$enable_optimizations = xno; then OPTIMS=0; fi
9624 else
9625    OPTIMS=1
9626 fi;
9627
9628 # Check whether --enable-altivec or --disable-altivec was given.
9629 if test "${enable_altivec+set}" = set; then
9630   enableval="$enable_altivec"
9631    if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
9632     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
9633 else
9634    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
9635     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
9636 fi;
9637
9638 DEBUG=0
9639 # Check whether --enable-debug or --disable-debug was given.
9640 if test "${enable_debug+set}" = set; then
9641   enableval="$enable_debug"
9642    if test x$enable_debug = xyes; then DEBUG=1; fi
9643 fi;
9644
9645 RELEASE=0
9646 # Check whether --enable-release or --disable-release was given.
9647 if test "${enable_release+set}" = set; then
9648   enableval="$enable_release"
9649    if test x$enable_release = xyes; then RELEASE=1; fi
9650 else
9651    VERSION="${VERSION}_`date +%Y-%m-%d`"
9652 fi;
9653
9654
9655
9656 # Check whether --with- or --without- was given.
9657 if test "${with_+set}" = set; then
9658   withval="$with_"
9659
9660 fi;
9661
9662 # Check whether --enable-dvd or --disable-dvd was given.
9663 if test "${enable_dvd+set}" = set; then
9664   enableval="$enable_dvd"
9665
9666 fi;
9667 if test "x$enable_dvd" != "xno"
9668 then
9669
9670 # Check whether --with-dvdcss or --without-dvdcss was given.
9671 if test "${with_dvdcss+set}" = set; then
9672   withval="$with_dvdcss"
9673
9674 fi;
9675
9676 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
9677 if test "${with_dvdcss_tree+set}" = set; then
9678   withval="$with_dvdcss_tree"
9679
9680 fi;
9681   case "x$with_dvdcss" in
9682   x|xyes)
9683     if test "x$with_dvdcss_tree" = x
9684     then
9685
9686 for ac_header in dvdcss/dvdcss.h
9687 do
9688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9690   echo "$as_me:$LINENO: checking for $ac_header" >&5
9691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 fi
9695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9697 else
9698   # Is the header compilable?
9699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9701 cat >conftest.$ac_ext <<_ACEOF
9702 #line $LINENO "configure"
9703 #include "confdefs.h"
9704 $ac_includes_default
9705 #include <$ac_header>
9706 _ACEOF
9707 rm -f conftest.$ac_objext
9708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9709   (eval $ac_compile) 2>&5
9710   ac_status=$?
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); } &&
9713          { ac_try='test -s conftest.$ac_objext'
9714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715   (eval $ac_try) 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); }; }; then
9719   ac_header_compiler=yes
9720 else
9721   echo "$as_me: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9723 ac_header_compiler=no
9724 fi
9725 rm -f conftest.$ac_objext conftest.$ac_ext
9726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9727 echo "${ECHO_T}$ac_header_compiler" >&6
9728
9729 # Is the header present?
9730 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9732 cat >conftest.$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9734 #include "confdefs.h"
9735 #include <$ac_header>
9736 _ACEOF
9737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9739   ac_status=$?
9740   grep -v '^ *+' conftest.er1 >conftest.err
9741   rm -f conftest.er1
9742   cat conftest.err >&5
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); } >/dev/null; then
9745   if test -s conftest.err; then
9746     ac_cpp_err=$ac_c_preproc_warn_flag
9747   else
9748     ac_cpp_err=
9749   fi
9750 else
9751   ac_cpp_err=yes
9752 fi
9753 if test -z "$ac_cpp_err"; then
9754   ac_header_preproc=yes
9755 else
9756   echo "$as_me: failed program was:" >&5
9757   cat conftest.$ac_ext >&5
9758   ac_header_preproc=no
9759 fi
9760 rm -f conftest.err conftest.$ac_ext
9761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9762 echo "${ECHO_T}$ac_header_preproc" >&6
9763
9764 # So?  What about this header?
9765 case $ac_header_compiler:$ac_header_preproc in
9766   yes:no )
9767     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9771   no:yes )
9772     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9774     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9778 esac
9779 echo "$as_me:$LINENO: checking for $ac_header" >&5
9780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9782   echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784   eval "$as_ac_Header=$ac_header_preproc"
9785 fi
9786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9788
9789 fi
9790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9791   cat >>confdefs.h <<_ACEOF
9792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9793 _ACEOF
9794   PLUGINS="${PLUGINS} dvd"
9795           dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
9796 else
9797    { 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
9798 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;}
9799           { { echo "$as_me:$LINENO: error: cannot find libdvdcss headers" >&5
9800 echo "$as_me: error: cannot find libdvdcss headers" >&2;}
9801    { (exit 1); exit 1; }; }
9802 fi
9803
9804 done
9805
9806     else
9807       echo "$as_me:$LINENO: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
9808 echo $ECHO_N "checking for libdvdcss.a in ${with_dvdcss_tree}... $ECHO_C" >&6
9809       real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
9810       if test "x$real_dvdcss_tree" = x
9811       then
9812                 echo "$as_me:$LINENO: result: no" >&5
9813 echo "${ECHO_T}no" >&6
9814         { { echo "$as_me:$LINENO: error: cannot cd to ${with_dvdcss_tree}" >&5
9815 echo "$as_me: error: cannot cd to ${with_dvdcss_tree}" >&2;}
9816    { (exit 1); exit 1; }; }
9817       fi
9818       if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
9819       then
9820                 echo "$as_me:$LINENO: result: ${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&5
9821 echo "${ECHO_T}${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&6
9822         BUILTINS="${BUILTINS} dvd"
9823         dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
9824         dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
9825       else
9826                 echo "$as_me:$LINENO: result: no" >&5
9827 echo "${ECHO_T}no" >&6
9828         { { echo "$as_me:$LINENO: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&5
9829 echo "$as_me: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&2;}
9830    { (exit 1); exit 1; }; }
9831       fi
9832     fi
9833   ;;
9834   xno)
9835         PLUGINS="${PLUGINS} dvd"
9836     dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
9837     dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
9838   ;;
9839   *)
9840     echo "$as_me:$LINENO: checking for dvdcss headers in ${with_dvdcss}" >&5
9841 echo $ECHO_N "checking for dvdcss headers in ${with_dvdcss}... $ECHO_C" >&6
9842     if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
9843     then
9844             echo "$as_me:$LINENO: result: yes" >&5
9845 echo "${ECHO_T}yes" >&6
9846       PLUGINS="${PLUGINS} dvd"
9847       dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
9848       dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
9849     else
9850             echo "$as_me:$LINENO: result: no" >&5
9851 echo "${ECHO_T}no" >&6
9852       { { echo "$as_me:$LINENO: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&5
9853 echo "$as_me: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&2;}
9854    { (exit 1); exit 1; }; }
9855     fi
9856   ;;
9857   esac
9858 fi
9859
9860 # Check whether --enable-dvdread or --disable-dvdread was given.
9861 if test "${enable_dvdread+set}" = set; then
9862   enableval="$enable_dvdread"
9863
9864 fi;
9865 if test "x$enable_dvdread" != "xno"
9866 then
9867
9868 # Check whether --with-dvdread or --without-dvdread was given.
9869 if test "${with_dvdread+set}" = set; then
9870   withval="$with_dvdread"
9871
9872 fi;
9873   if test "x$with_dvdread" = x
9874   then
9875     test_LDFLAGS=""
9876     test_CFLAGS=""
9877   else
9878     test_LDFLAGS="-L${with_dvdread}/lib"
9879     test_CFLAGS="-I${with_dvdread}/include"
9880   fi
9881   CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
9882
9883 for ac_header in dvdread/dvd_reader.h
9884 do
9885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9887   echo "$as_me:$LINENO: checking for $ac_header" >&5
9888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 fi
9892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9894 else
9895   # Is the header compilable?
9896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9898 cat >conftest.$ac_ext <<_ACEOF
9899 #line $LINENO "configure"
9900 #include "confdefs.h"
9901 $ac_includes_default
9902 #include <$ac_header>
9903 _ACEOF
9904 rm -f conftest.$ac_objext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906   (eval $ac_compile) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); } &&
9910          { ac_try='test -s conftest.$ac_objext'
9911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912   (eval $ac_try) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; }; then
9916   ac_header_compiler=yes
9917 else
9918   echo "$as_me: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9920 ac_header_compiler=no
9921 fi
9922 rm -f conftest.$ac_objext conftest.$ac_ext
9923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9924 echo "${ECHO_T}$ac_header_compiler" >&6
9925
9926 # Is the header present?
9927 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9929 cat >conftest.$ac_ext <<_ACEOF
9930 #line $LINENO "configure"
9931 #include "confdefs.h"
9932 #include <$ac_header>
9933 _ACEOF
9934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9936   ac_status=$?
9937   grep -v '^ *+' conftest.er1 >conftest.err
9938   rm -f conftest.er1
9939   cat conftest.err >&5
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); } >/dev/null; then
9942   if test -s conftest.err; then
9943     ac_cpp_err=$ac_c_preproc_warn_flag
9944   else
9945     ac_cpp_err=
9946   fi
9947 else
9948   ac_cpp_err=yes
9949 fi
9950 if test -z "$ac_cpp_err"; then
9951   ac_header_preproc=yes
9952 else
9953   echo "$as_me: failed program was:" >&5
9954   cat conftest.$ac_ext >&5
9955   ac_header_preproc=no
9956 fi
9957 rm -f conftest.err conftest.$ac_ext
9958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9959 echo "${ECHO_T}$ac_header_preproc" >&6
9960
9961 # So?  What about this header?
9962 case $ac_header_compiler:$ac_header_preproc in
9963   yes:no )
9964     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9968   no:yes )
9969     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9971     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9975 esac
9976 echo "$as_me:$LINENO: checking for $ac_header" >&5
9977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9979   echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981   eval "$as_ac_Header=$ac_header_preproc"
9982 fi
9983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9985
9986 fi
9987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9988   cat >>confdefs.h <<_ACEOF
9989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9990 _ACEOF
9991
9992      cat >conftest.$ac_ext <<_ACEOF
9993 #line $LINENO "configure"
9994 #include "confdefs.h"
9995 #include <dvdread/dvd_reader.h>
9996 int
9997 main ()
9998 {
9999 void foo() { int i=DVD_VIDEO_LB_LEN; }
10000   ;
10001   return 0;
10002 }
10003 _ACEOF
10004 rm -f conftest.$ac_objext
10005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006   (eval $ac_compile) 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); } &&
10010          { ac_try='test -s conftest.$ac_objext'
10011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012   (eval $ac_try) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); }; }; then
10016
10017           PLUGINS="${PLUGINS} dvdread"
10018           dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
10019           dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
10020
10021 else
10022   echo "$as_me: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10024
10025           if test "x$enable_dvdread" != x
10026           then
10027             { { 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
10028 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;}
10029    { (exit 1); exit 1; }; }
10030           fi
10031
10032 fi
10033 rm -f conftest.$ac_objext conftest.$ac_ext
10034
10035 else
10036
10037     if test "x$enable_dvdread" != x
10038     then
10039       if test "x$with_dvdread" != x
10040       then
10041         { { echo "$as_me:$LINENO: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&5
10042 echo "$as_me: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&2;}
10043    { (exit 1); exit 1; }; }
10044       else
10045         { { echo "$as_me:$LINENO: error: Cannot find dvdread/dvd_reader.h" >&5
10046 echo "$as_me: error: Cannot find dvdread/dvd_reader.h" >&2;}
10047    { (exit 1); exit 1; }; }
10048       fi
10049     fi
10050
10051 fi
10052
10053 done
10054
10055   CPPFLAGS="$save_CPPFLAGS"
10056 fi
10057
10058 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
10059 if test "${enable_dvbpsi+set}" = set; then
10060   enableval="$enable_dvbpsi"
10061
10062 fi;
10063 if test "x$enable_dvbpsi" != "xno"
10064 then
10065
10066 # Check whether --with-dvbpsi or --without-dvbpsi was given.
10067 if test "${with_dvbpsi+set}" = set; then
10068   withval="$with_dvbpsi"
10069
10070 fi;
10071
10072 # Check whether --with-dvbpsi or --without-dvbpsi was given.
10073 if test "${with_dvbpsi+set}" = set; then
10074   withval="$with_dvbpsi"
10075
10076 fi;
10077   case "x$with_dvbpsi" in
10078   x|xyes)
10079     if test "x$with_dvbpsi_tree" = x
10080     then
10081
10082 for ac_header in dvbpsi/dr.h
10083 do
10084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10085 echo "$as_me:$LINENO: checking for $ac_header" >&5
10086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   cat >conftest.$ac_ext <<_ACEOF
10091 #line $LINENO "configure"
10092 #include "confdefs.h"
10093   { { echo "$as_me:$LINENO: error: cannot find libdvbpsi headers" >&5
10094 echo "$as_me: error: cannot find libdvbpsi headers" >&2;}
10095    { (exit 1); exit 1; }; }
10096
10097 #include <$ac_header>
10098 _ACEOF
10099 rm -f conftest.$ac_objext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101   (eval $ac_compile) 2>&5
10102   ac_status=$?
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); } &&
10105          { ac_try='test -s conftest.$ac_objext'
10106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107   (eval $ac_try) 2>&5
10108   ac_status=$?
10109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110   (exit $ac_status); }; }; then
10111   eval "$as_ac_Header=yes"
10112 else
10113   echo "$as_me: failed program was:" >&5
10114 cat conftest.$ac_ext >&5
10115 eval "$as_ac_Header=no"
10116 fi
10117 rm -f conftest.$ac_objext conftest.$ac_ext
10118 fi
10119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10122   cat >>confdefs.h <<_ACEOF
10123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10124 _ACEOF
10125   PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
10126           mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
10127 fi
10128
10129 done
10130
10131     else
10132       echo "$as_me:$LINENO: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
10133 echo $ECHO_N "checking for libdvbpsi.a in ${with_dvbpsi_tree}... $ECHO_C" >&6
10134       real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
10135       if test "x$real_dvbpsi_tree" = x
10136       then
10137                 echo "$as_me:$LINENO: result: no" >&5
10138 echo "${ECHO_T}no" >&6
10139         { { echo "$as_me:$LINENO: error: cannot cd to ${with_dvbpsi_tree}" >&5
10140 echo "$as_me: error: cannot cd to ${with_dvbpsi_tree}" >&2;}
10141    { (exit 1); exit 1; }; }
10142       fi
10143       if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
10144       then
10145                 echo "$as_me:$LINENO: result: ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&5
10146 echo "${ECHO_T}${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&6
10147         BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
10148         mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
10149         mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
10150       else
10151                 echo "$as_me:$LINENO: result: no" >&5
10152 echo "${ECHO_T}no" >&6
10153         { { echo "$as_me:$LINENO: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&5
10154 echo "$as_me: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&2;}
10155    { (exit 1); exit 1; }; }
10156       fi
10157     fi
10158   ;;
10159   xno)
10160       ;;
10161   *)
10162     echo "$as_me:$LINENO: checking for dvbpsi headers in ${with_dvbpsi}" >&5
10163 echo $ECHO_N "checking for dvbpsi headers in ${with_dvbpsi}... $ECHO_C" >&6
10164     if test "x$with_dvbpsi" = x
10165     then
10166       test_LDFLAGS=""
10167       test_CFLAGS=""
10168     else
10169       test_LDFLAGS="-L${with_dvbpsi}/lib"
10170       test_CFLAGS="-I${with_dvbpsi}/include"
10171     fi
10172     CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
10173     if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10174   echo "$as_me:$LINENO: checking for dvbpsi/dr.h" >&5
10175 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
10176 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10177   echo $ECHO_N "(cached) $ECHO_C" >&6
10178 fi
10179 echo "$as_me:$LINENO: result: $ac_cv_header_dvbpsi_dr_h" >&5
10180 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
10181 else
10182   # Is the header compilable?
10183 echo "$as_me:$LINENO: checking dvbpsi/dr.h usability" >&5
10184 echo $ECHO_N "checking dvbpsi/dr.h usability... $ECHO_C" >&6
10185 cat >conftest.$ac_ext <<_ACEOF
10186 #line $LINENO "configure"
10187 #include "confdefs.h"
10188 $ac_includes_default
10189 #include <dvbpsi/dr.h>
10190 _ACEOF
10191 rm -f conftest.$ac_objext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193   (eval $ac_compile) 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); } &&
10197          { ac_try='test -s conftest.$ac_objext'
10198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199   (eval $ac_try) 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; }; then
10203   ac_header_compiler=yes
10204 else
10205   echo "$as_me: failed program was:" >&5
10206 cat conftest.$ac_ext >&5
10207 ac_header_compiler=no
10208 fi
10209 rm -f conftest.$ac_objext conftest.$ac_ext
10210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10211 echo "${ECHO_T}$ac_header_compiler" >&6
10212
10213 # Is the header present?
10214 echo "$as_me:$LINENO: checking dvbpsi/dr.h presence" >&5
10215 echo $ECHO_N "checking dvbpsi/dr.h presence... $ECHO_C" >&6
10216 cat >conftest.$ac_ext <<_ACEOF
10217 #line $LINENO "configure"
10218 #include "confdefs.h"
10219 #include <dvbpsi/dr.h>
10220 _ACEOF
10221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10223   ac_status=$?
10224   grep -v '^ *+' conftest.er1 >conftest.err
10225   rm -f conftest.er1
10226   cat conftest.err >&5
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); } >/dev/null; then
10229   if test -s conftest.err; then
10230     ac_cpp_err=$ac_c_preproc_warn_flag
10231   else
10232     ac_cpp_err=
10233   fi
10234 else
10235   ac_cpp_err=yes
10236 fi
10237 if test -z "$ac_cpp_err"; then
10238   ac_header_preproc=yes
10239 else
10240   echo "$as_me: failed program was:" >&5
10241   cat conftest.$ac_ext >&5
10242   ac_header_preproc=no
10243 fi
10244 rm -f conftest.err conftest.$ac_ext
10245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10246 echo "${ECHO_T}$ac_header_preproc" >&6
10247
10248 # So?  What about this header?
10249 case $ac_header_compiler:$ac_header_preproc in
10250   yes:no )
10251     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: accepted by the compiler, rejected by the preprocessor!" >&5
10252 echo "$as_me: WARNING: dvbpsi/dr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10253     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&5
10254 echo "$as_me: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&2;};;
10255   no:yes )
10256     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: present but cannot be compiled" >&5
10257 echo "$as_me: WARNING: dvbpsi/dr.h: present but cannot be compiled" >&2;}
10258     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: check for missing prerequisite headers?" >&5
10259 echo "$as_me: WARNING: dvbpsi/dr.h: check for missing prerequisite headers?" >&2;}
10260     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&5
10261 echo "$as_me: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&2;};;
10262 esac
10263 echo "$as_me:$LINENO: checking for dvbpsi/dr.h" >&5
10264 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
10265 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268   ac_cv_header_dvbpsi_dr_h=$ac_header_preproc
10269 fi
10270 echo "$as_me:$LINENO: result: $ac_cv_header_dvbpsi_dr_h" >&5
10271 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
10272
10273 fi
10274 if test $ac_cv_header_dvbpsi_dr_h = yes; then
10275
10276       PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
10277       mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
10278       mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
10279
10280 else
10281
10282       if test "x$enable_dvbpsi" != x
10283       then
10284         { { 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
10285 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;}
10286    { (exit 1); exit 1; }; }
10287       fi
10288
10289 fi
10290
10291
10292     CPPFLAGS="$save_CPPFLAGS"
10293   ;;
10294   esac
10295 fi
10296
10297 # Check whether --enable-vcd or --disable-vcd was given.
10298 if test "${enable_vcd+set}" = set; then
10299   enableval="$enable_vcd"
10300
10301 fi;
10302
10303 if test x$enable_vcd != xno
10304 then
10305   cat >conftest.$ac_ext <<_ACEOF
10306 #line $LINENO "configure"
10307 #include "confdefs.h"
10308 #include <linux/cdrom.h>
10309
10310 _ACEOF
10311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10312   $EGREP "cdrom_msf0" >/dev/null 2>&1; then
10313
10314     PLUGINS="${PLUGINS} vcd"
10315
10316 fi
10317 rm -f conftest*
10318
10319
10320   cat >conftest.$ac_ext <<_ACEOF
10321 #line $LINENO "configure"
10322 #include "confdefs.h"
10323 #include <sys/cdio.h>
10324
10325 _ACEOF
10326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10327   $EGREP "ioc_toc_header " >/dev/null 2>&1; then
10328
10329     PLUGINS="${PLUGINS} vcd"
10330
10331 cat >>confdefs.h <<\_ACEOF
10332 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
10333 _ACEOF
10334
10335
10336 fi
10337 rm -f conftest*
10338
10339
10340   if test "x${SYS}" = "xbsdi"
10341   then
10342     PLUGINS="${PLUGINS} vcd"
10343   fi
10344
10345   if test "x${SYS}" = "xdarwin"
10346   then
10347     PLUGINS="${PLUGINS} vcd"
10348     vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
10349   fi
10350 fi
10351
10352 # Check whether --enable-satellite or --disable-satellite was given.
10353 if test "${enable_satellite+set}" = set; then
10354   enableval="$enable_satellite"
10355    if test x$enable_satellite = xyes
10356     then
10357       PLUGINS="${PLUGINS} satellite"
10358     fi
10359 fi;
10360
10361 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
10362 then
10363   echo "$as_me:$LINENO: checking for inet_pton" >&5
10364 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
10365 if test "${ac_cv_func_inet_pton+set}" = set; then
10366   echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368   cat >conftest.$ac_ext <<_ACEOF
10369 #line $LINENO "configure"
10370 #include "confdefs.h"
10371 /* System header to define __stub macros and hopefully few prototypes,
10372     which can conflict with char inet_pton (); below.  */
10373 #include <assert.h>
10374 /* Override any gcc2 internal prototype to avoid an error.  */
10375 #ifdef __cplusplus
10376 extern "C"
10377 #endif
10378 /* We use char because int might match the return type of a gcc2
10379    builtin and then its argument prototype would still apply.  */
10380 char inet_pton ();
10381 char (*f) ();
10382
10383 int
10384 main ()
10385 {
10386 /* The GNU C library defines this for functions which it implements
10387     to always fail with ENOSYS.  Some functions are actually named
10388     something starting with __ and the normal name is an alias.  */
10389 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
10390 choke me
10391 #else
10392 f = inet_pton;
10393 #endif
10394
10395   ;
10396   return 0;
10397 }
10398 _ACEOF
10399 rm -f conftest.$ac_objext conftest$ac_exeext
10400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401   (eval $ac_link) 2>&5
10402   ac_status=$?
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); } &&
10405          { ac_try='test -s conftest$ac_exeext'
10406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407   (eval $ac_try) 2>&5
10408   ac_status=$?
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); }; }; then
10411   ac_cv_func_inet_pton=yes
10412 else
10413   echo "$as_me: failed program was:" >&5
10414 cat conftest.$ac_ext >&5
10415 ac_cv_func_inet_pton=no
10416 fi
10417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10418 fi
10419 echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
10420 echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
10421 if test $ac_cv_func_inet_pton = yes; then
10422   PLUGINS="${PLUGINS} ipv6"
10423 fi
10424
10425 fi
10426 if test "x$SYS" = "xmingw32"
10427 then
10428   echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h" >&5
10429 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h... $ECHO_C" >&6
10430   cat >conftest.$ac_ext <<_ACEOF
10431 #line $LINENO "configure"
10432 #include "confdefs.h"
10433 #include <ws2tcpip.h>
10434
10435 _ACEOF
10436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10437   $EGREP "addrinfo" >/dev/null 2>&1; then
10438   echo "$as_me:$LINENO: result: yes" >&5
10439 echo "${ECHO_T}yes" >&6
10440     PLUGINS="${PLUGINS} ipv6"
10441 else
10442   echo "$as_me:$LINENO: result: no" >&5
10443 echo "${ECHO_T}no" >&6
10444 fi
10445 rm -f conftest*
10446
10447 fi
10448
10449 # Check whether --enable-avi or --disable-avi was given.
10450 if test "${enable_avi+set}" = set; then
10451   enableval="$enable_avi"
10452
10453 fi;
10454 if test x$enable_avi != xno
10455 then
10456   PLUGINS="${PLUGINS} avi"
10457 fi
10458
10459
10460
10461 # Check whether --with- or --without- was given.
10462 if test "${with_+set}" = set; then
10463   withval="$with_"
10464
10465 fi;
10466
10467 # Check whether --enable-mad or --disable-mad was given.
10468 if test "${enable_mad+set}" = set; then
10469   enableval="$enable_mad"
10470
10471 fi;
10472 if test x$enable_mad = xyes
10473 then
10474
10475 # Check whether --with-mad or --without-mad was given.
10476 if test "${with_mad+set}" = set; then
10477   withval="$with_mad"
10478
10479 fi;
10480   if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
10481   then
10482     mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
10483     mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
10484   fi
10485
10486
10487 # Check whether --with-mad-tree or --without-mad-tree was given.
10488 if test "${with_mad_tree+set}" = set; then
10489   withval="$with_mad_tree"
10490
10491 fi;
10492   if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
10493   then
10494     real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
10495     if test "x$real_mad_tree" = x
10496     then
10497             echo "$as_me:$LINENO: result: no" >&5
10498 echo "${ECHO_T}no" >&6
10499       { { echo "$as_me:$LINENO: error: ${with_mad_tree} directory doesn't exist" >&5
10500 echo "$as_me: error: ${with_mad_tree} directory doesn't exist" >&2;}
10501    { (exit 1); exit 1; }; }
10502     fi
10503         echo "$as_me:$LINENO: checking for mad.h in ${real_mad_tree}/libmad" >&5
10504 echo $ECHO_N "checking for mad.h in ${real_mad_tree}/libmad... $ECHO_C" >&6
10505     if test -f ${real_mad_tree}/libmad/mad.h
10506     then
10507       echo "$as_me:$LINENO: result: yes" >&5
10508 echo "${ECHO_T}yes" >&6
10509       mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
10510       mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
10511       save_LDFLAGS=$LDFLAGS
10512       LDFLAGS=$mad_LDFLAGS
10513       echo "$as_me:$LINENO: checking for mad_bit_init in -lmad" >&5
10514 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
10515 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
10516   echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518   ac_check_lib_save_LIBS=$LIBS
10519 LIBS="-lmad  $LIBS"
10520 cat >conftest.$ac_ext <<_ACEOF
10521 #line $LINENO "configure"
10522 #include "confdefs.h"
10523
10524 /* Override any gcc2 internal prototype to avoid an error.  */
10525 #ifdef __cplusplus
10526 extern "C"
10527 #endif
10528 /* We use char because int might match the return type of a gcc2
10529    builtin and then its argument prototype would still apply.  */
10530 char mad_bit_init ();
10531 int
10532 main ()
10533 {
10534 mad_bit_init ();
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10541   (eval $ac_link) 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); } &&
10545          { ac_try='test -s conftest$ac_exeext'
10546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547   (eval $ac_try) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; }; then
10551   ac_cv_lib_mad_mad_bit_init=yes
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10555 ac_cv_lib_mad_mad_bit_init=no
10556 fi
10557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10558 LIBS=$ac_check_lib_save_LIBS
10559 fi
10560 echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_bit_init" >&5
10561 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
10562 if test $ac_cv_lib_mad_mad_bit_init = yes; then
10563
10564         BUILTINS="${BUILTINS} mad"
10565         mad_LDFLAGS="${mad_LDFLAGS} -lmad"
10566
10567 else
10568    { { echo "$as_me:$LINENO: error: the specified tree hasn't been compiled " >&5
10569 echo "$as_me: error: the specified tree hasn't been compiled " >&2;}
10570    { (exit 1); exit 1; }; }
10571
10572 fi
10573
10574       LDFLAGS=$save_LDFLAGS
10575     else
10576       echo "$as_me:$LINENO: result: no" >&5
10577 echo "${ECHO_T}no" >&6
10578       { { echo "$as_me:$LINENO: error: the specified tree doesn't have mad.h" >&5
10579 echo "$as_me: error: the specified tree doesn't have mad.h" >&2;}
10580    { (exit 1); exit 1; }; }
10581     fi
10582   else
10583     save_CFLAGS=$CFLAGS
10584     save_LDFLAGS=$LDFLAGS
10585     CFLAGS="$CFLAGS $mad_CFLAGS"
10586     LDFLAGS="$LDFLAGS $mad_LDFLAGS"
10587
10588 for ac_header in mad.h
10589 do
10590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10592   echo "$as_me:$LINENO: checking for $ac_header" >&5
10593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10595   echo $ECHO_N "(cached) $ECHO_C" >&6
10596 fi
10597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10599 else
10600   # Is the header compilable?
10601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10603 cat >conftest.$ac_ext <<_ACEOF
10604 #line $LINENO "configure"
10605 #include "confdefs.h"
10606 $ac_includes_default
10607 #include <$ac_header>
10608 _ACEOF
10609 rm -f conftest.$ac_objext
10610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611   (eval $ac_compile) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } &&
10615          { ac_try='test -s conftest.$ac_objext'
10616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617   (eval $ac_try) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); }; }; then
10621   ac_header_compiler=yes
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 ac_header_compiler=no
10626 fi
10627 rm -f conftest.$ac_objext conftest.$ac_ext
10628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10629 echo "${ECHO_T}$ac_header_compiler" >&6
10630
10631 # Is the header present?
10632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10634 cat >conftest.$ac_ext <<_ACEOF
10635 #line $LINENO "configure"
10636 #include "confdefs.h"
10637 #include <$ac_header>
10638 _ACEOF
10639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10640   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10641   ac_status=$?
10642   grep -v '^ *+' conftest.er1 >conftest.err
10643   rm -f conftest.er1
10644   cat conftest.err >&5
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); } >/dev/null; then
10647   if test -s conftest.err; then
10648     ac_cpp_err=$ac_c_preproc_warn_flag
10649   else
10650     ac_cpp_err=
10651   fi
10652 else
10653   ac_cpp_err=yes
10654 fi
10655 if test -z "$ac_cpp_err"; then
10656   ac_header_preproc=yes
10657 else
10658   echo "$as_me: failed program was:" >&5
10659   cat conftest.$ac_ext >&5
10660   ac_header_preproc=no
10661 fi
10662 rm -f conftest.err conftest.$ac_ext
10663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10664 echo "${ECHO_T}$ac_header_preproc" >&6
10665
10666 # So?  What about this header?
10667 case $ac_header_compiler:$ac_header_preproc in
10668   yes:no )
10669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10673   no:yes )
10674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10676     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10680 esac
10681 echo "$as_me:$LINENO: checking for $ac_header" >&5
10682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10684   echo $ECHO_N "(cached) $ECHO_C" >&6
10685 else
10686   eval "$as_ac_Header=$ac_header_preproc"
10687 fi
10688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10690
10691 fi
10692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10693   cat >>confdefs.h <<_ACEOF
10694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10695 _ACEOF
10696
10697 else
10698    { { echo "$as_me:$LINENO: error: Cannot find development headers for libmad..." >&5
10699 echo "$as_me: error: Cannot find development headers for libmad..." >&2;}
10700    { (exit 1); exit 1; }; }
10701 fi
10702
10703 done
10704
10705     echo "$as_me:$LINENO: checking for mad_bit_init in -lmad" >&5
10706 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
10707 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
10708   echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710   ac_check_lib_save_LIBS=$LIBS
10711 LIBS="-lmad  $LIBS"
10712 cat >conftest.$ac_ext <<_ACEOF
10713 #line $LINENO "configure"
10714 #include "confdefs.h"
10715
10716 /* Override any gcc2 internal prototype to avoid an error.  */
10717 #ifdef __cplusplus
10718 extern "C"
10719 #endif
10720 /* We use char because int might match the return type of a gcc2
10721    builtin and then its argument prototype would still apply.  */
10722 char mad_bit_init ();
10723 int
10724 main ()
10725 {
10726 mad_bit_init ();
10727   ;
10728   return 0;
10729 }
10730 _ACEOF
10731 rm -f conftest.$ac_objext conftest$ac_exeext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10733   (eval $ac_link) 2>&5
10734   ac_status=$?
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } &&
10737          { ac_try='test -s conftest$ac_exeext'
10738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739   (eval $ac_try) 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); }; }; then
10743   ac_cv_lib_mad_mad_bit_init=yes
10744 else
10745   echo "$as_me: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10747 ac_cv_lib_mad_mad_bit_init=no
10748 fi
10749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10750 LIBS=$ac_check_lib_save_LIBS
10751 fi
10752 echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_bit_init" >&5
10753 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
10754 if test $ac_cv_lib_mad_mad_bit_init = yes; then
10755
10756       PLUGINS="${PLUGINS} mad"
10757       mad_LDFLAGS="${mad_LDFLAGS} -lmad"
10758 else
10759    { { echo "$as_me:$LINENO: error: Cannot find libmad library..." >&5
10760 echo "$as_me: error: Cannot find libmad library..." >&2;}
10761    { (exit 1); exit 1; }; }
10762 fi
10763
10764     CFLAGS=$save_CFLAGS
10765     LDFLAGS=$save_LDFLAGS
10766   fi
10767 fi
10768
10769 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
10770 if test "${enable_ffmpeg+set}" = set; then
10771   enableval="$enable_ffmpeg"
10772
10773 fi;
10774 if test "x$enable_ffmpeg" = "xyes"
10775 then
10776
10777 # Check whether --with-ffmpeg or --without-ffmpeg was given.
10778 if test "${with_ffmpeg+set}" = set; then
10779   withval="$with_ffmpeg"
10780
10781 fi;
10782   if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
10783   then
10784     ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
10785     ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
10786   fi
10787
10788
10789 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
10790 if test "${with_ffmpeg_tree+set}" = set; then
10791   withval="$with_ffmpeg_tree"
10792
10793 fi;
10794   if test "x$with_ffmpeg_tree" != "x"
10795   then
10796     echo "$as_me:$LINENO: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
10797 echo $ECHO_N "checking for libavcodec.a in ${with_ffmpeg_tree}... $ECHO_C" >&6
10798     real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
10799     if test "x$real_ffmpeg_tree" = x
10800     then
10801             echo "$as_me:$LINENO: result: no" >&5
10802 echo "${ECHO_T}no" >&6
10803       { { echo "$as_me:$LINENO: error: cannot cd to ${with_ffmpeg_tree}" >&5
10804 echo "$as_me: error: cannot cd to ${with_ffmpeg_tree}" >&2;}
10805    { (exit 1); exit 1; }; }
10806     fi
10807     if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
10808     then
10809             echo "$as_me:$LINENO: result: ${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&5
10810 echo "${ECHO_T}${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&6
10811       BUILTINS="${BUILTINS} ffmpeg"
10812       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
10813       if test x$SYS != xbeos
10814       then
10815         ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
10816       fi
10817       ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
10818     else
10819             echo "$as_me:$LINENO: result: no" >&5
10820 echo "${ECHO_T}no" >&6
10821       { { echo "$as_me:$LINENO: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&5
10822 echo "$as_me: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&2;}
10823    { (exit 1); exit 1; }; }
10824     fi
10825   else
10826     save_CFLAGS=$CFLAGS
10827     save_LDFLAGS=$LDFLAGS
10828     CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
10829     LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS"
10830     if test x$SYS != xbeos
10831     then
10832       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
10833     fi
10834     echo "$as_me:$LINENO: checking for avcodec_init in -lavcodec" >&5
10835 echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6
10836 if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839   ac_check_lib_save_LIBS=$LIBS
10840 LIBS="-lavcodec  $LIBS"
10841 cat >conftest.$ac_ext <<_ACEOF
10842 #line $LINENO "configure"
10843 #include "confdefs.h"
10844
10845 /* Override any gcc2 internal prototype to avoid an error.  */
10846 #ifdef __cplusplus
10847 extern "C"
10848 #endif
10849 /* We use char because int might match the return type of a gcc2
10850    builtin and then its argument prototype would still apply.  */
10851 char avcodec_init ();
10852 int
10853 main ()
10854 {
10855 avcodec_init ();
10856   ;
10857   return 0;
10858 }
10859 _ACEOF
10860 rm -f conftest.$ac_objext conftest$ac_exeext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10862   (eval $ac_link) 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); } &&
10866          { ac_try='test -s conftest$ac_exeext'
10867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868   (eval $ac_try) 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); }; }; then
10872   ac_cv_lib_avcodec_avcodec_init=yes
10873 else
10874   echo "$as_me: failed program was:" >&5
10875 cat conftest.$ac_ext >&5
10876 ac_cv_lib_avcodec_avcodec_init=no
10877 fi
10878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10879 LIBS=$ac_check_lib_save_LIBS
10880 fi
10881 echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_init" >&5
10882 echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6
10883 if test $ac_cv_lib_avcodec_avcodec_init = yes; then
10884
10885       BUILTINS="${BUILTINS} ffmpeg"
10886       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
10887       if test x$SYS != xbeos
10888       then
10889         ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
10890       fi
10891 else
10892    { { echo "$as_me:$LINENO: error: Cannot find libavcodec library..." >&5
10893 echo "$as_me: error: Cannot find libavcodec library..." >&2;}
10894    { (exit 1); exit 1; }; }
10895 fi
10896
10897     CFLAGS=$save_CFLAGS
10898     LDFLAGS=$save_LDFLAGS
10899   fi
10900 fi
10901
10902
10903 if test x$SYS = xbeos
10904 then
10905     PLUGINS="${PLUGINS} beos"
10906 fi
10907
10908 # Check whether --enable-a52 or --disable-a52 was given.
10909 if test "${enable_a52+set}" = set; then
10910   enableval="$enable_a52"
10911
10912 fi;
10913 if test "x$enable_a52" != "xno"
10914 then
10915
10916 # Check whether --with-a52-tree or --without-a52-tree was given.
10917 if test "${with_a52_tree+set}" = set; then
10918   withval="$with_a52_tree"
10919
10920 fi;
10921   if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
10922   then
10923     real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
10924     if test "x$real_a52_tree" = x
10925     then
10926             echo "$as_me:$LINENO: result: no" >&5
10927 echo "${ECHO_T}no" >&6
10928       { { echo "$as_me:$LINENO: error: ${with_a52_tree} directory doesn't exist" >&5
10929 echo "$as_me: error: ${with_a52_tree} directory doesn't exist" >&2;}
10930    { (exit 1); exit 1; }; }
10931     fi
10932         echo "$as_me:$LINENO: checking for a52.h in ${real_a52_tree}/include" >&5
10933 echo $ECHO_N "checking for a52.h in ${real_a52_tree}/include... $ECHO_C" >&6
10934     if test -f ${real_a52_tree}/include/a52.h
10935     then
10936       echo "$as_me:$LINENO: result: yes" >&5
10937 echo "${ECHO_T}yes" >&6
10938       a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
10939       a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
10940       save_LDFLAGS=$LDFLAGS
10941       LDFLAGS="$a52_LDFLAGS $LDFLAGS"
10942       echo "$as_me:$LINENO: checking for a52_free in -la52" >&5
10943 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
10944 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
10945   echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947   ac_check_lib_save_LIBS=$LIBS
10948 LIBS="-la52 -lm $LIBS"
10949 cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10951 #include "confdefs.h"
10952
10953 /* Override any gcc2 internal prototype to avoid an error.  */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 /* We use char because int might match the return type of a gcc2
10958    builtin and then its argument prototype would still apply.  */
10959 char a52_free ();
10960 int
10961 main ()
10962 {
10963 a52_free ();
10964   ;
10965   return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10970   (eval $ac_link) 2>&5
10971   ac_status=$?
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); } &&
10974          { ac_try='test -s conftest$ac_exeext'
10975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976   (eval $ac_try) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); }; }; then
10980   ac_cv_lib_a52_a52_free=yes
10981 else
10982   echo "$as_me: failed program was:" >&5
10983 cat conftest.$ac_ext >&5
10984 ac_cv_lib_a52_a52_free=no
10985 fi
10986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10988 fi
10989 echo "$as_me:$LINENO: result: $ac_cv_lib_a52_a52_free" >&5
10990 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
10991 if test $ac_cv_lib_a52_a52_free = yes; then
10992
10993         BUILTINS="${BUILTINS} a52"
10994         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
10995         a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
10996
10997 else
10998
10999         if test -f ${real_a52_tree}/liba52/.libs/liba52.a
11000         then
11001           { { echo "$as_me:$LINENO: error: make sure you have at least a52dec-0.7.3" >&5
11002 echo "$as_me: error: make sure you have at least a52dec-0.7.3" >&2;}
11003    { (exit 1); exit 1; }; }
11004         else
11005           { { echo "$as_me:$LINENO: error: the specified tree hasn't been compiled" >&5
11006 echo "$as_me: error: the specified tree hasn't been compiled" >&2;}
11007    { (exit 1); exit 1; }; }
11008         fi
11009
11010 fi
11011
11012       LDFLAGS=$save_LDFLAGS
11013     else
11014       echo "$as_me:$LINENO: result: no" >&5
11015 echo "${ECHO_T}no" >&6
11016       { { echo "$as_me:$LINENO: error: the specified tree doesn't have a52.h" >&5
11017 echo "$as_me: error: the specified tree doesn't have a52.h" >&2;}
11018    { (exit 1); exit 1; }; }
11019     fi
11020   else
11021 for ac_header in a52dec/a52.h
11022 do
11023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11025   echo "$as_me:$LINENO: checking for $ac_header" >&5
11026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 fi
11030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11032 else
11033   # Is the header compilable?
11034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11036 cat >conftest.$ac_ext <<_ACEOF
11037 #line $LINENO "configure"
11038 #include "confdefs.h"
11039 $ac_includes_default
11040 #include <$ac_header>
11041 _ACEOF
11042 rm -f conftest.$ac_objext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044   (eval $ac_compile) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); } &&
11048          { ac_try='test -s conftest.$ac_objext'
11049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050   (eval $ac_try) 2>&5
11051   ac_status=$?
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); }; }; then
11054   ac_header_compiler=yes
11055 else
11056   echo "$as_me: failed program was:" >&5
11057 cat conftest.$ac_ext >&5
11058 ac_header_compiler=no
11059 fi
11060 rm -f conftest.$ac_objext conftest.$ac_ext
11061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11062 echo "${ECHO_T}$ac_header_compiler" >&6
11063
11064 # Is the header present?
11065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11067 cat >conftest.$ac_ext <<_ACEOF
11068 #line $LINENO "configure"
11069 #include "confdefs.h"
11070 #include <$ac_header>
11071 _ACEOF
11072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11074   ac_status=$?
11075   grep -v '^ *+' conftest.er1 >conftest.err
11076   rm -f conftest.er1
11077   cat conftest.err >&5
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } >/dev/null; then
11080   if test -s conftest.err; then
11081     ac_cpp_err=$ac_c_preproc_warn_flag
11082   else
11083     ac_cpp_err=
11084   fi
11085 else
11086   ac_cpp_err=yes
11087 fi
11088 if test -z "$ac_cpp_err"; then
11089   ac_header_preproc=yes
11090 else
11091   echo "$as_me: failed program was:" >&5
11092   cat conftest.$ac_ext >&5
11093   ac_header_preproc=no
11094 fi
11095 rm -f conftest.err conftest.$ac_ext
11096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11097 echo "${ECHO_T}$ac_header_preproc" >&6
11098
11099 # So?  What about this header?
11100 case $ac_header_compiler:$ac_header_preproc in
11101   yes:no )
11102     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11106   no:yes )
11107     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11109     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 esac
11114 echo "$as_me:$LINENO: checking for $ac_header" >&5
11115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11117   echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119   eval "$as_ac_Header=$ac_header_preproc"
11120 fi
11121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11123
11124 fi
11125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11126   cat >>confdefs.h <<_ACEOF
11127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11128 _ACEOF
11129
11130       echo "$as_me:$LINENO: checking for a52_free in -la52" >&5
11131 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
11132 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
11133   echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135   ac_check_lib_save_LIBS=$LIBS
11136 LIBS="-la52 -lm $LIBS"
11137 cat >conftest.$ac_ext <<_ACEOF
11138 #line $LINENO "configure"
11139 #include "confdefs.h"
11140
11141 /* Override any gcc2 internal prototype to avoid an error.  */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 /* We use char because int might match the return type of a gcc2
11146    builtin and then its argument prototype would still apply.  */
11147 char a52_free ();
11148 int
11149 main ()
11150 {
11151 a52_free ();
11152   ;
11153   return 0;
11154 }
11155 _ACEOF
11156 rm -f conftest.$ac_objext conftest$ac_exeext
11157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11158   (eval $ac_link) 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); } &&
11162          { ac_try='test -s conftest$ac_exeext'
11163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164   (eval $ac_try) 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); }; }; then
11168   ac_cv_lib_a52_a52_free=yes
11169 else
11170   echo "$as_me: failed program was:" >&5
11171 cat conftest.$ac_ext >&5
11172 ac_cv_lib_a52_a52_free=no
11173 fi
11174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11175 LIBS=$ac_check_lib_save_LIBS
11176 fi
11177 echo "$as_me:$LINENO: result: $ac_cv_lib_a52_a52_free" >&5
11178 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
11179 if test $ac_cv_lib_a52_a52_free = yes; then
11180
11181         BUILTINS="${BUILTINS} a52"
11182         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
11183         a52_CFLAGS="${a52_CFLAGS}"
11184
11185 fi
11186
11187
11188 fi
11189
11190 done
11191
11192   fi
11193 fi
11194
11195 # Check whether --enable-vorbis or --disable-vorbis was given.
11196 if test "${enable_vorbis+set}" = set; then
11197   enableval="$enable_vorbis"
11198
11199 fi;
11200 if test "x$enable_vorbis" != "xno"
11201 then
11202
11203 for ac_header in ogg/ogg.h
11204 do
11205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11207   echo "$as_me:$LINENO: checking for $ac_header" >&5
11208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11210   echo $ECHO_N "(cached) $ECHO_C" >&6
11211 fi
11212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11214 else
11215   # Is the header compilable?
11216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11218 cat >conftest.$ac_ext <<_ACEOF
11219 #line $LINENO "configure"
11220 #include "confdefs.h"
11221 $ac_includes_default
11222 #include <$ac_header>
11223 _ACEOF
11224 rm -f conftest.$ac_objext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226   (eval $ac_compile) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } &&
11230          { ac_try='test -s conftest.$ac_objext'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; }; then
11236   ac_header_compiler=yes
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 ac_header_compiler=no
11241 fi
11242 rm -f conftest.$ac_objext conftest.$ac_ext
11243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11244 echo "${ECHO_T}$ac_header_compiler" >&6
11245
11246 # Is the header present?
11247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11249 cat >conftest.$ac_ext <<_ACEOF
11250 #line $LINENO "configure"
11251 #include "confdefs.h"
11252 #include <$ac_header>
11253 _ACEOF
11254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11256   ac_status=$?
11257   grep -v '^ *+' conftest.er1 >conftest.err
11258   rm -f conftest.er1
11259   cat conftest.err >&5
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); } >/dev/null; then
11262   if test -s conftest.err; then
11263     ac_cpp_err=$ac_c_preproc_warn_flag
11264   else
11265     ac_cpp_err=
11266   fi
11267 else
11268   ac_cpp_err=yes
11269 fi
11270 if test -z "$ac_cpp_err"; then
11271   ac_header_preproc=yes
11272 else
11273   echo "$as_me: failed program was:" >&5
11274   cat conftest.$ac_ext >&5
11275   ac_header_preproc=no
11276 fi
11277 rm -f conftest.err conftest.$ac_ext
11278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11279 echo "${ECHO_T}$ac_header_preproc" >&6
11280
11281 # So?  What about this header?
11282 case $ac_header_compiler:$ac_header_preproc in
11283   yes:no )
11284     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11288   no:yes )
11289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11291     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11295 esac
11296 echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301   eval "$as_ac_Header=$ac_header_preproc"
11302 fi
11303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11305
11306 fi
11307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11308   cat >>confdefs.h <<_ACEOF
11309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11310 _ACEOF
11311
11312         #PLUGINS="${PLUGINS} vorbis"
11313     vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
11314
11315 fi
11316
11317 done
11318
11319 fi
11320
11321
11322
11323 # Check whether --with- or --without- was given.
11324 if test "${with_+set}" = set; then
11325   withval="$with_"
11326
11327 fi;
11328
11329 # Check whether --enable-x11 or --disable-x11 was given.
11330 if test "${enable_x11+set}" = set; then
11331   enableval="$enable_x11"
11332
11333 fi;
11334 if test x$enable_x11 != xno &&
11335   (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
11336   if test x$x_includes = xNONE; then
11337     x_includes=/usr/X11R6/include
11338   fi
11339   if test x$x_libraries = xNONE; then
11340     x_libraries=/usr/X11R6/lib
11341   fi
11342   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
11343
11344 for ac_header in X11/Xlib.h
11345 do
11346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11348   echo "$as_me:$LINENO: checking for $ac_header" >&5
11349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11351   echo $ECHO_N "(cached) $ECHO_C" >&6
11352 fi
11353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11355 else
11356   # Is the header compilable?
11357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11359 cat >conftest.$ac_ext <<_ACEOF
11360 #line $LINENO "configure"
11361 #include "confdefs.h"
11362 $ac_includes_default
11363 #include <$ac_header>
11364 _ACEOF
11365 rm -f conftest.$ac_objext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11367   (eval $ac_compile) 2>&5
11368   ac_status=$?
11369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); } &&
11371          { ac_try='test -s conftest.$ac_objext'
11372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373   (eval $ac_try) 2>&5
11374   ac_status=$?
11375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376   (exit $ac_status); }; }; then
11377   ac_header_compiler=yes
11378 else
11379   echo "$as_me: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11381 ac_header_compiler=no
11382 fi
11383 rm -f conftest.$ac_objext conftest.$ac_ext
11384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11385 echo "${ECHO_T}$ac_header_compiler" >&6
11386
11387 # Is the header present?
11388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11390 cat >conftest.$ac_ext <<_ACEOF
11391 #line $LINENO "configure"
11392 #include "confdefs.h"
11393 #include <$ac_header>
11394 _ACEOF
11395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11397   ac_status=$?
11398   grep -v '^ *+' conftest.er1 >conftest.err
11399   rm -f conftest.er1
11400   cat conftest.err >&5
11401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402   (exit $ac_status); } >/dev/null; then
11403   if test -s conftest.err; then
11404     ac_cpp_err=$ac_c_preproc_warn_flag
11405   else
11406     ac_cpp_err=
11407   fi
11408 else
11409   ac_cpp_err=yes
11410 fi
11411 if test -z "$ac_cpp_err"; then
11412   ac_header_preproc=yes
11413 else
11414   echo "$as_me: failed program was:" >&5
11415   cat conftest.$ac_ext >&5
11416   ac_header_preproc=no
11417 fi
11418 rm -f conftest.err conftest.$ac_ext
11419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11420 echo "${ECHO_T}$ac_header_preproc" >&6
11421
11422 # So?  What about this header?
11423 case $ac_header_compiler:$ac_header_preproc in
11424   yes:no )
11425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11429   no:yes )
11430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11436 esac
11437 echo "$as_me:$LINENO: checking for $ac_header" >&5
11438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11440   echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442   eval "$as_ac_Header=$ac_header_preproc"
11443 fi
11444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11446
11447 fi
11448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11449   cat >>confdefs.h <<_ACEOF
11450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11451 _ACEOF
11452
11453     PLUGINS="${PLUGINS} x11"
11454     x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
11455     x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
11456
11457 fi
11458
11459 done
11460
11461   CPPFLAGS="$save_CPPFLAGS"
11462 fi
11463
11464 # Check whether --enable-xvideo or --disable-xvideo was given.
11465 if test "${enable_xvideo+set}" = set; then
11466   enableval="$enable_xvideo"
11467
11468 fi;
11469 if test x$enable_xvideo != xno &&
11470   (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
11471   if test x$x_includes = xNONE; then
11472     x_includes=/usr/X11R6/include
11473   fi
11474   if test x$x_libraries = xNONE; then
11475     x_libraries=/usr/X11R6/lib
11476   fi
11477   save_CPPFLAGS=$CPPFLAGS
11478   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
11479
11480 for ac_header in X11/extensions/Xv.h
11481 do
11482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11484   echo "$as_me:$LINENO: checking for $ac_header" >&5
11485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11487   echo $ECHO_N "(cached) $ECHO_C" >&6
11488 fi
11489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11491 else
11492   # Is the header compilable?
11493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11495 cat >conftest.$ac_ext <<_ACEOF
11496 #line $LINENO "configure"
11497 #include "confdefs.h"
11498 $ac_includes_default
11499 #include <$ac_header>
11500 _ACEOF
11501 rm -f conftest.$ac_objext
11502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11503   (eval $ac_compile) 2>&5
11504   ac_status=$?
11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); } &&
11507          { ac_try='test -s conftest.$ac_objext'
11508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509   (eval $ac_try) 2>&5
11510   ac_status=$?
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); }; }; then
11513   ac_header_compiler=yes
11514 else
11515   echo "$as_me: failed program was:" >&5
11516 cat conftest.$ac_ext >&5
11517 ac_header_compiler=no
11518 fi
11519 rm -f conftest.$ac_objext conftest.$ac_ext
11520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11521 echo "${ECHO_T}$ac_header_compiler" >&6
11522
11523 # Is the header present?
11524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11526 cat >conftest.$ac_ext <<_ACEOF
11527 #line $LINENO "configure"
11528 #include "confdefs.h"
11529 #include <$ac_header>
11530 _ACEOF
11531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11532   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11533   ac_status=$?
11534   grep -v '^ *+' conftest.er1 >conftest.err
11535   rm -f conftest.er1
11536   cat conftest.err >&5
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); } >/dev/null; then
11539   if test -s conftest.err; then
11540     ac_cpp_err=$ac_c_preproc_warn_flag
11541   else
11542     ac_cpp_err=
11543   fi
11544 else
11545   ac_cpp_err=yes
11546 fi
11547 if test -z "$ac_cpp_err"; then
11548   ac_header_preproc=yes
11549 else
11550   echo "$as_me: failed program was:" >&5
11551   cat conftest.$ac_ext >&5
11552   ac_header_preproc=no
11553 fi
11554 rm -f conftest.err conftest.$ac_ext
11555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11556 echo "${ECHO_T}$ac_header_preproc" >&6
11557
11558 # So?  What about this header?
11559 case $ac_header_compiler:$ac_header_preproc in
11560   yes:no )
11561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11565   no:yes )
11566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11568     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11572 esac
11573 echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11576   echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578   eval "$as_ac_Header=$ac_header_preproc"
11579 fi
11580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11582
11583 fi
11584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11585   cat >>confdefs.h <<_ACEOF
11586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11587 _ACEOF
11588
11589     save_CFLAGS=$CFLAGS
11590     CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
11591     echo "$as_me:$LINENO: checking for XvSetPortAttribute in -lXv_pic" >&5
11592 echo $ECHO_N "checking for XvSetPortAttribute in -lXv_pic... $ECHO_C" >&6
11593 if test "${ac_cv_lib_Xv_pic_XvSetPortAttribute+set}" = set; then
11594   echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596   ac_check_lib_save_LIBS=$LIBS
11597 LIBS="-lXv_pic  $LIBS"
11598 cat >conftest.$ac_ext <<_ACEOF
11599 #line $LINENO "configure"
11600 #include "confdefs.h"
11601
11602 /* Override any gcc2 internal prototype to avoid an error.  */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 /* We use char because int might match the return type of a gcc2
11607    builtin and then its argument prototype would still apply.  */
11608 char XvSetPortAttribute ();
11609 int
11610 main ()
11611 {
11612 XvSetPortAttribute ();
11613   ;
11614   return 0;
11615 }
11616 _ACEOF
11617 rm -f conftest.$ac_objext conftest$ac_exeext
11618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11619   (eval $ac_link) 2>&5
11620   ac_status=$?
11621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622   (exit $ac_status); } &&
11623          { ac_try='test -s conftest$ac_exeext'
11624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625   (eval $ac_try) 2>&5
11626   ac_status=$?
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); }; }; then
11629   ac_cv_lib_Xv_pic_XvSetPortAttribute=yes
11630 else
11631   echo "$as_me: failed program was:" >&5
11632 cat conftest.$ac_ext >&5
11633 ac_cv_lib_Xv_pic_XvSetPortAttribute=no
11634 fi
11635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11636 LIBS=$ac_check_lib_save_LIBS
11637 fi
11638 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_pic_XvSetPortAttribute" >&5
11639 echo "${ECHO_T}$ac_cv_lib_Xv_pic_XvSetPortAttribute" >&6
11640 if test $ac_cv_lib_Xv_pic_XvSetPortAttribute = yes; then
11641   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
11642       PLUGINS="${PLUGINS} xvideo"
11643       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
11644       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
11645 else
11646   # We don't have Xv_pic, let's make xvideo.a as builtin
11647       BUILTINS="${BUILTINS} xvideo"
11648       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
11649       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
11650 fi
11651
11652     CFLAGS="$save_CFLAGS"
11653
11654   CPPFLAGS="$save_CPPFLAGS"
11655 fi
11656
11657 done
11658
11659 fi
11660
11661 # Check whether --enable-sdl or --disable-sdl was given.
11662 if test "${enable_sdl+set}" = set; then
11663   enableval="$enable_sdl"
11664
11665 fi;
11666 if test "x$enable_sdl" != "xno"
11667 then
11668   SDL_PATH=$PATH
11669
11670 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
11671 if test "${with_sdl_config_path+set}" = set; then
11672   withval="$with_sdl_config_path"
11673    if test "x$with_sdl_config_path" != "xno"
11674       then
11675         SDL_PATH="$with_sdl_config_path:$PATH"
11676       fi
11677 fi;
11678   # Extract the first word of "sdl12-config", so it can be a program name with args.
11679 set dummy sdl12-config; ac_word=$2
11680 echo "$as_me:$LINENO: checking for $ac_word" >&5
11681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11682 if test "${ac_cv_path_SDL12_CONFIG+set}" = set; then
11683   echo $ECHO_N "(cached) $ECHO_C" >&6
11684 else
11685   case $SDL12_CONFIG in
11686   [\\/]* | ?:[\\/]*)
11687   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
11688   ;;
11689   *)
11690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $SDL_PATH
11692 do
11693   IFS=$as_save_IFS
11694   test -z "$as_dir" && as_dir=.
11695   for ac_exec_ext in '' $ac_executable_extensions; do
11696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11697     ac_cv_path_SDL12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11699     break 2
11700   fi
11701 done
11702 done
11703
11704   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
11705   ;;
11706 esac
11707 fi
11708 SDL12_CONFIG=$ac_cv_path_SDL12_CONFIG
11709
11710 if test -n "$SDL12_CONFIG"; then
11711   echo "$as_me:$LINENO: result: $SDL12_CONFIG" >&5
11712 echo "${ECHO_T}$SDL12_CONFIG" >&6
11713 else
11714   echo "$as_me:$LINENO: result: no" >&5
11715 echo "${ECHO_T}no" >&6
11716 fi
11717
11718   SDL_CONFIG=${SDL12_CONFIG}
11719   SDL_HEADER="SDL12/SDL.h"
11720   if test x${SDL_CONFIG} = xno
11721   then
11722     # Extract the first word of "sdl11-config", so it can be a program name with args.
11723 set dummy sdl11-config; ac_word=$2
11724 echo "$as_me:$LINENO: checking for $ac_word" >&5
11725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11726 if test "${ac_cv_path_SDL11_CONFIG+set}" = set; then
11727   echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729   case $SDL11_CONFIG in
11730   [\\/]* | ?:[\\/]*)
11731   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
11732   ;;
11733   *)
11734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735 for as_dir in $SDL_PATH
11736 do
11737   IFS=$as_save_IFS
11738   test -z "$as_dir" && as_dir=.
11739   for ac_exec_ext in '' $ac_executable_extensions; do
11740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11741     ac_cv_path_SDL11_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11743     break 2
11744   fi
11745 done
11746 done
11747
11748   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
11749   ;;
11750 esac
11751 fi
11752 SDL11_CONFIG=$ac_cv_path_SDL11_CONFIG
11753
11754 if test -n "$SDL11_CONFIG"; then
11755   echo "$as_me:$LINENO: result: $SDL11_CONFIG" >&5
11756 echo "${ECHO_T}$SDL11_CONFIG" >&6
11757 else
11758   echo "$as_me:$LINENO: result: no" >&5
11759 echo "${ECHO_T}no" >&6
11760 fi
11761
11762     SDL_CONFIG=${SDL11_CONFIG}
11763     SDL_HEADER="SDL11/SDL.h"
11764   fi
11765   if test x${SDL_CONFIG} = xno
11766   then
11767     # Extract the first word of "sdl-config", so it can be a program name with args.
11768 set dummy sdl-config; ac_word=$2
11769 echo "$as_me:$LINENO: checking for $ac_word" >&5
11770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11771 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
11772   echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774   case $SDL_CONFIG in
11775   [\\/]* | ?:[\\/]*)
11776   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11777   ;;
11778   *)
11779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780 for as_dir in $SDL_PATH
11781 do
11782   IFS=$as_save_IFS
11783   test -z "$as_dir" && as_dir=.
11784   for ac_exec_ext in '' $ac_executable_extensions; do
11785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11786     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11788     break 2
11789   fi
11790 done
11791 done
11792
11793   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11794   ;;
11795 esac
11796 fi
11797 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11798
11799 if test -n "$SDL_CONFIG"; then
11800   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
11801 echo "${ECHO_T}$SDL_CONFIG" >&6
11802 else
11803   echo "$as_me:$LINENO: result: no" >&5
11804 echo "${ECHO_T}no" >&6
11805 fi
11806
11807     SDL_HEADER="SDL/SDL.h"
11808   fi
11809   # check for cross-compiling
11810   SDL_PREFIX=
11811
11812 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
11813 if test "${with_sdl_prefix+set}" = set; then
11814   withval="$with_sdl_prefix"
11815
11816 fi;
11817   if test "x$with_sdl_prefix" != "xno" -a "x$with_sdl_prefix" != "x"
11818   then
11819     SDL_PREFIX="--prefix=$with_sdl_prefix"
11820   fi
11821   if test x${SDL_CONFIG} != xno
11822   then
11823     PLUGINS="${PLUGINS} sdl"
11824     sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} ${SDL_PREFIX} --cflags`"
11825     sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} ${SDL_PREFIX} --libs | sed 's,-rdynamic,,'`"
11826     CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
11827
11828 for ac_header in ${SDL_HEADER}
11829 do
11830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11832   echo "$as_me:$LINENO: checking for $ac_header" >&5
11833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11835   echo $ECHO_N "(cached) $ECHO_C" >&6
11836 fi
11837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11839 else
11840   # Is the header compilable?
11841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11843 cat >conftest.$ac_ext <<_ACEOF
11844 #line $LINENO "configure"
11845 #include "confdefs.h"
11846 $ac_includes_default
11847 #include <$ac_header>
11848 _ACEOF
11849 rm -f conftest.$ac_objext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11851   (eval $ac_compile) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } &&
11855          { ac_try='test -s conftest.$ac_objext'
11856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857   (eval $ac_try) 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); }; }; then
11861   ac_header_compiler=yes
11862 else
11863   echo "$as_me: failed program was:" >&5
11864 cat conftest.$ac_ext >&5
11865 ac_header_compiler=no
11866 fi
11867 rm -f conftest.$ac_objext conftest.$ac_ext
11868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11869 echo "${ECHO_T}$ac_header_compiler" >&6
11870
11871 # Is the header present?
11872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11874 cat >conftest.$ac_ext <<_ACEOF
11875 #line $LINENO "configure"
11876 #include "confdefs.h"
11877 #include <$ac_header>
11878 _ACEOF
11879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11880   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11881   ac_status=$?
11882   grep -v '^ *+' conftest.er1 >conftest.err
11883   rm -f conftest.er1
11884   cat conftest.err >&5
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); } >/dev/null; then
11887   if test -s conftest.err; then
11888     ac_cpp_err=$ac_c_preproc_warn_flag
11889   else
11890     ac_cpp_err=
11891   fi
11892 else
11893   ac_cpp_err=yes
11894 fi
11895 if test -z "$ac_cpp_err"; then
11896   ac_header_preproc=yes
11897 else
11898   echo "$as_me: failed program was:" >&5
11899   cat conftest.$ac_ext >&5
11900   ac_header_preproc=no
11901 fi
11902 rm -f conftest.err conftest.$ac_ext
11903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11904 echo "${ECHO_T}$ac_header_preproc" >&6
11905
11906 # So?  What about this header?
11907 case $ac_header_compiler:$ac_header_preproc in
11908   yes:no )
11909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11913   no:yes )
11914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11916     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11920 esac
11921 echo "$as_me:$LINENO: checking for $ac_header" >&5
11922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11924   echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926   eval "$as_ac_Header=$ac_header_preproc"
11927 fi
11928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11930
11931 fi
11932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11933   cat >>confdefs.h <<_ACEOF
11934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11935 _ACEOF
11936
11937 cat >>confdefs.h <<_ACEOF
11938 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
11939 _ACEOF
11940
11941 else
11942    { { echo "$as_me:$LINENO: error: The development package for SDL is not installed.
11943 Please install it and try again. Alternatively you can also configure with
11944 --disable-sdl." >&5
11945 echo "$as_me: error: The development package for SDL is not installed.
11946 Please install it and try again. Alternatively you can also configure with
11947 --disable-sdl." >&2;}
11948    { (exit 1); exit 1; }; }
11949
11950 fi
11951
11952 done
11953
11954     CPPFLAGS="$save_CPPFLAGS"
11955     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
11956     then
11957       { { echo "$as_me:$LINENO: error: The development package for SDL is not installed.
11958 Please install it and try again. Alternatively you can also configure with
11959 --disable-sdl." >&5
11960 echo "$as_me: error: The development package for SDL is not installed.
11961 Please install it and try again. Alternatively you can also configure with
11962 --disable-sdl." >&2;}
11963    { (exit 1); exit 1; }; }
11964     fi
11965   elif test "x$enable_sdl" =  "xyes"
11966   then
11967     { { echo "$as_me:$LINENO: error: I couldn't find the SDL package. You can download libSDL
11968 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
11969     " >&5
11970 echo "$as_me: error: I couldn't find the SDL package. You can download libSDL
11971 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
11972     " >&2;}
11973    { (exit 1); exit 1; }; }
11974   fi
11975 fi
11976
11977 # Check whether --enable-qte or --disable-qte was given.
11978 if test "${enable_qte+set}" = set; then
11979   enableval="$enable_qte"
11980
11981 fi;
11982 if test "x${enable_qte}" = "xyes"
11983 then
11984
11985 # Check whether --with-qte or --without-qte was given.
11986 if test "${with_qte+set}" = set; then
11987   withval="$with_qte"
11988
11989 fi;
11990   if test "x${with_qte}" = "xyes" -a "x${with_qte}" != "x"
11991   then
11992     test_LDFLAGS="-L${QTDIR}/lib"
11993     test_CFLAGS="-I${QTDIR}/include"
11994   else
11995     test_LDFLAGS="-L${with_qte}/lib"
11996     test_CFLAGS="-I${with_qte}/include"
11997   fi
11998
11999   CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
12000
12001 for ac_header in qte.h
12002 do
12003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12005   echo "$as_me:$LINENO: checking for $ac_header" >&5
12006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 fi
12010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12012 else
12013   # Is the header compilable?
12014 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12016 cat >conftest.$ac_ext <<_ACEOF
12017 #line $LINENO "configure"
12018 #include "confdefs.h"
12019 $ac_includes_default
12020 #include <$ac_header>
12021 _ACEOF
12022 rm -f conftest.$ac_objext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024   (eval $ac_compile) 2>&5
12025   ac_status=$?
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); } &&
12028          { ac_try='test -s conftest.$ac_objext'
12029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030   (eval $ac_try) 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); }; }; then
12034   ac_header_compiler=yes
12035 else
12036   echo "$as_me: failed program was:" >&5
12037 cat conftest.$ac_ext >&5
12038 ac_header_compiler=no
12039 fi
12040 rm -f conftest.$ac_objext conftest.$ac_ext
12041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12042 echo "${ECHO_T}$ac_header_compiler" >&6
12043
12044 # Is the header present?
12045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12047 cat >conftest.$ac_ext <<_ACEOF
12048 #line $LINENO "configure"
12049 #include "confdefs.h"
12050 #include <$ac_header>
12051 _ACEOF
12052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12054   ac_status=$?
12055   grep -v '^ *+' conftest.er1 >conftest.err
12056   rm -f conftest.er1
12057   cat conftest.err >&5
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); } >/dev/null; then
12060   if test -s conftest.err; then
12061     ac_cpp_err=$ac_c_preproc_warn_flag
12062   else
12063     ac_cpp_err=
12064   fi
12065 else
12066   ac_cpp_err=yes
12067 fi
12068 if test -z "$ac_cpp_err"; then
12069   ac_header_preproc=yes
12070 else
12071   echo "$as_me: failed program was:" >&5
12072   cat conftest.$ac_ext >&5
12073   ac_header_preproc=no
12074 fi
12075 rm -f conftest.err conftest.$ac_ext
12076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12077 echo "${ECHO_T}$ac_header_preproc" >&6
12078
12079 # So?  What about this header?
12080 case $ac_header_compiler:$ac_header_preproc in
12081   yes:no )
12082     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12086   no:yes )
12087     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12093 esac
12094 echo "$as_me:$LINENO: checking for $ac_header" >&5
12095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12097   echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099   eval "$as_ac_Header=$ac_header_preproc"
12100 fi
12101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12103
12104 fi
12105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12106   cat >>confdefs.h <<_ACEOF
12107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12108 _ACEOF
12109
12110     qte_CFLAGS="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
12111     qte_LDFLAGS="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
12112     PLUGINS="${PLUGINS} qte"
12113
12114 else
12115    { { echo "$as_me:$LINENO: error: echo \"Cannot find QT Embedded development headers.\"" >&5
12116 echo "$as_me: error: echo \"Cannot find QT Embedded development headers.\"" >&2;}
12117    { (exit 1); exit 1; }; }
12118 fi
12119
12120 done
12121
12122   CPPFLAGS="${save_CPPFLAGS}"
12123 fi
12124
12125 # Check whether --enable-directx or --disable-directx was given.
12126 if test "${enable_directx+set}" = set; then
12127   enableval="$enable_directx"
12128
12129 fi;
12130 if test "x$enable_directx" != "xno"
12131 then
12132   if test x$SYS = xmingw32
12133   then
12134
12135 # Check whether --with-directx or --without-directx was given.
12136 if test "${with_directx+set}" = set; then
12137   withval="$with_directx"
12138
12139 fi;
12140     if test "x$with_directx" = "x"
12141     then
12142
12143 for ac_header in ddraw.h
12144 do
12145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12147   echo "$as_me:$LINENO: checking for $ac_header" >&5
12148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12150   echo $ECHO_N "(cached) $ECHO_C" >&6
12151 fi
12152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12154 else
12155   # Is the header compilable?
12156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12158 cat >conftest.$ac_ext <<_ACEOF
12159 #line $LINENO "configure"
12160 #include "confdefs.h"
12161 $ac_includes_default
12162 #include <$ac_header>
12163 _ACEOF
12164 rm -f conftest.$ac_objext
12165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12166   (eval $ac_compile) 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); } &&
12170          { ac_try='test -s conftest.$ac_objext'
12171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172   (eval $ac_try) 2>&5
12173   ac_status=$?
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); }; }; then
12176   ac_header_compiler=yes
12177 else
12178   echo "$as_me: failed program was:" >&5
12179 cat conftest.$ac_ext >&5
12180 ac_header_compiler=no
12181 fi
12182 rm -f conftest.$ac_objext conftest.$ac_ext
12183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12184 echo "${ECHO_T}$ac_header_compiler" >&6
12185
12186 # Is the header present?
12187 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12189 cat >conftest.$ac_ext <<_ACEOF
12190 #line $LINENO "configure"
12191 #include "confdefs.h"
12192 #include <$ac_header>
12193 _ACEOF
12194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12196   ac_status=$?
12197   grep -v '^ *+' conftest.er1 >conftest.err
12198   rm -f conftest.er1
12199   cat conftest.err >&5
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); } >/dev/null; then
12202   if test -s conftest.err; then
12203     ac_cpp_err=$ac_c_preproc_warn_flag
12204   else
12205     ac_cpp_err=
12206   fi
12207 else
12208   ac_cpp_err=yes
12209 fi
12210 if test -z "$ac_cpp_err"; then
12211   ac_header_preproc=yes
12212 else
12213   echo "$as_me: failed program was:" >&5
12214   cat conftest.$ac_ext >&5
12215   ac_header_preproc=no
12216 fi
12217 rm -f conftest.err conftest.$ac_ext
12218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12219 echo "${ECHO_T}$ac_header_preproc" >&6
12220
12221 # So?  What about this header?
12222 case $ac_header_compiler:$ac_header_preproc in
12223   yes:no )
12224     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12228   no:yes )
12229     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12231     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12235 esac
12236 echo "$as_me:$LINENO: checking for $ac_header" >&5
12237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12239   echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241   eval "$as_ac_Header=$ac_header_preproc"
12242 fi
12243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12245
12246 fi
12247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12248   cat >>confdefs.h <<_ACEOF
12249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12250 _ACEOF
12251   PLUGINS="${PLUGINS} directx"
12252         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
12253 fi
12254
12255 done
12256
12257     else
12258       echo "$as_me:$LINENO: checking for directX headers in ${with_directx}" >&5
12259 echo $ECHO_N "checking for directX headers in ${with_directx}... $ECHO_C" >&6
12260       if test -f ${with_directx}/ddraw.h
12261       then
12262         PLUGINS="${PLUGINS} directx"
12263         directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
12264         directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
12265         echo "$as_me:$LINENO: result: yes" >&5
12266 echo "${ECHO_T}yes" >&6
12267       else
12268         echo "$as_me:$LINENO: result: no" >&5
12269 echo "${ECHO_T}no" >&6
12270         { { echo "$as_me:$LINENO: error: Cannot find ${with_directx}/ddraw.h!" >&5
12271 echo "$as_me: error: Cannot find ${with_directx}/ddraw.h!" >&2;}
12272    { (exit 1); exit 1; }; }
12273       fi
12274     fi
12275   fi
12276 fi
12277
12278 # Check whether --enable-fb or --disable-fb was given.
12279 if test "${enable_fb+set}" = set; then
12280   enableval="$enable_fb"
12281
12282 fi;
12283     if test x$enable_fb != xno
12284     then
12285
12286 for ac_header in linux/fb.h
12287 do
12288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12290   echo "$as_me:$LINENO: checking for $ac_header" >&5
12291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12293   echo $ECHO_N "(cached) $ECHO_C" >&6
12294 fi
12295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12297 else
12298   # Is the header compilable?
12299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12301 cat >conftest.$ac_ext <<_ACEOF
12302 #line $LINENO "configure"
12303 #include "confdefs.h"
12304 $ac_includes_default
12305 #include <$ac_header>
12306 _ACEOF
12307 rm -f conftest.$ac_objext
12308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12309   (eval $ac_compile) 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); } &&
12313          { ac_try='test -s conftest.$ac_objext'
12314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315   (eval $ac_try) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; }; then
12319   ac_header_compiler=yes
12320 else
12321   echo "$as_me: failed program was:" >&5
12322 cat conftest.$ac_ext >&5
12323 ac_header_compiler=no
12324 fi
12325 rm -f conftest.$ac_objext conftest.$ac_ext
12326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12327 echo "${ECHO_T}$ac_header_compiler" >&6
12328
12329 # Is the header present?
12330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12332 cat >conftest.$ac_ext <<_ACEOF
12333 #line $LINENO "configure"
12334 #include "confdefs.h"
12335 #include <$ac_header>
12336 _ACEOF
12337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12339   ac_status=$?
12340   grep -v '^ *+' conftest.er1 >conftest.err
12341   rm -f conftest.er1
12342   cat conftest.err >&5
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); } >/dev/null; then
12345   if test -s conftest.err; then
12346     ac_cpp_err=$ac_c_preproc_warn_flag
12347   else
12348     ac_cpp_err=
12349   fi
12350 else
12351   ac_cpp_err=yes
12352 fi
12353 if test -z "$ac_cpp_err"; then
12354   ac_header_preproc=yes
12355 else
12356   echo "$as_me: failed program was:" >&5
12357   cat conftest.$ac_ext >&5
12358   ac_header_preproc=no
12359 fi
12360 rm -f conftest.err conftest.$ac_ext
12361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12362 echo "${ECHO_T}$ac_header_preproc" >&6
12363
12364 # So?  What about this header?
12365 case $ac_header_compiler:$ac_header_preproc in
12366   yes:no )
12367     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12371   no:yes )
12372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12374     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12378 esac
12379 echo "$as_me:$LINENO: checking for $ac_header" >&5
12380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382   echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384   eval "$as_ac_Header=$ac_header_preproc"
12385 fi
12386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12388
12389 fi
12390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12391   cat >>confdefs.h <<_ACEOF
12392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12393 _ACEOF
12394
12395         PLUGINS="${PLUGINS} fb"
12396
12397 fi
12398
12399 done
12400
12401     fi
12402
12403 # Check whether --enable-mga or --disable-mga was given.
12404 if test "${enable_mga+set}" = set; then
12405   enableval="$enable_mga"
12406    if test x$enable_mga = xyes
12407     then
12408       PLUGINS="${PLUGINS} mga xmga"
12409     fi
12410 fi;
12411
12412 # Check whether --enable-ggi or --disable-ggi was given.
12413 if test "${enable_ggi+set}" = set; then
12414   enableval="$enable_ggi"
12415
12416 fi;
12417 if test x$enable_ggi = xyes
12418 then
12419   PLUGINS="${PLUGINS} ggi"
12420   ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
12421
12422 # Check whether --with-ggi or --without-ggi was given.
12423 if test "${with_ggi+set}" = set; then
12424   withval="$with_ggi"
12425    if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
12426       then
12427         CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
12428         ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
12429       fi
12430 fi;
12431 fi
12432
12433 # Check whether --enable-glide or --disable-glide was given.
12434 if test "${enable_glide+set}" = set; then
12435   enableval="$enable_glide"
12436
12437 fi;
12438 if test x$enable_glide = xyes
12439 then
12440   PLUGINS="${PLUGINS} glide"
12441   glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
12442   glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
12443
12444 # Check whether --with-glide or --without-glide was given.
12445 if test "${with_glide+set}" = set; then
12446   withval="$with_glide"
12447    if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
12448       then
12449         glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
12450         glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
12451       fi
12452 fi;
12453 fi
12454
12455 # Check whether --enable-aa or --disable-aa was given.
12456 if test "${enable_aa+set}" = set; then
12457   enableval="$enable_aa"
12458
12459 fi;
12460 if test x$enable_aa = xyes
12461 then
12462   if test "${ac_cv_header_aalib_h+set}" = set; then
12463   echo "$as_me:$LINENO: checking for aalib.h" >&5
12464 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
12465 if test "${ac_cv_header_aalib_h+set}" = set; then
12466   echo $ECHO_N "(cached) $ECHO_C" >&6
12467 fi
12468 echo "$as_me:$LINENO: result: $ac_cv_header_aalib_h" >&5
12469 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
12470 else
12471   # Is the header compilable?
12472 echo "$as_me:$LINENO: checking aalib.h usability" >&5
12473 echo $ECHO_N "checking aalib.h usability... $ECHO_C" >&6
12474 cat >conftest.$ac_ext <<_ACEOF
12475 #line $LINENO "configure"
12476 #include "confdefs.h"
12477 $ac_includes_default
12478 #include <aalib.h>
12479 _ACEOF
12480 rm -f conftest.$ac_objext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12482   (eval $ac_compile) 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); } &&
12486          { ac_try='test -s conftest.$ac_objext'
12487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488   (eval $ac_try) 2>&5
12489   ac_status=$?
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); }; }; then
12492   ac_header_compiler=yes
12493 else
12494   echo "$as_me: failed program was:" >&5
12495 cat conftest.$ac_ext >&5
12496 ac_header_compiler=no
12497 fi
12498 rm -f conftest.$ac_objext conftest.$ac_ext
12499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12500 echo "${ECHO_T}$ac_header_compiler" >&6
12501
12502 # Is the header present?
12503 echo "$as_me:$LINENO: checking aalib.h presence" >&5
12504 echo $ECHO_N "checking aalib.h presence... $ECHO_C" >&6
12505 cat >conftest.$ac_ext <<_ACEOF
12506 #line $LINENO "configure"
12507 #include "confdefs.h"
12508 #include <aalib.h>
12509 _ACEOF
12510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12511   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12512   ac_status=$?
12513   grep -v '^ *+' conftest.er1 >conftest.err
12514   rm -f conftest.er1
12515   cat conftest.err >&5
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); } >/dev/null; then
12518   if test -s conftest.err; then
12519     ac_cpp_err=$ac_c_preproc_warn_flag
12520   else
12521     ac_cpp_err=
12522   fi
12523 else
12524   ac_cpp_err=yes
12525 fi
12526 if test -z "$ac_cpp_err"; then
12527   ac_header_preproc=yes
12528 else
12529   echo "$as_me: failed program was:" >&5
12530   cat conftest.$ac_ext >&5
12531   ac_header_preproc=no
12532 fi
12533 rm -f conftest.err conftest.$ac_ext
12534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12535 echo "${ECHO_T}$ac_header_preproc" >&6
12536
12537 # So?  What about this header?
12538 case $ac_header_compiler:$ac_header_preproc in
12539   yes:no )
12540     { echo "$as_me:$LINENO: WARNING: aalib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12541 echo "$as_me: WARNING: aalib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12542     { echo "$as_me:$LINENO: WARNING: aalib.h: proceeding with the preprocessor's result" >&5
12543 echo "$as_me: WARNING: aalib.h: proceeding with the preprocessor's result" >&2;};;
12544   no:yes )
12545     { echo "$as_me:$LINENO: WARNING: aalib.h: present but cannot be compiled" >&5
12546 echo "$as_me: WARNING: aalib.h: present but cannot be compiled" >&2;}
12547     { echo "$as_me:$LINENO: WARNING: aalib.h: check for missing prerequisite headers?" >&5
12548 echo "$as_me: WARNING: aalib.h: check for missing prerequisite headers?" >&2;}
12549     { echo "$as_me:$LINENO: WARNING: aalib.h: proceeding with the preprocessor's result" >&5
12550 echo "$as_me: WARNING: aalib.h: proceeding with the preprocessor's result" >&2;};;
12551 esac
12552 echo "$as_me:$LINENO: checking for aalib.h" >&5
12553 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
12554 if test "${ac_cv_header_aalib_h+set}" = set; then
12555   echo $ECHO_N "(cached) $ECHO_C" >&6
12556 else
12557   ac_cv_header_aalib_h=$ac_header_preproc
12558 fi
12559 echo "$as_me:$LINENO: result: $ac_cv_header_aalib_h" >&5
12560 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
12561
12562 fi
12563 if test $ac_cv_header_aalib_h = yes; then
12564   have_aa="true"
12565 else
12566   have_aa="false"
12567 fi
12568
12569
12570   if test x$have_aa = xtrue
12571   then
12572     PLUGINS="${PLUGINS} aa"
12573     aa_LDFLAGS="${aa_LDFLAGS} -laa"
12574   fi
12575 fi
12576
12577
12578
12579 # Check whether --with- or --without- was given.
12580 if test "${with_+set}" = set; then
12581   withval="$with_"
12582
12583 fi;
12584
12585 # Check whether --enable-dsp or --disable-dsp was given.
12586 if test "${enable_dsp+set}" = set; then
12587   enableval="$enable_dsp"
12588
12589 fi;
12590
12591 if test x$enable_dsp != xno &&
12592   (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
12593 then
12594
12595
12596
12597 for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h
12598 do
12599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12601   echo "$as_me:$LINENO: checking for $ac_header" >&5
12602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12604   echo $ECHO_N "(cached) $ECHO_C" >&6
12605 fi
12606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12608 else
12609   # Is the header compilable?
12610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12612 cat >conftest.$ac_ext <<_ACEOF
12613 #line $LINENO "configure"
12614 #include "confdefs.h"
12615 $ac_includes_default
12616 #include <$ac_header>
12617 _ACEOF
12618 rm -f conftest.$ac_objext
12619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620   (eval $ac_compile) 2>&5
12621   ac_status=$?
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); } &&
12624          { ac_try='test -s conftest.$ac_objext'
12625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626   (eval $ac_try) 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; }; then
12630   ac_header_compiler=yes
12631 else
12632   echo "$as_me: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 ac_header_compiler=no
12635 fi
12636 rm -f conftest.$ac_objext conftest.$ac_ext
12637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12638 echo "${ECHO_T}$ac_header_compiler" >&6
12639
12640 # Is the header present?
12641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12643 cat >conftest.$ac_ext <<_ACEOF
12644 #line $LINENO "configure"
12645 #include "confdefs.h"
12646 #include <$ac_header>
12647 _ACEOF
12648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12649   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12650   ac_status=$?
12651   grep -v '^ *+' conftest.er1 >conftest.err
12652   rm -f conftest.er1
12653   cat conftest.err >&5
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } >/dev/null; then
12656   if test -s conftest.err; then
12657     ac_cpp_err=$ac_c_preproc_warn_flag
12658   else
12659     ac_cpp_err=
12660   fi
12661 else
12662   ac_cpp_err=yes
12663 fi
12664 if test -z "$ac_cpp_err"; then
12665   ac_header_preproc=yes
12666 else
12667   echo "$as_me: failed program was:" >&5
12668   cat conftest.$ac_ext >&5
12669   ac_header_preproc=no
12670 fi
12671 rm -f conftest.err conftest.$ac_ext
12672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12673 echo "${ECHO_T}$ac_header_preproc" >&6
12674
12675 # So?  What about this header?
12676 case $ac_header_compiler:$ac_header_preproc in
12677   yes:no )
12678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12682   no:yes )
12683     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12685     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12689 esac
12690 echo "$as_me:$LINENO: checking for $ac_header" >&5
12691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12693   echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695   eval "$as_ac_Header=$ac_header_preproc"
12696 fi
12697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12699
12700 fi
12701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12702   cat >>confdefs.h <<_ACEOF
12703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12704 _ACEOF
12705
12706     PLUGINS="${PLUGINS} dsp"
12707     echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
12708 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6
12709 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
12710   echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712   ac_check_lib_save_LIBS=$LIBS
12713 LIBS="-lossaudio  $LIBS"
12714 cat >conftest.$ac_ext <<_ACEOF
12715 #line $LINENO "configure"
12716 #include "confdefs.h"
12717
12718
12719 int
12720 main ()
12721 {
12722 main ();
12723   ;
12724   return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12729   (eval $ac_link) 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); } &&
12733          { ac_try='test -s conftest$ac_exeext'
12734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735   (eval $ac_try) 2>&5
12736   ac_status=$?
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); }; }; then
12739   ac_cv_lib_ossaudio_main=yes
12740 else
12741   echo "$as_me: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12743 ac_cv_lib_ossaudio_main=no
12744 fi
12745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12746 LIBS=$ac_check_lib_save_LIBS
12747 fi
12748 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
12749 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6
12750 if test $ac_cv_lib_ossaudio_main = yes; then
12751   dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
12752 fi
12753
12754
12755 fi
12756
12757 done
12758
12759 fi
12760
12761 # Check whether --enable-esd or --disable-esd was given.
12762 if test "${enable_esd+set}" = set; then
12763   enableval="$enable_esd"
12764   if test x$enable_esd = xyes
12765    then
12766      # Extract the first word of "esd-config", so it can be a program name with args.
12767 set dummy esd-config; ac_word=$2
12768 echo "$as_me:$LINENO: checking for $ac_word" >&5
12769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12770 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12771   echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773   case $ESD_CONFIG in
12774   [\\/]* | ?:[\\/]*)
12775   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12776   ;;
12777   *)
12778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779 for as_dir in $PATH
12780 do
12781   IFS=$as_save_IFS
12782   test -z "$as_dir" && as_dir=.
12783   for ac_exec_ext in '' $ac_executable_extensions; do
12784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12785     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12787     break 2
12788   fi
12789 done
12790 done
12791
12792   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12793   ;;
12794 esac
12795 fi
12796 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12797
12798 if test -n "$ESD_CONFIG"; then
12799   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12800 echo "${ECHO_T}$ESD_CONFIG" >&6
12801 else
12802   echo "$as_me:$LINENO: result: no" >&5
12803 echo "${ECHO_T}no" >&6
12804 fi
12805
12806      if test x${ESD_CONFIG} != xno
12807      then
12808        PLUGINS="${PLUGINS} esd"
12809        esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
12810        esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
12811      fi
12812    fi
12813 fi;
12814
12815 # Check whether --enable-arts or --disable-arts was given.
12816 if test "${enable_arts+set}" = set; then
12817   enableval="$enable_arts"
12818   if test x$enable_arts = xyes
12819    then
12820      # Extract the first word of "artsc-config", so it can be a program name with args.
12821 set dummy artsc-config; ac_word=$2
12822 echo "$as_me:$LINENO: checking for $ac_word" >&5
12823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12824 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12825   echo $ECHO_N "(cached) $ECHO_C" >&6
12826 else
12827   case $ARTS_CONFIG in
12828   [\\/]* | ?:[\\/]*)
12829   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12830   ;;
12831   *)
12832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12833 for as_dir in $PATH
12834 do
12835   IFS=$as_save_IFS
12836   test -z "$as_dir" && as_dir=.
12837   for ac_exec_ext in '' $ac_executable_extensions; do
12838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12839     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12841     break 2
12842   fi
12843 done
12844 done
12845
12846   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12847   ;;
12848 esac
12849 fi
12850 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12851
12852 if test -n "$ARTS_CONFIG"; then
12853   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12854 echo "${ECHO_T}$ARTS_CONFIG" >&6
12855 else
12856   echo "$as_me:$LINENO: result: no" >&5
12857 echo "${ECHO_T}no" >&6
12858 fi
12859
12860      if test x${ARTS_CONFIG} != xno
12861      then
12862        PLUGINS="${PLUGINS} arts"
12863        arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
12864        arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
12865      fi
12866    fi
12867 fi;
12868
12869 # Check whether --enable-alsa or --disable-alsa was given.
12870 if test "${enable_alsa+set}" = set; then
12871   enableval="$enable_alsa"
12872   if test x$enable_alsa = xyes
12873    then
12874      if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
12875   echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
12876 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
12877 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
12878   echo $ECHO_N "(cached) $ECHO_C" >&6
12879 fi
12880 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
12881 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
12882 else
12883   # Is the header compilable?
12884 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
12885 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
12886 cat >conftest.$ac_ext <<_ACEOF
12887 #line $LINENO "configure"
12888 #include "confdefs.h"
12889 $ac_includes_default
12890 #include <alsa/asoundlib.h>
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894   (eval $ac_compile) 2>&5
12895   ac_status=$?
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); } &&
12898          { ac_try='test -s conftest.$ac_objext'
12899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900   (eval $ac_try) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; }; then
12904   ac_header_compiler=yes
12905 else
12906   echo "$as_me: failed program was:" >&5
12907 cat conftest.$ac_ext >&5
12908 ac_header_compiler=no
12909 fi
12910 rm -f conftest.$ac_objext conftest.$ac_ext
12911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12912 echo "${ECHO_T}$ac_header_compiler" >&6
12913
12914 # Is the header present?
12915 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
12916 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
12917 cat >conftest.$ac_ext <<_ACEOF
12918 #line $LINENO "configure"
12919 #include "confdefs.h"
12920 #include <alsa/asoundlib.h>
12921 _ACEOF
12922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12924   ac_status=$?
12925   grep -v '^ *+' conftest.er1 >conftest.err
12926   rm -f conftest.er1
12927   cat conftest.err >&5
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); } >/dev/null; then
12930   if test -s conftest.err; then
12931     ac_cpp_err=$ac_c_preproc_warn_flag
12932   else
12933     ac_cpp_err=
12934   fi
12935 else
12936   ac_cpp_err=yes
12937 fi
12938 if test -z "$ac_cpp_err"; then
12939   ac_header_preproc=yes
12940 else
12941   echo "$as_me: failed program was:" >&5
12942   cat conftest.$ac_ext >&5
12943   ac_header_preproc=no
12944 fi
12945 rm -f conftest.err conftest.$ac_ext
12946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12947 echo "${ECHO_T}$ac_header_preproc" >&6
12948
12949 # So?  What about this header?
12950 case $ac_header_compiler:$ac_header_preproc in
12951   yes:no )
12952     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12953 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12954     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
12955 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;};;
12956   no:yes )
12957     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
12958 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
12959     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
12960 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
12961     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
12962 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;};;
12963 esac
12964 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
12965 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
12966 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
12967   echo $ECHO_N "(cached) $ECHO_C" >&6
12968 else
12969   ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
12970 fi
12971 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
12972 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
12973
12974 fi
12975 if test $ac_cv_header_alsa_asoundlib_h = yes; then
12976   echo "$as_me:$LINENO: checking for main in -lasound" >&5
12977 echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6
12978 if test "${ac_cv_lib_asound_main+set}" = set; then
12979   echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981   ac_check_lib_save_LIBS=$LIBS
12982 LIBS="-lasound  $LIBS"
12983 cat >conftest.$ac_ext <<_ACEOF
12984 #line $LINENO "configure"
12985 #include "confdefs.h"
12986
12987
12988 int
12989 main ()
12990 {
12991 main ();
12992   ;
12993   return 0;
12994 }
12995 _ACEOF
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998   (eval $ac_link) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } &&
13002          { ac_try='test -s conftest$ac_exeext'
13003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004   (eval $ac_try) 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }; }; then
13008   ac_cv_lib_asound_main=yes
13009 else
13010   echo "$as_me: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13012 ac_cv_lib_asound_main=no
13013 fi
13014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13015 LIBS=$ac_check_lib_save_LIBS
13016 fi
13017 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_main" >&5
13018 echo "${ECHO_T}$ac_cv_lib_asound_main" >&6
13019 if test $ac_cv_lib_asound_main = yes; then
13020   have_alsa="true"
13021 else
13022   have_alsa="false"
13023 fi
13024
13025 else
13026   have_alsa="false"
13027 fi
13028
13029
13030      if test x$have_alsa = xtrue
13031      then
13032        PLUGINS="${PLUGINS} alsa"
13033        alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
13034      fi
13035    fi
13036 fi;
13037
13038 # Check whether --enable-waveout or --disable-waveout was given.
13039 if test "${enable_waveout+set}" = set; then
13040   enableval="$enable_waveout"
13041
13042 fi;
13043 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
13044   then
13045     PLUGINS="${PLUGINS} waveout"
13046     waveout_LDFLAGS="-lwinmm"
13047 fi
13048
13049
13050
13051 # Check whether --with- or --without- was given.
13052 if test "${with_+set}" = set; then
13053   withval="$with_"
13054
13055 fi;
13056
13057 # Check whether --enable-gtk or --disable-gtk was given.
13058 if test "${enable_gtk+set}" = set; then
13059   enableval="$enable_gtk"
13060
13061 fi;
13062 if test x$enable_gtk != xno
13063 then
13064   GTK_PATH=$PATH
13065
13066 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
13067 if test "${with_gtk_config_path+set}" = set; then
13068   withval="$with_gtk_config_path"
13069    if test "x$with_gtk_config_path" != "xno"
13070       then
13071         GTK_PATH="$with_gtk_config_path:$PATH"
13072       fi
13073 fi;
13074   # look for gtk-config
13075   # Extract the first word of "gtk12-config", so it can be a program name with args.
13076 set dummy gtk12-config; ac_word=$2
13077 echo "$as_me:$LINENO: checking for $ac_word" >&5
13078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13079 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
13080   echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082   case $GTK12_CONFIG in
13083   [\\/]* | ?:[\\/]*)
13084   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
13085   ;;
13086   *)
13087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $GTK_PATH
13089 do
13090   IFS=$as_save_IFS
13091   test -z "$as_dir" && as_dir=.
13092   for ac_exec_ext in '' $ac_executable_extensions; do
13093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13094     ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13096     break 2
13097   fi
13098 done
13099 done
13100
13101   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
13102   ;;
13103 esac
13104 fi
13105 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
13106
13107 if test -n "$GTK12_CONFIG"; then
13108   echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
13109 echo "${ECHO_T}$GTK12_CONFIG" >&6
13110 else
13111   echo "$as_me:$LINENO: result: no" >&5
13112 echo "${ECHO_T}no" >&6
13113 fi
13114
13115   GTK_CONFIG=${GTK12_CONFIG}
13116   if test x${GTK_CONFIG} = xno
13117   then
13118     # Extract the first word of "gtk-config", so it can be a program name with args.
13119 set dummy gtk-config; ac_word=$2
13120 echo "$as_me:$LINENO: checking for $ac_word" >&5
13121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13122 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
13123   echo $ECHO_N "(cached) $ECHO_C" >&6
13124 else
13125   case $GTK_CONFIG in
13126   [\\/]* | ?:[\\/]*)
13127   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
13128   ;;
13129   *)
13130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131 for as_dir in $GTK_PATH
13132 do
13133   IFS=$as_save_IFS
13134   test -z "$as_dir" && as_dir=.
13135   for ac_exec_ext in '' $ac_executable_extensions; do
13136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13137     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13139     break 2
13140   fi
13141 done
13142 done
13143
13144   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13145   ;;
13146 esac
13147 fi
13148 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
13149
13150 if test -n "$GTK_CONFIG"; then
13151   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
13152 echo "${ECHO_T}$GTK_CONFIG" >&6
13153 else
13154   echo "$as_me:$LINENO: result: no" >&5
13155 echo "${ECHO_T}no" >&6
13156 fi
13157
13158   fi
13159   if test x${GTK_CONFIG} != xno
13160   then
13161     if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
13162     then
13163       { { 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
13164 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;}
13165    { (exit 1); exit 1; }; }
13166     fi
13167     gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
13168     gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
13169     # now look for the gtk.h header
13170     CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
13171     ac_cv_gtk_headers=yes
13172
13173
13174
13175 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
13176 do
13177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13179   echo "$as_me:$LINENO: checking for $ac_header" >&5
13180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13182   echo $ECHO_N "(cached) $ECHO_C" >&6
13183 fi
13184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13186 else
13187   # Is the header compilable?
13188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13190 cat >conftest.$ac_ext <<_ACEOF
13191 #line $LINENO "configure"
13192 #include "confdefs.h"
13193 $ac_includes_default
13194 #include <$ac_header>
13195 _ACEOF
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198   (eval $ac_compile) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } &&
13202          { ac_try='test -s conftest.$ac_objext'
13203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204   (eval $ac_try) 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); }; }; then
13208   ac_header_compiler=yes
13209 else
13210   echo "$as_me: failed program was:" >&5
13211 cat conftest.$ac_ext >&5
13212 ac_header_compiler=no
13213 fi
13214 rm -f conftest.$ac_objext conftest.$ac_ext
13215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13216 echo "${ECHO_T}$ac_header_compiler" >&6
13217
13218 # Is the header present?
13219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13221 cat >conftest.$ac_ext <<_ACEOF
13222 #line $LINENO "configure"
13223 #include "confdefs.h"
13224 #include <$ac_header>
13225 _ACEOF
13226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13228   ac_status=$?
13229   grep -v '^ *+' conftest.er1 >conftest.err
13230   rm -f conftest.er1
13231   cat conftest.err >&5
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } >/dev/null; then
13234   if test -s conftest.err; then
13235     ac_cpp_err=$ac_c_preproc_warn_flag
13236   else
13237     ac_cpp_err=
13238   fi
13239 else
13240   ac_cpp_err=yes
13241 fi
13242 if test -z "$ac_cpp_err"; then
13243   ac_header_preproc=yes
13244 else
13245   echo "$as_me: failed program was:" >&5
13246   cat conftest.$ac_ext >&5
13247   ac_header_preproc=no
13248 fi
13249 rm -f conftest.err conftest.$ac_ext
13250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13251 echo "${ECHO_T}$ac_header_preproc" >&6
13252
13253 # So?  What about this header?
13254 case $ac_header_compiler:$ac_header_preproc in
13255   yes:no )
13256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13260   no:yes )
13261     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13263     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13267 esac
13268 echo "$as_me:$LINENO: checking for $ac_header" >&5
13269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13271   echo $ECHO_N "(cached) $ECHO_C" >&6
13272 else
13273   eval "$as_ac_Header=$ac_header_preproc"
13274 fi
13275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13277
13278 fi
13279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13280   cat >>confdefs.h <<_ACEOF
13281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13282 _ACEOF
13283
13284 else
13285
13286       ac_cv_gtk_headers=no
13287       echo "Cannot find gtk development headers."
13288
13289 fi
13290
13291 done
13292
13293     if test "x$ac_cv_gtk_headers" = xyes
13294     then
13295       PLUGINS="${PLUGINS} gtk"
13296       ALIASES="${ALIASES} gvlc"
13297     fi
13298     CPPFLAGS="$save_CPPFLAGS"
13299   fi
13300 fi
13301
13302 # Check whether --enable-familiar or --disable-familiar was given.
13303 if test "${enable_familiar+set}" = set; then
13304   enableval="$enable_familiar"
13305
13306 fi;
13307 if test "x${enable_familiar}" = "xyes"
13308 then
13309   GTK_PATH="${PATH}"
13310
13311 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
13312 if test "${with_gtk_config_path+set}" = set; then
13313   withval="$with_gtk_config_path"
13314    if test "x${with_gtk_config_path}" != "xno"
13315       then
13316         GTK_PATH="${with_gtk_config_path}:${PATH}"
13317       fi
13318 fi;
13319   # look for gtk-config
13320   # Extract the first word of "gtk12-config", so it can be a program name with args.
13321 set dummy gtk12-config; ac_word=$2
13322 echo "$as_me:$LINENO: checking for $ac_word" >&5
13323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13324 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
13325   echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327   case $GTK12_CONFIG in
13328   [\\/]* | ?:[\\/]*)
13329   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
13330   ;;
13331   *)
13332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in ${GTK_PATH}
13334 do
13335   IFS=$as_save_IFS
13336   test -z "$as_dir" && as_dir=.
13337   for ac_exec_ext in '' $ac_executable_extensions; do
13338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13339     ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13341     break 2
13342   fi
13343 done
13344 done
13345
13346   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
13347   ;;
13348 esac
13349 fi
13350 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
13351
13352 if test -n "$GTK12_CONFIG"; then
13353   echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
13354 echo "${ECHO_T}$GTK12_CONFIG" >&6
13355 else
13356   echo "$as_me:$LINENO: result: no" >&5
13357 echo "${ECHO_T}no" >&6
13358 fi
13359
13360   GTK_CONFIG=${GTK12_CONFIG}
13361   if test "x${GTK_CONFIG}" = "xno"
13362   then
13363     # Extract the first word of "gtk-config", so it can be a program name with args.
13364 set dummy gtk-config; ac_word=$2
13365 echo "$as_me:$LINENO: checking for $ac_word" >&5
13366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13367 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
13368   echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370   case $GTK_CONFIG in
13371   [\\/]* | ?:[\\/]*)
13372   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
13373   ;;
13374   *)
13375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 for as_dir in ${GTK_PATH}
13377 do
13378   IFS=$as_save_IFS
13379   test -z "$as_dir" && as_dir=.
13380   for ac_exec_ext in '' $ac_executable_extensions; do
13381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13382     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13384     break 2
13385   fi
13386 done
13387 done
13388
13389   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
13390   ;;
13391 esac
13392 fi
13393 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
13394
13395 if test -n "$GTK_CONFIG"; then
13396   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
13397 echo "${ECHO_T}$GTK_CONFIG" >&6
13398 else
13399   echo "$as_me:$LINENO: result: no" >&5
13400 echo "${ECHO_T}no" >&6
13401 fi
13402
13403   fi
13404   # check for cross-compiling
13405   GTK_PREFIX=
13406
13407 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
13408 if test "${with_gtk_prefix+set}" = set; then
13409   withval="$with_gtk_prefix"
13410
13411 fi;
13412   if test "x$with_gtk_prefix" != "xno" -a "x$with_gtk_prefix" != "x"
13413   then
13414     GTK_PREFIX="--prefix=$with_gtk_prefix"
13415   fi
13416   if test "x${GTK_CONFIG}" != "xno"
13417   then
13418     if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
13419     then
13420       { { 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
13421 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;}
13422    { (exit 1); exit 1; }; }
13423     fi
13424     familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} ${GTK_PREFIX} --cflags gtk gthread`"
13425     familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} ${GTK_PREFIX} --libs gtk gthread | sed 's,-rdynamic,,'`"
13426     # now look for the gtk.h header
13427     CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
13428     ac_cv_gtk_headers=yes
13429
13430
13431
13432 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
13433 do
13434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13436   echo "$as_me:$LINENO: checking for $ac_header" >&5
13437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 fi
13441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13443 else
13444   # Is the header compilable?
13445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13447 cat >conftest.$ac_ext <<_ACEOF
13448 #line $LINENO "configure"
13449 #include "confdefs.h"
13450 $ac_includes_default
13451 #include <$ac_header>
13452 _ACEOF
13453 rm -f conftest.$ac_objext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13455   (eval $ac_compile) 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); } &&
13459          { ac_try='test -s conftest.$ac_objext'
13460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461   (eval $ac_try) 2>&5
13462   ac_status=$?
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); }; }; then
13465   ac_header_compiler=yes
13466 else
13467   echo "$as_me: failed program was:" >&5
13468 cat conftest.$ac_ext >&5
13469 ac_header_compiler=no
13470 fi
13471 rm -f conftest.$ac_objext conftest.$ac_ext
13472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13473 echo "${ECHO_T}$ac_header_compiler" >&6
13474
13475 # Is the header present?
13476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13478 cat >conftest.$ac_ext <<_ACEOF
13479 #line $LINENO "configure"
13480 #include "confdefs.h"
13481 #include <$ac_header>
13482 _ACEOF
13483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13485   ac_status=$?
13486   grep -v '^ *+' conftest.er1 >conftest.err
13487   rm -f conftest.er1
13488   cat conftest.err >&5
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); } >/dev/null; then
13491   if test -s conftest.err; then
13492     ac_cpp_err=$ac_c_preproc_warn_flag
13493   else
13494     ac_cpp_err=
13495   fi
13496 else
13497   ac_cpp_err=yes
13498 fi
13499 if test -z "$ac_cpp_err"; then
13500   ac_header_preproc=yes
13501 else
13502   echo "$as_me: failed program was:" >&5
13503   cat conftest.$ac_ext >&5
13504   ac_header_preproc=no
13505 fi
13506 rm -f conftest.err conftest.$ac_ext
13507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13508 echo "${ECHO_T}$ac_header_preproc" >&6
13509
13510 # So?  What about this header?
13511 case $ac_header_compiler:$ac_header_preproc in
13512   yes:no )
13513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13517   no:yes )
13518     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13520     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13524 esac
13525 echo "$as_me:$LINENO: checking for $ac_header" >&5
13526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13528   echo $ECHO_N "(cached) $ECHO_C" >&6
13529 else
13530   eval "$as_ac_Header=$ac_header_preproc"
13531 fi
13532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13534
13535 fi
13536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13537   cat >>confdefs.h <<_ACEOF
13538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13539 _ACEOF
13540
13541 else
13542
13543       ac_cv_gtk_headers=no
13544       echo "Cannot find gtk development headers."
13545
13546 fi
13547
13548 done
13549
13550
13551     # now look for gpe support
13552
13553 # Check whether --with-gpe-prefix or --without-gpe-prefix was given.
13554 if test "${with_gpe_prefix+set}" = set; then
13555   withval="$with_gpe_prefix"
13556
13557 fi;
13558     if test "x$with_gpe_prefix" != "xno"  -a "x$with_gpe_prefix" != "x"
13559     then
13560       gpe_CFLAGS="-I$with_gpe_prefix/include"
13561       gpe_LDFLAGS="-lXi -lgdk_pixbuf -L$with_gpe_prefix/lib -lgpewidget"
13562       # now look for gpe/init.h header file
13563       save_CFLAGS=$CFLAGS
13564       save_LDFLAGS=$LDFLAGS
13565       CFLAGS="${familiar_CFLAGS} ${gpe_CFLAGS}"
13566       LDFLAGS="${familiar_LDFLAGS} ${gpe_LDFLAGS}"
13567       CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS} ${gpe_CFLAGS}"
13568       ac_cv_gpe_headers=yes
13569
13570 for ac_header in gpe/init.h
13571 do
13572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13574   echo "$as_me:$LINENO: checking for $ac_header" >&5
13575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13577   echo $ECHO_N "(cached) $ECHO_C" >&6
13578 fi
13579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13581 else
13582   # Is the header compilable?
13583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13585 cat >conftest.$ac_ext <<_ACEOF
13586 #line $LINENO "configure"
13587 #include "confdefs.h"
13588 $ac_includes_default
13589 #include <$ac_header>
13590 _ACEOF
13591 rm -f conftest.$ac_objext
13592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13593   (eval $ac_compile) 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); } &&
13597          { ac_try='test -s conftest.$ac_objext'
13598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599   (eval $ac_try) 2>&5
13600   ac_status=$?
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); }; }; then
13603   ac_header_compiler=yes
13604 else
13605   echo "$as_me: failed program was:" >&5
13606 cat conftest.$ac_ext >&5
13607 ac_header_compiler=no
13608 fi
13609 rm -f conftest.$ac_objext conftest.$ac_ext
13610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13611 echo "${ECHO_T}$ac_header_compiler" >&6
13612
13613 # Is the header present?
13614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13616 cat >conftest.$ac_ext <<_ACEOF
13617 #line $LINENO "configure"
13618 #include "confdefs.h"
13619 #include <$ac_header>
13620 _ACEOF
13621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13623   ac_status=$?
13624   grep -v '^ *+' conftest.er1 >conftest.err
13625   rm -f conftest.er1
13626   cat conftest.err >&5
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); } >/dev/null; then
13629   if test -s conftest.err; then
13630     ac_cpp_err=$ac_c_preproc_warn_flag
13631   else
13632     ac_cpp_err=
13633   fi
13634 else
13635   ac_cpp_err=yes
13636 fi
13637 if test -z "$ac_cpp_err"; then
13638   ac_header_preproc=yes
13639 else
13640   echo "$as_me: failed program was:" >&5
13641   cat conftest.$ac_ext >&5
13642   ac_header_preproc=no
13643 fi
13644 rm -f conftest.err conftest.$ac_ext
13645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13646 echo "${ECHO_T}$ac_header_preproc" >&6
13647
13648 # So?  What about this header?
13649 case $ac_header_compiler:$ac_header_preproc in
13650   yes:no )
13651     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13655   no:yes )
13656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13658     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13662 esac
13663 echo "$as_me:$LINENO: checking for $ac_header" >&5
13664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13666   echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668   eval "$as_ac_Header=$ac_header_preproc"
13669 fi
13670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13672
13673 fi
13674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13675   cat >>confdefs.h <<_ACEOF
13676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13677 _ACEOF
13678
13679 else
13680    ac_cv_gpe_headers=no
13681           { { echo "$as_me:$LINENO: error: Cannot find development headers for libgpewidget..." >&5
13682 echo "$as_me: error: Cannot find development headers for libgpewidget..." >&2;}
13683    { (exit 1); exit 1; }; }
13684 fi
13685
13686 done
13687
13688 #      AC_CHECK_LIB(gpewidget, gpe_application_init,
13689 #        [ gpe_LDFLAGS="${gpe_LDFLAGS} -lgpewidget" ],
13690 #        [ AC_MSG_ERROR([Cannot find libgpewidget library...]) ])
13691       CFLAGS=$save_CFLAGS
13692       LDFLAGS=$save_LDFLAG
13693       if test "x${ac_cv_gpe_headers}" = "xyes"
13694       then
13695         familiar_CFLAGS="${familiar_CFLAGS} ${gpe_CFLAGS}"
13696         familiar_LDFLAGS="${familiar_LDFLAGS} ${gpe_LDFLAGS}"
13697       fi
13698     fi
13699     if test "x${ac_cv_gtk_headers}" = "xyes"
13700     then
13701       PLUGINS="${PLUGINS} familiar"
13702     fi
13703     CPPFLAGS="${save_CPPFLAGS}"
13704   fi
13705 fi
13706
13707 # Check whether --enable-gnome or --disable-gnome was given.
13708 if test "${enable_gnome+set}" = set; then
13709   enableval="$enable_gnome"
13710   if test x$enable_gnome = xyes; then
13711     # look for gnome-config
13712     # Extract the first word of "gnome-config", so it can be a program name with args.
13713 set dummy gnome-config; ac_word=$2
13714 echo "$as_me:$LINENO: checking for $ac_word" >&5
13715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13716 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
13717   echo $ECHO_N "(cached) $ECHO_C" >&6
13718 else
13719   case $GNOME_CONFIG in
13720   [\\/]* | ?:[\\/]*)
13721   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
13722   ;;
13723   *)
13724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13725 for as_dir in $PATH
13726 do
13727   IFS=$as_save_IFS
13728   test -z "$as_dir" && as_dir=.
13729   for ac_exec_ext in '' $ac_executable_extensions; do
13730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13731     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13733     break 2
13734   fi
13735 done
13736 done
13737
13738   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
13739   ;;
13740 esac
13741 fi
13742 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
13743
13744 if test -n "$GNOME_CONFIG"; then
13745   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
13746 echo "${ECHO_T}$GNOME_CONFIG" >&6
13747 else
13748   echo "$as_me:$LINENO: result: no" >&5
13749 echo "${ECHO_T}no" >&6
13750 fi
13751
13752     if test -x ${GNOME_CONFIG}
13753     then
13754        gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
13755        gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
13756     fi
13757     # now look for the gnome.h header
13758     CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
13759
13760 for ac_header in gnome.h
13761 do
13762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13764   echo "$as_me:$LINENO: checking for $ac_header" >&5
13765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 fi
13769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13771 else
13772   # Is the header compilable?
13773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13775 cat >conftest.$ac_ext <<_ACEOF
13776 #line $LINENO "configure"
13777 #include "confdefs.h"
13778 $ac_includes_default
13779 #include <$ac_header>
13780 _ACEOF
13781 rm -f conftest.$ac_objext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13783   (eval $ac_compile) 2>&5
13784   ac_status=$?
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); } &&
13787          { ac_try='test -s conftest.$ac_objext'
13788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789   (eval $ac_try) 2>&5
13790   ac_status=$?
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); }; }; then
13793   ac_header_compiler=yes
13794 else
13795   echo "$as_me: failed program was:" >&5
13796 cat conftest.$ac_ext >&5
13797 ac_header_compiler=no
13798 fi
13799 rm -f conftest.$ac_objext conftest.$ac_ext
13800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13801 echo "${ECHO_T}$ac_header_compiler" >&6
13802
13803 # Is the header present?
13804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13806 cat >conftest.$ac_ext <<_ACEOF
13807 #line $LINENO "configure"
13808 #include "confdefs.h"
13809 #include <$ac_header>
13810 _ACEOF
13811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13813   ac_status=$?
13814   grep -v '^ *+' conftest.er1 >conftest.err
13815   rm -f conftest.er1
13816   cat conftest.err >&5
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); } >/dev/null; then
13819   if test -s conftest.err; then
13820     ac_cpp_err=$ac_c_preproc_warn_flag
13821   else
13822     ac_cpp_err=
13823   fi
13824 else
13825   ac_cpp_err=yes
13826 fi
13827 if test -z "$ac_cpp_err"; then
13828   ac_header_preproc=yes
13829 else
13830   echo "$as_me: failed program was:" >&5
13831   cat conftest.$ac_ext >&5
13832   ac_header_preproc=no
13833 fi
13834 rm -f conftest.err conftest.$ac_ext
13835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13836 echo "${ECHO_T}$ac_header_preproc" >&6
13837
13838 # So?  What about this header?
13839 case $ac_header_compiler:$ac_header_preproc in
13840   yes:no )
13841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13845   no:yes )
13846     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13848     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13852 esac
13853 echo "$as_me:$LINENO: checking for $ac_header" >&5
13854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13856   echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858   eval "$as_ac_Header=$ac_header_preproc"
13859 fi
13860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13862
13863 fi
13864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13865   cat >>confdefs.h <<_ACEOF
13866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13867 _ACEOF
13868
13869       PLUGINS="${PLUGINS} gnome"
13870       ALIASES="${ALIASES} gnome-vlc"
13871
13872 else
13873
13874       { { echo "$as_me:$LINENO: error: Can't find gnome headers. Please install the gnome
13875 developement tools or remove the --enable-gnome option" >&5
13876 echo "$as_me: error: Can't find gnome headers. Please install the gnome
13877 developement tools or remove the --enable-gnome option" >&2;}
13878    { (exit 1); exit 1; }; }
13879
13880 fi
13881
13882 done
13883
13884     CPPFLAGS="$save_CPPFLAGS"
13885   fi
13886 fi;
13887
13888 # Check whether --enable-qt or --disable-qt was given.
13889 if test "${enable_qt+set}" = set; then
13890   enableval="$enable_qt"
13891   if test x$enable_qt = xyes; then
13892      PLUGINS="${PLUGINS} qt"
13893      ALIASES="${ALIASES} qvlc"
13894      qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
13895      qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
13896      if test -x ${QTDIR}/bin/moc
13897      then
13898        MOC=${QTDIR}/bin/moc
13899      else
13900        MOC=moc
13901      fi
13902    fi
13903 fi;
13904
13905 # Check whether --enable-kde or --disable-kde was given.
13906 if test "${enable_kde+set}" = set; then
13907   enableval="$enable_kde"
13908   if test x$enable_kde = xyes; then
13909      PLUGINS="${PLUGINS} kde"
13910      ALIASES="${ALIASES} kvlc"
13911      kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
13912      kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
13913      kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
13914      if test -x ${QTDIR}/bin/moc
13915      then
13916        MOC=${QTDIR}/bin/moc
13917      else
13918        MOC=moc
13919      fi
13920    fi
13921 fi;
13922
13923 # Check whether --enable-opie or --disable-opie was given.
13924 if test "${enable_opie+set}" = set; then
13925   enableval="$enable_opie"
13926   if test "x${enable_opie}" = "xyes"; then
13927
13928 # Check whether --with-qte or --without-qte was given.
13929 if test "${with_qte+set}" = set; then
13930   withval="$with_qte"
13931
13932 fi;
13933      if test "x${with_qte}" = "x"
13934      then
13935        test_LDFLAGS="-L${QTDIR}/lib"
13936        test_CFLAGS="-I${QTDIR}/include"
13937      else
13938        test_LDFLAGS="-L${with_qte}/lib"
13939        test_CFLAGS="-I${with_qte}/include"
13940      fi
13941      ac_cv_qte_headers=yes
13942      CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
13943
13944 for ac_header in qte.h
13945 do
13946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13948   echo "$as_me:$LINENO: checking for $ac_header" >&5
13949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 fi
13953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13955 else
13956   # Is the header compilable?
13957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13959 cat >conftest.$ac_ext <<_ACEOF
13960 #line $LINENO "configure"
13961 #include "confdefs.h"
13962 $ac_includes_default
13963 #include <$ac_header>
13964 _ACEOF
13965 rm -f conftest.$ac_objext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13967   (eval $ac_compile) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); } &&
13971          { ac_try='test -s conftest.$ac_objext'
13972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973   (eval $ac_try) 2>&5
13974   ac_status=$?
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); }; }; then
13977   ac_header_compiler=yes
13978 else
13979   echo "$as_me: failed program was:" >&5
13980 cat conftest.$ac_ext >&5
13981 ac_header_compiler=no
13982 fi
13983 rm -f conftest.$ac_objext conftest.$ac_ext
13984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13985 echo "${ECHO_T}$ac_header_compiler" >&6
13986
13987 # Is the header present?
13988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13990 cat >conftest.$ac_ext <<_ACEOF
13991 #line $LINENO "configure"
13992 #include "confdefs.h"
13993 #include <$ac_header>
13994 _ACEOF
13995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13997   ac_status=$?
13998   grep -v '^ *+' conftest.er1 >conftest.err
13999   rm -f conftest.er1
14000   cat conftest.err >&5
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); } >/dev/null; then
14003   if test -s conftest.err; then
14004     ac_cpp_err=$ac_c_preproc_warn_flag
14005   else
14006     ac_cpp_err=
14007   fi
14008 else
14009   ac_cpp_err=yes
14010 fi
14011 if test -z "$ac_cpp_err"; then
14012   ac_header_preproc=yes
14013 else
14014   echo "$as_me: failed program was:" >&5
14015   cat conftest.$ac_ext >&5
14016   ac_header_preproc=no
14017 fi
14018 rm -f conftest.err conftest.$ac_ext
14019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14020 echo "${ECHO_T}$ac_header_preproc" >&6
14021
14022 # So?  What about this header?
14023 case $ac_header_compiler:$ac_header_preproc in
14024   yes:no )
14025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14029   no:yes )
14030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14032     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14036 esac
14037 echo "$as_me:$LINENO: checking for $ac_header" >&5
14038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14040   echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042   eval "$as_ac_Header=$ac_header_preproc"
14043 fi
14044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14046
14047 fi
14048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14049   cat >>confdefs.h <<_ACEOF
14050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14051 _ACEOF
14052
14053        test_CFLAGS="${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
14054        test_LDFLAGS="${test_LDFLAGS} -lqpe -lqte"
14055
14056 else
14057    ac_cv_qte_headers=no
14058          { { echo "$as_me:$LINENO: error: echo \"Cannot find QT Embedded development headers.\"" >&5
14059 echo "$as_me: error: echo \"Cannot find QT Embedded development headers.\"" >&2;}
14060    { (exit 1); exit 1; }; }
14061
14062
14063 fi
14064
14065 done
14066
14067      CPPFLAGS="${save_CPPFLAGS}"
14068      if test x${ac_cv_qte_headers} = "xyes"
14069      then
14070        PLUGINS="${PLUGINS} opie"
14071        opie_LDFLAGS="${opie_LDFLAGS} ${test_LDFLAGS}"
14072        opie_CFLAGS="${opie_CFLAGS} ${test_CFLAGS}"
14073        if test -x ${QTDIR}/bin/moc
14074        then
14075          MOC=${QTDIR}/bin/moc
14076        else
14077          MOC=moc
14078        fi
14079      fi
14080    fi
14081 fi;
14082
14083 # Check whether --enable-macosx or --disable-macosx was given.
14084 if test "${enable_macosx+set}" = set; then
14085   enableval="$enable_macosx"
14086   if test x$enable_macosx = xyes
14087    then
14088      BUILTINS="${BUILTINS} macosx"
14089      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
14090    fi
14091 else
14092
14093 for ac_header in Cocoa/Cocoa.h
14094 do
14095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14097   echo "$as_me:$LINENO: checking for $ac_header" >&5
14098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14100   echo $ECHO_N "(cached) $ECHO_C" >&6
14101 fi
14102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14104 else
14105   # Is the header compilable?
14106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14108 cat >conftest.$ac_ext <<_ACEOF
14109 #line $LINENO "configure"
14110 #include "confdefs.h"
14111 $ac_includes_default
14112 #include <$ac_header>
14113 _ACEOF
14114 rm -f conftest.$ac_objext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14116   (eval $ac_compile) 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } &&
14120          { ac_try='test -s conftest.$ac_objext'
14121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122   (eval $ac_try) 2>&5
14123   ac_status=$?
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); }; }; then
14126   ac_header_compiler=yes
14127 else
14128   echo "$as_me: failed program was:" >&5
14129 cat conftest.$ac_ext >&5
14130 ac_header_compiler=no
14131 fi
14132 rm -f conftest.$ac_objext conftest.$ac_ext
14133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14134 echo "${ECHO_T}$ac_header_compiler" >&6
14135
14136 # Is the header present?
14137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14139 cat >conftest.$ac_ext <<_ACEOF
14140 #line $LINENO "configure"
14141 #include "confdefs.h"
14142 #include <$ac_header>
14143 _ACEOF
14144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14146   ac_status=$?
14147   grep -v '^ *+' conftest.er1 >conftest.err
14148   rm -f conftest.er1
14149   cat conftest.err >&5
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); } >/dev/null; then
14152   if test -s conftest.err; then
14153     ac_cpp_err=$ac_c_preproc_warn_flag
14154   else
14155     ac_cpp_err=
14156   fi
14157 else
14158   ac_cpp_err=yes
14159 fi
14160 if test -z "$ac_cpp_err"; then
14161   ac_header_preproc=yes
14162 else
14163   echo "$as_me: failed program was:" >&5
14164   cat conftest.$ac_ext >&5
14165   ac_header_preproc=no
14166 fi
14167 rm -f conftest.err conftest.$ac_ext
14168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14169 echo "${ECHO_T}$ac_header_preproc" >&6
14170
14171 # So?  What about this header?
14172 case $ac_header_compiler:$ac_header_preproc in
14173   yes:no )
14174     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14178   no:yes )
14179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14181     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14185 esac
14186 echo "$as_me:$LINENO: checking for $ac_header" >&5
14187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14189   echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191   eval "$as_ac_Header=$ac_header_preproc"
14192 fi
14193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14195
14196 fi
14197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14198   cat >>confdefs.h <<_ACEOF
14199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14200 _ACEOF
14201  BUILTINS="${BUILTINS} macosx"
14202      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
14203
14204 fi
14205
14206 done
14207
14208 fi;
14209
14210 # Check whether --enable-qnx or --disable-qnx was given.
14211 if test "${enable_qnx+set}" = set; then
14212   enableval="$enable_qnx"
14213
14214 fi;
14215     if test x$enable_qnx != xno
14216     then
14217
14218 for ac_header in Ph.h
14219 do
14220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222   echo "$as_me:$LINENO: checking for $ac_header" >&5
14223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14225   echo $ECHO_N "(cached) $ECHO_C" >&6
14226 fi
14227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14229 else
14230   # Is the header compilable?
14231 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14233 cat >conftest.$ac_ext <<_ACEOF
14234 #line $LINENO "configure"
14235 #include "confdefs.h"
14236 $ac_includes_default
14237 #include <$ac_header>
14238 _ACEOF
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241   (eval $ac_compile) 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); } &&
14245          { ac_try='test -s conftest.$ac_objext'
14246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247   (eval $ac_try) 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; }; then
14251   ac_header_compiler=yes
14252 else
14253   echo "$as_me: failed program was:" >&5
14254 cat conftest.$ac_ext >&5
14255 ac_header_compiler=no
14256 fi
14257 rm -f conftest.$ac_objext conftest.$ac_ext
14258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14259 echo "${ECHO_T}$ac_header_compiler" >&6
14260
14261 # Is the header present?
14262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14264 cat >conftest.$ac_ext <<_ACEOF
14265 #line $LINENO "configure"
14266 #include "confdefs.h"
14267 #include <$ac_header>
14268 _ACEOF
14269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14271   ac_status=$?
14272   grep -v '^ *+' conftest.er1 >conftest.err
14273   rm -f conftest.er1
14274   cat conftest.err >&5
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); } >/dev/null; then
14277   if test -s conftest.err; then
14278     ac_cpp_err=$ac_c_preproc_warn_flag
14279   else
14280     ac_cpp_err=
14281   fi
14282 else
14283   ac_cpp_err=yes
14284 fi
14285 if test -z "$ac_cpp_err"; then
14286   ac_header_preproc=yes
14287 else
14288   echo "$as_me: failed program was:" >&5
14289   cat conftest.$ac_ext >&5
14290   ac_header_preproc=no
14291 fi
14292 rm -f conftest.err conftest.$ac_ext
14293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14294 echo "${ECHO_T}$ac_header_preproc" >&6
14295
14296 # So?  What about this header?
14297 case $ac_header_compiler:$ac_header_preproc in
14298   yes:no )
14299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14303   no:yes )
14304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14306     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14310 esac
14311 echo "$as_me:$LINENO: checking for $ac_header" >&5
14312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14314   echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316   eval "$as_ac_Header=$ac_header_preproc"
14317 fi
14318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14320
14321 fi
14322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14323   cat >>confdefs.h <<_ACEOF
14324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14325 _ACEOF
14326
14327         PLUGINS="${PLUGINS} qnx"
14328         qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
14329
14330 fi
14331
14332 done
14333
14334     fi
14335
14336 # Check whether --enable-intfwin or --disable-intfwin was given.
14337 if test "${enable_intfwin+set}" = set; then
14338   enableval="$enable_intfwin"
14339    if test "x$enable_intfwin" != "xno"
14340   then
14341
14342 # Check whether --with-bcbuilder or --without-bcbuilder was given.
14343 if test "${with_bcbuilder+set}" = set; then
14344   withval="$with_bcbuilder"
14345
14346 fi;
14347     if test "x$with_bcbuilder" != "x"
14348     then
14349       BCBUILDER="$with_bcbuilder"
14350     fi
14351     PLUGINS="${PLUGINS} intfwin"
14352   fi
14353 fi;
14354
14355 # Check whether --enable-ncurses or --disable-ncurses was given.
14356 if test "${enable_ncurses+set}" = set; then
14357   enableval="$enable_ncurses"
14358   if test x$enable_ncurses = xyes; then
14359      PLUGINS="${PLUGINS} ncurses"
14360      ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
14361    fi
14362 fi;
14363
14364 # Check whether --enable-lirc or --disable-lirc was given.
14365 if test "${enable_lirc+set}" = set; then
14366   enableval="$enable_lirc"
14367
14368 fi;
14369 if test x$enable_lirc = xyes
14370 then
14371   if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14372   echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14373 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
14374 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14375   echo $ECHO_N "(cached) $ECHO_C" >&6
14376 fi
14377 echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14378 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
14379 else
14380   # Is the header compilable?
14381 echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
14382 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6
14383 cat >conftest.$ac_ext <<_ACEOF
14384 #line $LINENO "configure"
14385 #include "confdefs.h"
14386 $ac_includes_default
14387 #include <lirc/lirc_client.h>
14388 _ACEOF
14389 rm -f conftest.$ac_objext
14390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14391   (eval $ac_compile) 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); } &&
14395          { ac_try='test -s conftest.$ac_objext'
14396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397   (eval $ac_try) 2>&5
14398   ac_status=$?
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); }; }; then
14401   ac_header_compiler=yes
14402 else
14403   echo "$as_me: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14405 ac_header_compiler=no
14406 fi
14407 rm -f conftest.$ac_objext conftest.$ac_ext
14408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14409 echo "${ECHO_T}$ac_header_compiler" >&6
14410
14411 # Is the header present?
14412 echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
14413 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6
14414 cat >conftest.$ac_ext <<_ACEOF
14415 #line $LINENO "configure"
14416 #include "confdefs.h"
14417 #include <lirc/lirc_client.h>
14418 _ACEOF
14419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14421   ac_status=$?
14422   grep -v '^ *+' conftest.er1 >conftest.err
14423   rm -f conftest.er1
14424   cat conftest.err >&5
14425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); } >/dev/null; then
14427   if test -s conftest.err; then
14428     ac_cpp_err=$ac_c_preproc_warn_flag
14429   else
14430     ac_cpp_err=
14431   fi
14432 else
14433   ac_cpp_err=yes
14434 fi
14435 if test -z "$ac_cpp_err"; then
14436   ac_header_preproc=yes
14437 else
14438   echo "$as_me: failed program was:" >&5
14439   cat conftest.$ac_ext >&5
14440   ac_header_preproc=no
14441 fi
14442 rm -f conftest.err conftest.$ac_ext
14443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14444 echo "${ECHO_T}$ac_header_preproc" >&6
14445
14446 # So?  What about this header?
14447 case $ac_header_compiler:$ac_header_preproc in
14448   yes:no )
14449     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
14450 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14451     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14452 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;};;
14453   no:yes )
14454     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
14455 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
14456     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
14457 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
14458     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
14459 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;};;
14460 esac
14461 echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
14462 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
14463 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
14464   echo $ECHO_N "(cached) $ECHO_C" >&6
14465 else
14466   ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
14467 fi
14468 echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
14469 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
14470
14471 fi
14472 if test $ac_cv_header_lirc_lirc_client_h = yes; then
14473   echo "$as_me:$LINENO: checking for lirc_init in -llirc_client" >&5
14474 echo $ECHO_N "checking for lirc_init in -llirc_client... $ECHO_C" >&6
14475 if test "${ac_cv_lib_lirc_client_lirc_init+set}" = set; then
14476   echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478   ac_check_lib_save_LIBS=$LIBS
14479 LIBS="-llirc_client  $LIBS"
14480 cat >conftest.$ac_ext <<_ACEOF
14481 #line $LINENO "configure"
14482 #include "confdefs.h"
14483
14484 /* Override any gcc2 internal prototype to avoid an error.  */
14485 #ifdef __cplusplus
14486 extern "C"
14487 #endif
14488 /* We use char because int might match the return type of a gcc2
14489    builtin and then its argument prototype would still apply.  */
14490 char lirc_init ();
14491 int
14492 main ()
14493 {
14494 lirc_init ();
14495   ;
14496   return 0;
14497 }
14498 _ACEOF
14499 rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14501   (eval $ac_link) 2>&5
14502   ac_status=$?
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); } &&
14505          { ac_try='test -s conftest$ac_exeext'
14506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507   (eval $ac_try) 2>&5
14508   ac_status=$?
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); }; }; then
14511   ac_cv_lib_lirc_client_lirc_init=yes
14512 else
14513   echo "$as_me: failed program was:" >&5
14514 cat conftest.$ac_ext >&5
14515 ac_cv_lib_lirc_client_lirc_init=no
14516 fi
14517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14518 LIBS=$ac_check_lib_save_LIBS
14519 fi
14520 echo "$as_me:$LINENO: result: $ac_cv_lib_lirc_client_lirc_init" >&5
14521 echo "${ECHO_T}$ac_cv_lib_lirc_client_lirc_init" >&6
14522 if test $ac_cv_lib_lirc_client_lirc_init = yes; then
14523   have_lirc="true"
14524 else
14525   have_lirc="false"
14526 fi
14527
14528 else
14529   have_lirc="false"
14530 fi
14531
14532
14533   if test x$have_lirc = xtrue
14534   then
14535     PLUGINS="${PLUGINS} lirc"
14536     lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
14537   fi
14538 fi
14539
14540
14541 # Check whether --with- or --without- was given.
14542 if test "${with_+set}" = set; then
14543   withval="$with_"
14544
14545 fi;
14546
14547
14548 # Check whether --with-words or --without-words was given.
14549 if test "${with_words+set}" = set; then
14550   withval="$with_words"
14551
14552 fi;
14553   case "x$with_words" in
14554     xbig)
14555       ac_cv_c_bigendian=yes
14556       ;;
14557     xlittle)
14558       ac_cv_c_bigendian=no
14559       ;;
14560     *)
14561                   echo "$as_me:$LINENO: checking whether the byte order is big-endian" >&5
14562 echo $ECHO_N "checking whether the byte order is big-endian... $ECHO_C" >&6
14563 if test "${ac_cv_c_bigendian+set}" = set; then
14564   echo $ECHO_N "(cached) $ECHO_C" >&6
14565 else
14566   ac_cv_c_bigendian=unknown
14567         cat >conftest.c <<EOF
14568         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
14569         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
14570         void _a(void) { char*s = (char*)am; s = (char *)ai; }
14571         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
14572         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
14573         void _e(void) { char*s = (char*)em; s = (char*)ei; }
14574         int main(void) { _a(); _e(); return 0; }
14575 EOF
14576
14577         if test -f conftest.c
14578         then
14579           if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
14580               && test -f conftest.o
14581           then
14582             if test "`strings conftest.o | grep BIGenDianSyS`"
14583             then
14584               ac_cv_c_bigendian=yes
14585             fi
14586             if test "`strings conftest.o | grep LiTTleEnDian`"
14587             then
14588               ac_cv_c_bigendian=no
14589             fi
14590           fi
14591         fi
14592
14593 fi
14594 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14595 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14596       if test x$ac_cv_c_bigendian = xunknown
14597       then
14598         { { echo "$as_me:$LINENO: error: Could not guess endianness, please use --with-words" >&5
14599 echo "$as_me: error: Could not guess endianness, please use --with-words" >&2;}
14600    { (exit 1); exit 1; }; }
14601       fi
14602       ;;
14603   esac
14604 if test $ac_cv_c_bigendian = yes
14605 then
14606
14607 cat >>confdefs.h <<\_ACEOF
14608 #define WORDS_BIGENDIAN 1
14609 _ACEOF
14610
14611 fi
14612
14613 GPROF=0
14614 # Check whether --enable-gprof or --disable-gprof was given.
14615 if test "${enable_gprof+set}" = set; then
14616   enableval="$enable_gprof"
14617    if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
14618 fi;
14619
14620 CPROF=0
14621 # Check whether --enable-cprof or --disable-cprof was given.
14622 if test "${enable_cprof+set}" = set; then
14623   enableval="$enable_cprof"
14624    if test "x$enable_cprof" = "xyes";
14625   then
14626     LDFLAGS="${LDFLAGS} -lcprof"
14627     CPROF=1
14628   fi
14629
14630 fi;
14631
14632 # Check whether --enable-pth or --disable-pth was given.
14633 if test "${enable_pth+set}" = set; then
14634   enableval="$enable_pth"
14635    if test "x$enable_pth" = "xyes"; then
14636
14637 echo "$as_me:$LINENO: checking for pth_init in -lpth" >&5
14638 echo $ECHO_N "checking for pth_init in -lpth... $ECHO_C" >&6
14639 if test "${ac_cv_lib_pth_pth_init+set}" = set; then
14640   echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642   ac_check_lib_save_LIBS=$LIBS
14643 LIBS="-lpth  $LIBS"
14644 cat >conftest.$ac_ext <<_ACEOF
14645 #line $LINENO "configure"
14646 #include "confdefs.h"
14647
14648 /* Override any gcc2 internal prototype to avoid an error.  */
14649 #ifdef __cplusplus
14650 extern "C"
14651 #endif
14652 /* We use char because int might match the return type of a gcc2
14653    builtin and then its argument prototype would still apply.  */
14654 char pth_init ();
14655 int
14656 main ()
14657 {
14658 pth_init ();
14659   ;
14660   return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext conftest$ac_exeext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14665   (eval $ac_link) 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); } &&
14669          { ac_try='test -s conftest$ac_exeext'
14670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671   (eval $ac_try) 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); }; }; then
14675   ac_cv_lib_pth_pth_init=yes
14676 else
14677   echo "$as_me: failed program was:" >&5
14678 cat conftest.$ac_ext >&5
14679 ac_cv_lib_pth_pth_init=no
14680 fi
14681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14682 LIBS=$ac_check_lib_save_LIBS
14683 fi
14684 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_init" >&5
14685 echo "${ECHO_T}$ac_cv_lib_pth_pth_init" >&6
14686 if test $ac_cv_lib_pth_pth_init = yes; then
14687   cat >>confdefs.h <<_ACEOF
14688 #define HAVE_LIBPTH 1
14689 _ACEOF
14690
14691   LIBS="-lpth $LIBS"
14692
14693 fi
14694
14695     cat >conftest.$ac_ext <<_ACEOF
14696 #line $LINENO "configure"
14697 #include "confdefs.h"
14698 #include <pth.h>
14699
14700 _ACEOF
14701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14702   $EGREP "pth_init" >/dev/null 2>&1; then
14703
14704
14705 cat >>confdefs.h <<\_ACEOF
14706 #define PTH_INIT_IN_PTH_H 1
14707 _ACEOF
14708
14709     THREAD_LIB="-lpth"
14710     fi
14711 fi
14712 rm -f conftest*
14713
14714
14715 fi;
14716
14717 # Check whether --enable-st or --disable-st was given.
14718 if test "${enable_st+set}" = set; then
14719   enableval="$enable_st"
14720    if test "x$enable_st" = "xyes"; then
14721
14722 echo "$as_me:$LINENO: checking for st_init in -lst" >&5
14723 echo $ECHO_N "checking for st_init in -lst... $ECHO_C" >&6
14724 if test "${ac_cv_lib_st_st_init+set}" = set; then
14725   echo $ECHO_N "(cached) $ECHO_C" >&6
14726 else
14727   ac_check_lib_save_LIBS=$LIBS
14728 LIBS="-lst  $LIBS"
14729 cat >conftest.$ac_ext <<_ACEOF
14730 #line $LINENO "configure"
14731 #include "confdefs.h"
14732
14733 /* Override any gcc2 internal prototype to avoid an error.  */
14734 #ifdef __cplusplus
14735 extern "C"
14736 #endif
14737 /* We use char because int might match the return type of a gcc2
14738    builtin and then its argument prototype would still apply.  */
14739 char st_init ();
14740 int
14741 main ()
14742 {
14743 st_init ();
14744   ;
14745   return 0;
14746 }
14747 _ACEOF
14748 rm -f conftest.$ac_objext conftest$ac_exeext
14749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14750   (eval $ac_link) 2>&5
14751   ac_status=$?
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); } &&
14754          { ac_try='test -s conftest$ac_exeext'
14755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756   (eval $ac_try) 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; }; then
14760   ac_cv_lib_st_st_init=yes
14761 else
14762   echo "$as_me: failed program was:" >&5
14763 cat conftest.$ac_ext >&5
14764 ac_cv_lib_st_st_init=no
14765 fi
14766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14767 LIBS=$ac_check_lib_save_LIBS
14768 fi
14769 echo "$as_me:$LINENO: result: $ac_cv_lib_st_st_init" >&5
14770 echo "${ECHO_T}$ac_cv_lib_st_st_init" >&6
14771 if test $ac_cv_lib_st_st_init = yes; then
14772   cat >>confdefs.h <<_ACEOF
14773 #define HAVE_LIBST 1
14774 _ACEOF
14775
14776   LIBS="-lst $LIBS"
14777
14778 fi
14779
14780     cat >conftest.$ac_ext <<_ACEOF
14781 #line $LINENO "configure"
14782 #include "confdefs.h"
14783 #include <st.h>
14784
14785 _ACEOF
14786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14787   $EGREP "st_init" >/dev/null 2>&1; then
14788
14789
14790 cat >>confdefs.h <<\_ACEOF
14791 #define ST_INIT_IN_ST_H 1
14792 _ACEOF
14793
14794     THREAD_LIB="-lst"
14795     fi
14796 fi
14797 rm -f conftest*
14798
14799
14800 fi;
14801
14802 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
14803
14804 # Check whether --enable-plugins or --disable-plugins was given.
14805 if test "${enable_plugins+set}" = set; then
14806   enableval="$enable_plugins"
14807   if test x$enable_plugins = xno
14808    then
14809      BUILTINS="${BUILTINS} ${PLUGINS}"
14810      PLUGINS=
14811    fi
14812 fi;
14813
14814 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
14815 then
14816   echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
14817   echo "as built-in"
14818   BUILTINS="${BUILTINS} ${PLUGINS}"
14819   PLUGINS=
14820 fi
14821
14822
14823 cat >>confdefs.h <<_ACEOF
14824 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
14825 _ACEOF
14826
14827
14828 cat >>confdefs.h <<_ACEOF
14829 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
14830 _ACEOF
14831
14832
14833 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
14834
14835 cat >>confdefs.h <<_ACEOF
14836 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
14837 _ACEOF
14838
14839
14840 cat >>confdefs.h <<_ACEOF
14841 #define MODULE_SYMBOL $VLC_SYMBOL
14842 _ACEOF
14843
14844
14845 DATA_PATH="${ac_tool_prefix}/share/videolan"
14846
14847 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951                               ac_config_files="$ac_config_files Makefile.config Makefile.opts po/Makefile.in"
14952 cat >confcache <<\_ACEOF
14953 # This file is a shell script that caches the results of configure
14954 # tests run on this system so they can be shared between configure
14955 # scripts and configure runs, see configure's option --config-cache.
14956 # It is not useful on other systems.  If it contains results you don't
14957 # want to keep, you may remove or edit it.
14958 #
14959 # config.status only pays attention to the cache file if you give it
14960 # the --recheck option to rerun configure.
14961 #
14962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14964 # following values.
14965
14966 _ACEOF
14967
14968 # The following way of writing the cache mishandles newlines in values,
14969 # but we know of no workaround that is simple, portable, and efficient.
14970 # So, don't put newlines in cache variables' values.
14971 # Ultrix sh set writes to stderr and can't be redirected directly,
14972 # and sets the high bit in the cache file unless we assign to the vars.
14973 {
14974   (set) 2>&1 |
14975     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14976     *ac_space=\ *)
14977       # `set' does not quote correctly, so add quotes (double-quote
14978       # substitution turns \\\\ into \\, and sed turns \\ into \).
14979       sed -n \
14980         "s/'/'\\\\''/g;
14981           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14982       ;;
14983     *)
14984       # `set' quotes correctly as required by POSIX, so do not add quotes.
14985       sed -n \
14986         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14987       ;;
14988     esac;
14989 } |
14990   sed '
14991      t clear
14992      : clear
14993      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14994      t end
14995      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14996      : end' >>confcache
14997 if cmp -s $cache_file confcache; then :; else
14998   if test -w $cache_file; then
14999     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15000     cat confcache >$cache_file
15001   else
15002     echo "not updating unwritable cache $cache_file"
15003   fi
15004 fi
15005 rm -f confcache
15006
15007 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15008 # Let make expand exec_prefix.
15009 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15010
15011 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15012 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15013 # trailing colons and then remove the whole line if VPATH becomes empty
15014 # (actually we leave an empty line to preserve line numbers).
15015 if test "x$srcdir" = x.; then
15016   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15017 s/:*\$(srcdir):*/:/;
15018 s/:*\${srcdir}:*/:/;
15019 s/:*@srcdir@:*/:/;
15020 s/^\([^=]*=[    ]*\):*/\1/;
15021 s/:*$//;
15022 s/^[^=]*=[      ]*$//;
15023 }'
15024 fi
15025
15026 DEFS=-DHAVE_CONFIG_H
15027
15028 ac_libobjs=
15029 ac_ltlibobjs=
15030 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15031   # 1. Remove the extension, and $U if already installed.
15032   ac_i=`echo "$ac_i" |
15033          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15034   # 2. Add them.
15035   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15036   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15037 done
15038 LIBOBJS=$ac_libobjs
15039
15040 LTLIBOBJS=$ac_ltlibobjs
15041
15042
15043
15044 : ${CONFIG_STATUS=./config.status}
15045 ac_clean_files_save=$ac_clean_files
15046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15047 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15048 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15049 cat >$CONFIG_STATUS <<_ACEOF
15050 #! $SHELL
15051 # Generated by $as_me.
15052 # Run this file to recreate the current configuration.
15053 # Compiler output produced by configure, useful for debugging
15054 # configure, is in config.log if it exists.
15055
15056 debug=false
15057 SHELL=\${CONFIG_SHELL-$SHELL}
15058 _ACEOF
15059
15060 cat >>$CONFIG_STATUS <<\_ACEOF
15061 ## --------------------- ##
15062 ## M4sh Initialization.  ##
15063 ## --------------------- ##
15064
15065 # Be Bourne compatible
15066 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15067   emulate sh
15068   NULLCMD=:
15069   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15070   # is contrary to our usage.  Disable this feature.
15071   alias -g '${1+"$@"}'='"$@"'
15072 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15073   set -o posix
15074 fi
15075
15076 # Support unset when possible.
15077 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15078   as_unset=unset
15079 else
15080   as_unset=false
15081 fi
15082
15083
15084 # Work around bugs in pre-3.0 UWIN ksh.
15085 $as_unset ENV MAIL MAILPATH
15086 PS1='$ '
15087 PS2='> '
15088 PS4='+ '
15089
15090 # NLS nuisances.
15091 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
15092 do
15093   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15094     eval $as_var=C; export $as_var
15095   else
15096     $as_unset $as_var
15097   fi
15098 done
15099
15100 # Required to use basename.
15101 if expr a : '\(a\)' >/dev/null 2>&1; then
15102   as_expr=expr
15103 else
15104   as_expr=false
15105 fi
15106
15107 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15108   as_basename=basename
15109 else
15110   as_basename=false
15111 fi
15112
15113
15114 # Name of the executable.
15115 as_me=`$as_basename "$0" ||
15116 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15117          X"$0" : 'X\(//\)$' \| \
15118          X"$0" : 'X\(/\)$' \| \
15119          .     : '\(.\)' 2>/dev/null ||
15120 echo X/"$0" |
15121     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15122           /^X\/\(\/\/\)$/{ s//\1/; q; }
15123           /^X\/\(\/\).*/{ s//\1/; q; }
15124           s/.*/./; q'`
15125
15126
15127 # PATH needs CR, and LINENO needs CR and PATH.
15128 # Avoid depending upon Character Ranges.
15129 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15130 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15131 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15132 as_cr_digits='0123456789'
15133 as_cr_alnum=$as_cr_Letters$as_cr_digits
15134
15135 # The user is always right.
15136 if test "${PATH_SEPARATOR+set}" != set; then
15137   echo "#! /bin/sh" >conftest.sh
15138   echo  "exit 0"   >>conftest.sh
15139   chmod +x conftest.sh
15140   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
15141     PATH_SEPARATOR=';'
15142   else
15143     PATH_SEPARATOR=:
15144   fi
15145   rm -f conftest.sh
15146 fi
15147
15148
15149   as_lineno_1=$LINENO
15150   as_lineno_2=$LINENO
15151   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15152   test "x$as_lineno_1" != "x$as_lineno_2" &&
15153   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15154   # Find who we are.  Look in the path if we contain no path at all
15155   # relative or not.
15156   case $0 in
15157     *[\\/]* ) as_myself=$0 ;;
15158     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15159 for as_dir in $PATH
15160 do
15161   IFS=$as_save_IFS
15162   test -z "$as_dir" && as_dir=.
15163   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15164 done
15165
15166        ;;
15167   esac
15168   # We did not find ourselves, most probably we were run as `sh COMMAND'
15169   # in which case we are not to be found in the path.
15170   if test "x$as_myself" = x; then
15171     as_myself=$0
15172   fi
15173   if test ! -f "$as_myself"; then
15174     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15175 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15176    { (exit 1); exit 1; }; }
15177   fi
15178   case $CONFIG_SHELL in
15179   '')
15180     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15181 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15182 do
15183   IFS=$as_save_IFS
15184   test -z "$as_dir" && as_dir=.
15185   for as_base in sh bash ksh sh5; do
15186          case $as_dir in
15187          /*)
15188            if ("$as_dir/$as_base" -c '
15189   as_lineno_1=$LINENO
15190   as_lineno_2=$LINENO
15191   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15192   test "x$as_lineno_1" != "x$as_lineno_2" &&
15193   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15194              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15195              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15196              CONFIG_SHELL=$as_dir/$as_base
15197              export CONFIG_SHELL
15198              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15199            fi;;
15200          esac
15201        done
15202 done
15203 ;;
15204   esac
15205
15206   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15207   # uniformly replaced by the line number.  The first 'sed' inserts a
15208   # line-number line before each line; the second 'sed' does the real
15209   # work.  The second script uses 'N' to pair each line-number line
15210   # with the numbered line, and appends trailing '-' during
15211   # substitution so that $LINENO is not a special case at line end.
15212   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15213   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15214   sed '=' <$as_myself |
15215     sed '
15216       N
15217       s,$,-,
15218       : loop
15219       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15220       t loop
15221       s,-$,,
15222       s,^['$as_cr_digits']*\n,,
15223     ' >$as_me.lineno &&
15224   chmod +x $as_me.lineno ||
15225     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15226 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15227    { (exit 1); exit 1; }; }
15228
15229   # Don't try to exec as it changes $[0], causing all sort of problems
15230   # (the dirname of $[0] is not the place where we might find the
15231   # original and so on.  Autoconf is especially sensible to this).
15232   . ./$as_me.lineno
15233   # Exit status is that of the last command.
15234   exit
15235 }
15236
15237
15238 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15239   *c*,-n*) ECHO_N= ECHO_C='
15240 ' ECHO_T='      ' ;;
15241   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15242   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15243 esac
15244
15245 if expr a : '\(a\)' >/dev/null 2>&1; then
15246   as_expr=expr
15247 else
15248   as_expr=false
15249 fi
15250
15251 rm -f conf$$ conf$$.exe conf$$.file
15252 echo >conf$$.file
15253 if ln -s conf$$.file conf$$ 2>/dev/null; then
15254   # We could just check for DJGPP; but this test a) works b) is more generic
15255   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15256   if test -f conf$$.exe; then
15257     # Don't use ln at all; we don't have any links
15258     as_ln_s='cp -p'
15259   else
15260     as_ln_s='ln -s'
15261   fi
15262 elif ln conf$$.file conf$$ 2>/dev/null; then
15263   as_ln_s=ln
15264 else
15265   as_ln_s='cp -p'
15266 fi
15267 rm -f conf$$ conf$$.exe conf$$.file
15268
15269 if mkdir -p . 2>/dev/null; then
15270   as_mkdir_p=:
15271 else
15272   as_mkdir_p=false
15273 fi
15274
15275 as_executable_p="test -f"
15276
15277 # Sed expression to map a string onto a valid CPP name.
15278 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15279
15280 # Sed expression to map a string onto a valid variable name.
15281 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15282
15283
15284 # IFS
15285 # We need space, tab and new line, in precisely that order.
15286 as_nl='
15287 '
15288 IFS="   $as_nl"
15289
15290 # CDPATH.
15291 $as_unset CDPATH
15292
15293 exec 6>&1
15294
15295 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15296 # report actual input values of CONFIG_FILES etc. instead of their
15297 # values after options handling.  Logging --version etc. is OK.
15298 exec 5>>config.log
15299 {
15300   echo
15301   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15302 ## Running $as_me. ##
15303 _ASBOX
15304 } >&5
15305 cat >&5 <<_CSEOF
15306
15307 This file was extended by $as_me, which was
15308 generated by GNU Autoconf 2.54.  Invocation command line was
15309
15310   CONFIG_FILES    = $CONFIG_FILES
15311   CONFIG_HEADERS  = $CONFIG_HEADERS
15312   CONFIG_LINKS    = $CONFIG_LINKS
15313   CONFIG_COMMANDS = $CONFIG_COMMANDS
15314   $ $0 $@
15315
15316 _CSEOF
15317 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15318 echo >&5
15319 _ACEOF
15320
15321 # Files that config.status was made for.
15322 if test -n "$ac_config_files"; then
15323   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15324 fi
15325
15326 if test -n "$ac_config_headers"; then
15327   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15328 fi
15329
15330 if test -n "$ac_config_links"; then
15331   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15332 fi
15333
15334 if test -n "$ac_config_commands"; then
15335   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15336 fi
15337
15338 cat >>$CONFIG_STATUS <<\_ACEOF
15339
15340 ac_cs_usage="\
15341 \`$as_me' instantiates files from templates according to the
15342 current configuration.
15343
15344 Usage: $0 [OPTIONS] [FILE]...
15345
15346   -h, --help       print this help, then exit
15347   -V, --version    print version number, then exit
15348   -d, --debug      don't remove temporary files
15349       --recheck    update $as_me by reconfiguring in the same conditions
15350   --file=FILE[:TEMPLATE]
15351                    instantiate the configuration file FILE
15352   --header=FILE[:TEMPLATE]
15353                    instantiate the configuration header FILE
15354
15355 Configuration files:
15356 $config_files
15357
15358 Configuration headers:
15359 $config_headers
15360
15361 Configuration commands:
15362 $config_commands
15363
15364 Report bugs to <bug-autoconf@gnu.org>."
15365 _ACEOF
15366
15367 cat >>$CONFIG_STATUS <<_ACEOF
15368 ac_cs_version="\\
15369 config.status
15370 configured by $0, generated by GNU Autoconf 2.54,
15371   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15372
15373 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15374 Free Software Foundation, Inc.
15375 This config.status script is free software; the Free Software Foundation
15376 gives unlimited permission to copy, distribute and modify it."
15377 srcdir=$srcdir
15378 INSTALL="$INSTALL"
15379 _ACEOF
15380
15381 cat >>$CONFIG_STATUS <<\_ACEOF
15382 # If no file are specified by the user, then we need to provide default
15383 # value.  By we need to know if files were specified by the user.
15384 ac_need_defaults=:
15385 while test $# != 0
15386 do
15387   case $1 in
15388   --*=*)
15389     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15390     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15391     ac_shift=:
15392     ;;
15393   -*)
15394     ac_option=$1
15395     ac_optarg=$2
15396     ac_shift=shift
15397     ;;
15398   *) # This is not an option, so the user has probably given explicit
15399      # arguments.
15400      ac_option=$1
15401      ac_need_defaults=false;;
15402   esac
15403
15404   case $ac_option in
15405   # Handling of the options.
15406 _ACEOF
15407 cat >>$CONFIG_STATUS <<_ACEOF
15408   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15409     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15410     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15411 _ACEOF
15412 cat >>$CONFIG_STATUS <<\_ACEOF
15413   --version | --vers* | -V )
15414     echo "$ac_cs_version"; exit 0 ;;
15415   --he | --h)
15416     # Conflict between --help and --header
15417     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15418 Try \`$0 --help' for more information." >&5
15419 echo "$as_me: error: ambiguous option: $1
15420 Try \`$0 --help' for more information." >&2;}
15421    { (exit 1); exit 1; }; };;
15422   --help | --hel | -h )
15423     echo "$ac_cs_usage"; exit 0 ;;
15424   --debug | --d* | -d )
15425     debug=: ;;
15426   --file | --fil | --fi | --f )
15427     $ac_shift
15428     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15429     ac_need_defaults=false;;
15430   --header | --heade | --head | --hea )
15431     $ac_shift
15432     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15433     ac_need_defaults=false;;
15434
15435   # This is an error.
15436   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15437 Try \`$0 --help' for more information." >&5
15438 echo "$as_me: error: unrecognized option: $1
15439 Try \`$0 --help' for more information." >&2;}
15440    { (exit 1); exit 1; }; } ;;
15441
15442   *) ac_config_targets="$ac_config_targets $1" ;;
15443
15444   esac
15445   shift
15446 done
15447
15448 _ACEOF
15449
15450 cat >>$CONFIG_STATUS <<_ACEOF
15451 #
15452 # INIT-COMMANDS section.
15453 #
15454
15455
15456
15457 _ACEOF
15458
15459
15460
15461 cat >>$CONFIG_STATUS <<\_ACEOF
15462 for ac_config_target in $ac_config_targets
15463 do
15464   case "$ac_config_target" in
15465   # Handling of arguments.
15466   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
15467   "Makefile.opts" ) CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
15468   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15469   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15470   "include/defs.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/defs.h" ;;
15471   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15472 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15473    { (exit 1); exit 1; }; };;
15474   esac
15475 done
15476
15477 # If the user did not use the arguments to specify the items to instantiate,
15478 # then the envvar interface is used.  Set only those that are not.
15479 # We use the long form for the default assignment because of an extremely
15480 # bizarre bug on SunOS 4.1.3.
15481 if $ac_need_defaults; then
15482   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15483   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15484   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15485 fi
15486
15487 # Create a temporary directory, and hook for its removal unless debugging.
15488 $debug ||
15489 {
15490   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15491   trap '{ (exit 1); exit 1; }' 1 2 13 15
15492 }
15493
15494 # Create a (secure) tmp directory for tmp files.
15495 : ${TMPDIR=/tmp}
15496 {
15497   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15498   test -n "$tmp" && test -d "$tmp"
15499 }  ||
15500 {
15501   tmp=$TMPDIR/cs$$-$RANDOM
15502   (umask 077 && mkdir $tmp)
15503 } ||
15504 {
15505    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15506    { (exit 1); exit 1; }
15507 }
15508
15509 _ACEOF
15510
15511 cat >>$CONFIG_STATUS <<_ACEOF
15512
15513 #
15514 # CONFIG_FILES section.
15515 #
15516
15517 # No need to generate the scripts if there are no CONFIG_FILES.
15518 # This happens for instance when ./config.status config.h
15519 if test -n "\$CONFIG_FILES"; then
15520   # Protect against being on the right side of a sed subst in config.status.
15521   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15522    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15523 s,@SHELL@,$SHELL,;t t
15524 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15525 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15526 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15527 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15528 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15529 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15530 s,@exec_prefix@,$exec_prefix,;t t
15531 s,@prefix@,$prefix,;t t
15532 s,@program_transform_name@,$program_transform_name,;t t
15533 s,@bindir@,$bindir,;t t
15534 s,@sbindir@,$sbindir,;t t
15535 s,@libexecdir@,$libexecdir,;t t
15536 s,@datadir@,$datadir,;t t
15537 s,@sysconfdir@,$sysconfdir,;t t
15538 s,@sharedstatedir@,$sharedstatedir,;t t
15539 s,@localstatedir@,$localstatedir,;t t
15540 s,@libdir@,$libdir,;t t
15541 s,@includedir@,$includedir,;t t
15542 s,@oldincludedir@,$oldincludedir,;t t
15543 s,@infodir@,$infodir,;t t
15544 s,@mandir@,$mandir,;t t
15545 s,@build_alias@,$build_alias,;t t
15546 s,@host_alias@,$host_alias,;t t
15547 s,@target_alias@,$target_alias,;t t
15548 s,@DEFS@,$DEFS,;t t
15549 s,@ECHO_C@,$ECHO_C,;t t
15550 s,@ECHO_N@,$ECHO_N,;t t
15551 s,@ECHO_T@,$ECHO_T,;t t
15552 s,@LIBS@,$LIBS,;t t
15553 s,@build@,$build,;t t
15554 s,@build_cpu@,$build_cpu,;t t
15555 s,@build_vendor@,$build_vendor,;t t
15556 s,@build_os@,$build_os,;t t
15557 s,@host@,$host,;t t
15558 s,@host_cpu@,$host_cpu,;t t
15559 s,@host_vendor@,$host_vendor,;t t
15560 s,@host_os@,$host_os,;t t
15561 s,@target@,$target,;t t
15562 s,@target_cpu@,$target_cpu,;t t
15563 s,@target_vendor@,$target_vendor,;t t
15564 s,@target_os@,$target_os,;t t
15565 s,@SET_MAKE@,$SET_MAKE,;t t
15566 s,@CC@,$CC,;t t
15567 s,@CFLAGS@,$CFLAGS,;t t
15568 s,@LDFLAGS@,$LDFLAGS,;t t
15569 s,@CPPFLAGS@,$CPPFLAGS,;t t
15570 s,@ac_ct_CC@,$ac_ct_CC,;t t
15571 s,@EXEEXT@,$EXEEXT,;t t
15572 s,@OBJEXT@,$OBJEXT,;t t
15573 s,@CPP@,$CPP,;t t
15574 s,@RANLIB@,$RANLIB,;t t
15575 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15576 s,@STRIP@,$STRIP,;t t
15577 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15578 s,@AR@,$AR,;t t
15579 s,@ac_ct_AR@,$ac_ct_AR,;t t
15580 s,@LD@,$LD,;t t
15581 s,@ac_ct_LD@,$ac_ct_LD,;t t
15582 s,@GMAKE@,$GMAKE,;t t
15583 s,@EGREP@,$EGREP,;t t
15584 s,@ALLOCA@,$ALLOCA,;t t
15585 s,@GLIBC21@,$GLIBC21,;t t
15586 s,@LIBICONV@,$LIBICONV,;t t
15587 s,@USE_NLS@,$USE_NLS,;t t
15588 s,@MSGFMT@,$MSGFMT,;t t
15589 s,@GMSGFMT@,$GMSGFMT,;t t
15590 s,@XGETTEXT@,$XGETTEXT,;t t
15591 s,@INTLBISON@,$INTLBISON,;t t
15592 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15593 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15594 s,@CATALOGS@,$CATALOGS,;t t
15595 s,@CATOBJEXT@,$CATOBJEXT,;t t
15596 s,@GMOFILES@,$GMOFILES,;t t
15597 s,@INTLLIBS@,$INTLLIBS,;t t
15598 s,@INTLOBJS@,$INTLOBJS,;t t
15599 s,@POFILES@,$POFILES,;t t
15600 s,@POSUB@,$POSUB,;t t
15601 s,@DATADIRNAME@,$DATADIRNAME,;t t
15602 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15603 s,@GENCAT@,$GENCAT,;t t
15604 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15605 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15606 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15607 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15608 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15609 s,@WINDRES@,$WINDRES,;t t
15610 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
15611 s,@SDL12_CONFIG@,$SDL12_CONFIG,;t t
15612 s,@SDL11_CONFIG@,$SDL11_CONFIG,;t t
15613 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
15614 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
15615 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
15616 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
15617 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
15618 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
15619 s,@DATA_PATH@,$DATA_PATH,;t t
15620 s,@PLUGIN_PATH@,$PLUGIN_PATH,;t t
15621 s,@SYS@,$SYS,;t t
15622 s,@ARCH@,$ARCH,;t t
15623 s,@PLUGINS@,$PLUGINS,;t t
15624 s,@BUILTINS@,$BUILTINS,;t t
15625 s,@ALIASES@,$ALIASES,;t t
15626 s,@DEBUG@,$DEBUG,;t t
15627 s,@ASM@,$ASM,;t t
15628 s,@CPROF@,$CPROF,;t t
15629 s,@GPROF@,$GPROF,;t t
15630 s,@OPTIMS@,$OPTIMS,;t t
15631 s,@TUNING@,$TUNING,;t t
15632 s,@RELEASE@,$RELEASE,;t t
15633 s,@MOC@,$MOC,;t t
15634 s,@BCBUILDER@,$BCBUILDER,;t t
15635 s,@PACKAGE@,$PACKAGE,;t t
15636 s,@VERSION@,$VERSION,;t t
15637 s,@NEED_GETOPT@,$NEED_GETOPT,;t t
15638 s,@CFLAGS_OPTIM@,$CFLAGS_OPTIM,;t t
15639 s,@CFLAGS_OPTIM_NODEBUG@,$CFLAGS_OPTIM_NODEBUG,;t t
15640 s,@vlc_CFLAGS@,$vlc_CFLAGS,;t t
15641 s,@plugins_CFLAGS@,$plugins_CFLAGS,;t t
15642 s,@builtins_CFLAGS@,$builtins_CFLAGS,;t t
15643 s,@a52_CFLAGS@,$a52_CFLAGS,;t t
15644 s,@arts_CFLAGS@,$arts_CFLAGS,;t t
15645 s,@dvd_CFLAGS@,$dvd_CFLAGS,;t t
15646 s,@dvdread_CFLAGS@,$dvdread_CFLAGS,;t t
15647 s,@mpeg_ts_dvbpsi_CFLAGS@,$mpeg_ts_dvbpsi_CFLAGS,;t t
15648 s,@directx_CFLAGS@,$directx_CFLAGS,;t t
15649 s,@esd_CFLAGS@,$esd_CFLAGS,;t t
15650 s,@familiar_CFLAGS@,$familiar_CFLAGS,;t t
15651 s,@ffmpeg_CFLAGS@,$ffmpeg_CFLAGS,;t t
15652 s,@glide_CFLAGS@,$glide_CFLAGS,;t t
15653 s,@gnome_CFLAGS@,$gnome_CFLAGS,;t t
15654 s,@gtk_CFLAGS@,$gtk_CFLAGS,;t t
15655 s,@kde_CFLAGS@,$kde_CFLAGS,;t t
15656 s,@idctaltivec_CFLAGS@,$idctaltivec_CFLAGS,;t t
15657 s,@macosx_CFLAGS@,$macosx_CFLAGS,;t t
15658 s,@mad_CFLAGS@,$mad_CFLAGS,;t t
15659 s,@memcpyaltivec_CFLAGS@,$memcpyaltivec_CFLAGS,;t t
15660 s,@motionaltivec_CFLAGS@,$motionaltivec_CFLAGS,;t t
15661 s,@opie_CFLAGS@,$opie_CFLAGS,;t t
15662 s,@qt_CFLAGS@,$qt_CFLAGS,;t t
15663 s,@qte_CFLAGS@,$qte_CFLAGS,;t t
15664 s,@sdl_CFLAGS@,$sdl_CFLAGS,;t t
15665 s,@x11_CFLAGS@,$x11_CFLAGS,;t t
15666 s,@xvideo_CFLAGS@,$xvideo_CFLAGS,;t t
15667 s,@vlc_LDFLAGS@,$vlc_LDFLAGS,;t t
15668 s,@plugins_LDFLAGS@,$plugins_LDFLAGS,;t t
15669 s,@builtins_LDFLAGS@,$builtins_LDFLAGS,;t t
15670 s,@a52_LDFLAGS@,$a52_LDFLAGS,;t t
15671 s,@aa_LDFLAGS@,$aa_LDFLAGS,;t t
15672 s,@alsa_LDFLAGS@,$alsa_LDFLAGS,;t t
15673 s,@arts_LDFLAGS@,$arts_LDFLAGS,;t t
15674 s,@beos_LDFLAGS@,$beos_LDFLAGS,;t t
15675 s,@chroma_i420_rgb_LDFLAGS@,$chroma_i420_rgb_LDFLAGS,;t t
15676 s,@directx_LDFLAGS@,$directx_LDFLAGS,;t t
15677 s,@dsp_LDFLAGS@,$dsp_LDFLAGS,;t t
15678 s,@dvd_LDFLAGS@,$dvd_LDFLAGS,;t t
15679 s,@dvdread_LDFLAGS@,$dvdread_LDFLAGS,;t t
15680 s,@mpeg_ts_dvbpsi_LDFLAGS@,$mpeg_ts_dvbpsi_LDFLAGS,;t t
15681 s,@esd_LDFLAGS@,$esd_LDFLAGS,;t t
15682 s,@familiar_LDFLAGS@,$familiar_LDFLAGS,;t t
15683 s,@filter_distort_LDFLAGS@,$filter_distort_LDFLAGS,;t t
15684 s,@ffmpeg_LDFLAGS@,$ffmpeg_LDFLAGS,;t t
15685 s,@ggi_LDFLAGS@,$ggi_LDFLAGS,;t t
15686 s,@glide_LDFLAGS@,$glide_LDFLAGS,;t t
15687 s,@gnome_LDFLAGS@,$gnome_LDFLAGS,;t t
15688 s,@gtk_LDFLAGS@,$gtk_LDFLAGS,;t t
15689 s,@http_LDFLAGS@,$http_LDFLAGS,;t t
15690 s,@idctaltivec_LDFLAGS@,$idctaltivec_LDFLAGS,;t t
15691 s,@imdct_LDFLAGS@,$imdct_LDFLAGS,;t t
15692 s,@imdct3dn_LDFLAGS@,$imdct3dn_LDFLAGS,;t t
15693 s,@imdctsse_LDFLAGS@,$imdctsse_LDFLAGS,;t t
15694 s,@ipv4_LDFLAGS@,$ipv4_LDFLAGS,;t t
15695 s,@ipv6_LDFLAGS@,$ipv6_LDFLAGS,;t t
15696 s,@kde_LDFLAGS@,$kde_LDFLAGS,;t t
15697 s,@lirc_LDFLAGS@,$lirc_LDFLAGS,;t t
15698 s,@macosx_LDFLAGS@,$macosx_LDFLAGS,;t t
15699 s,@mad_LDFLAGS@,$mad_LDFLAGS,;t t
15700 s,@memcpyaltivec_LDFLAGS@,$memcpyaltivec_LDFLAGS,;t t
15701 s,@motionaltivec_LDFLAGS@,$motionaltivec_LDFLAGS,;t t
15702 s,@ncurses_LDFLAGS@,$ncurses_LDFLAGS,;t t
15703 s,@opie_LDFLAGS@,$opie_LDFLAGS,;t t
15704 s,@qnx_LDFLAGS@,$qnx_LDFLAGS,;t t
15705 s,@qt_LDFLAGS@,$qt_LDFLAGS,;t t
15706 s,@qte_LDFLAGS@,$qte_LDFLAGS,;t t
15707 s,@rc_LDFLAGS@,$rc_LDFLAGS,;t t
15708 s,@sdl_LDFLAGS@,$sdl_LDFLAGS,;t t
15709 s,@vcd_LDFLAGS@,$vcd_LDFLAGS,;t t
15710 s,@vorbis_LDFLAGS@,$vorbis_LDFLAGS,;t t
15711 s,@waveout_LDFLAGS@,$waveout_LDFLAGS,;t t
15712 s,@x11_LDFLAGS@,$x11_LDFLAGS,;t t
15713 s,@xvideo_LDFLAGS@,$xvideo_LDFLAGS,;t t
15714 s,@LIBOBJS@,$LIBOBJS,;t t
15715 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15716 CEOF
15717
15718 _ACEOF
15719
15720   cat >>$CONFIG_STATUS <<\_ACEOF
15721   # Split the substitutions into bite-sized pieces for seds with
15722   # small command number limits, like on Digital OSF/1 and HP-UX.
15723   ac_max_sed_lines=48
15724   ac_sed_frag=1 # Number of current file.
15725   ac_beg=1 # First line for current file.
15726   ac_end=$ac_max_sed_lines # Line after last line for current file.
15727   ac_more_lines=:
15728   ac_sed_cmds=
15729   while $ac_more_lines; do
15730     if test $ac_beg -gt 1; then
15731       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15732     else
15733       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15734     fi
15735     if test ! -s $tmp/subs.frag; then
15736       ac_more_lines=false
15737     else
15738       # The purpose of the label and of the branching condition is to
15739       # speed up the sed processing (if there are no `@' at all, there
15740       # is no need to browse any of the substitutions).
15741       # These are the two extra sed commands mentioned above.
15742       (echo ':t
15743   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15744       if test -z "$ac_sed_cmds"; then
15745         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15746       else
15747         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15748       fi
15749       ac_sed_frag=`expr $ac_sed_frag + 1`
15750       ac_beg=$ac_end
15751       ac_end=`expr $ac_end + $ac_max_sed_lines`
15752     fi
15753   done
15754   if test -z "$ac_sed_cmds"; then
15755     ac_sed_cmds=cat
15756   fi
15757 fi # test -n "$CONFIG_FILES"
15758
15759 _ACEOF
15760 cat >>$CONFIG_STATUS <<\_ACEOF
15761 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15762   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15763   case $ac_file in
15764   - | *:- | *:-:* ) # input from stdin
15765         cat >$tmp/stdin
15766         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15767         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15768   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15769         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15770   * )   ac_file_in=$ac_file.in ;;
15771   esac
15772
15773   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15774   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15775 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15776          X"$ac_file" : 'X\(//\)[^/]' \| \
15777          X"$ac_file" : 'X\(//\)$' \| \
15778          X"$ac_file" : 'X\(/\)' \| \
15779          .     : '\(.\)' 2>/dev/null ||
15780 echo X"$ac_file" |
15781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15782           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15783           /^X\(\/\/\)$/{ s//\1/; q; }
15784           /^X\(\/\).*/{ s//\1/; q; }
15785           s/.*/./; q'`
15786   { if $as_mkdir_p; then
15787     mkdir -p "$ac_dir"
15788   else
15789     as_dir="$ac_dir"
15790     as_dirs=
15791     while test ! -d "$as_dir"; do
15792       as_dirs="$as_dir $as_dirs"
15793       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15794 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15795          X"$as_dir" : 'X\(//\)[^/]' \| \
15796          X"$as_dir" : 'X\(//\)$' \| \
15797          X"$as_dir" : 'X\(/\)' \| \
15798          .     : '\(.\)' 2>/dev/null ||
15799 echo X"$as_dir" |
15800     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15801           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15802           /^X\(\/\/\)$/{ s//\1/; q; }
15803           /^X\(\/\).*/{ s//\1/; q; }
15804           s/.*/./; q'`
15805     done
15806     test ! -n "$as_dirs" || mkdir $as_dirs
15807   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15808 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15809    { (exit 1); exit 1; }; }; }
15810
15811   ac_builddir=.
15812
15813 if test "$ac_dir" != .; then
15814   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15815   # A "../" for each directory in $ac_dir_suffix.
15816   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15817 else
15818   ac_dir_suffix= ac_top_builddir=
15819 fi
15820
15821 case $srcdir in
15822   .)  # No --srcdir option.  We are building in place.
15823     ac_srcdir=.
15824     if test -z "$ac_top_builddir"; then
15825        ac_top_srcdir=.
15826     else
15827        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15828     fi ;;
15829   [\\/]* | ?:[\\/]* )  # Absolute path.
15830     ac_srcdir=$srcdir$ac_dir_suffix;
15831     ac_top_srcdir=$srcdir ;;
15832   *) # Relative path.
15833     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15834     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15835 esac
15836 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15837 # absolute.
15838 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15839 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15840 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15841 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15842
15843
15844   case $INSTALL in
15845   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15846   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15847   esac
15848
15849   if test x"$ac_file" != x-; then
15850     { echo "$as_me:$LINENO: creating $ac_file" >&5
15851 echo "$as_me: creating $ac_file" >&6;}
15852     rm -f "$ac_file"
15853   fi
15854   # Let's still pretend it is `configure' which instantiates (i.e., don't
15855   # use $as_me), people would be surprised to read:
15856   #    /* config.h.  Generated by config.status.  */
15857   if test x"$ac_file" = x-; then
15858     configure_input=
15859   else
15860     configure_input="$ac_file.  "
15861   fi
15862   configure_input=$configure_input"Generated from `echo $ac_file_in |
15863                                      sed 's,.*/,,'` by configure."
15864
15865   # First look for the input files in the build tree, otherwise in the
15866   # src tree.
15867   ac_file_inputs=`IFS=:
15868     for f in $ac_file_in; do
15869       case $f in
15870       -) echo $tmp/stdin ;;
15871       [\\/$]*)
15872          # Absolute (can't be DOS-style, as IFS=:)
15873          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15874 echo "$as_me: error: cannot find input file: $f" >&2;}
15875    { (exit 1); exit 1; }; }
15876          echo $f;;
15877       *) # Relative
15878          if test -f "$f"; then
15879            # Build tree
15880            echo $f
15881          elif test -f "$srcdir/$f"; then
15882            # Source tree
15883            echo $srcdir/$f
15884          else
15885            # /dev/null tree
15886            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15887 echo "$as_me: error: cannot find input file: $f" >&2;}
15888    { (exit 1); exit 1; }; }
15889          fi;;
15890       esac
15891     done` || { (exit 1); exit 1; }
15892 _ACEOF
15893 cat >>$CONFIG_STATUS <<_ACEOF
15894   sed "$ac_vpsub
15895 $extrasub
15896 _ACEOF
15897 cat >>$CONFIG_STATUS <<\_ACEOF
15898 :t
15899 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15900 s,@configure_input@,$configure_input,;t t
15901 s,@srcdir@,$ac_srcdir,;t t
15902 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15903 s,@top_srcdir@,$ac_top_srcdir,;t t
15904 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15905 s,@builddir@,$ac_builddir,;t t
15906 s,@abs_builddir@,$ac_abs_builddir,;t t
15907 s,@top_builddir@,$ac_top_builddir,;t t
15908 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15909 s,@INSTALL@,$ac_INSTALL,;t t
15910 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15911   rm -f $tmp/stdin
15912   if test x"$ac_file" != x-; then
15913     mv $tmp/out $ac_file
15914   else
15915     cat $tmp/out
15916     rm -f $tmp/out
15917   fi
15918
15919 done
15920 _ACEOF
15921 cat >>$CONFIG_STATUS <<\_ACEOF
15922
15923 #
15924 # CONFIG_HEADER section.
15925 #
15926
15927 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15928 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15929 #
15930 # ac_d sets the value in "#define NAME VALUE" lines.
15931 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
15932 ac_dB='[        ].*$,\1#\2'
15933 ac_dC=' '
15934 ac_dD=',;t'
15935 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15936 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15937 ac_uB='$,\1#\2define\3'
15938 ac_uC=' '
15939 ac_uD=',;t'
15940
15941 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15942   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15943   case $ac_file in
15944   - | *:- | *:-:* ) # input from stdin
15945         cat >$tmp/stdin
15946         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15947         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15948   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15949         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15950   * )   ac_file_in=$ac_file.in ;;
15951   esac
15952
15953   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15954 echo "$as_me: creating $ac_file" >&6;}
15955
15956   # First look for the input files in the build tree, otherwise in the
15957   # src tree.
15958   ac_file_inputs=`IFS=:
15959     for f in $ac_file_in; do
15960       case $f in
15961       -) echo $tmp/stdin ;;
15962       [\\/$]*)
15963          # Absolute (can't be DOS-style, as IFS=:)
15964          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15965 echo "$as_me: error: cannot find input file: $f" >&2;}
15966    { (exit 1); exit 1; }; }
15967          echo $f;;
15968       *) # Relative
15969          if test -f "$f"; then
15970            # Build tree
15971            echo $f
15972          elif test -f "$srcdir/$f"; then
15973            # Source tree
15974            echo $srcdir/$f
15975          else
15976            # /dev/null tree
15977            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15978 echo "$as_me: error: cannot find input file: $f" >&2;}
15979    { (exit 1); exit 1; }; }
15980          fi;;
15981       esac
15982     done` || { (exit 1); exit 1; }
15983   # Remove the trailing spaces.
15984   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
15985
15986 _ACEOF
15987
15988 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15989 # `conftest.undefs', that substitutes the proper values into
15990 # config.h.in to produce config.h.  The first handles `#define'
15991 # templates, and the second `#undef' templates.
15992 # And first: Protect against being on the right side of a sed subst in
15993 # config.status.  Protect against being in an unquoted here document
15994 # in config.status.
15995 rm -f conftest.defines conftest.undefs
15996 # Using a here document instead of a string reduces the quoting nightmare.
15997 # Putting comments in sed scripts is not portable.
15998 #
15999 # `end' is used to avoid that the second main sed command (meant for
16000 # 0-ary CPP macros) applies to n-ary macro definitions.
16001 # See the Autoconf documentation for `clear'.
16002 cat >confdef2sed.sed <<\_ACEOF
16003 s/[\\&,]/\\&/g
16004 s,[\\$`],\\&,g
16005 t clear
16006 : clear
16007 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16008 t end
16009 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16010 : end
16011 _ACEOF
16012 # If some macros were called several times there might be several times
16013 # the same #defines, which is useless.  Nevertheless, we may not want to
16014 # sort them, since we want the *last* AC-DEFINE to be honored.
16015 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16016 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16017 rm -f confdef2sed.sed
16018
16019 # This sed command replaces #undef with comments.  This is necessary, for
16020 # example, in the case of _POSIX_SOURCE, which is predefined and required
16021 # on some systems where configure will not decide to define it.
16022 cat >>conftest.undefs <<\_ACEOF
16023 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16024 _ACEOF
16025
16026 # Break up conftest.defines because some shells have a limit on the size
16027 # of here documents, and old seds have small limits too (100 cmds).
16028 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16029 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16030 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16031 echo '  :' >>$CONFIG_STATUS
16032 rm -f conftest.tail
16033 while grep . conftest.defines >/dev/null
16034 do
16035   # Write a limited-size here document to $tmp/defines.sed.
16036   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16037   # Speed up: don't consider the non `#define' lines.
16038   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16039   # Work around the forget-to-reset-the-flag bug.
16040   echo 't clr' >>$CONFIG_STATUS
16041   echo ': clr' >>$CONFIG_STATUS
16042   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16043   echo 'CEOF
16044   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16045   rm -f $tmp/in
16046   mv $tmp/out $tmp/in
16047 ' >>$CONFIG_STATUS
16048   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16049   rm -f conftest.defines
16050   mv conftest.tail conftest.defines
16051 done
16052 rm -f conftest.defines
16053 echo '  fi # grep' >>$CONFIG_STATUS
16054 echo >>$CONFIG_STATUS
16055
16056 # Break up conftest.undefs because some shells have a limit on the size
16057 # of here documents, and old seds have small limits too (100 cmds).
16058 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16059 rm -f conftest.tail
16060 while grep . conftest.undefs >/dev/null
16061 do
16062   # Write a limited-size here document to $tmp/undefs.sed.
16063   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16064   # Speed up: don't consider the non `#undef'
16065   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16066   # Work around the forget-to-reset-the-flag bug.
16067   echo 't clr' >>$CONFIG_STATUS
16068   echo ': clr' >>$CONFIG_STATUS
16069   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16070   echo 'CEOF
16071   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16072   rm -f $tmp/in
16073   mv $tmp/out $tmp/in
16074 ' >>$CONFIG_STATUS
16075   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16076   rm -f conftest.undefs
16077   mv conftest.tail conftest.undefs
16078 done
16079 rm -f conftest.undefs
16080
16081 cat >>$CONFIG_STATUS <<\_ACEOF
16082   # Let's still pretend it is `configure' which instantiates (i.e., don't
16083   # use $as_me), people would be surprised to read:
16084   #    /* config.h.  Generated by config.status.  */
16085   if test x"$ac_file" = x-; then
16086     echo "/* Generated by configure.  */" >$tmp/config.h
16087   else
16088     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16089   fi
16090   cat $tmp/in >>$tmp/config.h
16091   rm -f $tmp/in
16092   if test x"$ac_file" != x-; then
16093     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16094       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16095 echo "$as_me: $ac_file is unchanged" >&6;}
16096     else
16097       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16099          X"$ac_file" : 'X\(//\)[^/]' \| \
16100          X"$ac_file" : 'X\(//\)$' \| \
16101          X"$ac_file" : 'X\(/\)' \| \
16102          .     : '\(.\)' 2>/dev/null ||
16103 echo X"$ac_file" |
16104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16105           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16106           /^X\(\/\/\)$/{ s//\1/; q; }
16107           /^X\(\/\).*/{ s//\1/; q; }
16108           s/.*/./; q'`
16109       { if $as_mkdir_p; then
16110     mkdir -p "$ac_dir"
16111   else
16112     as_dir="$ac_dir"
16113     as_dirs=
16114     while test ! -d "$as_dir"; do
16115       as_dirs="$as_dir $as_dirs"
16116       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16118          X"$as_dir" : 'X\(//\)[^/]' \| \
16119          X"$as_dir" : 'X\(//\)$' \| \
16120          X"$as_dir" : 'X\(/\)' \| \
16121          .     : '\(.\)' 2>/dev/null ||
16122 echo X"$as_dir" |
16123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16124           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16125           /^X\(\/\/\)$/{ s//\1/; q; }
16126           /^X\(\/\).*/{ s//\1/; q; }
16127           s/.*/./; q'`
16128     done
16129     test ! -n "$as_dirs" || mkdir $as_dirs
16130   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16131 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16132    { (exit 1); exit 1; }; }; }
16133
16134       rm -f $ac_file
16135       mv $tmp/config.h $ac_file
16136     fi
16137   else
16138     cat $tmp/config.h
16139     rm -f $tmp/config.h
16140   fi
16141 done
16142 _ACEOF
16143 cat >>$CONFIG_STATUS <<\_ACEOF
16144
16145 #
16146 # CONFIG_COMMANDS section.
16147 #
16148 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16149   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16150   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16151   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16152 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16153          X"$ac_dest" : 'X\(//\)[^/]' \| \
16154          X"$ac_dest" : 'X\(//\)$' \| \
16155          X"$ac_dest" : 'X\(/\)' \| \
16156          .     : '\(.\)' 2>/dev/null ||
16157 echo X"$ac_dest" |
16158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16159           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16160           /^X\(\/\/\)$/{ s//\1/; q; }
16161           /^X\(\/\).*/{ s//\1/; q; }
16162           s/.*/./; q'`
16163   ac_builddir=.
16164
16165 if test "$ac_dir" != .; then
16166   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16167   # A "../" for each directory in $ac_dir_suffix.
16168   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16169 else
16170   ac_dir_suffix= ac_top_builddir=
16171 fi
16172
16173 case $srcdir in
16174   .)  # No --srcdir option.  We are building in place.
16175     ac_srcdir=.
16176     if test -z "$ac_top_builddir"; then
16177        ac_top_srcdir=.
16178     else
16179        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16180     fi ;;
16181   [\\/]* | ?:[\\/]* )  # Absolute path.
16182     ac_srcdir=$srcdir$ac_dir_suffix;
16183     ac_top_srcdir=$srcdir ;;
16184   *) # Relative path.
16185     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16186     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16187 esac
16188 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16189 # absolute.
16190 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16191 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16192 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16193 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16194
16195
16196   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16197 echo "$as_me: executing $ac_dest commands" >&6;}
16198   case $ac_dest in
16199     default-1 ) for ac_file in $CONFIG_FILES; do
16200         # Support "outfile[:infile[:infile...]]"
16201         case "$ac_file" in
16202           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16203         esac
16204         # PO directories have a Makefile.in generated from Makefile.in.in.
16205         case "$ac_file" in */Makefile.in)
16206           # Adjust a relative srcdir.
16207           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16208           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16209           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16210           # In autoconf-2.13 it is called $ac_given_srcdir.
16211           # In autoconf-2.50 it is called $srcdir.
16212           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16213           case "$ac_given_srcdir" in
16214             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16215             /*) top_srcdir="$ac_given_srcdir" ;;
16216             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16217           esac
16218           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16219             rm -f "$ac_dir/POTFILES"
16220             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16221             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16222             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16223             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16224           fi
16225           ;;
16226         esac
16227       done ;;
16228   esac
16229 done
16230 _ACEOF
16231
16232 cat >>$CONFIG_STATUS <<\_ACEOF
16233
16234 { (exit 0); exit 0; }
16235 _ACEOF
16236 chmod +x $CONFIG_STATUS
16237 ac_clean_files=$ac_clean_files_save
16238
16239
16240 # configure is writing to config.log, and then calls config.status.
16241 # config.status does its own redirection, appending to config.log.
16242 # Unfortunately, on DOS this fails, as config.log is still kept open
16243 # by configure, so config.status won't be able to write to it; its
16244 # output is simply discarded.  So we exec the FD to /dev/null,
16245 # effectively closing config.log, so it can be properly (re)opened and
16246 # appended to by config.status.  When coming back to configure, we
16247 # need to make the FD available again.
16248 if test "$no_create" != yes; then
16249   ac_cs_success=:
16250   exec 5>/dev/null
16251   $SHELL $CONFIG_STATUS || ac_cs_success=false
16252   exec 5>>config.log
16253   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16254   # would make configure fail if this is the last instruction.
16255   $ac_cs_success || { (exit 1); exit 1; }
16256 fi
16257
16258
16259 echo "
16260 vlc configuration
16261 --------------------
16262 vlc version           : ${VERSION}
16263 system                : ${SYS}
16264 architecture          : ${ARCH}
16265 optimizations         : ${OPTIMS}
16266 tuning                : ${TUNING}
16267 debug mode            : ${DEBUG}
16268 release               : ${RELEASE}
16269 cprof/gprof support   : ${CPROF}/${GPROF}
16270 need builtin getopt   : ${NEED_GETOPT}
16271 built-in modules      :${BUILTINS}
16272 plug-in modules       :${PLUGINS}
16273 vlc aliases           :${ALIASES}
16274
16275 You may now tune Makefile.opts at your convenience, for instance to choose
16276 which modules get compiled as plugins.
16277
16278 To build vlc and its plugins, type \`$VLC_MAKE'.
16279 "
16280