]> git.sesse.net Git - vlc/blob - configure
. correction d'une faute de frappe dans configure.in (�a r�pond � ta
[vlc] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-ppro           Enable PentiumPro optimizations (default is no)"
16 ac_help="$ac_help
17   --enable-mmx            Enable MMX optimizations (default is no)"
18 ac_help="$ac_help
19   --enable-dummy          dummy audio and video support (default enabled)"
20 ac_help="$ac_help
21   --enable-dsp            Linux /dev/dsp support (default enabled)"
22 ac_help="$ac_help
23   --enable-esd            Esound library support (default disabled)"
24 ac_help="$ac_help
25   --enable-fb             Linux framebuffer support (default disabled)"
26 ac_help="$ac_help
27   --enable-ggi            GGI support (default disabled)"
28 ac_help="$ac_help
29   --enable-sdl            SDL support (default disabled)"
30 ac_help="$ac_help
31   --enable-glide          Glide (3dfx) support (default disabled)"
32 ac_help="$ac_help
33   --enable-gnome          Gnome support (default disabled)"
34 ac_help="$ac_help
35   --enable-x11            X11 support (default enabled)"
36
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
40 build=NONE
41 cache_file=./config.cache
42 exec_prefix=NONE
43 host=NONE
44 no_create=
45 nonopt=NONE
46 no_recursion=
47 prefix=NONE
48 program_prefix=NONE
49 program_suffix=NONE
50 program_transform_name=s,x,x,
51 silent=
52 site=
53 srcdir=
54 target=NONE
55 verbose=
56 x_includes=NONE
57 x_libraries=NONE
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
70
71 # Initialize some other variables.
72 subdirs=
73 MFLAGS= MAKEFLAGS=
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
76 ac_max_here_lines=12
77
78 ac_prev=
79 for ac_option
80 do
81
82   # If the previous option needs an argument, assign it.
83   if test -n "$ac_prev"; then
84     eval "$ac_prev=\$ac_option"
85     ac_prev=
86     continue
87   fi
88
89   case "$ac_option" in
90   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91   *) ac_optarg= ;;
92   esac
93
94   # Accept the important Cygnus configure options, so we can diagnose typos.
95
96   case "$ac_option" in
97
98   -bindir | --bindir | --bindi | --bind | --bin | --bi)
99     ac_prev=bindir ;;
100   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101     bindir="$ac_optarg" ;;
102
103   -build | --build | --buil | --bui | --bu)
104     ac_prev=build ;;
105   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106     build="$ac_optarg" ;;
107
108   -cache-file | --cache-file | --cache-fil | --cache-fi \
109   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110     ac_prev=cache_file ;;
111   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113     cache_file="$ac_optarg" ;;
114
115   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116     ac_prev=datadir ;;
117   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118   | --da=*)
119     datadir="$ac_optarg" ;;
120
121   -disable-* | --disable-*)
122     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123     # Reject names that are not valid shell variable names.
124     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126     fi
127     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128     eval "enable_${ac_feature}=no" ;;
129
130   -enable-* | --enable-*)
131     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132     # Reject names that are not valid shell variable names.
133     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135     fi
136     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137     case "$ac_option" in
138       *=*) ;;
139       *) ac_optarg=yes ;;
140     esac
141     eval "enable_${ac_feature}='$ac_optarg'" ;;
142
143   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145   | --exec | --exe | --ex)
146     ac_prev=exec_prefix ;;
147   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149   | --exec=* | --exe=* | --ex=*)
150     exec_prefix="$ac_optarg" ;;
151
152   -gas | --gas | --ga | --g)
153     # Obsolete; use --with-gas.
154     with_gas=yes ;;
155
156   -help | --help | --hel | --he)
157     # Omit some internal or obsolete options to make the list less imposing.
158     # This message is too long to be a string in the A/UX 3.1 sh.
159     cat << EOF
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
162 Configuration:
163   --cache-file=FILE       cache test results in FILE
164   --help                  print this message
165   --no-create             do not create output files
166   --quiet, --silent       do not print \`checking...' messages
167   --version               print the version of autoconf that created configure
168 Directory and file names:
169   --prefix=PREFIX         install architecture-independent files in PREFIX
170                           [$ac_default_prefix]
171   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
172                           [same as prefix]
173   --bindir=DIR            user executables in DIR [EPREFIX/bin]
174   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
175   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
176   --datadir=DIR           read-only architecture-independent data in DIR
177                           [PREFIX/share]
178   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
179   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
180                           [PREFIX/com]
181   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
182   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
183   --includedir=DIR        C header files in DIR [PREFIX/include]
184   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
185   --infodir=DIR           info documentation in DIR [PREFIX/info]
186   --mandir=DIR            man documentation in DIR [PREFIX/man]
187   --srcdir=DIR            find the sources in DIR [configure dir or ..]
188   --program-prefix=PREFIX prepend PREFIX to installed program names
189   --program-suffix=SUFFIX append SUFFIX to installed program names
190   --program-transform-name=PROGRAM
191                           run sed PROGRAM on installed program names
192 EOF
193     cat << EOF
194 Host type:
195   --build=BUILD           configure for building on BUILD [BUILD=HOST]
196   --host=HOST             configure for HOST [guessed]
197   --target=TARGET         configure for TARGET [TARGET=HOST]
198 Features and packages:
199   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
200   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
201   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
202   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
203   --x-includes=DIR        X include files are in DIR
204   --x-libraries=DIR       X library files are in DIR
205 EOF
206     if test -n "$ac_help"; then
207       echo "--enable and --with options recognized:$ac_help"
208     fi
209     exit 0 ;;
210
211   -host | --host | --hos | --ho)
212     ac_prev=host ;;
213   -host=* | --host=* | --hos=* | --ho=*)
214     host="$ac_optarg" ;;
215
216   -includedir | --includedir | --includedi | --included | --include \
217   | --includ | --inclu | --incl | --inc)
218     ac_prev=includedir ;;
219   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220   | --includ=* | --inclu=* | --incl=* | --inc=*)
221     includedir="$ac_optarg" ;;
222
223   -infodir | --infodir | --infodi | --infod | --info | --inf)
224     ac_prev=infodir ;;
225   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226     infodir="$ac_optarg" ;;
227
228   -libdir | --libdir | --libdi | --libd)
229     ac_prev=libdir ;;
230   -libdir=* | --libdir=* | --libdi=* | --libd=*)
231     libdir="$ac_optarg" ;;
232
233   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234   | --libexe | --libex | --libe)
235     ac_prev=libexecdir ;;
236   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237   | --libexe=* | --libex=* | --libe=*)
238     libexecdir="$ac_optarg" ;;
239
240   -localstatedir | --localstatedir | --localstatedi | --localstated \
241   | --localstate | --localstat | --localsta | --localst \
242   | --locals | --local | --loca | --loc | --lo)
243     ac_prev=localstatedir ;;
244   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247     localstatedir="$ac_optarg" ;;
248
249   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250     ac_prev=mandir ;;
251   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252     mandir="$ac_optarg" ;;
253
254   -nfp | --nfp | --nf)
255     # Obsolete; use --without-fp.
256     with_fp=no ;;
257
258   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259   | --no-cr | --no-c)
260     no_create=yes ;;
261
262   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264     no_recursion=yes ;;
265
266   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268   | --oldin | --oldi | --old | --ol | --o)
269     ac_prev=oldincludedir ;;
270   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273     oldincludedir="$ac_optarg" ;;
274
275   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276     ac_prev=prefix ;;
277   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278     prefix="$ac_optarg" ;;
279
280   -program-prefix | --program-prefix | --program-prefi | --program-pref \
281   | --program-pre | --program-pr | --program-p)
282     ac_prev=program_prefix ;;
283   -program-prefix=* | --program-prefix=* | --program-prefi=* \
284   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285     program_prefix="$ac_optarg" ;;
286
287   -program-suffix | --program-suffix | --program-suffi | --program-suff \
288   | --program-suf | --program-su | --program-s)
289     ac_prev=program_suffix ;;
290   -program-suffix=* | --program-suffix=* | --program-suffi=* \
291   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292     program_suffix="$ac_optarg" ;;
293
294   -program-transform-name | --program-transform-name \
295   | --program-transform-nam | --program-transform-na \
296   | --program-transform-n | --program-transform- \
297   | --program-transform | --program-transfor \
298   | --program-transfo | --program-transf \
299   | --program-trans | --program-tran \
300   | --progr-tra | --program-tr | --program-t)
301     ac_prev=program_transform_name ;;
302   -program-transform-name=* | --program-transform-name=* \
303   | --program-transform-nam=* | --program-transform-na=* \
304   | --program-transform-n=* | --program-transform-=* \
305   | --program-transform=* | --program-transfor=* \
306   | --program-transfo=* | --program-transf=* \
307   | --program-trans=* | --program-tran=* \
308   | --progr-tra=* | --program-tr=* | --program-t=*)
309     program_transform_name="$ac_optarg" ;;
310
311   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312   | -silent | --silent | --silen | --sile | --sil)
313     silent=yes ;;
314
315   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316     ac_prev=sbindir ;;
317   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318   | --sbi=* | --sb=*)
319     sbindir="$ac_optarg" ;;
320
321   -sharedstatedir | --sharedstatedir | --sharedstatedi \
322   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323   | --sharedst | --shareds | --shared | --share | --shar \
324   | --sha | --sh)
325     ac_prev=sharedstatedir ;;
326   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329   | --sha=* | --sh=*)
330     sharedstatedir="$ac_optarg" ;;
331
332   -site | --site | --sit)
333     ac_prev=site ;;
334   -site=* | --site=* | --sit=*)
335     site="$ac_optarg" ;;
336
337   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338     ac_prev=srcdir ;;
339   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340     srcdir="$ac_optarg" ;;
341
342   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343   | --syscon | --sysco | --sysc | --sys | --sy)
344     ac_prev=sysconfdir ;;
345   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347     sysconfdir="$ac_optarg" ;;
348
349   -target | --target | --targe | --targ | --tar | --ta | --t)
350     ac_prev=target ;;
351   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352     target="$ac_optarg" ;;
353
354   -v | -verbose | --verbose | --verbos | --verbo | --verb)
355     verbose=yes ;;
356
357   -version | --version | --versio | --versi | --vers)
358     echo "configure generated by autoconf version 2.13"
359     exit 0 ;;
360
361   -with-* | --with-*)
362     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363     # Reject names that are not valid shell variable names.
364     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366     fi
367     ac_package=`echo $ac_package| sed 's/-/_/g'`
368     case "$ac_option" in
369       *=*) ;;
370       *) ac_optarg=yes ;;
371     esac
372     eval "with_${ac_package}='$ac_optarg'" ;;
373
374   -without-* | --without-*)
375     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376     # Reject names that are not valid shell variable names.
377     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379     fi
380     ac_package=`echo $ac_package| sed 's/-/_/g'`
381     eval "with_${ac_package}=no" ;;
382
383   --x)
384     # Obsolete; use --with-x.
385     with_x=yes ;;
386
387   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388   | --x-incl | --x-inc | --x-in | --x-i)
389     ac_prev=x_includes ;;
390   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392     x_includes="$ac_optarg" ;;
393
394   -x-libraries | --x-libraries | --x-librarie | --x-librari \
395   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396     ac_prev=x_libraries ;;
397   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399     x_libraries="$ac_optarg" ;;
400
401   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402     ;;
403
404   *)
405     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406       echo "configure: warning: $ac_option: invalid host type" 1>&2
407     fi
408     if test "x$nonopt" != xNONE; then
409       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410     fi
411     nonopt="$ac_option"
412     ;;
413
414   esac
415 done
416
417 if test -n "$ac_prev"; then
418   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 fi
420
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422
423 # File descriptor usage:
424 # 0 standard input
425 # 1 file creation
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
432   exec 6>/dev/null
433 else
434   exec 6>&1
435 fi
436 exec 5>./config.log
437
438 echo "\
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
441 " 1>&5
442
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
445 ac_configure_args=
446 for ac_arg
447 do
448   case "$ac_arg" in
449   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450   | --no-cr | --no-c) ;;
451   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456   esac
457 done
458
459 # NLS nuisances.
460 # Only set these to C if already set.  These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
468
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 echo > confdefs.h
473
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file=src/interface/main.c
477
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480   ac_srcdir_defaulted=yes
481   # Try the directory containing this script, then its parent.
482   ac_prog=$0
483   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485   srcdir=$ac_confdir
486   if test ! -r $srcdir/$ac_unique_file; then
487     srcdir=..
488   fi
489 else
490   ac_srcdir_defaulted=no
491 fi
492 if test ! -r $srcdir/$ac_unique_file; then
493   if test "$ac_srcdir_defaulted" = yes; then
494     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495   else
496     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497   fi
498 fi
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503   if test "x$prefix" != xNONE; then
504     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505   else
506     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507   fi
508 fi
509 for ac_site_file in $CONFIG_SITE; do
510   if test -r "$ac_site_file"; then
511     echo "loading site script $ac_site_file"
512     . "$ac_site_file"
513   fi
514 done
515
516 if test -r "$cache_file"; then
517   echo "loading cache $cache_file"
518   . $cache_file
519 else
520   echo "creating cache $cache_file"
521   > $cache_file
522 fi
523
524 ac_ext=c
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp='$CPP $CPPFLAGS'
527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling=$ac_cv_prog_cc_cross
530
531 ac_exeext=
532 ac_objext=o
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536     ac_n= ac_c='
537 ' ac_t='        '
538   else
539     ac_n=-n ac_c= ac_t=
540   fi
541 else
542   ac_n= ac_c='\c' ac_t=
543 fi
544
545
546
547
548 ac_aux_dir=
549 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
550   if test -f $ac_dir/install-sh; then
551     ac_aux_dir=$ac_dir
552     ac_install_sh="$ac_aux_dir/install-sh -c"
553     break
554   elif test -f $ac_dir/install.sh; then
555     ac_aux_dir=$ac_dir
556     ac_install_sh="$ac_aux_dir/install.sh -c"
557     break
558   fi
559 done
560 if test -z "$ac_aux_dir"; then
561   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
562 fi
563 ac_config_guess=$ac_aux_dir/config.guess
564 ac_config_sub=$ac_aux_dir/config.sub
565 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
566
567
568 # Make sure we can run config.sub.
569 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
570 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
571 fi
572
573 echo $ac_n "checking host system type""... $ac_c" 1>&6
574 echo "configure:575: checking host system type" >&5
575
576 host_alias=$host
577 case "$host_alias" in
578 NONE)
579   case $nonopt in
580   NONE)
581     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
582     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
583     fi ;;
584   *) host_alias=$nonopt ;;
585   esac ;;
586 esac
587
588 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
589 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
590 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
591 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
592 echo "$ac_t""$host" 1>&6
593
594
595 VLC_VERSION=0.1.99i
596
597 VLC_CODENAME=Onatopp
598
599
600 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
601 echo "configure:602: checking whether ${MAKE-make} sets \${MAKE}" >&5
602 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
603 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
604   echo $ac_n "(cached) $ac_c" 1>&6
605 else
606   cat > conftestmake <<\EOF
607 all:
608         @echo 'ac_maketemp="${MAKE}"'
609 EOF
610 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
611 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
612 if test -n "$ac_maketemp"; then
613   eval ac_cv_prog_make_${ac_make}_set=yes
614 else
615   eval ac_cv_prog_make_${ac_make}_set=no
616 fi
617 rm -f conftestmake
618 fi
619 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
620   echo "$ac_t""yes" 1>&6
621   SET_MAKE=
622 else
623   echo "$ac_t""no" 1>&6
624   SET_MAKE="MAKE=${MAKE-make}"
625 fi
626
627 if test -z "$CC"; then
628   # Extract the first word of "gcc", so it can be a program name with args.
629 set dummy gcc; ac_word=$2
630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
631 echo "configure:632: checking for $ac_word" >&5
632 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
633   echo $ac_n "(cached) $ac_c" 1>&6
634 else
635   if test -n "$CC"; then
636   ac_cv_prog_CC="$CC" # Let the user override the test.
637 else
638   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
639   ac_dummy="$PATH"
640   for ac_dir in $ac_dummy; do
641     test -z "$ac_dir" && ac_dir=.
642     if test -f $ac_dir/$ac_word; then
643       ac_cv_prog_CC="gcc"
644       break
645     fi
646   done
647   IFS="$ac_save_ifs"
648 fi
649 fi
650 CC="$ac_cv_prog_CC"
651 if test -n "$CC"; then
652   echo "$ac_t""$CC" 1>&6
653 else
654   echo "$ac_t""no" 1>&6
655 fi
656
657 if test -z "$CC"; then
658   # Extract the first word of "cc", so it can be a program name with args.
659 set dummy cc; ac_word=$2
660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661 echo "configure:662: checking for $ac_word" >&5
662 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
663   echo $ac_n "(cached) $ac_c" 1>&6
664 else
665   if test -n "$CC"; then
666   ac_cv_prog_CC="$CC" # Let the user override the test.
667 else
668   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
669   ac_prog_rejected=no
670   ac_dummy="$PATH"
671   for ac_dir in $ac_dummy; do
672     test -z "$ac_dir" && ac_dir=.
673     if test -f $ac_dir/$ac_word; then
674       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
675         ac_prog_rejected=yes
676         continue
677       fi
678       ac_cv_prog_CC="cc"
679       break
680     fi
681   done
682   IFS="$ac_save_ifs"
683 if test $ac_prog_rejected = yes; then
684   # We found a bogon in the path, so make sure we never use it.
685   set dummy $ac_cv_prog_CC
686   shift
687   if test $# -gt 0; then
688     # We chose a different compiler from the bogus one.
689     # However, it has the same basename, so the bogon will be chosen
690     # first if we set CC to just the basename; use the full file name.
691     shift
692     set dummy "$ac_dir/$ac_word" "$@"
693     shift
694     ac_cv_prog_CC="$@"
695   fi
696 fi
697 fi
698 fi
699 CC="$ac_cv_prog_CC"
700 if test -n "$CC"; then
701   echo "$ac_t""$CC" 1>&6
702 else
703   echo "$ac_t""no" 1>&6
704 fi
705
706   if test -z "$CC"; then
707     case "`uname -s`" in
708     *win32* | *WIN32*)
709       # Extract the first word of "cl", so it can be a program name with args.
710 set dummy cl; ac_word=$2
711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
712 echo "configure:713: checking for $ac_word" >&5
713 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
714   echo $ac_n "(cached) $ac_c" 1>&6
715 else
716   if test -n "$CC"; then
717   ac_cv_prog_CC="$CC" # Let the user override the test.
718 else
719   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
720   ac_dummy="$PATH"
721   for ac_dir in $ac_dummy; do
722     test -z "$ac_dir" && ac_dir=.
723     if test -f $ac_dir/$ac_word; then
724       ac_cv_prog_CC="cl"
725       break
726     fi
727   done
728   IFS="$ac_save_ifs"
729 fi
730 fi
731 CC="$ac_cv_prog_CC"
732 if test -n "$CC"; then
733   echo "$ac_t""$CC" 1>&6
734 else
735   echo "$ac_t""no" 1>&6
736 fi
737  ;;
738     esac
739   fi
740   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
741 fi
742
743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
744 echo "configure:745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
745
746 ac_ext=c
747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
748 ac_cpp='$CPP $CPPFLAGS'
749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
751 cross_compiling=$ac_cv_prog_cc_cross
752
753 cat > conftest.$ac_ext << EOF
754
755 #line 756 "configure"
756 #include "confdefs.h"
757
758 main(){return(0);}
759 EOF
760 if { (eval echo configure:761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
761   ac_cv_prog_cc_works=yes
762   # If we can't run a trivial program, we are probably using a cross compiler.
763   if (./conftest; exit) 2>/dev/null; then
764     ac_cv_prog_cc_cross=no
765   else
766     ac_cv_prog_cc_cross=yes
767   fi
768 else
769   echo "configure: failed program was:" >&5
770   cat conftest.$ac_ext >&5
771   ac_cv_prog_cc_works=no
772 fi
773 rm -fr conftest*
774 ac_ext=c
775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
776 ac_cpp='$CPP $CPPFLAGS'
777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
779 cross_compiling=$ac_cv_prog_cc_cross
780
781 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
782 if test $ac_cv_prog_cc_works = no; then
783   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
784 fi
785 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
786 echo "configure:787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
787 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
788 cross_compiling=$ac_cv_prog_cc_cross
789
790 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
791 echo "configure:792: checking whether we are using GNU C" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
793   echo $ac_n "(cached) $ac_c" 1>&6
794 else
795   cat > conftest.c <<EOF
796 #ifdef __GNUC__
797   yes;
798 #endif
799 EOF
800 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
801   ac_cv_prog_gcc=yes
802 else
803   ac_cv_prog_gcc=no
804 fi
805 fi
806
807 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
808
809 if test $ac_cv_prog_gcc = yes; then
810   GCC=yes
811 else
812   GCC=
813 fi
814
815 ac_test_CFLAGS="${CFLAGS+set}"
816 ac_save_CFLAGS="$CFLAGS"
817 CFLAGS=
818 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
819 echo "configure:820: checking whether ${CC-cc} accepts -g" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
821   echo $ac_n "(cached) $ac_c" 1>&6
822 else
823   echo 'void f(){}' > conftest.c
824 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
825   ac_cv_prog_cc_g=yes
826 else
827   ac_cv_prog_cc_g=no
828 fi
829 rm -f conftest*
830
831 fi
832
833 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
834 if test "$ac_test_CFLAGS" = set; then
835   CFLAGS="$ac_save_CFLAGS"
836 elif test $ac_cv_prog_cc_g = yes; then
837   if test "$GCC" = yes; then
838     CFLAGS="-g -O2"
839   else
840     CFLAGS="-g"
841   fi
842 else
843   if test "$GCC" = yes; then
844     CFLAGS="-O2"
845   else
846     CFLAGS=
847   fi
848 fi
849
850 fi
851 if test -z "$CPP"; then
852   echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
853 echo "configure:854: checking how to run the C preprocessor" >&5
854 # On Suns, sometimes $CPP names a directory.
855 if test -n "$CPP" && test -d "$CPP"; then
856   CPP=
857 fi
858 if test -z "$CPP"; then
859 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
860   echo $ac_n "(cached) $ac_c" 1>&6
861 else
862     # This must be in double quotes, not single quotes, because CPP may get
863   # substituted into the Makefile and "${CC-cc}" will confuse make.
864   CPP="${CC-cc} -E"
865   # On the NeXT, cc -E runs the code through the compiler's parser,
866   # not just through cpp.
867   cat > conftest.$ac_ext <<EOF
868 #line 869 "configure"
869 #include "confdefs.h"
870 #include <assert.h>
871 Syntax Error
872 EOF
873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
874 { (eval echo configure:875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
876 if test -z "$ac_err"; then
877   :
878 else
879   echo "$ac_err" >&5
880   echo "configure: failed program was:" >&5
881   cat conftest.$ac_ext >&5
882   rm -rf conftest*
883   CPP="${CC-cc} -E -traditional-cpp"
884   cat > conftest.$ac_ext <<EOF
885 #line 886 "configure"
886 #include "confdefs.h"
887 #include <assert.h>
888 Syntax Error
889 EOF
890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
891 { (eval echo configure:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
893 if test -z "$ac_err"; then
894   :
895 else
896   echo "$ac_err" >&5
897   echo "configure: failed program was:" >&5
898   cat conftest.$ac_ext >&5
899   rm -rf conftest*
900   CPP="${CC-cc} -nologo -E"
901   cat > conftest.$ac_ext <<EOF
902 #line 903 "configure"
903 #include "confdefs.h"
904 #include <assert.h>
905 Syntax Error
906 EOF
907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
908 { (eval echo configure:909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
910 if test -z "$ac_err"; then
911   :
912 else
913   echo "$ac_err" >&5
914   echo "configure: failed program was:" >&5
915   cat conftest.$ac_ext >&5
916   rm -rf conftest*
917   CPP=/lib/cpp
918 fi
919 rm -f conftest*
920 fi
921 rm -f conftest*
922 fi
923 rm -f conftest*
924   ac_cv_prog_CPP="$CPP"
925 fi
926   CPP="$ac_cv_prog_CPP"
927 else
928   ac_cv_prog_CPP="$CPP"
929 fi
930 echo "$ac_t""$CPP" 1>&6
931
932 fi
933
934 # Find a good install program.  We prefer a C program (faster),
935 # so one script is as good as another.  But avoid the broken or
936 # incompatible versions:
937 # SysV /etc/install, /usr/sbin/install
938 # SunOS /usr/etc/install
939 # IRIX /sbin/install
940 # AIX /bin/install
941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
944 # ./install, which can be erroneously created by make from ./install.sh.
945 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
946 echo "configure:947: checking for a BSD compatible install" >&5
947 if test -z "$INSTALL"; then
948 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
949   echo $ac_n "(cached) $ac_c" 1>&6
950 else
951     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
952   for ac_dir in $PATH; do
953     # Account for people who put trailing slashes in PATH elements.
954     case "$ac_dir/" in
955     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
956     *)
957       # OSF1 and SCO ODT 3.0 have their own names for install.
958       # Don't use installbsd from OSF since it installs stuff as root
959       # by default.
960       for ac_prog in ginstall scoinst install; do
961         if test -f $ac_dir/$ac_prog; then
962           if test $ac_prog = install &&
963             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
964             # AIX install.  It has an incompatible calling convention.
965             :
966           else
967             ac_cv_path_install="$ac_dir/$ac_prog -c"
968             break 2
969           fi
970         fi
971       done
972       ;;
973     esac
974   done
975   IFS="$ac_save_IFS"
976
977 fi
978   if test "${ac_cv_path_install+set}" = set; then
979     INSTALL="$ac_cv_path_install"
980   else
981     # As a last resort, use the slow shell script.  We don't cache a
982     # path for INSTALL within a source directory, because that will
983     # break other packages using the cache if that directory is
984     # removed, or if the path is relative.
985     INSTALL="$ac_install_sh"
986   fi
987 fi
988 echo "$ac_t""$INSTALL" 1>&6
989
990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
991 # It thinks the first close brace ends the variable substitution.
992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
993
994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
995
996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
997
998
999 echo $ac_n "checking for working const""... $ac_c" 1>&6
1000 echo "configure:1001: checking for working const" >&5
1001 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1002   echo $ac_n "(cached) $ac_c" 1>&6
1003 else
1004   cat > conftest.$ac_ext <<EOF
1005 #line 1006 "configure"
1006 #include "confdefs.h"
1007
1008 int main() {
1009
1010 /* Ultrix mips cc rejects this.  */
1011 typedef int charset[2]; const charset x = {0,0};
1012 /* SunOS 4.1.1 cc rejects this.  */
1013 char const *const *ccp;
1014 char **p;
1015 /* NEC SVR4.0.2 mips cc rejects this.  */
1016 struct point {int x, y;};
1017 static struct point const zero = {0,0};
1018 /* AIX XL C 1.02.0.0 rejects this.
1019    It does not let you subtract one const X* pointer from another in an arm
1020    of an if-expression whose if-part is not a constant expression */
1021 const char *g = "string";
1022 ccp = &g + (g ? g-g : 0);
1023 /* HPUX 7.0 cc rejects these. */
1024 ++ccp;
1025 p = (char**) ccp;
1026 ccp = (char const *const *) p;
1027 { /* SCO 3.2v4 cc rejects this.  */
1028   char *t;
1029   char const *s = 0 ? (char *) 0 : (char const *) 0;
1030
1031   *t++ = 0;
1032 }
1033 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1034   int x[] = {25, 17};
1035   const int *foo = &x[0];
1036   ++foo;
1037 }
1038 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1039   typedef const int *iptr;
1040   iptr p = 0;
1041   ++p;
1042 }
1043 { /* AIX XL C 1.02.0.0 rejects this saying
1044      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1045   struct s { int j; const int *ap[3]; };
1046   struct s *b; b->j = 5;
1047 }
1048 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1049   const int foo = 10;
1050 }
1051
1052 ; return 0; }
1053 EOF
1054 if { (eval echo configure:1055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1055   rm -rf conftest*
1056   ac_cv_c_const=yes
1057 else
1058   echo "configure: failed program was:" >&5
1059   cat conftest.$ac_ext >&5
1060   rm -rf conftest*
1061   ac_cv_c_const=no
1062 fi
1063 rm -f conftest*
1064 fi
1065
1066 echo "$ac_t""$ac_cv_c_const" 1>&6
1067 if test $ac_cv_c_const = no; then
1068   cat >> confdefs.h <<\EOF
1069 #define const 
1070 EOF
1071
1072 fi
1073
1074 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1075 echo "configure:1076: checking whether byte ordering is bigendian" >&5
1076 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1077   echo $ac_n "(cached) $ac_c" 1>&6
1078 else
1079   ac_cv_c_bigendian=unknown
1080 # See if sys/param.h defines the BYTE_ORDER macro.
1081 cat > conftest.$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1084 #include <sys/types.h>
1085 #include <sys/param.h>
1086 int main() {
1087
1088 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1089  bogus endian macros
1090 #endif
1091 ; return 0; }
1092 EOF
1093 if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1094   rm -rf conftest*
1095   # It does; now see whether it defined to BIG_ENDIAN or not.
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1099 #include <sys/types.h>
1100 #include <sys/param.h>
1101 int main() {
1102
1103 #if BYTE_ORDER != BIG_ENDIAN
1104  not big endian
1105 #endif
1106 ; return 0; }
1107 EOF
1108 if { (eval echo configure:1109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1109   rm -rf conftest*
1110   ac_cv_c_bigendian=yes
1111 else
1112   echo "configure: failed program was:" >&5
1113   cat conftest.$ac_ext >&5
1114   rm -rf conftest*
1115   ac_cv_c_bigendian=no
1116 fi
1117 rm -f conftest*
1118 else
1119   echo "configure: failed program was:" >&5
1120   cat conftest.$ac_ext >&5
1121 fi
1122 rm -f conftest*
1123 if test $ac_cv_c_bigendian = unknown; then
1124 if test "$cross_compiling" = yes; then
1125     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1126 else
1127   cat > conftest.$ac_ext <<EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1130 main () {
1131   /* Are we little or big endian?  From Harbison&Steele.  */
1132   union
1133   {
1134     long l;
1135     char c[sizeof (long)];
1136   } u;
1137   u.l = 1;
1138   exit (u.c[sizeof (long) - 1] == 1);
1139 }
1140 EOF
1141 if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1142 then
1143   ac_cv_c_bigendian=no
1144 else
1145   echo "configure: failed program was:" >&5
1146   cat conftest.$ac_ext >&5
1147   rm -fr conftest*
1148   ac_cv_c_bigendian=yes
1149 fi
1150 rm -fr conftest*
1151 fi
1152
1153 fi
1154 fi
1155
1156 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1157 if test $ac_cv_c_bigendian = yes; then
1158   cat >> confdefs.h <<\EOF
1159 #define WORDS_BIGENDIAN 1
1160 EOF
1161
1162 fi
1163
1164
1165 for ac_func in gettimeofday select strerror strtod strtol
1166 do
1167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_func" >&5
1169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1170   echo $ac_n "(cached) $ac_c" 1>&6
1171 else
1172   cat > conftest.$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1175 /* System header to define __stub macros and hopefully few prototypes,
1176     which can conflict with char $ac_func(); below.  */
1177 #include <assert.h>
1178 /* Override any gcc2 internal prototype to avoid an error.  */
1179 /* We use char because int might match the return type of a gcc2
1180     builtin and then its argument prototype would still apply.  */
1181 char $ac_func();
1182
1183 int main() {
1184
1185 /* The GNU C library defines this for functions which it implements
1186     to always fail with ENOSYS.  Some functions are actually named
1187     something starting with __ and the normal name is an alias.  */
1188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1189 choke me
1190 #else
1191 $ac_func();
1192 #endif
1193
1194 ; return 0; }
1195 EOF
1196 if { (eval echo configure:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1197   rm -rf conftest*
1198   eval "ac_cv_func_$ac_func=yes"
1199 else
1200   echo "configure: failed program was:" >&5
1201   cat conftest.$ac_ext >&5
1202   rm -rf conftest*
1203   eval "ac_cv_func_$ac_func=no"
1204 fi
1205 rm -f conftest*
1206 fi
1207
1208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1209   echo "$ac_t""yes" 1>&6
1210     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1211   cat >> confdefs.h <<EOF
1212 #define $ac_tr_func 1
1213 EOF
1214  
1215 else
1216   echo "$ac_t""no" 1>&6
1217 fi
1218 done
1219
1220 for ac_func in setenv putenv
1221 do
1222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_func" >&5
1224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1225   echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227   cat > conftest.$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1230 /* System header to define __stub macros and hopefully few prototypes,
1231     which can conflict with char $ac_func(); below.  */
1232 #include <assert.h>
1233 /* Override any gcc2 internal prototype to avoid an error.  */
1234 /* We use char because int might match the return type of a gcc2
1235     builtin and then its argument prototype would still apply.  */
1236 char $ac_func();
1237
1238 int main() {
1239
1240 /* The GNU C library defines this for functions which it implements
1241     to always fail with ENOSYS.  Some functions are actually named
1242     something starting with __ and the normal name is an alias.  */
1243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1244 choke me
1245 #else
1246 $ac_func();
1247 #endif
1248
1249 ; return 0; }
1250 EOF
1251 if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1252   rm -rf conftest*
1253   eval "ac_cv_func_$ac_func=yes"
1254 else
1255   echo "configure: failed program was:" >&5
1256   cat conftest.$ac_ext >&5
1257   rm -rf conftest*
1258   eval "ac_cv_func_$ac_func=no"
1259 fi
1260 rm -f conftest*
1261 fi
1262
1263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1264   echo "$ac_t""yes" 1>&6
1265     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1266   cat >> confdefs.h <<EOF
1267 #define $ac_tr_func 1
1268 EOF
1269  
1270 else
1271   echo "$ac_t""no" 1>&6
1272 fi
1273 done
1274
1275 echo $ac_n "checking for connect""... $ac_c" 1>&6
1276 echo "configure:1277: checking for connect" >&5
1277 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1278   echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280   cat > conftest.$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1283 /* System header to define __stub macros and hopefully few prototypes,
1284     which can conflict with char connect(); below.  */
1285 #include <assert.h>
1286 /* Override any gcc2 internal prototype to avoid an error.  */
1287 /* We use char because int might match the return type of a gcc2
1288     builtin and then its argument prototype would still apply.  */
1289 char connect();
1290
1291 int main() {
1292
1293 /* The GNU C library defines this for functions which it implements
1294     to always fail with ENOSYS.  Some functions are actually named
1295     something starting with __ and the normal name is an alias.  */
1296 #if defined (__stub_connect) || defined (__stub___connect)
1297 choke me
1298 #else
1299 connect();
1300 #endif
1301
1302 ; return 0; }
1303 EOF
1304 if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1305   rm -rf conftest*
1306   eval "ac_cv_func_connect=yes"
1307 else
1308   echo "configure: failed program was:" >&5
1309   cat conftest.$ac_ext >&5
1310   rm -rf conftest*
1311   eval "ac_cv_func_connect=no"
1312 fi
1313 rm -f conftest*
1314 fi
1315
1316 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1317   echo "$ac_t""yes" 1>&6
1318   :
1319 else
1320   echo "$ac_t""no" 1>&6
1321 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1322 echo "configure:1323: checking for connect in -lsocket" >&5
1323 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1325   echo $ac_n "(cached) $ac_c" 1>&6
1326 else
1327   ac_save_LIBS="$LIBS"
1328 LIBS="-lsocket  $LIBS"
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1332 /* Override any gcc2 internal prototype to avoid an error.  */
1333 /* We use char because int might match the return type of a gcc2
1334     builtin and then its argument prototype would still apply.  */
1335 char connect();
1336
1337 int main() {
1338 connect()
1339 ; return 0; }
1340 EOF
1341 if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1342   rm -rf conftest*
1343   eval "ac_cv_lib_$ac_lib_var=yes"
1344 else
1345   echo "configure: failed program was:" >&5
1346   cat conftest.$ac_ext >&5
1347   rm -rf conftest*
1348   eval "ac_cv_lib_$ac_lib_var=no"
1349 fi
1350 rm -f conftest*
1351 LIBS="$ac_save_LIBS"
1352
1353 fi
1354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1355   echo "$ac_t""yes" 1>&6
1356     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1357     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1358   cat >> confdefs.h <<EOF
1359 #define $ac_tr_lib 1
1360 EOF
1361
1362   LIBS="-lsocket $LIBS"
1363
1364 else
1365   echo "$ac_t""no" 1>&6
1366 fi
1367
1368 fi
1369
1370 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1371 echo "configure:1372: checking for gethostbyname" >&5
1372 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1373   echo $ac_n "(cached) $ac_c" 1>&6
1374 else
1375   cat > conftest.$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1378 /* System header to define __stub macros and hopefully few prototypes,
1379     which can conflict with char gethostbyname(); below.  */
1380 #include <assert.h>
1381 /* Override any gcc2 internal prototype to avoid an error.  */
1382 /* We use char because int might match the return type of a gcc2
1383     builtin and then its argument prototype would still apply.  */
1384 char gethostbyname();
1385
1386 int main() {
1387
1388 /* The GNU C library defines this for functions which it implements
1389     to always fail with ENOSYS.  Some functions are actually named
1390     something starting with __ and the normal name is an alias.  */
1391 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1392 choke me
1393 #else
1394 gethostbyname();
1395 #endif
1396
1397 ; return 0; }
1398 EOF
1399 if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1400   rm -rf conftest*
1401   eval "ac_cv_func_gethostbyname=yes"
1402 else
1403   echo "configure: failed program was:" >&5
1404   cat conftest.$ac_ext >&5
1405   rm -rf conftest*
1406   eval "ac_cv_func_gethostbyname=no"
1407 fi
1408 rm -f conftest*
1409 fi
1410
1411 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1412   echo "$ac_t""yes" 1>&6
1413   :
1414 else
1415   echo "$ac_t""no" 1>&6
1416 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1417 echo "configure:1418: checking for gethostbyname in -lnsl" >&5
1418 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1420   echo $ac_n "(cached) $ac_c" 1>&6
1421 else
1422   ac_save_LIBS="$LIBS"
1423 LIBS="-lnsl  $LIBS"
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1427 /* Override any gcc2 internal prototype to avoid an error.  */
1428 /* We use char because int might match the return type of a gcc2
1429     builtin and then its argument prototype would still apply.  */
1430 char gethostbyname();
1431
1432 int main() {
1433 gethostbyname()
1434 ; return 0; }
1435 EOF
1436 if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1437   rm -rf conftest*
1438   eval "ac_cv_lib_$ac_lib_var=yes"
1439 else
1440   echo "configure: failed program was:" >&5
1441   cat conftest.$ac_ext >&5
1442   rm -rf conftest*
1443   eval "ac_cv_lib_$ac_lib_var=no"
1444 fi
1445 rm -f conftest*
1446 LIBS="$ac_save_LIBS"
1447
1448 fi
1449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1450   echo "$ac_t""yes" 1>&6
1451     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1452     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1453   cat >> confdefs.h <<EOF
1454 #define $ac_tr_lib 1
1455 EOF
1456
1457   LIBS="-lnsl $LIBS"
1458
1459 else
1460   echo "$ac_t""no" 1>&6
1461 fi
1462
1463 fi
1464
1465 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1466 echo "configure:1467: checking for nanosleep" >&5
1467 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1468   echo $ac_n "(cached) $ac_c" 1>&6
1469 else
1470   cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 /* System header to define __stub macros and hopefully few prototypes,
1474     which can conflict with char nanosleep(); below.  */
1475 #include <assert.h>
1476 /* Override any gcc2 internal prototype to avoid an error.  */
1477 /* We use char because int might match the return type of a gcc2
1478     builtin and then its argument prototype would still apply.  */
1479 char nanosleep();
1480
1481 int main() {
1482
1483 /* The GNU C library defines this for functions which it implements
1484     to always fail with ENOSYS.  Some functions are actually named
1485     something starting with __ and the normal name is an alias.  */
1486 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1487 choke me
1488 #else
1489 nanosleep();
1490 #endif
1491
1492 ; return 0; }
1493 EOF
1494 if { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1495   rm -rf conftest*
1496   eval "ac_cv_func_nanosleep=yes"
1497 else
1498   echo "configure: failed program was:" >&5
1499   cat conftest.$ac_ext >&5
1500   rm -rf conftest*
1501   eval "ac_cv_func_nanosleep=no"
1502 fi
1503 rm -f conftest*
1504 fi
1505
1506 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1507   echo "$ac_t""yes" 1>&6
1508   :
1509 else
1510   echo "$ac_t""no" 1>&6
1511 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1512 echo "configure:1513: checking for nanosleep in -lrt" >&5
1513 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1515   echo $ac_n "(cached) $ac_c" 1>&6
1516 else
1517   ac_save_LIBS="$LIBS"
1518 LIBS="-lrt  $LIBS"
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 /* Override any gcc2 internal prototype to avoid an error.  */
1523 /* We use char because int might match the return type of a gcc2
1524     builtin and then its argument prototype would still apply.  */
1525 char nanosleep();
1526
1527 int main() {
1528 nanosleep()
1529 ; return 0; }
1530 EOF
1531 if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1532   rm -rf conftest*
1533   eval "ac_cv_lib_$ac_lib_var=yes"
1534 else
1535   echo "configure: failed program was:" >&5
1536   cat conftest.$ac_ext >&5
1537   rm -rf conftest*
1538   eval "ac_cv_lib_$ac_lib_var=no"
1539 fi
1540 rm -f conftest*
1541 LIBS="$ac_save_LIBS"
1542
1543 fi
1544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1545   echo "$ac_t""yes" 1>&6
1546     ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1547     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1548   cat >> confdefs.h <<EOF
1549 #define $ac_tr_lib 1
1550 EOF
1551
1552   LIBS="-lrt $LIBS"
1553
1554 else
1555   echo "$ac_t""no" 1>&6
1556 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1557 echo "configure:1558: checking for nanosleep in -lposix4" >&5
1558 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1560   echo $ac_n "(cached) $ac_c" 1>&6
1561 else
1562   ac_save_LIBS="$LIBS"
1563 LIBS="-lposix4  $LIBS"
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1567 /* Override any gcc2 internal prototype to avoid an error.  */
1568 /* We use char because int might match the return type of a gcc2
1569     builtin and then its argument prototype would still apply.  */
1570 char nanosleep();
1571
1572 int main() {
1573 nanosleep()
1574 ; return 0; }
1575 EOF
1576 if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1577   rm -rf conftest*
1578   eval "ac_cv_lib_$ac_lib_var=yes"
1579 else
1580   echo "configure: failed program was:" >&5
1581   cat conftest.$ac_ext >&5
1582   rm -rf conftest*
1583   eval "ac_cv_lib_$ac_lib_var=no"
1584 fi
1585 rm -f conftest*
1586 LIBS="$ac_save_LIBS"
1587
1588 fi
1589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1590   echo "$ac_t""yes" 1>&6
1591     ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1592     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1593   cat >> confdefs.h <<EOF
1594 #define $ac_tr_lib 1
1595 EOF
1596
1597   LIBS="-lposix4 $LIBS"
1598
1599 else
1600   echo "$ac_t""no" 1>&6
1601 fi
1602
1603 fi
1604
1605 fi
1606
1607 for ac_func in usleep
1608 do
1609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1610 echo "configure:1611: checking for $ac_func" >&5
1611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1612   echo $ac_n "(cached) $ac_c" 1>&6
1613 else
1614   cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 /* System header to define __stub macros and hopefully few prototypes,
1618     which can conflict with char $ac_func(); below.  */
1619 #include <assert.h>
1620 /* Override any gcc2 internal prototype to avoid an error.  */
1621 /* We use char because int might match the return type of a gcc2
1622     builtin and then its argument prototype would still apply.  */
1623 char $ac_func();
1624
1625 int main() {
1626
1627 /* The GNU C library defines this for functions which it implements
1628     to always fail with ENOSYS.  Some functions are actually named
1629     something starting with __ and the normal name is an alias.  */
1630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1631 choke me
1632 #else
1633 $ac_func();
1634 #endif
1635
1636 ; return 0; }
1637 EOF
1638 if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1639   rm -rf conftest*
1640   eval "ac_cv_func_$ac_func=yes"
1641 else
1642   echo "configure: failed program was:" >&5
1643   cat conftest.$ac_ext >&5
1644   rm -rf conftest*
1645   eval "ac_cv_func_$ac_func=no"
1646 fi
1647 rm -f conftest*
1648 fi
1649
1650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1651   echo "$ac_t""yes" 1>&6
1652     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1653   cat >> confdefs.h <<EOF
1654 #define $ac_tr_func 1
1655 EOF
1656  
1657 else
1658   echo "$ac_t""no" 1>&6
1659 fi
1660 done
1661
1662 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1663 echo "configure:1664: checking for inet_aton" >&5
1664 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1665   echo $ac_n "(cached) $ac_c" 1>&6
1666 else
1667   cat > conftest.$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1670 /* System header to define __stub macros and hopefully few prototypes,
1671     which can conflict with char inet_aton(); below.  */
1672 #include <assert.h>
1673 /* Override any gcc2 internal prototype to avoid an error.  */
1674 /* We use char because int might match the return type of a gcc2
1675     builtin and then its argument prototype would still apply.  */
1676 char inet_aton();
1677
1678 int main() {
1679
1680 /* The GNU C library defines this for functions which it implements
1681     to always fail with ENOSYS.  Some functions are actually named
1682     something starting with __ and the normal name is an alias.  */
1683 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1684 choke me
1685 #else
1686 inet_aton();
1687 #endif
1688
1689 ; return 0; }
1690 EOF
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1692   rm -rf conftest*
1693   eval "ac_cv_func_inet_aton=yes"
1694 else
1695   echo "configure: failed program was:" >&5
1696   cat conftest.$ac_ext >&5
1697   rm -rf conftest*
1698   eval "ac_cv_func_inet_aton=no"
1699 fi
1700 rm -f conftest*
1701 fi
1702
1703 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1704   echo "$ac_t""yes" 1>&6
1705   :
1706 else
1707   echo "$ac_t""no" 1>&6
1708 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1709 echo "configure:1710: checking for inet_aton in -lresolv" >&5
1710 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1712   echo $ac_n "(cached) $ac_c" 1>&6
1713 else
1714   ac_save_LIBS="$LIBS"
1715 LIBS="-lresolv  $LIBS"
1716 cat > conftest.$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1719 /* Override any gcc2 internal prototype to avoid an error.  */
1720 /* We use char because int might match the return type of a gcc2
1721     builtin and then its argument prototype would still apply.  */
1722 char inet_aton();
1723
1724 int main() {
1725 inet_aton()
1726 ; return 0; }
1727 EOF
1728 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1729   rm -rf conftest*
1730   eval "ac_cv_lib_$ac_lib_var=yes"
1731 else
1732   echo "configure: failed program was:" >&5
1733   cat conftest.$ac_ext >&5
1734   rm -rf conftest*
1735   eval "ac_cv_lib_$ac_lib_var=no"
1736 fi
1737 rm -f conftest*
1738 LIBS="$ac_save_LIBS"
1739
1740 fi
1741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1742   echo "$ac_t""yes" 1>&6
1743     ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1744     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1745   cat >> confdefs.h <<EOF
1746 #define $ac_tr_lib 1
1747 EOF
1748
1749   LIBS="-lresolv $LIBS"
1750
1751 else
1752   echo "$ac_t""no" 1>&6
1753 fi
1754
1755 fi
1756
1757 for ac_hdr in unistd.h
1758 do
1759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1761 echo "configure:1762: checking for $ac_hdr" >&5
1762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1763   echo $ac_n "(cached) $ac_c" 1>&6
1764 else
1765   cat > conftest.$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1768 #include <$ac_hdr>
1769 EOF
1770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1771 { (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1773 if test -z "$ac_err"; then
1774   rm -rf conftest*
1775   eval "ac_cv_header_$ac_safe=yes"
1776 else
1777   echo "$ac_err" >&5
1778   echo "configure: failed program was:" >&5
1779   cat conftest.$ac_ext >&5
1780   rm -rf conftest*
1781   eval "ac_cv_header_$ac_safe=no"
1782 fi
1783 rm -f conftest*
1784 fi
1785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1786   echo "$ac_t""yes" 1>&6
1787     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1788   cat >> confdefs.h <<EOF
1789 #define $ac_tr_hdr 1
1790 EOF
1791  
1792 else
1793   echo "$ac_t""no" 1>&6
1794 fi
1795 done
1796
1797 for ac_func in getpagesize
1798 do
1799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1800 echo "configure:1801: checking for $ac_func" >&5
1801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1802   echo $ac_n "(cached) $ac_c" 1>&6
1803 else
1804   cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 /* System header to define __stub macros and hopefully few prototypes,
1808     which can conflict with char $ac_func(); below.  */
1809 #include <assert.h>
1810 /* Override any gcc2 internal prototype to avoid an error.  */
1811 /* We use char because int might match the return type of a gcc2
1812     builtin and then its argument prototype would still apply.  */
1813 char $ac_func();
1814
1815 int main() {
1816
1817 /* The GNU C library defines this for functions which it implements
1818     to always fail with ENOSYS.  Some functions are actually named
1819     something starting with __ and the normal name is an alias.  */
1820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1821 choke me
1822 #else
1823 $ac_func();
1824 #endif
1825
1826 ; return 0; }
1827 EOF
1828 if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1829   rm -rf conftest*
1830   eval "ac_cv_func_$ac_func=yes"
1831 else
1832   echo "configure: failed program was:" >&5
1833   cat conftest.$ac_ext >&5
1834   rm -rf conftest*
1835   eval "ac_cv_func_$ac_func=no"
1836 fi
1837 rm -f conftest*
1838 fi
1839
1840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1841   echo "$ac_t""yes" 1>&6
1842     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1843   cat >> confdefs.h <<EOF
1844 #define $ac_tr_func 1
1845 EOF
1846  
1847 else
1848   echo "$ac_t""no" 1>&6
1849 fi
1850 done
1851
1852 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1853 echo "configure:1854: checking for working mmap" >&5
1854 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1855   echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857   if test "$cross_compiling" = yes; then
1858   ac_cv_func_mmap_fixed_mapped=no
1859 else
1860   cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1863
1864 /* Thanks to Mike Haertel and Jim Avera for this test.
1865    Here is a matrix of mmap possibilities:
1866         mmap private not fixed
1867         mmap private fixed at somewhere currently unmapped
1868         mmap private fixed at somewhere already mapped
1869         mmap shared not fixed
1870         mmap shared fixed at somewhere currently unmapped
1871         mmap shared fixed at somewhere already mapped
1872    For private mappings, we should verify that changes cannot be read()
1873    back from the file, nor mmap's back from the file at a different
1874    address.  (There have been systems where private was not correctly
1875    implemented like the infamous i386 svr4.0, and systems where the
1876    VM page cache was not coherent with the filesystem buffer cache
1877    like early versions of FreeBSD and possibly contemporary NetBSD.)
1878    For shared mappings, we should conversely verify that changes get
1879    propogated back to all the places they're supposed to be.
1880
1881    Grep wants private fixed already mapped.
1882    The main things grep needs to know about mmap are:
1883    * does it exist and is it safe to write into the mmap'd area
1884    * how to use it (BSD variants)  */
1885 #include <sys/types.h>
1886 #include <fcntl.h>
1887 #include <sys/mman.h>
1888 #include <stdlib.h>
1889 #include <sys/stat.h>
1890
1891 #ifdef HAVE_UNISTD_H
1892 # include <unistd.h>
1893 #endif
1894
1895 /* This mess was copied from the GNU getpagesize.h.  */
1896 #ifndef HAVE_GETPAGESIZE
1897
1898 /* Assume that all systems that can run configure have sys/param.h.  */
1899 # ifndef HAVE_SYS_PARAM_H
1900 #  define HAVE_SYS_PARAM_H 1
1901 # endif
1902
1903 # ifdef _SC_PAGESIZE
1904 #  define getpagesize() sysconf(_SC_PAGESIZE)
1905 # else /* no _SC_PAGESIZE */
1906 #  ifdef HAVE_SYS_PARAM_H
1907 #   include <sys/param.h>
1908 #   ifdef EXEC_PAGESIZE
1909 #    define getpagesize() EXEC_PAGESIZE
1910 #   else /* no EXEC_PAGESIZE */
1911 #    ifdef NBPG
1912 #     define getpagesize() NBPG * CLSIZE
1913 #     ifndef CLSIZE
1914 #      define CLSIZE 1
1915 #     endif /* no CLSIZE */
1916 #    else /* no NBPG */
1917 #     ifdef NBPC
1918 #      define getpagesize() NBPC
1919 #     else /* no NBPC */
1920 #      ifdef PAGESIZE
1921 #       define getpagesize() PAGESIZE
1922 #      endif /* PAGESIZE */
1923 #     endif /* no NBPC */
1924 #    endif /* no NBPG */
1925 #   endif /* no EXEC_PAGESIZE */
1926 #  else /* no HAVE_SYS_PARAM_H */
1927 #   define getpagesize() 8192   /* punt totally */
1928 #  endif /* no HAVE_SYS_PARAM_H */
1929 # endif /* no _SC_PAGESIZE */
1930
1931 #endif /* no HAVE_GETPAGESIZE */
1932
1933 #ifdef __cplusplus
1934 extern "C" { void *malloc(unsigned); }
1935 #else
1936 char *malloc();
1937 #endif
1938
1939 int
1940 main()
1941 {
1942         char *data, *data2, *data3;
1943         int i, pagesize;
1944         int fd;
1945
1946         pagesize = getpagesize();
1947
1948         /*
1949          * First, make a file with some known garbage in it.
1950          */
1951         data = (char*)malloc(pagesize);
1952         if (!data)
1953                 exit(1);
1954         for (i = 0; i < pagesize; ++i)
1955                 *(data + i) = rand();
1956         umask(0);
1957         fd = creat("conftestmmap", 0600);
1958         if (fd < 0)
1959                 exit(1);
1960         if (write(fd, data, pagesize) != pagesize)
1961                 exit(1);
1962         close(fd);
1963
1964         /*
1965          * Next, try to mmap the file at a fixed address which
1966          * already has something else allocated at it.  If we can,
1967          * also make sure that we see the same garbage.
1968          */
1969         fd = open("conftestmmap", O_RDWR);
1970         if (fd < 0)
1971                 exit(1);
1972         data2 = (char*)malloc(2 * pagesize);
1973         if (!data2)
1974                 exit(1);
1975         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1976         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1977             MAP_PRIVATE | MAP_FIXED, fd, 0L))
1978                 exit(1);
1979         for (i = 0; i < pagesize; ++i)
1980                 if (*(data + i) != *(data2 + i))
1981                         exit(1);
1982
1983         /*
1984          * Finally, make sure that changes to the mapped area
1985          * do not percolate back to the file as seen by read().
1986          * (This is a bug on some variants of i386 svr4.0.)
1987          */
1988         for (i = 0; i < pagesize; ++i)
1989                 *(data2 + i) = *(data2 + i) + 1;
1990         data3 = (char*)malloc(pagesize);
1991         if (!data3)
1992                 exit(1);
1993         if (read(fd, data3, pagesize) != pagesize)
1994                 exit(1);
1995         for (i = 0; i < pagesize; ++i)
1996                 if (*(data + i) != *(data3 + i))
1997                         exit(1);
1998         close(fd);
1999         unlink("conftestmmap");
2000         exit(0);
2001 }
2002
2003 EOF
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2005 then
2006   ac_cv_func_mmap_fixed_mapped=yes
2007 else
2008   echo "configure: failed program was:" >&5
2009   cat conftest.$ac_ext >&5
2010   rm -fr conftest*
2011   ac_cv_func_mmap_fixed_mapped=no
2012 fi
2013 rm -fr conftest*
2014 fi
2015
2016 fi
2017
2018 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2019 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2020   cat >> confdefs.h <<\EOF
2021 #define HAVE_MMAP 1
2022 EOF
2023
2024 fi
2025
2026 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2027 echo "configure:2028: checking for vprintf" >&5
2028 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2029   echo $ac_n "(cached) $ac_c" 1>&6
2030 else
2031   cat > conftest.$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2034 /* System header to define __stub macros and hopefully few prototypes,
2035     which can conflict with char vprintf(); below.  */
2036 #include <assert.h>
2037 /* Override any gcc2 internal prototype to avoid an error.  */
2038 /* We use char because int might match the return type of a gcc2
2039     builtin and then its argument prototype would still apply.  */
2040 char vprintf();
2041
2042 int main() {
2043
2044 /* The GNU C library defines this for functions which it implements
2045     to always fail with ENOSYS.  Some functions are actually named
2046     something starting with __ and the normal name is an alias.  */
2047 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2048 choke me
2049 #else
2050 vprintf();
2051 #endif
2052
2053 ; return 0; }
2054 EOF
2055 if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2056   rm -rf conftest*
2057   eval "ac_cv_func_vprintf=yes"
2058 else
2059   echo "configure: failed program was:" >&5
2060   cat conftest.$ac_ext >&5
2061   rm -rf conftest*
2062   eval "ac_cv_func_vprintf=no"
2063 fi
2064 rm -f conftest*
2065 fi
2066
2067 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2068   echo "$ac_t""yes" 1>&6
2069   cat >> confdefs.h <<\EOF
2070 #define HAVE_VPRINTF 1
2071 EOF
2072
2073 else
2074   echo "$ac_t""no" 1>&6
2075 fi
2076
2077 if test "$ac_cv_func_vprintf" != yes; then
2078 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2079 echo "configure:2080: checking for _doprnt" >&5
2080 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2081   echo $ac_n "(cached) $ac_c" 1>&6
2082 else
2083   cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 /* System header to define __stub macros and hopefully few prototypes,
2087     which can conflict with char _doprnt(); below.  */
2088 #include <assert.h>
2089 /* Override any gcc2 internal prototype to avoid an error.  */
2090 /* We use char because int might match the return type of a gcc2
2091     builtin and then its argument prototype would still apply.  */
2092 char _doprnt();
2093
2094 int main() {
2095
2096 /* The GNU C library defines this for functions which it implements
2097     to always fail with ENOSYS.  Some functions are actually named
2098     something starting with __ and the normal name is an alias.  */
2099 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2100 choke me
2101 #else
2102 _doprnt();
2103 #endif
2104
2105 ; return 0; }
2106 EOF
2107 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2108   rm -rf conftest*
2109   eval "ac_cv_func__doprnt=yes"
2110 else
2111   echo "configure: failed program was:" >&5
2112   cat conftest.$ac_ext >&5
2113   rm -rf conftest*
2114   eval "ac_cv_func__doprnt=no"
2115 fi
2116 rm -f conftest*
2117 fi
2118
2119 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2120   echo "$ac_t""yes" 1>&6
2121   cat >> confdefs.h <<\EOF
2122 #define HAVE_DOPRNT 1
2123 EOF
2124
2125 else
2126   echo "$ac_t""no" 1>&6
2127 fi
2128
2129 fi
2130
2131 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2132 echo "configure:2133: checking return type of signal handlers" >&5
2133 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2134   echo $ac_n "(cached) $ac_c" 1>&6
2135 else
2136   cat > conftest.$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2139 #include <sys/types.h>
2140 #include <signal.h>
2141 #ifdef signal
2142 #undef signal
2143 #endif
2144 #ifdef __cplusplus
2145 extern "C" void (*signal (int, void (*)(int)))(int);
2146 #else
2147 void (*signal ()) ();
2148 #endif
2149
2150 int main() {
2151 int i;
2152 ; return 0; }
2153 EOF
2154 if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2155   rm -rf conftest*
2156   ac_cv_type_signal=void
2157 else
2158   echo "configure: failed program was:" >&5
2159   cat conftest.$ac_ext >&5
2160   rm -rf conftest*
2161   ac_cv_type_signal=int
2162 fi
2163 rm -f conftest*
2164 fi
2165
2166 echo "$ac_t""$ac_cv_type_signal" 1>&6
2167 cat >> confdefs.h <<EOF
2168 #define RETSIGTYPE $ac_cv_type_signal
2169 EOF
2170
2171
2172 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2173 echo "configure:2174: checking for dlopen in -ldl" >&5
2174 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2176   echo $ac_n "(cached) $ac_c" 1>&6
2177 else
2178   ac_save_LIBS="$LIBS"
2179 LIBS="-ldl  $LIBS"
2180 cat > conftest.$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2183 /* Override any gcc2 internal prototype to avoid an error.  */
2184 /* We use char because int might match the return type of a gcc2
2185     builtin and then its argument prototype would still apply.  */
2186 char dlopen();
2187
2188 int main() {
2189 dlopen()
2190 ; return 0; }
2191 EOF
2192 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2193   rm -rf conftest*
2194   eval "ac_cv_lib_$ac_lib_var=yes"
2195 else
2196   echo "configure: failed program was:" >&5
2197   cat conftest.$ac_ext >&5
2198   rm -rf conftest*
2199   eval "ac_cv_lib_$ac_lib_var=no"
2200 fi
2201 rm -f conftest*
2202 LIBS="$ac_save_LIBS"
2203
2204 fi
2205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2206   echo "$ac_t""yes" 1>&6
2207     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2208     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2209   cat >> confdefs.h <<EOF
2210 #define $ac_tr_lib 1
2211 EOF
2212
2213   LIBS="-ldl $LIBS"
2214
2215 else
2216   echo "$ac_t""no" 1>&6
2217 fi
2218
2219 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2220 echo "configure:2221: checking for optarg in -lgnugetopt" >&5
2221 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2223   echo $ac_n "(cached) $ac_c" 1>&6
2224 else
2225   ac_save_LIBS="$LIBS"
2226 LIBS="-lgnugetopt  $LIBS"
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 /* Override any gcc2 internal prototype to avoid an error.  */
2231 /* We use char because int might match the return type of a gcc2
2232     builtin and then its argument prototype would still apply.  */
2233 char optarg();
2234
2235 int main() {
2236 optarg()
2237 ; return 0; }
2238 EOF
2239 if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2240   rm -rf conftest*
2241   eval "ac_cv_lib_$ac_lib_var=yes"
2242 else
2243   echo "configure: failed program was:" >&5
2244   cat conftest.$ac_ext >&5
2245   rm -rf conftest*
2246   eval "ac_cv_lib_$ac_lib_var=no"
2247 fi
2248 rm -f conftest*
2249 LIBS="$ac_save_LIBS"
2250
2251 fi
2252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2253   echo "$ac_t""yes" 1>&6
2254     ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2255     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2256   cat >> confdefs.h <<EOF
2257 #define $ac_tr_lib 1
2258 EOF
2259
2260   LIBS="-lgnugetopt $LIBS"
2261
2262 else
2263   echo "$ac_t""no" 1>&6
2264 fi
2265
2266 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2267 echo "configure:2268: checking for _ in -lbe" >&5
2268 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2270   echo $ac_n "(cached) $ac_c" 1>&6
2271 else
2272   ac_save_LIBS="$LIBS"
2273 LIBS="-lbe  $LIBS"
2274 cat > conftest.$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2277 /* Override any gcc2 internal prototype to avoid an error.  */
2278 /* We use char because int might match the return type of a gcc2
2279     builtin and then its argument prototype would still apply.  */
2280 char _();
2281
2282 int main() {
2283 _()
2284 ; return 0; }
2285 EOF
2286 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2287   rm -rf conftest*
2288   eval "ac_cv_lib_$ac_lib_var=yes"
2289 else
2290   echo "configure: failed program was:" >&5
2291   cat conftest.$ac_ext >&5
2292   rm -rf conftest*
2293   eval "ac_cv_lib_$ac_lib_var=no"
2294 fi
2295 rm -f conftest*
2296 LIBS="$ac_save_LIBS"
2297
2298 fi
2299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2300   echo "$ac_t""yes" 1>&6
2301     ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2302     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2303   cat >> confdefs.h <<EOF
2304 #define $ac_tr_lib 1
2305 EOF
2306
2307   LIBS="-lbe $LIBS"
2308
2309 else
2310   echo "$ac_t""no" 1>&6
2311 fi
2312
2313 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2314 echo "configure:2315: checking for _ in -lgame" >&5
2315 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2317   echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2319   ac_save_LIBS="$LIBS"
2320 LIBS="-lgame  $LIBS"
2321 cat > conftest.$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2324 /* Override any gcc2 internal prototype to avoid an error.  */
2325 /* We use char because int might match the return type of a gcc2
2326     builtin and then its argument prototype would still apply.  */
2327 char _();
2328
2329 int main() {
2330 _()
2331 ; return 0; }
2332 EOF
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2334   rm -rf conftest*
2335   eval "ac_cv_lib_$ac_lib_var=yes"
2336 else
2337   echo "configure: failed program was:" >&5
2338   cat conftest.$ac_ext >&5
2339   rm -rf conftest*
2340   eval "ac_cv_lib_$ac_lib_var=no"
2341 fi
2342 rm -f conftest*
2343 LIBS="$ac_save_LIBS"
2344
2345 fi
2346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2347   echo "$ac_t""yes" 1>&6
2348     ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2349     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2350   cat >> confdefs.h <<EOF
2351 #define $ac_tr_lib 1
2352 EOF
2353
2354   LIBS="-lgame $LIBS"
2355
2356 else
2357   echo "$ac_t""no" 1>&6
2358 fi
2359
2360 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2361 echo "configure:2362: checking for _ in -lroot" >&5
2362 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2364   echo $ac_n "(cached) $ac_c" 1>&6
2365 else
2366   ac_save_LIBS="$LIBS"
2367 LIBS="-lroot  $LIBS"
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 /* Override any gcc2 internal prototype to avoid an error.  */
2372 /* We use char because int might match the return type of a gcc2
2373     builtin and then its argument prototype would still apply.  */
2374 char _();
2375
2376 int main() {
2377 _()
2378 ; return 0; }
2379 EOF
2380 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2381   rm -rf conftest*
2382   eval "ac_cv_lib_$ac_lib_var=yes"
2383 else
2384   echo "configure: failed program was:" >&5
2385   cat conftest.$ac_ext >&5
2386   rm -rf conftest*
2387   eval "ac_cv_lib_$ac_lib_var=no"
2388 fi
2389 rm -f conftest*
2390 LIBS="$ac_save_LIBS"
2391
2392 fi
2393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2394   echo "$ac_t""yes" 1>&6
2395     ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2396     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2397   cat >> confdefs.h <<EOF
2398 #define $ac_tr_lib 1
2399 EOF
2400
2401   LIBS="-lroot $LIBS"
2402
2403 else
2404   echo "$ac_t""no" 1>&6
2405 fi
2406
2407 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2408 echo "configure:2409: checking for powl in -lm" >&5
2409 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2411   echo $ac_n "(cached) $ac_c" 1>&6
2412 else
2413   ac_save_LIBS="$LIBS"
2414 LIBS="-lm  $LIBS"
2415 cat > conftest.$ac_ext <<EOF
2416 #line 2417 "configure"
2417 #include "confdefs.h"
2418 /* Override any gcc2 internal prototype to avoid an error.  */
2419 /* We use char because int might match the return type of a gcc2
2420     builtin and then its argument prototype would still apply.  */
2421 char powl();
2422
2423 int main() {
2424 powl()
2425 ; return 0; }
2426 EOF
2427 if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2428   rm -rf conftest*
2429   eval "ac_cv_lib_$ac_lib_var=yes"
2430 else
2431   echo "configure: failed program was:" >&5
2432   cat conftest.$ac_ext >&5
2433   rm -rf conftest*
2434   eval "ac_cv_lib_$ac_lib_var=no"
2435 fi
2436 rm -f conftest*
2437 LIBS="$ac_save_LIBS"
2438
2439 fi
2440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2441   echo "$ac_t""yes" 1>&6
2442     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2443     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2444   cat >> confdefs.h <<EOF
2445 #define $ac_tr_lib 1
2446 EOF
2447
2448   LIBS="-lm $LIBS"
2449
2450 else
2451   echo "$ac_t""no" 1>&6
2452 fi
2453
2454 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2455 echo "configure:2456: checking for pthread_create in -lpthread" >&5
2456 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2458   echo $ac_n "(cached) $ac_c" 1>&6
2459 else
2460   ac_save_LIBS="$LIBS"
2461 LIBS="-lpthread  $LIBS"
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* Override any gcc2 internal prototype to avoid an error.  */
2466 /* We use char because int might match the return type of a gcc2
2467     builtin and then its argument prototype would still apply.  */
2468 char pthread_create();
2469
2470 int main() {
2471 pthread_create()
2472 ; return 0; }
2473 EOF
2474 if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2475   rm -rf conftest*
2476   eval "ac_cv_lib_$ac_lib_var=yes"
2477 else
2478   echo "configure: failed program was:" >&5
2479   cat conftest.$ac_ext >&5
2480   rm -rf conftest*
2481   eval "ac_cv_lib_$ac_lib_var=no"
2482 fi
2483 rm -f conftest*
2484 LIBS="$ac_save_LIBS"
2485
2486 fi
2487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2488   echo "$ac_t""yes" 1>&6
2489     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2490     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2491   cat >> confdefs.h <<EOF
2492 #define $ac_tr_lib 1
2493 EOF
2494
2495   LIBS="-lpthread $LIBS"
2496
2497 else
2498   echo "$ac_t""no" 1>&6
2499 fi
2500
2501 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2502 echo "configure:2503: checking for thread_create in -lthreads" >&5
2503 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2505   echo $ac_n "(cached) $ac_c" 1>&6
2506 else
2507   ac_save_LIBS="$LIBS"
2508 LIBS="-lthreads  $LIBS"
2509 cat > conftest.$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2512 /* Override any gcc2 internal prototype to avoid an error.  */
2513 /* We use char because int might match the return type of a gcc2
2514     builtin and then its argument prototype would still apply.  */
2515 char thread_create();
2516
2517 int main() {
2518 thread_create()
2519 ; return 0; }
2520 EOF
2521 if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2522   rm -rf conftest*
2523   eval "ac_cv_lib_$ac_lib_var=yes"
2524 else
2525   echo "configure: failed program was:" >&5
2526   cat conftest.$ac_ext >&5
2527   rm -rf conftest*
2528   eval "ac_cv_lib_$ac_lib_var=no"
2529 fi
2530 rm -f conftest*
2531 LIBS="$ac_save_LIBS"
2532
2533 fi
2534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2535   echo "$ac_t""yes" 1>&6
2536     ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2537     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2538   cat >> confdefs.h <<EOF
2539 #define $ac_tr_lib 1
2540 EOF
2541
2542   LIBS="-lthreads $LIBS"
2543
2544 else
2545   echo "$ac_t""no" 1>&6
2546 fi
2547
2548
2549 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2550 echo "configure:2551: checking for getopt_long" >&5
2551 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2552   echo $ac_n "(cached) $ac_c" 1>&6
2553 else
2554   cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 /* System header to define __stub macros and hopefully few prototypes,
2558     which can conflict with char getopt_long(); below.  */
2559 #include <assert.h>
2560 /* Override any gcc2 internal prototype to avoid an error.  */
2561 /* We use char because int might match the return type of a gcc2
2562     builtin and then its argument prototype would still apply.  */
2563 char getopt_long();
2564
2565 int main() {
2566
2567 /* The GNU C library defines this for functions which it implements
2568     to always fail with ENOSYS.  Some functions are actually named
2569     something starting with __ and the normal name is an alias.  */
2570 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2571 choke me
2572 #else
2573 getopt_long();
2574 #endif
2575
2576 ; return 0; }
2577 EOF
2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2579   rm -rf conftest*
2580   eval "ac_cv_func_getopt_long=yes"
2581 else
2582   echo "configure: failed program was:" >&5
2583   cat conftest.$ac_ext >&5
2584   rm -rf conftest*
2585   eval "ac_cv_func_getopt_long=no"
2586 fi
2587 rm -f conftest*
2588 fi
2589
2590 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2591   echo "$ac_t""yes" 1>&6
2592   :
2593 else
2594   echo "$ac_t""no" 1>&6
2595 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2596 fi
2597
2598
2599
2600 for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
2601 do
2602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2604 echo "configure:2605: checking for $ac_hdr" >&5
2605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2606   echo $ac_n "(cached) $ac_c" 1>&6
2607 else
2608   cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2611 #include <$ac_hdr>
2612 EOF
2613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2614 { (eval echo configure:2615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2616 if test -z "$ac_err"; then
2617   rm -rf conftest*
2618   eval "ac_cv_header_$ac_safe=yes"
2619 else
2620   echo "$ac_err" >&5
2621   echo "configure: failed program was:" >&5
2622   cat conftest.$ac_ext >&5
2623   rm -rf conftest*
2624   eval "ac_cv_header_$ac_safe=no"
2625 fi
2626 rm -f conftest*
2627 fi
2628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2629   echo "$ac_t""yes" 1>&6
2630     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2631   cat >> confdefs.h <<EOF
2632 #define $ac_tr_hdr 1
2633 EOF
2634  
2635 else
2636   echo "$ac_t""no" 1>&6
2637 fi
2638 done
2639
2640 for ac_hdr in sys/soundcard.h machine/soundcard.h
2641 do
2642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2644 echo "configure:2645: checking for $ac_hdr" >&5
2645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2646   echo $ac_n "(cached) $ac_c" 1>&6
2647 else
2648   cat > conftest.$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2651 #include <$ac_hdr>
2652 EOF
2653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2654 { (eval echo configure:2655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2656 if test -z "$ac_err"; then
2657   rm -rf conftest*
2658   eval "ac_cv_header_$ac_safe=yes"
2659 else
2660   echo "$ac_err" >&5
2661   echo "configure: failed program was:" >&5
2662   cat conftest.$ac_ext >&5
2663   rm -rf conftest*
2664   eval "ac_cv_header_$ac_safe=no"
2665 fi
2666 rm -f conftest*
2667 fi
2668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2669   echo "$ac_t""yes" 1>&6
2670     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2671   cat >> confdefs.h <<EOF
2672 #define $ac_tr_hdr 1
2673 EOF
2674  
2675 else
2676   echo "$ac_t""no" 1>&6
2677 fi
2678 done
2679
2680 for ac_hdr in dlfcn.h image.h
2681 do
2682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2684 echo "configure:2685: checking for $ac_hdr" >&5
2685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2686   echo $ac_n "(cached) $ac_c" 1>&6
2687 else
2688   cat > conftest.$ac_ext <<EOF
2689 #line 2690 "configure"
2690 #include "confdefs.h"
2691 #include <$ac_hdr>
2692 EOF
2693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2694 { (eval echo configure:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2696 if test -z "$ac_err"; then
2697   rm -rf conftest*
2698   eval "ac_cv_header_$ac_safe=yes"
2699 else
2700   echo "$ac_err" >&5
2701   echo "configure: failed program was:" >&5
2702   cat conftest.$ac_ext >&5
2703   rm -rf conftest*
2704   eval "ac_cv_header_$ac_safe=no"
2705 fi
2706 rm -f conftest*
2707 fi
2708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2709   echo "$ac_t""yes" 1>&6
2710     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2711   cat >> confdefs.h <<EOF
2712 #define $ac_tr_hdr 1
2713 EOF
2714  
2715 else
2716   echo "$ac_t""no" 1>&6
2717 fi
2718 done
2719
2720 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2721 do
2722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2724 echo "configure:2725: checking for $ac_hdr" >&5
2725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2726   echo $ac_n "(cached) $ac_c" 1>&6
2727 else
2728   cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2731 #include <$ac_hdr>
2732 EOF
2733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2734 { (eval echo configure:2735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2736 if test -z "$ac_err"; then
2737   rm -rf conftest*
2738   eval "ac_cv_header_$ac_safe=yes"
2739 else
2740   echo "$ac_err" >&5
2741   echo "configure: failed program was:" >&5
2742   cat conftest.$ac_ext >&5
2743   rm -rf conftest*
2744   eval "ac_cv_header_$ac_safe=no"
2745 fi
2746 rm -f conftest*
2747 fi
2748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2749   echo "$ac_t""yes" 1>&6
2750     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2751   cat >> confdefs.h <<EOF
2752 #define $ac_tr_hdr 1
2753 EOF
2754  
2755 else
2756   echo "$ac_t""no" 1>&6
2757 fi
2758 done
2759
2760
2761 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2762 do
2763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2765 echo "configure:2766: checking for $ac_hdr" >&5
2766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2767   echo $ac_n "(cached) $ac_c" 1>&6
2768 else
2769   cat > conftest.$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2772 #include <$ac_hdr>
2773 EOF
2774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2775 { (eval echo configure:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2777 if test -z "$ac_err"; then
2778   rm -rf conftest*
2779   eval "ac_cv_header_$ac_safe=yes"
2780 else
2781   echo "$ac_err" >&5
2782   echo "configure: failed program was:" >&5
2783   cat conftest.$ac_ext >&5
2784   rm -rf conftest*
2785   eval "ac_cv_header_$ac_safe=no"
2786 fi
2787 rm -f conftest*
2788 fi
2789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2790   echo "$ac_t""yes" 1>&6
2791     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2792   cat >> confdefs.h <<EOF
2793 #define $ac_tr_hdr 1
2794 EOF
2795  
2796 else
2797   echo "$ac_t""no" 1>&6
2798 fi
2799 done
2800
2801
2802 echo $ac_n "checking for working const""... $ac_c" 1>&6
2803 echo "configure:2804: checking for working const" >&5
2804 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2805   echo $ac_n "(cached) $ac_c" 1>&6
2806 else
2807   cat > conftest.$ac_ext <<EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2810
2811 int main() {
2812
2813 /* Ultrix mips cc rejects this.  */
2814 typedef int charset[2]; const charset x = {0,0};
2815 /* SunOS 4.1.1 cc rejects this.  */
2816 char const *const *ccp;
2817 char **p;
2818 /* NEC SVR4.0.2 mips cc rejects this.  */
2819 struct point {int x, y;};
2820 static struct point const zero = {0,0};
2821 /* AIX XL C 1.02.0.0 rejects this.
2822    It does not let you subtract one const X* pointer from another in an arm
2823    of an if-expression whose if-part is not a constant expression */
2824 const char *g = "string";
2825 ccp = &g + (g ? g-g : 0);
2826 /* HPUX 7.0 cc rejects these. */
2827 ++ccp;
2828 p = (char**) ccp;
2829 ccp = (char const *const *) p;
2830 { /* SCO 3.2v4 cc rejects this.  */
2831   char *t;
2832   char const *s = 0 ? (char *) 0 : (char const *) 0;
2833
2834   *t++ = 0;
2835 }
2836 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2837   int x[] = {25, 17};
2838   const int *foo = &x[0];
2839   ++foo;
2840 }
2841 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2842   typedef const int *iptr;
2843   iptr p = 0;
2844   ++p;
2845 }
2846 { /* AIX XL C 1.02.0.0 rejects this saying
2847      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2848   struct s { int j; const int *ap[3]; };
2849   struct s *b; b->j = 5;
2850 }
2851 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2852   const int foo = 10;
2853 }
2854
2855 ; return 0; }
2856 EOF
2857 if { (eval echo configure:2858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2858   rm -rf conftest*
2859   ac_cv_c_const=yes
2860 else
2861   echo "configure: failed program was:" >&5
2862   cat conftest.$ac_ext >&5
2863   rm -rf conftest*
2864   ac_cv_c_const=no
2865 fi
2866 rm -f conftest*
2867 fi
2868
2869 echo "$ac_t""$ac_cv_c_const" 1>&6
2870 if test $ac_cv_c_const = no; then
2871   cat >> confdefs.h <<\EOF
2872 #define const 
2873 EOF
2874
2875 fi
2876
2877 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2878 echo "configure:2879: checking for ANSI C header files" >&5
2879 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2880   echo $ac_n "(cached) $ac_c" 1>&6
2881 else
2882   cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2885 #include <stdlib.h>
2886 #include <stdarg.h>
2887 #include <string.h>
2888 #include <float.h>
2889 EOF
2890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2891 { (eval echo configure:2892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2893 if test -z "$ac_err"; then
2894   rm -rf conftest*
2895   ac_cv_header_stdc=yes
2896 else
2897   echo "$ac_err" >&5
2898   echo "configure: failed program was:" >&5
2899   cat conftest.$ac_ext >&5
2900   rm -rf conftest*
2901   ac_cv_header_stdc=no
2902 fi
2903 rm -f conftest*
2904
2905 if test $ac_cv_header_stdc = yes; then
2906   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2910 #include <string.h>
2911 EOF
2912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2913   egrep "memchr" >/dev/null 2>&1; then
2914   :
2915 else
2916   rm -rf conftest*
2917   ac_cv_header_stdc=no
2918 fi
2919 rm -f conftest*
2920
2921 fi
2922
2923 if test $ac_cv_header_stdc = yes; then
2924   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2925 cat > conftest.$ac_ext <<EOF
2926 #line 2927 "configure"
2927 #include "confdefs.h"
2928 #include <stdlib.h>
2929 EOF
2930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2931   egrep "free" >/dev/null 2>&1; then
2932   :
2933 else
2934   rm -rf conftest*
2935   ac_cv_header_stdc=no
2936 fi
2937 rm -f conftest*
2938
2939 fi
2940
2941 if test $ac_cv_header_stdc = yes; then
2942   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2943 if test "$cross_compiling" = yes; then
2944   :
2945 else
2946   cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 #include <ctype.h>
2950 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2951 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2953 int main () { int i; for (i = 0; i < 256; i++)
2954 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2955 exit (0); }
2956
2957 EOF
2958 if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2959 then
2960   :
2961 else
2962   echo "configure: failed program was:" >&5
2963   cat conftest.$ac_ext >&5
2964   rm -fr conftest*
2965   ac_cv_header_stdc=no
2966 fi
2967 rm -fr conftest*
2968 fi
2969
2970 fi
2971 fi
2972
2973 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2974 if test $ac_cv_header_stdc = yes; then
2975   cat >> confdefs.h <<\EOF
2976 #define STDC_HEADERS 1
2977 EOF
2978
2979 fi
2980
2981 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2982 echo "configure:2983: checking for size_t" >&5
2983 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2984   echo $ac_n "(cached) $ac_c" 1>&6
2985 else
2986   cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 #include <sys/types.h>
2990 #if STDC_HEADERS
2991 #include <stdlib.h>
2992 #include <stddef.h>
2993 #endif
2994 EOF
2995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2996   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2997   rm -rf conftest*
2998   ac_cv_type_size_t=yes
2999 else
3000   rm -rf conftest*
3001   ac_cv_type_size_t=no
3002 fi
3003 rm -f conftest*
3004
3005 fi
3006 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3007 if test $ac_cv_type_size_t = no; then
3008   cat >> confdefs.h <<\EOF
3009 #define size_t unsigned
3010 EOF
3011
3012 fi
3013
3014 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3015 echo "configure:3016: checking whether time.h and sys/time.h may both be included" >&5
3016 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3017   echo $ac_n "(cached) $ac_c" 1>&6
3018 else
3019   cat > conftest.$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3022 #include <sys/types.h>
3023 #include <sys/time.h>
3024 #include <time.h>
3025 int main() {
3026 struct tm *tp;
3027 ; return 0; }
3028 EOF
3029 if { (eval echo configure:3030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030   rm -rf conftest*
3031   ac_cv_header_time=yes
3032 else
3033   echo "configure: failed program was:" >&5
3034   cat conftest.$ac_ext >&5
3035   rm -rf conftest*
3036   ac_cv_header_time=no
3037 fi
3038 rm -f conftest*
3039 fi
3040
3041 echo "$ac_t""$ac_cv_header_time" 1>&6
3042 if test $ac_cv_header_time = yes; then
3043   cat >> confdefs.h <<\EOF
3044 #define TIME_WITH_SYS_TIME 1
3045 EOF
3046
3047 fi
3048
3049
3050 PLUGINS=${PLUGINS}"yuv ";
3051
3052 ARCH=${host_cpu}
3053 # Check whether --enable-ppro or --disable-ppro was given.
3054 if test "${enable_ppro+set}" = set; then
3055   enableval="$enable_ppro"
3056    if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi 
3057 fi
3058
3059 # Check whether --enable-mmx or --disable-mmx was given.
3060 if test "${enable_mmx+set}" = set; then
3061   enableval="$enable_mmx"
3062    if test x`echo $ARCH | cut -b3-4` = x86 ; then if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}"yuvmmx "; fi; fi 
3063 fi
3064
3065
3066 SYS=${host_os}
3067
3068 # special cases
3069 if test x$host_os = xbeos; then
3070     PLUGINS=${PLUGINS}"dummy beos "
3071
3072 else
3073
3074 # Check whether --enable-dummy or --disable-dummy was given.
3075 if test "${enable_dummy+set}" = set; then
3076   enableval="$enable_dummy"
3077   :
3078 fi
3079
3080 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3081 # Check whether --enable-dsp or --disable-dsp was given.
3082 if test "${enable_dsp+set}" = set; then
3083   enableval="$enable_dsp"
3084   :
3085 fi
3086
3087 if test x$enable_dsp != xno; then PLUGINS=${PLUGINS}"dsp "; fi
3088 # Check whether --enable-esd or --disable-esd was given.
3089 if test "${enable_esd+set}" = set; then
3090   enableval="$enable_esd"
3091   if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3092 fi
3093
3094 # Check whether --enable-fb or --disable-fb was given.
3095 if test "${enable_fb+set}" = set; then
3096   enableval="$enable_fb"
3097   if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; ALIASES=${ALIASES}"fbvlc "; fi
3098 fi
3099
3100 # Check whether --enable-ggi or --disable-ggi was given.
3101 if test "${enable_ggi+set}" = set; then
3102   enableval="$enable_ggi"
3103   if test x$enable_ggi = xyes; then PLUGINS=${PLUGINS}"ggi "; fi
3104 fi
3105
3106 # Check whether --enable-sdl or --disable-sdl was given.
3107 if test "${enable_sdl+set}" = set; then
3108   enableval="$enable_sdl"
3109   if test x$enable_sdl = xyes; then PLUGINS=${PLUGINS}"sdl "; fi
3110 fi
3111
3112 # Check whether --enable-glide or --disable-glide was given.
3113 if test "${enable_glide+set}" = set; then
3114   enableval="$enable_glide"
3115   if test x$enable_glide = xyes; then PLUGINS=${PLUGINS}"glide "; fi
3116 fi
3117
3118 # Check whether --enable-gnome or --disable-gnome was given.
3119 if test "${enable_gnome+set}" = set; then
3120   enableval="$enable_gnome"
3121   if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; ALIASES=${ALIASES}"gvlc "; fi
3122 fi
3123
3124 # Check whether --enable-x11 or --disable-x11 was given.
3125 if test "${enable_x11+set}" = set; then
3126   enableval="$enable_x11"
3127   :
3128 fi
3129
3130 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3131
3132 fi
3133
3134
3135
3136
3137
3138
3139 trap '' 1 2 15
3140 cat > confcache <<\EOF
3141 # This file is a shell script that caches the results of configure
3142 # tests run on this system so they can be shared between configure
3143 # scripts and configure runs.  It is not useful on other systems.
3144 # If it contains results you don't want to keep, you may remove or edit it.
3145 #
3146 # By default, configure uses ./config.cache as the cache file,
3147 # creating it if it does not exist already.  You can give configure
3148 # the --cache-file=FILE option to use a different cache file; that is
3149 # what configure does when it calls configure scripts in
3150 # subdirectories, so they share the cache.
3151 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3152 # config.status only pays attention to the cache file if you give it the
3153 # --recheck option to rerun configure.
3154 #
3155 EOF
3156 # The following way of writing the cache mishandles newlines in values,
3157 # but we know of no workaround that is simple, portable, and efficient.
3158 # So, don't put newlines in cache variables' values.
3159 # Ultrix sh set writes to stderr and can't be redirected directly,
3160 # and sets the high bit in the cache file unless we assign to the vars.
3161 (set) 2>&1 |
3162   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3163   *ac_space=\ *)
3164     # `set' does not quote correctly, so add quotes (double-quote substitution
3165     # turns \\\\ into \\, and sed turns \\ into \).
3166     sed -n \
3167       -e "s/'/'\\\\''/g" \
3168       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3169     ;;
3170   *)
3171     # `set' quotes correctly as required by POSIX, so do not add quotes.
3172     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3173     ;;
3174   esac >> confcache
3175 if cmp -s $cache_file confcache; then
3176   :
3177 else
3178   if test -w $cache_file; then
3179     echo "updating cache $cache_file"
3180     cat confcache > $cache_file
3181   else
3182     echo "not updating unwritable cache $cache_file"
3183   fi
3184 fi
3185 rm -f confcache
3186
3187 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3188
3189 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3190 # Let make expand exec_prefix.
3191 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3192
3193 # Any assignment to VPATH causes Sun make to only execute
3194 # the first set of double-colon rules, so remove it if not needed.
3195 # If there is a colon in the path, we need to keep it.
3196 if test "x$srcdir" = x.; then
3197   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3198 fi
3199
3200 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3201
3202 DEFS=-DHAVE_CONFIG_H
3203
3204 # Without the "./", some shells look in PATH for config.status.
3205 : ${CONFIG_STATUS=./config.status}
3206
3207 echo creating $CONFIG_STATUS
3208 rm -f $CONFIG_STATUS
3209 cat > $CONFIG_STATUS <<EOF
3210 #! /bin/sh
3211 # Generated automatically by configure.
3212 # Run this file to recreate the current configuration.
3213 # This directory was configured as follows,
3214 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3215 #
3216 # $0 $ac_configure_args
3217 #
3218 # Compiler output produced by configure, useful for debugging
3219 # configure, is in ./config.log if it exists.
3220
3221 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3222 for ac_option
3223 do
3224   case "\$ac_option" in
3225   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3226     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3227     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3228   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3229     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3230     exit 0 ;;
3231   -help | --help | --hel | --he | --h)
3232     echo "\$ac_cs_usage"; exit 0 ;;
3233   *) echo "\$ac_cs_usage"; exit 1 ;;
3234   esac
3235 done
3236
3237 ac_given_srcdir=$srcdir
3238 ac_given_INSTALL="$INSTALL"
3239
3240 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3241 EOF
3242 cat >> $CONFIG_STATUS <<EOF
3243
3244 # Protect against being on the right side of a sed subst in config.status.
3245 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3246  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3247 $ac_vpsub
3248 $extrasub
3249 s%@SHELL@%$SHELL%g
3250 s%@CFLAGS@%$CFLAGS%g
3251 s%@CPPFLAGS@%$CPPFLAGS%g
3252 s%@CXXFLAGS@%$CXXFLAGS%g
3253 s%@FFLAGS@%$FFLAGS%g
3254 s%@DEFS@%$DEFS%g
3255 s%@LDFLAGS@%$LDFLAGS%g
3256 s%@LIBS@%$LIBS%g
3257 s%@exec_prefix@%$exec_prefix%g
3258 s%@prefix@%$prefix%g
3259 s%@program_transform_name@%$program_transform_name%g
3260 s%@bindir@%$bindir%g
3261 s%@sbindir@%$sbindir%g
3262 s%@libexecdir@%$libexecdir%g
3263 s%@datadir@%$datadir%g
3264 s%@sysconfdir@%$sysconfdir%g
3265 s%@sharedstatedir@%$sharedstatedir%g
3266 s%@localstatedir@%$localstatedir%g
3267 s%@libdir@%$libdir%g
3268 s%@includedir@%$includedir%g
3269 s%@oldincludedir@%$oldincludedir%g
3270 s%@infodir@%$infodir%g
3271 s%@mandir@%$mandir%g
3272 s%@host@%$host%g
3273 s%@host_alias@%$host_alias%g
3274 s%@host_cpu@%$host_cpu%g
3275 s%@host_vendor@%$host_vendor%g
3276 s%@host_os@%$host_os%g
3277 s%@VLC_VERSION@%$VLC_VERSION%g
3278 s%@VLC_CODENAME@%$VLC_CODENAME%g
3279 s%@SET_MAKE@%$SET_MAKE%g
3280 s%@CC@%$CC%g
3281 s%@CPP@%$CPP%g
3282 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3283 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3284 s%@INSTALL_DATA@%$INSTALL_DATA%g
3285 s%@LIBOBJS@%$LIBOBJS%g
3286 s%@SYS@%$SYS%g
3287 s%@ARCH@%$ARCH%g
3288 s%@PLUGINS@%$PLUGINS%g
3289 s%@ALIASES@%$ALIASES%g
3290
3291 CEOF
3292 EOF
3293
3294 cat >> $CONFIG_STATUS <<\EOF
3295
3296 # Split the substitutions into bite-sized pieces for seds with
3297 # small command number limits, like on Digital OSF/1 and HP-UX.
3298 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3299 ac_file=1 # Number of current file.
3300 ac_beg=1 # First line for current file.
3301 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3302 ac_more_lines=:
3303 ac_sed_cmds=""
3304 while $ac_more_lines; do
3305   if test $ac_beg -gt 1; then
3306     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3307   else
3308     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3309   fi
3310   if test ! -s conftest.s$ac_file; then
3311     ac_more_lines=false
3312     rm -f conftest.s$ac_file
3313   else
3314     if test -z "$ac_sed_cmds"; then
3315       ac_sed_cmds="sed -f conftest.s$ac_file"
3316     else
3317       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3318     fi
3319     ac_file=`expr $ac_file + 1`
3320     ac_beg=$ac_end
3321     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3322   fi
3323 done
3324 if test -z "$ac_sed_cmds"; then
3325   ac_sed_cmds=cat
3326 fi
3327 EOF
3328
3329 cat >> $CONFIG_STATUS <<EOF
3330
3331 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
3332 EOF
3333 cat >> $CONFIG_STATUS <<\EOF
3334 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3335   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3336   case "$ac_file" in
3337   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3338        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3339   *) ac_file_in="${ac_file}.in" ;;
3340   esac
3341
3342   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3343
3344   # Remove last slash and all that follows it.  Not all systems have dirname.
3345   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3346   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3347     # The file is in a subdirectory.
3348     test ! -d "$ac_dir" && mkdir "$ac_dir"
3349     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3350     # A "../" for each directory in $ac_dir_suffix.
3351     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3352   else
3353     ac_dir_suffix= ac_dots=
3354   fi
3355
3356   case "$ac_given_srcdir" in
3357   .)  srcdir=.
3358       if test -z "$ac_dots"; then top_srcdir=.
3359       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3360   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3361   *) # Relative path.
3362     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3363     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3364   esac
3365
3366   case "$ac_given_INSTALL" in
3367   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3368   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3369   esac
3370
3371   echo creating "$ac_file"
3372   rm -f "$ac_file"
3373   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3374   case "$ac_file" in
3375   *Makefile*) ac_comsub="1i\\
3376 # $configure_input" ;;
3377   *) ac_comsub= ;;
3378   esac
3379
3380   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3381   sed -e "$ac_comsub
3382 s%@configure_input@%$configure_input%g
3383 s%@srcdir@%$srcdir%g
3384 s%@top_srcdir@%$top_srcdir%g
3385 s%@INSTALL@%$INSTALL%g
3386 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3387 fi; done
3388 rm -f conftest.s*
3389
3390 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3391 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3392 #
3393 # ac_d sets the value in "#define NAME VALUE" lines.
3394 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3395 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3396 ac_dC='\3'
3397 ac_dD='%g'
3398 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3399 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3400 ac_uB='\([      ]\)%\1#\2define\3'
3401 ac_uC=' '
3402 ac_uD='\4%g'
3403 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3404 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3405 ac_eB='$%\1#\2define\3'
3406 ac_eC=' '
3407 ac_eD='%g'
3408
3409 if test "${CONFIG_HEADERS+set}" != set; then
3410 EOF
3411 cat >> $CONFIG_STATUS <<EOF
3412   CONFIG_HEADERS="include/defs.h"
3413 EOF
3414 cat >> $CONFIG_STATUS <<\EOF
3415 fi
3416 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3417   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3418   case "$ac_file" in
3419   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3420        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3421   *) ac_file_in="${ac_file}.in" ;;
3422   esac
3423
3424   echo creating $ac_file
3425
3426   rm -f conftest.frag conftest.in conftest.out
3427   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3428   cat $ac_file_inputs > conftest.in
3429
3430 EOF
3431
3432 # Transform confdefs.h into a sed script conftest.vals that substitutes
3433 # the proper values into config.h.in to produce config.h.  And first:
3434 # Protect against being on the right side of a sed subst in config.status.
3435 # Protect against being in an unquoted here document in config.status.
3436 rm -f conftest.vals
3437 cat > conftest.hdr <<\EOF
3438 s/[\\&%]/\\&/g
3439 s%[\\$`]%\\&%g
3440 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3441 s%ac_d%ac_u%gp
3442 s%ac_u%ac_e%gp
3443 EOF
3444 sed -n -f conftest.hdr confdefs.h > conftest.vals
3445 rm -f conftest.hdr
3446
3447 # This sed command replaces #undef with comments.  This is necessary, for
3448 # example, in the case of _POSIX_SOURCE, which is predefined and required
3449 # on some systems where configure will not decide to define it.
3450 cat >> conftest.vals <<\EOF
3451 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3452 EOF
3453
3454 # Break up conftest.vals because some shells have a limit on
3455 # the size of here documents, and old seds have small limits too.
3456
3457 rm -f conftest.tail
3458 while :
3459 do
3460   ac_lines=`grep -c . conftest.vals`
3461   # grep -c gives empty output for an empty file on some AIX systems.
3462   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3463   # Write a limited-size here document to conftest.frag.
3464   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3465   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3466   echo 'CEOF
3467   sed -f conftest.frag conftest.in > conftest.out
3468   rm -f conftest.in
3469   mv conftest.out conftest.in
3470 ' >> $CONFIG_STATUS
3471   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3472   rm -f conftest.vals
3473   mv conftest.tail conftest.vals
3474 done
3475 rm -f conftest.vals
3476
3477 cat >> $CONFIG_STATUS <<\EOF
3478   rm -f conftest.frag conftest.h
3479   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3480   cat conftest.in >> conftest.h
3481   rm -f conftest.in
3482   if cmp -s $ac_file conftest.h 2>/dev/null; then
3483     echo "$ac_file is unchanged"
3484     rm -f conftest.h
3485   else
3486     # Remove last slash and all that follows it.  Not all systems have dirname.
3487       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3488       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3489       # The file is in a subdirectory.
3490       test ! -d "$ac_dir" && mkdir "$ac_dir"
3491     fi
3492     rm -f $ac_file
3493     mv conftest.h $ac_file
3494   fi
3495 fi; done
3496
3497 EOF
3498 cat >> $CONFIG_STATUS <<EOF
3499
3500 EOF
3501 cat >> $CONFIG_STATUS <<\EOF
3502
3503 exit 0
3504 EOF
3505 chmod +x $CONFIG_STATUS
3506 rm -fr confdefs* $ac_clean_files
3507 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3508
3509
3510 echo "
3511 vlc configuration
3512 -----------------
3513 vlc version           : ${VLC_VERSION}
3514 system                : ${SYS}
3515 architecture          : ${ARCH}
3516 plugins               : ${PLUGINS}
3517 vlc aliases           : ${ALIASES}
3518 "
3519