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