]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/eth/synth/ecosynth/v2_0/host/configure
Initial revision
[karo-tx-redboot.git] / packages / devs / eth / synth / ecosynth / v2_0 / host / 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-maintainer-mode enable make rules and dependencies not useful
16                           (and sometimes confusing) to the casual installer"
17 ac_help="$ac_help
18  --enable-debug           do a debug rather than a release build"
19 ac_help="$ac_help
20  --enable-ansi            do an ANSI rather than a unicode build"
21
22 # Initialize some variables set by options.
23 # The variables have the same names as the options, with
24 # dashes changed to underlines.
25 build=NONE
26 cache_file=./config.cache
27 exec_prefix=NONE
28 host=NONE
29 no_create=
30 nonopt=NONE
31 no_recursion=
32 prefix=NONE
33 program_prefix=NONE
34 program_suffix=NONE
35 program_transform_name=s,x,x,
36 silent=
37 site=
38 srcdir=
39 target=NONE
40 verbose=
41 x_includes=NONE
42 x_libraries=NONE
43 bindir='${exec_prefix}/bin'
44 sbindir='${exec_prefix}/sbin'
45 libexecdir='${exec_prefix}/libexec'
46 datadir='${prefix}/share'
47 sysconfdir='${prefix}/etc'
48 sharedstatedir='${prefix}/com'
49 localstatedir='${prefix}/var'
50 libdir='${exec_prefix}/lib'
51 includedir='${prefix}/include'
52 oldincludedir='/usr/include'
53 infodir='${prefix}/info'
54 mandir='${prefix}/man'
55
56 # Initialize some other variables.
57 subdirs=
58 MFLAGS= MAKEFLAGS=
59 SHELL=${CONFIG_SHELL-/bin/sh}
60 # Maximum number of lines to put in a shell here document.
61 ac_max_here_lines=12
62
63 ac_prev=
64 for ac_option
65 do
66
67   # If the previous option needs an argument, assign it.
68   if test -n "$ac_prev"; then
69     eval "$ac_prev=\$ac_option"
70     ac_prev=
71     continue
72   fi
73
74   case "$ac_option" in
75   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76   *) ac_optarg= ;;
77   esac
78
79   # Accept the important Cygnus configure options, so we can diagnose typos.
80
81   case "$ac_option" in
82
83   -bindir | --bindir | --bindi | --bind | --bin | --bi)
84     ac_prev=bindir ;;
85   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86     bindir="$ac_optarg" ;;
87
88   -build | --build | --buil | --bui | --bu)
89     ac_prev=build ;;
90   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91     build="$ac_optarg" ;;
92
93   -cache-file | --cache-file | --cache-fil | --cache-fi \
94   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95     ac_prev=cache_file ;;
96   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98     cache_file="$ac_optarg" ;;
99
100   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101     ac_prev=datadir ;;
102   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103   | --da=*)
104     datadir="$ac_optarg" ;;
105
106   -disable-* | --disable-*)
107     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108     # Reject names that are not valid shell variable names.
109     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111     fi
112     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113     eval "enable_${ac_feature}=no" ;;
114
115   -enable-* | --enable-*)
116     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117     # Reject names that are not valid shell variable names.
118     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120     fi
121     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122     case "$ac_option" in
123       *=*) ;;
124       *) ac_optarg=yes ;;
125     esac
126     eval "enable_${ac_feature}='$ac_optarg'" ;;
127
128   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130   | --exec | --exe | --ex)
131     ac_prev=exec_prefix ;;
132   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134   | --exec=* | --exe=* | --ex=*)
135     exec_prefix="$ac_optarg" ;;
136
137   -gas | --gas | --ga | --g)
138     # Obsolete; use --with-gas.
139     with_gas=yes ;;
140
141   -help | --help | --hel | --he)
142     # Omit some internal or obsolete options to make the list less imposing.
143     # This message is too long to be a string in the A/UX 3.1 sh.
144     cat << EOF
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
147 Configuration:
148   --cache-file=FILE       cache test results in FILE
149   --help                  print this message
150   --no-create             do not create output files
151   --quiet, --silent       do not print \`checking...' messages
152   --version               print the version of autoconf that created configure
153 Directory and file names:
154   --prefix=PREFIX         install architecture-independent files in PREFIX
155                           [$ac_default_prefix]
156   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
157                           [same as prefix]
158   --bindir=DIR            user executables in DIR [EPREFIX/bin]
159   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
160   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
161   --datadir=DIR           read-only architecture-independent data in DIR
162                           [PREFIX/share]
163   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
164   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
165                           [PREFIX/com]
166   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
167   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
168   --includedir=DIR        C header files in DIR [PREFIX/include]
169   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
170   --infodir=DIR           info documentation in DIR [PREFIX/info]
171   --mandir=DIR            man documentation in DIR [PREFIX/man]
172   --srcdir=DIR            find the sources in DIR [configure dir or ..]
173   --program-prefix=PREFIX prepend PREFIX to installed program names
174   --program-suffix=SUFFIX append SUFFIX to installed program names
175   --program-transform-name=PROGRAM
176                           run sed PROGRAM on installed program names
177 EOF
178     cat << EOF
179 Host type:
180   --build=BUILD           configure for building on BUILD [BUILD=HOST]
181   --host=HOST             configure for HOST [guessed]
182   --target=TARGET         configure for TARGET [TARGET=HOST]
183 Features and packages:
184   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
185   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
186   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
187   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
188   --x-includes=DIR        X include files are in DIR
189   --x-libraries=DIR       X library files are in DIR
190 EOF
191     if test -n "$ac_help"; then
192       echo "--enable and --with options recognized:$ac_help"
193     fi
194     exit 0 ;;
195
196   -host | --host | --hos | --ho)
197     ac_prev=host ;;
198   -host=* | --host=* | --hos=* | --ho=*)
199     host="$ac_optarg" ;;
200
201   -includedir | --includedir | --includedi | --included | --include \
202   | --includ | --inclu | --incl | --inc)
203     ac_prev=includedir ;;
204   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205   | --includ=* | --inclu=* | --incl=* | --inc=*)
206     includedir="$ac_optarg" ;;
207
208   -infodir | --infodir | --infodi | --infod | --info | --inf)
209     ac_prev=infodir ;;
210   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211     infodir="$ac_optarg" ;;
212
213   -libdir | --libdir | --libdi | --libd)
214     ac_prev=libdir ;;
215   -libdir=* | --libdir=* | --libdi=* | --libd=*)
216     libdir="$ac_optarg" ;;
217
218   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219   | --libexe | --libex | --libe)
220     ac_prev=libexecdir ;;
221   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222   | --libexe=* | --libex=* | --libe=*)
223     libexecdir="$ac_optarg" ;;
224
225   -localstatedir | --localstatedir | --localstatedi | --localstated \
226   | --localstate | --localstat | --localsta | --localst \
227   | --locals | --local | --loca | --loc | --lo)
228     ac_prev=localstatedir ;;
229   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232     localstatedir="$ac_optarg" ;;
233
234   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235     ac_prev=mandir ;;
236   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237     mandir="$ac_optarg" ;;
238
239   -nfp | --nfp | --nf)
240     # Obsolete; use --without-fp.
241     with_fp=no ;;
242
243   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244   | --no-cr | --no-c)
245     no_create=yes ;;
246
247   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249     no_recursion=yes ;;
250
251   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253   | --oldin | --oldi | --old | --ol | --o)
254     ac_prev=oldincludedir ;;
255   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258     oldincludedir="$ac_optarg" ;;
259
260   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261     ac_prev=prefix ;;
262   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263     prefix="$ac_optarg" ;;
264
265   -program-prefix | --program-prefix | --program-prefi | --program-pref \
266   | --program-pre | --program-pr | --program-p)
267     ac_prev=program_prefix ;;
268   -program-prefix=* | --program-prefix=* | --program-prefi=* \
269   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270     program_prefix="$ac_optarg" ;;
271
272   -program-suffix | --program-suffix | --program-suffi | --program-suff \
273   | --program-suf | --program-su | --program-s)
274     ac_prev=program_suffix ;;
275   -program-suffix=* | --program-suffix=* | --program-suffi=* \
276   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277     program_suffix="$ac_optarg" ;;
278
279   -program-transform-name | --program-transform-name \
280   | --program-transform-nam | --program-transform-na \
281   | --program-transform-n | --program-transform- \
282   | --program-transform | --program-transfor \
283   | --program-transfo | --program-transf \
284   | --program-trans | --program-tran \
285   | --progr-tra | --program-tr | --program-t)
286     ac_prev=program_transform_name ;;
287   -program-transform-name=* | --program-transform-name=* \
288   | --program-transform-nam=* | --program-transform-na=* \
289   | --program-transform-n=* | --program-transform-=* \
290   | --program-transform=* | --program-transfor=* \
291   | --program-transfo=* | --program-transf=* \
292   | --program-trans=* | --program-tran=* \
293   | --progr-tra=* | --program-tr=* | --program-t=*)
294     program_transform_name="$ac_optarg" ;;
295
296   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297   | -silent | --silent | --silen | --sile | --sil)
298     silent=yes ;;
299
300   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301     ac_prev=sbindir ;;
302   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303   | --sbi=* | --sb=*)
304     sbindir="$ac_optarg" ;;
305
306   -sharedstatedir | --sharedstatedir | --sharedstatedi \
307   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308   | --sharedst | --shareds | --shared | --share | --shar \
309   | --sha | --sh)
310     ac_prev=sharedstatedir ;;
311   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314   | --sha=* | --sh=*)
315     sharedstatedir="$ac_optarg" ;;
316
317   -site | --site | --sit)
318     ac_prev=site ;;
319   -site=* | --site=* | --sit=*)
320     site="$ac_optarg" ;;
321
322   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323     ac_prev=srcdir ;;
324   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325     srcdir="$ac_optarg" ;;
326
327   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328   | --syscon | --sysco | --sysc | --sys | --sy)
329     ac_prev=sysconfdir ;;
330   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332     sysconfdir="$ac_optarg" ;;
333
334   -target | --target | --targe | --targ | --tar | --ta | --t)
335     ac_prev=target ;;
336   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337     target="$ac_optarg" ;;
338
339   -v | -verbose | --verbose | --verbos | --verbo | --verb)
340     verbose=yes ;;
341
342   -version | --version | --versio | --versi | --vers)
343     echo "configure generated by autoconf version 2.13"
344     exit 0 ;;
345
346   -with-* | --with-*)
347     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348     # Reject names that are not valid shell variable names.
349     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351     fi
352     ac_package=`echo $ac_package| sed 's/-/_/g'`
353     case "$ac_option" in
354       *=*) ;;
355       *) ac_optarg=yes ;;
356     esac
357     eval "with_${ac_package}='$ac_optarg'" ;;
358
359   -without-* | --without-*)
360     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361     # Reject names that are not valid shell variable names.
362     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364     fi
365     ac_package=`echo $ac_package| sed 's/-/_/g'`
366     eval "with_${ac_package}=no" ;;
367
368   --x)
369     # Obsolete; use --with-x.
370     with_x=yes ;;
371
372   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373   | --x-incl | --x-inc | --x-in | --x-i)
374     ac_prev=x_includes ;;
375   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377     x_includes="$ac_optarg" ;;
378
379   -x-libraries | --x-libraries | --x-librarie | --x-librari \
380   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381     ac_prev=x_libraries ;;
382   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384     x_libraries="$ac_optarg" ;;
385
386   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387     ;;
388
389   *)
390     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391       echo "configure: warning: $ac_option: invalid host type" 1>&2
392     fi
393     if test "x$nonopt" != xNONE; then
394       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395     fi
396     nonopt="$ac_option"
397     ;;
398
399   esac
400 done
401
402 if test -n "$ac_prev"; then
403   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 fi
405
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
408 # File descriptor usage:
409 # 0 standard input
410 # 1 file creation
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
417   exec 6>/dev/null
418 else
419   exec 6>&1
420 fi
421 exec 5>./config.log
422
423 echo "\
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
426 " 1>&5
427
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
430 ac_configure_args=
431 for ac_arg
432 do
433   case "$ac_arg" in
434   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435   | --no-cr | --no-c) ;;
436   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441   esac
442 done
443
444 # NLS nuisances.
445 # Only set these to C if already set.  These must not be set unconditionally
446 # because not all systems understand e.g. LANG=C (notably SCO).
447 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448 # Non-C LC_CTYPE values break the ctype check.
449 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
450 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
452 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
453
454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
455 rm -rf conftest* confdefs.h
456 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
457 echo > confdefs.h
458
459 # A filename unique to this package, relative to the directory that
460 # configure is in, which we can look for to find out if srcdir is correct.
461 ac_unique_file=rawether.c
462
463 # Find the source files, if location was not specified.
464 if test -z "$srcdir"; then
465   ac_srcdir_defaulted=yes
466   # Try the directory containing this script, then its parent.
467   ac_prog=$0
468   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470   srcdir=$ac_confdir
471   if test ! -r $srcdir/$ac_unique_file; then
472     srcdir=..
473   fi
474 else
475   ac_srcdir_defaulted=no
476 fi
477 if test ! -r $srcdir/$ac_unique_file; then
478   if test "$ac_srcdir_defaulted" = yes; then
479     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480   else
481     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482   fi
483 fi
484 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485
486 # Prefer explicitly selected file to automatically selected ones.
487 if test -z "$CONFIG_SITE"; then
488   if test "x$prefix" != xNONE; then
489     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490   else
491     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492   fi
493 fi
494 for ac_site_file in $CONFIG_SITE; do
495   if test -r "$ac_site_file"; then
496     echo "loading site script $ac_site_file"
497     . "$ac_site_file"
498   fi
499 done
500
501 if test -r "$cache_file"; then
502   echo "loading cache $cache_file"
503   . $cache_file
504 else
505   echo "creating cache $cache_file"
506   > $cache_file
507 fi
508
509 ac_ext=c
510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511 ac_cpp='$CPP $CPPFLAGS'
512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514 cross_compiling=$ac_cv_prog_cc_cross
515
516 ac_exeext=
517 ac_objext=o
518 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
521     ac_n= ac_c='
522 ' ac_t='        '
523   else
524     ac_n=-n ac_c= ac_t=
525   fi
526 else
527   ac_n= ac_c='\c' ac_t=
528 fi
529
530
531
532 ac_aux_dir=
533 for ac_dir in ../../../../../../../acsupport $srcdir/../../../../../../../acsupport; do
534   if test -f $ac_dir/install-sh; then
535     ac_aux_dir=$ac_dir
536     ac_install_sh="$ac_aux_dir/install-sh -c"
537     break
538   elif test -f $ac_dir/install.sh; then
539     ac_aux_dir=$ac_dir
540     ac_install_sh="$ac_aux_dir/install.sh -c"
541     break
542   fi
543 done
544 if test -z "$ac_aux_dir"; then
545   { echo "configure: error: can not find install-sh or install.sh in ../../../../../../../acsupport $srcdir/../../../../../../../acsupport" 1>&2; exit 1; }
546 fi
547 ac_config_guess=$ac_aux_dir/config.guess
548 ac_config_sub=$ac_aux_dir/config.sub
549 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
550
551
552
553     echo $ac_n "checking that a separate build tree is being used""... $ac_c" 1>&6
554 echo "configure:555: checking that a separate build tree is being used" >&5
555     ecos_cwd=`/bin/pwd`
556     if test "${srcdir}" = "." ; then
557         srcdir=${ecos_cwd}
558     fi
559     if test "${ecos_cwd}" = "${srcdir}" ; then
560         echo "$ac_t""no" 1>&6
561         { echo "configure: error: This configure script should not be run inside the source tree. Instead please use a separate build tree" 1>&2; exit 1; }
562     else
563         echo "$ac_t""yes" 1>&6
564     fi
565
566
567 # Make sure we can run config.sub.
568 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
569 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
570 fi
571
572 echo $ac_n "checking host system type""... $ac_c" 1>&6
573 echo "configure:574: checking host system type" >&5
574
575 host_alias=$host
576 case "$host_alias" in
577 NONE)
578   case $nonopt in
579   NONE)
580     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
581     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
582     fi ;;
583   *) host_alias=$nonopt ;;
584   esac ;;
585 esac
586
587 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
588 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
589 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
590 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
591 echo "$ac_t""$host" 1>&6
592
593 am__api_version="1.4"
594 # Find a good install program.  We prefer a C program (faster),
595 # so one script is as good as another.  But avoid the broken or
596 # incompatible versions:
597 # SysV /etc/install, /usr/sbin/install
598 # SunOS /usr/etc/install
599 # IRIX /sbin/install
600 # AIX /bin/install
601 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
602 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
603 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
604 # ./install, which can be erroneously created by make from ./install.sh.
605 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
606 echo "configure:607: checking for a BSD compatible install" >&5
607 if test -z "$INSTALL"; then
608 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
609   echo $ac_n "(cached) $ac_c" 1>&6
610 else
611     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
612   for ac_dir in $PATH; do
613     # Account for people who put trailing slashes in PATH elements.
614     case "$ac_dir/" in
615     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
616     *)
617       # OSF1 and SCO ODT 3.0 have their own names for install.
618       # Don't use installbsd from OSF since it installs stuff as root
619       # by default.
620       for ac_prog in ginstall scoinst install; do
621         if test -f $ac_dir/$ac_prog; then
622           if test $ac_prog = install &&
623             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
624             # AIX install.  It has an incompatible calling convention.
625             :
626           else
627             ac_cv_path_install="$ac_dir/$ac_prog -c"
628             break 2
629           fi
630         fi
631       done
632       ;;
633     esac
634   done
635   IFS="$ac_save_IFS"
636
637 fi
638   if test "${ac_cv_path_install+set}" = set; then
639     INSTALL="$ac_cv_path_install"
640   else
641     # As a last resort, use the slow shell script.  We don't cache a
642     # path for INSTALL within a source directory, because that will
643     # break other packages using the cache if that directory is
644     # removed, or if the path is relative.
645     INSTALL="$ac_install_sh"
646   fi
647 fi
648 echo "$ac_t""$INSTALL" 1>&6
649
650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
651 # It thinks the first close brace ends the variable substitution.
652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
653
654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
655
656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
657
658 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
659 echo "configure:660: checking whether build environment is sane" >&5
660 # Just in case
661 sleep 1
662 echo timestamp > conftestfile
663 # Do `set' in a subshell so we don't clobber the current shell's
664 # arguments.  Must try -L first in case configure is actually a
665 # symlink; some systems play weird games with the mod time of symlinks
666 # (eg FreeBSD returns the mod time of the symlink's containing
667 # directory).
668 if (
669    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
670    if test "$*" = "X"; then
671       # -L didn't work.
672       set X `ls -t $srcdir/configure conftestfile`
673    fi
674    if test "$*" != "X $srcdir/configure conftestfile" \
675       && test "$*" != "X conftestfile $srcdir/configure"; then
676
677       # If neither matched, then we have a broken ls.  This can happen
678       # if, for instance, CONFIG_SHELL is bash and it inherits a
679       # broken ls alias from the environment.  This has actually
680       # happened.  Such a system could not be considered "sane".
681       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
682 alias in your environment" 1>&2; exit 1; }
683    fi
684
685    test "$2" = conftestfile
686    )
687 then
688    # Ok.
689    :
690 else
691    { echo "configure: error: newly created file is older than distributed files!
692 Check your system clock" 1>&2; exit 1; }
693 fi
694 rm -f conftest*
695 echo "$ac_t""yes" 1>&6
696 if test "$program_transform_name" = s,x,x,; then
697   program_transform_name=
698 else
699   # Double any \ or $.  echo might interpret backslashes.
700   cat <<\EOF_SED > conftestsed
701 s,\\,\\\\,g; s,\$,$$,g
702 EOF_SED
703   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
704   rm -f conftestsed
705 fi
706 test "$program_prefix" != NONE &&
707   program_transform_name="s,^,${program_prefix},; $program_transform_name"
708 # Use a double $ so make ignores it.
709 test "$program_suffix" != NONE &&
710   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
711
712 # sed with no file args requires a program.
713 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
714
715 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
716 echo "configure:717: checking whether ${MAKE-make} sets \${MAKE}" >&5
717 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
718 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
719   echo $ac_n "(cached) $ac_c" 1>&6
720 else
721   cat > conftestmake <<\EOF
722 all:
723         @echo 'ac_maketemp="${MAKE}"'
724 EOF
725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
726 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
727 if test -n "$ac_maketemp"; then
728   eval ac_cv_prog_make_${ac_make}_set=yes
729 else
730   eval ac_cv_prog_make_${ac_make}_set=no
731 fi
732 rm -f conftestmake
733 fi
734 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
735   echo "$ac_t""yes" 1>&6
736   SET_MAKE=
737 else
738   echo "$ac_t""no" 1>&6
739   SET_MAKE="MAKE=${MAKE-make}"
740 fi
741
742
743 PACKAGE=eCos_synthetic_target_ethernet
744
745 VERSION=0.1
746
747 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
748   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
749 fi
750
751
752
753 missing_dir=`cd $ac_aux_dir && pwd`
754 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
755 echo "configure:756: checking for working aclocal-${am__api_version}" >&5
756 # Run test in a subshell; some versions of sh will print an error if
757 # an executable is not found, even if stderr is redirected.
758 # Redirect stdin to placate older versions of autoconf.  Sigh.
759 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
760    ACLOCAL=aclocal-${am__api_version}
761    echo "$ac_t""found" 1>&6
762 else
763    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
764    echo "$ac_t""missing" 1>&6
765 fi
766
767 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
768 echo "configure:769: checking for working autoconf" >&5
769 # Run test in a subshell; some versions of sh will print an error if
770 # an executable is not found, even if stderr is redirected.
771 # Redirect stdin to placate older versions of autoconf.  Sigh.
772 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
773    AUTOCONF=autoconf
774    echo "$ac_t""found" 1>&6
775 else
776    AUTOCONF="$missing_dir/missing autoconf"
777    echo "$ac_t""missing" 1>&6
778 fi
779
780 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
781 echo "configure:782: checking for working automake-${am__api_version}" >&5
782 # Run test in a subshell; some versions of sh will print an error if
783 # an executable is not found, even if stderr is redirected.
784 # Redirect stdin to placate older versions of autoconf.  Sigh.
785 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
786    AUTOMAKE=automake-${am__api_version}
787    echo "$ac_t""found" 1>&6
788 else
789    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
790    echo "$ac_t""missing" 1>&6
791 fi
792
793 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
794 echo "configure:795: checking for working autoheader" >&5
795 # Run test in a subshell; some versions of sh will print an error if
796 # an executable is not found, even if stderr is redirected.
797 # Redirect stdin to placate older versions of autoconf.  Sigh.
798 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
799    AUTOHEADER=autoheader
800    echo "$ac_t""found" 1>&6
801 else
802    AUTOHEADER="$missing_dir/missing autoheader"
803    echo "$ac_t""missing" 1>&6
804 fi
805
806 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
807 echo "configure:808: checking for working makeinfo" >&5
808 # Run test in a subshell; some versions of sh will print an error if
809 # an executable is not found, even if stderr is redirected.
810 # Redirect stdin to placate older versions of autoconf.  Sigh.
811 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
812    MAKEINFO=makeinfo
813    echo "$ac_t""found" 1>&6
814 else
815    MAKEINFO="$missing_dir/missing makeinfo"
816    echo "$ac_t""missing" 1>&6
817 fi
818
819
820 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
821 echo "configure:822: checking whether to enable maintainer-specific portions of Makefiles" >&5
822     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
823 if test "${enable_maintainer_mode+set}" = set; then
824   enableval="$enable_maintainer_mode"
825   USE_MAINTAINER_MODE=$enableval
826 else
827   USE_MAINTAINER_MODE=no
828 fi
829
830   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
831   
832
833 if test $USE_MAINTAINER_MODE = yes; then
834   MAINTAINER_MODE_TRUE=
835   MAINTAINER_MODE_FALSE='#'
836 else
837   MAINTAINER_MODE_TRUE='#'
838   MAINTAINER_MODE_FALSE=
839 fi
840   MAINT=$MAINTAINER_MODE_TRUE
841   
842
843
844 case "${host}" in
845     i[34567]86-*-linux-gnu* ) SUPPORTED="yes";;
846     * ) SUPPORTED="no"
847 esac
848 if test "${SUPPORTED}" = "no" ; then
849     echo "configure: warning: Synthetic target ethernet support is only available on x86 Linux hosts" 1>&2
850 fi   
851
852 if test "${SUPPORTED}" = "yes" ; then
853     # Extract the first word of "gcc", so it can be a program name with args.
854 set dummy gcc; ac_word=$2
855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
856 echo "configure:857: checking for $ac_word" >&5
857 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
858   echo $ac_n "(cached) $ac_c" 1>&6
859 else
860   if test -n "$CC"; then
861   ac_cv_prog_CC="$CC" # Let the user override the test.
862 else
863   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
864   ac_dummy="$PATH"
865   for ac_dir in $ac_dummy; do
866     test -z "$ac_dir" && ac_dir=.
867     if test -f $ac_dir/$ac_word; then
868       ac_cv_prog_CC="gcc"
869       break
870     fi
871   done
872   IFS="$ac_save_ifs"
873 fi
874 fi
875 CC="$ac_cv_prog_CC"
876 if test -n "$CC"; then
877   echo "$ac_t""$CC" 1>&6
878 else
879   echo "$ac_t""no" 1>&6
880 fi
881
882 if test -z "$CC"; then
883   # Extract the first word of "cc", so it can be a program name with args.
884 set dummy cc; ac_word=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 echo "configure:887: checking for $ac_word" >&5
887 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
888   echo $ac_n "(cached) $ac_c" 1>&6
889 else
890   if test -n "$CC"; then
891   ac_cv_prog_CC="$CC" # Let the user override the test.
892 else
893   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
894   ac_prog_rejected=no
895   ac_dummy="$PATH"
896   for ac_dir in $ac_dummy; do
897     test -z "$ac_dir" && ac_dir=.
898     if test -f $ac_dir/$ac_word; then
899       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
900         ac_prog_rejected=yes
901         continue
902       fi
903       ac_cv_prog_CC="cc"
904       break
905     fi
906   done
907   IFS="$ac_save_ifs"
908 if test $ac_prog_rejected = yes; then
909   # We found a bogon in the path, so make sure we never use it.
910   set dummy $ac_cv_prog_CC
911   shift
912   if test $# -gt 0; then
913     # We chose a different compiler from the bogus one.
914     # However, it has the same basename, so the bogon will be chosen
915     # first if we set CC to just the basename; use the full file name.
916     shift
917     set dummy "$ac_dir/$ac_word" "$@"
918     shift
919     ac_cv_prog_CC="$@"
920   fi
921 fi
922 fi
923 fi
924 CC="$ac_cv_prog_CC"
925 if test -n "$CC"; then
926   echo "$ac_t""$CC" 1>&6
927 else
928   echo "$ac_t""no" 1>&6
929 fi
930
931   if test -z "$CC"; then
932     case "`uname -s`" in
933     *win32* | *WIN32*)
934       # Extract the first word of "cl", so it can be a program name with args.
935 set dummy cl; ac_word=$2
936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
937 echo "configure:938: checking for $ac_word" >&5
938 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
939   echo $ac_n "(cached) $ac_c" 1>&6
940 else
941   if test -n "$CC"; then
942   ac_cv_prog_CC="$CC" # Let the user override the test.
943 else
944   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
945   ac_dummy="$PATH"
946   for ac_dir in $ac_dummy; do
947     test -z "$ac_dir" && ac_dir=.
948     if test -f $ac_dir/$ac_word; then
949       ac_cv_prog_CC="cl"
950       break
951     fi
952   done
953   IFS="$ac_save_ifs"
954 fi
955 fi
956 CC="$ac_cv_prog_CC"
957 if test -n "$CC"; then
958   echo "$ac_t""$CC" 1>&6
959 else
960   echo "$ac_t""no" 1>&6
961 fi
962  ;;
963     esac
964   fi
965   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
966 fi
967
968 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
969 echo "configure:970: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
970
971 ac_ext=c
972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
973 ac_cpp='$CPP $CPPFLAGS'
974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
976 cross_compiling=$ac_cv_prog_cc_cross
977
978 cat > conftest.$ac_ext << EOF
979
980 #line 981 "configure"
981 #include "confdefs.h"
982
983 main(){return(0);}
984 EOF
985 if { (eval echo configure:986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
986   ac_cv_prog_cc_works=yes
987   # If we can't run a trivial program, we are probably using a cross compiler.
988   if (./conftest; exit) 2>/dev/null; then
989     ac_cv_prog_cc_cross=no
990   else
991     ac_cv_prog_cc_cross=yes
992   fi
993 else
994   echo "configure: failed program was:" >&5
995   cat conftest.$ac_ext >&5
996   ac_cv_prog_cc_works=no
997 fi
998 rm -fr conftest*
999 ac_ext=c
1000 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1001 ac_cpp='$CPP $CPPFLAGS'
1002 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1003 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1004 cross_compiling=$ac_cv_prog_cc_cross
1005
1006 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1007 if test $ac_cv_prog_cc_works = no; then
1008   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1009 fi
1010 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1011 echo "configure:1012: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1012 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1013 cross_compiling=$ac_cv_prog_cc_cross
1014
1015 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1016 echo "configure:1017: checking whether we are using GNU C" >&5
1017 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1018   echo $ac_n "(cached) $ac_c" 1>&6
1019 else
1020   cat > conftest.c <<EOF
1021 #ifdef __GNUC__
1022   yes;
1023 #endif
1024 EOF
1025 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1026   ac_cv_prog_gcc=yes
1027 else
1028   ac_cv_prog_gcc=no
1029 fi
1030 fi
1031
1032 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1033
1034 if test $ac_cv_prog_gcc = yes; then
1035   GCC=yes
1036 else
1037   GCC=
1038 fi
1039
1040 ac_test_CFLAGS="${CFLAGS+set}"
1041 ac_save_CFLAGS="$CFLAGS"
1042 CFLAGS=
1043 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1044 echo "configure:1045: checking whether ${CC-cc} accepts -g" >&5
1045 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1046   echo $ac_n "(cached) $ac_c" 1>&6
1047 else
1048   echo 'void f(){}' > conftest.c
1049 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1050   ac_cv_prog_cc_g=yes
1051 else
1052   ac_cv_prog_cc_g=no
1053 fi
1054 rm -f conftest*
1055
1056 fi
1057
1058 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1059 if test "$ac_test_CFLAGS" = set; then
1060   CFLAGS="$ac_save_CFLAGS"
1061 elif test $ac_cv_prog_cc_g = yes; then
1062   if test "$GCC" = yes; then
1063     CFLAGS="-g -O2"
1064   else
1065     CFLAGS="-g"
1066   fi
1067 else
1068   if test "$GCC" = yes; then
1069     CFLAGS="-O2"
1070   else
1071     CFLAGS=
1072   fi
1073 fi
1074
1075     for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1076 do
1077 # Extract the first word of "$ac_prog", so it can be a program name with args.
1078 set dummy $ac_prog; ac_word=$2
1079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1080 echo "configure:1081: checking for $ac_word" >&5
1081 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1082   echo $ac_n "(cached) $ac_c" 1>&6
1083 else
1084   if test -n "$CXX"; then
1085   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1086 else
1087   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1088   ac_dummy="$PATH"
1089   for ac_dir in $ac_dummy; do
1090     test -z "$ac_dir" && ac_dir=.
1091     if test -f $ac_dir/$ac_word; then
1092       ac_cv_prog_CXX="$ac_prog"
1093       break
1094     fi
1095   done
1096   IFS="$ac_save_ifs"
1097 fi
1098 fi
1099 CXX="$ac_cv_prog_CXX"
1100 if test -n "$CXX"; then
1101   echo "$ac_t""$CXX" 1>&6
1102 else
1103   echo "$ac_t""no" 1>&6
1104 fi
1105
1106 test -n "$CXX" && break
1107 done
1108 test -n "$CXX" || CXX="gcc"
1109
1110
1111 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1112 echo "configure:1113: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1113
1114 ac_ext=C
1115 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1116 ac_cpp='$CXXCPP $CPPFLAGS'
1117 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1118 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1119 cross_compiling=$ac_cv_prog_cxx_cross
1120
1121 cat > conftest.$ac_ext << EOF
1122
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1125
1126 int main(){return(0);}
1127 EOF
1128 if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1129   ac_cv_prog_cxx_works=yes
1130   # If we can't run a trivial program, we are probably using a cross compiler.
1131   if (./conftest; exit) 2>/dev/null; then
1132     ac_cv_prog_cxx_cross=no
1133   else
1134     ac_cv_prog_cxx_cross=yes
1135   fi
1136 else
1137   echo "configure: failed program was:" >&5
1138   cat conftest.$ac_ext >&5
1139   ac_cv_prog_cxx_works=no
1140 fi
1141 rm -fr conftest*
1142 ac_ext=c
1143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1144 ac_cpp='$CPP $CPPFLAGS'
1145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1147 cross_compiling=$ac_cv_prog_cc_cross
1148
1149 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1150 if test $ac_cv_prog_cxx_works = no; then
1151   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1152 fi
1153 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1155 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1156 cross_compiling=$ac_cv_prog_cxx_cross
1157
1158 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether we are using GNU C++" >&5
1160 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1161   echo $ac_n "(cached) $ac_c" 1>&6
1162 else
1163   cat > conftest.C <<EOF
1164 #ifdef __GNUC__
1165   yes;
1166 #endif
1167 EOF
1168 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1169   ac_cv_prog_gxx=yes
1170 else
1171   ac_cv_prog_gxx=no
1172 fi
1173 fi
1174
1175 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1176
1177 if test $ac_cv_prog_gxx = yes; then
1178   GXX=yes
1179 else
1180   GXX=
1181 fi
1182
1183 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1184 ac_save_CXXFLAGS="$CXXFLAGS"
1185 CXXFLAGS=
1186 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1187 echo "configure:1188: checking whether ${CXX-g++} accepts -g" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1189   echo $ac_n "(cached) $ac_c" 1>&6
1190 else
1191   echo 'void f(){}' > conftest.cc
1192 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1193   ac_cv_prog_cxx_g=yes
1194 else
1195   ac_cv_prog_cxx_g=no
1196 fi
1197 rm -f conftest*
1198
1199 fi
1200
1201 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1202 if test "$ac_test_CXXFLAGS" = set; then
1203   CXXFLAGS="$ac_save_CXXFLAGS"
1204 elif test $ac_cv_prog_cxx_g = yes; then
1205   if test "$GXX" = yes; then
1206     CXXFLAGS="-g -O2"
1207   else
1208     CXXFLAGS="-g"
1209   fi
1210 else
1211   if test "$GXX" = yes; then
1212     CXXFLAGS="-O2"
1213   else
1214     CXXFLAGS=
1215   fi
1216 fi
1217
1218 for ac_declaration in \
1219    ''\
1220    '#include <stdlib.h>' \
1221    'extern "C" void std::exit (int) throw (); using std::exit;' \
1222    'extern "C" void std::exit (int); using std::exit;' \
1223    'extern "C" void exit (int) throw ();' \
1224    'extern "C" void exit (int);' \
1225    'void exit (int);'
1226 do
1227   cat > conftest.$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1230 #include <stdlib.h>
1231 $ac_declaration
1232 int main() {
1233 exit (42);
1234 ; return 0; }
1235 EOF
1236 if { (eval echo configure:1237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1237   :
1238 else
1239   echo "configure: failed program was:" >&5
1240   cat conftest.$ac_ext >&5
1241   rm -rf conftest*
1242   continue
1243 fi
1244 rm -f conftest*
1245   cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1248 $ac_declaration
1249 int main() {
1250 exit (42);
1251 ; return 0; }
1252 EOF
1253 if { (eval echo configure:1254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1254   rm -rf conftest*
1255   break
1256 else
1257   echo "configure: failed program was:" >&5
1258   cat conftest.$ac_ext >&5
1259 fi
1260 rm -f conftest*
1261 done
1262 if test -n "$ac_declaration"; then
1263   echo '#ifdef __cplusplus' >>confdefs.h
1264   echo $ac_declaration      >>confdefs.h
1265   echo '#endif'             >>confdefs.h
1266 fi
1267
1268
1269     echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1270 echo "configure:1271: checking for object suffix" >&5
1271 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1272   echo $ac_n "(cached) $ac_c" 1>&6
1273 else
1274   rm -f conftest*
1275 echo 'int i = 1;' > conftest.$ac_ext
1276 if { (eval echo configure:1277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1277   for ac_file in conftest.*; do
1278     case $ac_file in
1279     *.c) ;;
1280     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1281     esac
1282   done
1283 else
1284   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1285 fi
1286 rm -f conftest*
1287 fi
1288
1289 echo "$ac_t""$ac_cv_objext" 1>&6
1290 OBJEXT=$ac_cv_objext
1291 ac_objext=$ac_cv_objext
1292
1293     echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1294 echo "configure:1295: checking for Cygwin environment" >&5
1295 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1296   echo $ac_n "(cached) $ac_c" 1>&6
1297 else
1298   cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1301
1302 int main() {
1303
1304 #ifndef __CYGWIN__
1305 #define __CYGWIN__ __CYGWIN32__
1306 #endif
1307 return __CYGWIN__;
1308 ; return 0; }
1309 EOF
1310 if { (eval echo configure:1311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1311   rm -rf conftest*
1312   ac_cv_cygwin=yes
1313 else
1314   echo "configure: failed program was:" >&5
1315   cat conftest.$ac_ext >&5
1316   rm -rf conftest*
1317   ac_cv_cygwin=no
1318 fi
1319 rm -f conftest*
1320 rm -f conftest*
1321 fi
1322
1323 echo "$ac_t""$ac_cv_cygwin" 1>&6
1324 CYGWIN=
1325 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1326 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1327 echo "configure:1328: checking for mingw32 environment" >&5
1328 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1329   echo $ac_n "(cached) $ac_c" 1>&6
1330 else
1331   cat > conftest.$ac_ext <<EOF
1332 #line 1333 "configure"
1333 #include "confdefs.h"
1334
1335 int main() {
1336 return __MINGW32__;
1337 ; return 0; }
1338 EOF
1339 if { (eval echo configure:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1340   rm -rf conftest*
1341   ac_cv_mingw32=yes
1342 else
1343   echo "configure: failed program was:" >&5
1344   cat conftest.$ac_ext >&5
1345   rm -rf conftest*
1346   ac_cv_mingw32=no
1347 fi
1348 rm -f conftest*
1349 rm -f conftest*
1350 fi
1351
1352 echo "$ac_t""$ac_cv_mingw32" 1>&6
1353 MINGW32=
1354 test "$ac_cv_mingw32" = yes && MINGW32=yes
1355
1356
1357 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1358 echo "configure:1359: checking for executable suffix" >&5
1359 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1360   echo $ac_n "(cached) $ac_c" 1>&6
1361 else
1362   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1363   ac_cv_exeext=.exe
1364 else
1365   rm -f conftest*
1366   echo 'int main () { return 0; }' > conftest.$ac_ext
1367   ac_cv_exeext=
1368   if { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1369     for file in conftest.*; do
1370       case $file in
1371       *.c | *.o | *.obj) ;;
1372       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1373       esac
1374     done
1375   else
1376     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1377   fi
1378   rm -f conftest*
1379   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1380 fi
1381 fi
1382
1383 EXEEXT=""
1384 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1385 echo "$ac_t""${ac_cv_exeext}" 1>&6
1386 ac_exeext=$EXEEXT
1387
1388     
1389     ecos_CFLAGS=""
1390     ecos_CXXFLAGS=""
1391     ecos_LDADD=""
1392     ecos_INCLUDES=""
1393     ecos_LIBS=""
1394     
1395     
1396     
1397     
1398     
1399
1400
1401     
1402     
1403     
1404
1405     echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6
1406 echo "configure:1407: checking "for Visual C++"" >&5
1407     MSVC="no";
1408     if test "${CC}" = "cl" ; then
1409        MSVC="yes"
1410        CXX="cl"
1411        MSVC_SRCDIR=${srcdir}
1412        
1413     
1414     
1415     if test "${MSVC}" = "yes" ; then
1416       MSVC_SRCDIR=`cygpath -w ${MSVC_SRCDIR} | tr \\\\\\\\ /`
1417     fi
1418
1419        
1420        ecos_INCLUDES="${ecos_INCLUDES} \"-I${MSVC_SRCDIR}\""
1421        ecos_LDADD="-link"
1422        ecos_LIBS="advapi32.lib"
1423     fi
1424     
1425
1426 if test "${MSVC}" = "yes"; then
1427   MSVC_TRUE=
1428   MSVC_FALSE='#'
1429 else
1430   MSVC_TRUE='#'
1431   MSVC_FALSE=
1432 fi
1433     if test "${MSVC}" = "yes" ; then
1434         echo "$ac_t""unfortunately yes" 1>&6
1435     else
1436         echo "$ac_t""no" 1>&6
1437     fi
1438
1439     
1440     
1441     
1442     
1443     
1444
1445     echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6
1446 echo "configure:1447: checking "the default compiler flags"" >&5
1447
1448             ecosflags_enable_debug="no"
1449     # Check whether --enable-debug or --disable-debug was given.
1450 if test "${enable_debug+set}" = set; then
1451   enableval="$enable_debug"
1452   case "${enableval}" in
1453        yes) ecosflags_enable_debug="yes" ;;
1454        *)   ecosflags_enable_debug="no" ;;
1455     esac
1456 fi
1457
1458
1459                     ecosflags_enable_ansi="no"
1460     if test "${MSVC}" = "yes" ; then
1461       # Check whether --enable-ansi or --disable-ansi was given.
1462 if test "${enable_ansi+set}" = set; then
1463   enableval="$enable_ansi"
1464   case "${enableval}" in
1465          yes) ecosflags_enable_ansi="yes" ;;
1466          *)   ecosflags_enable_ansi="no" ;;
1467       esac
1468 fi
1469
1470     fi
1471
1472         if test "${GCC}" = "yes" ; then
1473         ecos_CFLAGS="${ecos_CFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
1474         ecos_CXXFLAGS="${ecos_CXXFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual"
1475     elif test "${MSVC}" = "yes" ; then
1476         ecos_CFLAGS="${ecos_CFLAGS} -nologo -W3"
1477         ecos_CXXFLAGS="${ecos_CXXFLAGS} -nologo -W3 -GR -GX"
1478     else
1479         { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; }
1480     fi
1481
1482         if test "${ecosflags_enable_debug}" = "yes" ; then
1483         if test "${GCC}" = "yes" ; then
1484             ecos_CFLAGS="${ecos_CFLAGS} -g -O0"
1485             ecos_CXXFLAGS="${ecos_CXXFLAGS} -g -O0"
1486         elif test "${MSVC}" = "yes" ; then
1487             ecos_CFLAGS="${ecos_CFLAGS} -MDd -Zi"
1488             ecos_CXXFLAGS="${ecos_CXXFLAGS} -MDd -Zi"
1489         fi
1490     else
1491                                         if test "${GCC}" = "yes" ; then
1492             ecos_CFLAGS="${ecos_CFLAGS} -O0"
1493             ecos_CXXFLAGS="${ecos_CXXFLAGS} -O0"
1494         elif test "${MSVC}" = "yes" ; then
1495             ecos_CFLAGS="${ecos_CFLAGS} -MD -O2"
1496             ecos_CXXFLAGS="${ecos_CXXFLAGS} -MD -O2"
1497         fi
1498     fi
1499
1500     CFLAGS="${ac_save_CFLAGS}"
1501     CXXFLAGS="${ac_save_CXXFLAGS}"
1502
1503     echo "$ac_t""done" 1>&6
1504
1505     
1506
1507         package_dir=`cd ${srcdir} && /bin/pwd`
1508     PACKAGE_VERSION=`dirname ${package_dir}`
1509     PACKAGE_VERSION=`basename ${PACKAGE_VERSION}`
1510
1511                     package_dir=`dirname ${package_dir}`
1512     package_dir=`dirname ${package_dir}`
1513
1514     possibles="${package_dir}/.. ${package_dir}/../.. ${package_dir}/../../.. ${package_dir}/../../../.."
1515     possibles="${possibles} ${package_dir}/../../../../.. ${package_dir}/../../../../../.." 
1516     
1517     repository_root=""
1518     for i in ${possibles}; do
1519         if test -d "$i/"acsupport""; then
1520             repository_root=$i
1521             break
1522         fi
1523     done
1524
1525     if test "${repository_root}" = "" ; then
1526         { echo "configure: error: Failed to identify this package's position within the eCos repository" 1>&2; exit 1; }
1527     fi
1528         ECOS_REPOSITORY=`cd "${repository_root}/packages/pkgconf/.." && /bin/pwd`
1529
1530         PACKAGE_DIR=`echo ${package_dir} | sed -e "s:${ECOS_REPOSITORY}/::"`
1531
1532                         PACKAGE_INSTALL="${PACKAGE_DIR}/${PACKAGE_VERSION}"
1533     
1534     
1535     
1536     
1537     
1538
1539
1540             echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1541 echo "configure:1542: checking how to run the C preprocessor" >&5
1542 # On Suns, sometimes $CPP names a directory.
1543 if test -n "$CPP" && test -d "$CPP"; then
1544   CPP=
1545 fi
1546 if test -z "$CPP"; then
1547 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1548   echo $ac_n "(cached) $ac_c" 1>&6
1549 else
1550     # This must be in double quotes, not single quotes, because CPP may get
1551   # substituted into the Makefile and "${CC-cc}" will confuse make.
1552   CPP="${CC-cc} -E"
1553   # On the NeXT, cc -E runs the code through the compiler's parser,
1554   # not just through cpp.
1555   cat > conftest.$ac_ext <<EOF
1556 #line 1557 "configure"
1557 #include "confdefs.h"
1558 #include <assert.h>
1559 Syntax Error
1560 EOF
1561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1562 { (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1564 if test -z "$ac_err"; then
1565   :
1566 else
1567   echo "$ac_err" >&5
1568   echo "configure: failed program was:" >&5
1569   cat conftest.$ac_ext >&5
1570   rm -rf conftest*
1571   CPP="${CC-cc} -E -traditional-cpp"
1572   cat > conftest.$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1575 #include <assert.h>
1576 Syntax Error
1577 EOF
1578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1579 { (eval echo configure:1580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1581 if test -z "$ac_err"; then
1582   :
1583 else
1584   echo "$ac_err" >&5
1585   echo "configure: failed program was:" >&5
1586   cat conftest.$ac_ext >&5
1587   rm -rf conftest*
1588   CPP="${CC-cc} -nologo -E"
1589   cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1592 #include <assert.h>
1593 Syntax Error
1594 EOF
1595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1596 { (eval echo configure:1597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1598 if test -z "$ac_err"; then
1599   :
1600 else
1601   echo "$ac_err" >&5
1602   echo "configure: failed program was:" >&5
1603   cat conftest.$ac_ext >&5
1604   rm -rf conftest*
1605   CPP=/lib/cpp
1606 fi
1607 rm -f conftest*
1608 fi
1609 rm -f conftest*
1610 fi
1611 rm -f conftest*
1612   ac_cv_prog_CPP="$CPP"
1613 fi
1614   CPP="$ac_cv_prog_CPP"
1615 else
1616   ac_cv_prog_CPP="$CPP"
1617 fi
1618 echo "$ac_t""$CPP" 1>&6
1619
1620 for ac_hdr in "linux/if_tun.h"
1621 do
1622 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1624 echo "configure:1625: checking for $ac_hdr" >&5
1625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1626   echo $ac_n "(cached) $ac_c" 1>&6
1627 else
1628   cat > conftest.$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1631 #include <$ac_hdr>
1632 EOF
1633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1634 { (eval echo configure:1635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1636 if test -z "$ac_err"; then
1637   rm -rf conftest*
1638   eval "ac_cv_header_$ac_safe=yes"
1639 else
1640   echo "$ac_err" >&5
1641   echo "configure: failed program was:" >&5
1642   cat conftest.$ac_ext >&5
1643   rm -rf conftest*
1644   eval "ac_cv_header_$ac_safe=no"
1645 fi
1646 rm -f conftest*
1647 fi
1648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1649   echo "$ac_t""yes" 1>&6
1650     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1651   cat >> confdefs.h <<EOF
1652 #define $ac_tr_hdr 1
1653 EOF
1654  TAP_SUPPORTED="yes"
1655 else
1656   echo "$ac_t""no" 1>&6
1657 TAP_SUPPORTED="no"
1658 fi
1659 done
1660
1661     if test "${TAP_SUPPORTED}" = "no" ; then
1662         echo "configure: warning: No <linux/if_tun.h> header, ethertap support disabled." 1>&2
1663     fi
1664 fi
1665
1666 if test "${SUPPORTED}" = "no" ; then
1667     echo "configure: warning: The synthetic ethernet support cannot be built on this platform." 1>&2
1668 fi
1669
1670
1671
1672 if test "${SUPPORTED}" = "yes"; then
1673   SUPPORTED_TRUE=
1674   SUPPORTED_FALSE='#'
1675 else
1676   SUPPORTED_TRUE='#'
1677   SUPPORTED_FALSE=
1678 fi
1679
1680
1681 trap '' 1 2 15
1682 cat > confcache <<\EOF
1683 # This file is a shell script that caches the results of configure
1684 # tests run on this system so they can be shared between configure
1685 # scripts and configure runs.  It is not useful on other systems.
1686 # If it contains results you don't want to keep, you may remove or edit it.
1687 #
1688 # By default, configure uses ./config.cache as the cache file,
1689 # creating it if it does not exist already.  You can give configure
1690 # the --cache-file=FILE option to use a different cache file; that is
1691 # what configure does when it calls configure scripts in
1692 # subdirectories, so they share the cache.
1693 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1694 # config.status only pays attention to the cache file if you give it the
1695 # --recheck option to rerun configure.
1696 #
1697 EOF
1698 # The following way of writing the cache mishandles newlines in values,
1699 # but we know of no workaround that is simple, portable, and efficient.
1700 # So, don't put newlines in cache variables' values.
1701 # Ultrix sh set writes to stderr and can't be redirected directly,
1702 # and sets the high bit in the cache file unless we assign to the vars.
1703 (set) 2>&1 |
1704   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1705   *ac_space=\ *)
1706     # `set' does not quote correctly, so add quotes (double-quote substitution
1707     # turns \\\\ into \\, and sed turns \\ into \).
1708     sed -n \
1709       -e "s/'/'\\\\''/g" \
1710       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1711     ;;
1712   *)
1713     # `set' quotes correctly as required by POSIX, so do not add quotes.
1714     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1715     ;;
1716   esac >> confcache
1717 if cmp -s $cache_file confcache; then
1718   :
1719 else
1720   if test -w $cache_file; then
1721     echo "updating cache $cache_file"
1722     cat confcache > $cache_file
1723   else
1724     echo "not updating unwritable cache $cache_file"
1725   fi
1726 fi
1727 rm -f confcache
1728
1729 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1730
1731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1732 # Let make expand exec_prefix.
1733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1734
1735 # Any assignment to VPATH causes Sun make to only execute
1736 # the first set of double-colon rules, so remove it if not needed.
1737 # If there is a colon in the path, we need to keep it.
1738 if test "x$srcdir" = x.; then
1739   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1740 fi
1741
1742 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1743
1744 # Transform confdefs.h into DEFS.
1745 # Protect against shell expansion while executing Makefile rules.
1746 # Protect against Makefile macro expansion.
1747 #
1748 # If the first sed substitution is executed (which looks for macros that
1749 # take arguments), then we branch to the quote section.  Otherwise,
1750 # look for a macro that doesn't take arguments.
1751 cat >confdef2opt.sed <<\_ACEOF
1752 t clear
1753 : clear
1754 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
1755 t quote
1756 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
1757 t quote
1758 d
1759 : quote
1760 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
1761 s,\[,\\&,g
1762 s,\],\\&,g
1763 s,\$,$$,g
1764 p
1765 _ACEOF
1766 # We use echo to avoid assuming a particular line-breaking character.
1767 # The extra dot is to prevent the shell from consuming trailing
1768 # line-breaks from the sub-command output.  A line-break within
1769 # single-quotes doesn't work because, if this script is created in a
1770 # platform that uses two characters for line-breaks (e.g., DOS), tr
1771 # would break.
1772 ac_LF_and_DOT=`echo; echo .`
1773 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1774 rm -f confdef2opt.sed
1775
1776
1777 # Without the "./", some shells look in PATH for config.status.
1778 : ${CONFIG_STATUS=./config.status}
1779
1780 echo creating $CONFIG_STATUS
1781 rm -f $CONFIG_STATUS
1782 cat > $CONFIG_STATUS <<EOF
1783 #! /bin/sh
1784 # Generated automatically by configure.
1785 # Run this file to recreate the current configuration.
1786 # This directory was configured as follows,
1787 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1788 #
1789 # $0 $ac_configure_args
1790 #
1791 # Compiler output produced by configure, useful for debugging
1792 # configure, is in ./config.log if it exists.
1793
1794 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1795 for ac_option
1796 do
1797   case "\$ac_option" in
1798   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1799     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1800     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1801   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1802     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1803     exit 0 ;;
1804   -help | --help | --hel | --he | --h)
1805     echo "\$ac_cs_usage"; exit 0 ;;
1806   *) echo "\$ac_cs_usage"; exit 1 ;;
1807   esac
1808 done
1809
1810 ac_given_srcdir=$srcdir
1811 ac_given_INSTALL="$INSTALL"
1812
1813 trap 'rm -fr `echo "Makefile:Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1814 EOF
1815 cat >> $CONFIG_STATUS <<EOF
1816
1817 # Protect against being on the right side of a sed subst in config.status.
1818 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1819  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1820 $ac_vpsub
1821 $extrasub
1822 s%@SHELL@%$SHELL%g
1823 s%@CFLAGS@%$CFLAGS%g
1824 s%@CPPFLAGS@%$CPPFLAGS%g
1825 s%@CXXFLAGS@%$CXXFLAGS%g
1826 s%@FFLAGS@%$FFLAGS%g
1827 s%@DEFS@%$DEFS%g
1828 s%@LDFLAGS@%$LDFLAGS%g
1829 s%@LIBS@%$LIBS%g
1830 s%@exec_prefix@%$exec_prefix%g
1831 s%@prefix@%$prefix%g
1832 s%@program_transform_name@%$program_transform_name%g
1833 s%@bindir@%$bindir%g
1834 s%@sbindir@%$sbindir%g
1835 s%@libexecdir@%$libexecdir%g
1836 s%@datadir@%$datadir%g
1837 s%@sysconfdir@%$sysconfdir%g
1838 s%@sharedstatedir@%$sharedstatedir%g
1839 s%@localstatedir@%$localstatedir%g
1840 s%@libdir@%$libdir%g
1841 s%@includedir@%$includedir%g
1842 s%@oldincludedir@%$oldincludedir%g
1843 s%@infodir@%$infodir%g
1844 s%@mandir@%$mandir%g
1845 s%@host@%$host%g
1846 s%@host_alias@%$host_alias%g
1847 s%@host_cpu@%$host_cpu%g
1848 s%@host_vendor@%$host_vendor%g
1849 s%@host_os@%$host_os%g
1850 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1851 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1852 s%@INSTALL_DATA@%$INSTALL_DATA%g
1853 s%@PACKAGE@%$PACKAGE%g
1854 s%@VERSION@%$VERSION%g
1855 s%@ACLOCAL@%$ACLOCAL%g
1856 s%@AUTOCONF@%$AUTOCONF%g
1857 s%@AUTOMAKE@%$AUTOMAKE%g
1858 s%@AUTOHEADER@%$AUTOHEADER%g
1859 s%@MAKEINFO@%$MAKEINFO%g
1860 s%@SET_MAKE@%$SET_MAKE%g
1861 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1862 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1863 s%@MAINT@%$MAINT%g
1864 s%@CC@%$CC%g
1865 s%@CXX@%$CXX%g
1866 s%@OBJEXT@%$OBJEXT%g
1867 s%@EXEEXT@%$EXEEXT%g
1868 s%@ecos_CFLAGS@%$ecos_CFLAGS%g
1869 s%@ecos_CXXFLAGS@%$ecos_CXXFLAGS%g
1870 s%@ecos_LDADD@%$ecos_LDADD%g
1871 s%@ecos_INCLUDES@%$ecos_INCLUDES%g
1872 s%@ecos_LIBS@%$ecos_LIBS%g
1873 s%@MSVC_SRCDIR@%$MSVC_SRCDIR%g
1874 s%@MSVC_TRUE@%$MSVC_TRUE%g
1875 s%@MSVC_FALSE@%$MSVC_FALSE%g
1876 s%@ECOS_REPOSITORY@%$ECOS_REPOSITORY%g
1877 s%@PACKAGE_DIR@%$PACKAGE_DIR%g
1878 s%@PACKAGE_VERSION@%$PACKAGE_VERSION%g
1879 s%@PACKAGE_INSTALL@%$PACKAGE_INSTALL%g
1880 s%@CPP@%$CPP%g
1881 s%@SUPPORTED_TRUE@%$SUPPORTED_TRUE%g
1882 s%@SUPPORTED_FALSE@%$SUPPORTED_FALSE%g
1883
1884 CEOF
1885 EOF
1886
1887 cat >> $CONFIG_STATUS <<\EOF
1888
1889 # Split the substitutions into bite-sized pieces for seds with
1890 # small command number limits, like on Digital OSF/1 and HP-UX.
1891 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1892 ac_file=1 # Number of current file.
1893 ac_beg=1 # First line for current file.
1894 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1895 ac_more_lines=:
1896 ac_sed_cmds=""
1897 while $ac_more_lines; do
1898   if test $ac_beg -gt 1; then
1899     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1900   else
1901     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1902   fi
1903   if test ! -s conftest.s$ac_file; then
1904     ac_more_lines=false
1905     rm -f conftest.s$ac_file
1906   else
1907     if test -z "$ac_sed_cmds"; then
1908       ac_sed_cmds="sed -f conftest.s$ac_file"
1909     else
1910       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1911     fi
1912     ac_file=`expr $ac_file + 1`
1913     ac_beg=$ac_end
1914     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1915   fi
1916 done
1917 if test -z "$ac_sed_cmds"; then
1918   ac_sed_cmds=cat
1919 fi
1920 EOF
1921
1922 cat >> $CONFIG_STATUS <<EOF
1923
1924 CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.in"}
1925 EOF
1926 cat >> $CONFIG_STATUS <<\EOF
1927 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1928   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1929   case "$ac_file" in
1930   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1931        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1932   *) ac_file_in="${ac_file}.in" ;;
1933   esac
1934
1935   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1936
1937   # Remove last slash and all that follows it.  Not all systems have dirname.
1938   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1939   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1940     # The file is in a subdirectory.
1941     test ! -d "$ac_dir" && mkdir "$ac_dir"
1942     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1943     # A "../" for each directory in $ac_dir_suffix.
1944     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1945   else
1946     ac_dir_suffix= ac_dots=
1947   fi
1948
1949   case "$ac_given_srcdir" in
1950   .)  srcdir=.
1951       if test -z "$ac_dots"; then top_srcdir=.
1952       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1953   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1954   *) # Relative path.
1955     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1956     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1957   esac
1958
1959   case "$ac_given_INSTALL" in
1960   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1961   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1962   esac
1963
1964   echo creating "$ac_file"
1965   rm -f "$ac_file"
1966   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1967   case "$ac_file" in
1968   *Makefile*) ac_comsub="1i\\
1969 # $configure_input" ;;
1970   *) ac_comsub= ;;
1971   esac
1972
1973   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1974   sed -e "$ac_comsub
1975 s%@configure_input@%$configure_input%g
1976 s%@srcdir@%$srcdir%g
1977 s%@top_srcdir@%$top_srcdir%g
1978 s%@INSTALL@%$INSTALL%g
1979 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1980 fi; done
1981 rm -f conftest.s*
1982
1983 EOF
1984 cat >> $CONFIG_STATUS <<EOF
1985
1986 EOF
1987 cat >> $CONFIG_STATUS <<\EOF
1988
1989 exit 0
1990 EOF
1991 chmod +x $CONFIG_STATUS
1992 rm -fr confdefs* $ac_clean_files
1993 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1994