source: rtems/c/src/lib/libnetworking/configure @ a24c280

4.104.114.84.95
Last change on this file since a24c280 was a24c280, checked in by Joel Sherrill <joel.sherrill@…>, on 09/09/99 at 21:22:36

Applied patch rtems-rc-19990820-6.diff.gz from
Ralf Corsepius <corsepiu@…> which converted many
Makefile.in's to Makefile.am's. This added a lot of files.

  • Property mode set to 100644
File size: 75.0 KB
Line 
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-target-subdir=DIR"
16ac_help="$ac_help
17  --enable-maintainer-mode enable make rules and dependencies not useful
18                          (and sometimes confusing) to the casual installer"
19ac_help="$ac_help
20  --enable-networking                  enable TCP/IP stack"
21ac_help="$ac_help
22  --enable-libcdir=directory           set the directory for the C library"
23ac_help="$ac_help
24  --enable-bare-cpu-cflags             specify a particular cpu cflag
25                                       (bare bsp specific)"
26ac_help="$ac_help
27  --enable-bare-cpu-model              specify a particular cpu model
28                                       (bare bsp specific)"
29
30# Initialize some variables set by options.
31# The variables have the same names as the options, with
32# dashes changed to underlines.
33build=NONE
34cache_file=./config.cache
35exec_prefix=NONE
36host=NONE
37no_create=
38nonopt=NONE
39no_recursion=
40prefix=NONE
41program_prefix=NONE
42program_suffix=NONE
43program_transform_name=s,x,x,
44silent=
45site=
46srcdir=
47target=NONE
48verbose=
49x_includes=NONE
50x_libraries=NONE
51bindir='${exec_prefix}/bin'
52sbindir='${exec_prefix}/sbin'
53libexecdir='${exec_prefix}/libexec'
54datadir='${prefix}/share'
55sysconfdir='${prefix}/etc'
56sharedstatedir='${prefix}/com'
57localstatedir='${prefix}/var'
58libdir='${exec_prefix}/lib'
59includedir='${prefix}/include'
60oldincludedir='/usr/include'
61infodir='${prefix}/info'
62mandir='${prefix}/man'
63
64# Initialize some other variables.
65subdirs=
66MFLAGS= MAKEFLAGS=
67SHELL=${CONFIG_SHELL-/bin/sh}
68# Maximum number of lines to put in a shell here document.
69ac_max_here_lines=12
70
71ac_prev=
72for ac_option
73do
74
75  # If the previous option needs an argument, assign it.
76  if test -n "$ac_prev"; then
77    eval "$ac_prev=\$ac_option"
78    ac_prev=
79    continue
80  fi
81
82  case "$ac_option" in
83  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84  *) ac_optarg= ;;
85  esac
86
87  # Accept the important Cygnus configure options, so we can diagnose typos.
88
89  case "$ac_option" in
90
91  -bindir | --bindir | --bindi | --bind | --bin | --bi)
92    ac_prev=bindir ;;
93  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94    bindir="$ac_optarg" ;;
95
96  -build | --build | --buil | --bui | --bu)
97    ac_prev=build ;;
98  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99    build="$ac_optarg" ;;
100
101  -cache-file | --cache-file | --cache-fil | --cache-fi \
102  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103    ac_prev=cache_file ;;
104  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106    cache_file="$ac_optarg" ;;
107
108  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109    ac_prev=datadir ;;
110  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111  | --da=*)
112    datadir="$ac_optarg" ;;
113
114  -disable-* | --disable-*)
115    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116    # Reject names that are not valid shell variable names.
117    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119    fi
120    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121    eval "enable_${ac_feature}=no" ;;
122
123  -enable-* | --enable-*)
124    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125    # Reject names that are not valid shell variable names.
126    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128    fi
129    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130    case "$ac_option" in
131      *=*) ;;
132      *) ac_optarg=yes ;;
133    esac
134    eval "enable_${ac_feature}='$ac_optarg'" ;;
135
136  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138  | --exec | --exe | --ex)
139    ac_prev=exec_prefix ;;
140  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142  | --exec=* | --exe=* | --ex=*)
143    exec_prefix="$ac_optarg" ;;
144
145  -gas | --gas | --ga | --g)
146    # Obsolete; use --with-gas.
147    with_gas=yes ;;
148
149  -help | --help | --hel | --he)
150    # Omit some internal or obsolete options to make the list less imposing.
151    # This message is too long to be a string in the A/UX 3.1 sh.
152    cat << EOF
153Usage: configure [options] [host]
154Options: [defaults in brackets after descriptions]
155Configuration:
156  --cache-file=FILE       cache test results in FILE
157  --help                  print this message
158  --no-create             do not create output files
159  --quiet, --silent       do not print \`checking...' messages
160  --version               print the version of autoconf that created configure
161Directory and file names:
162  --prefix=PREFIX         install architecture-independent files in PREFIX
163                          [$ac_default_prefix]
164  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
165                          [same as prefix]
166  --bindir=DIR            user executables in DIR [EPREFIX/bin]
167  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
168  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
169  --datadir=DIR           read-only architecture-independent data in DIR
170                          [PREFIX/share]
171  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
172  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
173                          [PREFIX/com]
174  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
175  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
176  --includedir=DIR        C header files in DIR [PREFIX/include]
177  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
178  --infodir=DIR           info documentation in DIR [PREFIX/info]
179  --mandir=DIR            man documentation in DIR [PREFIX/man]
180  --srcdir=DIR            find the sources in DIR [configure dir or ..]
181  --program-prefix=PREFIX prepend PREFIX to installed program names
182  --program-suffix=SUFFIX append SUFFIX to installed program names
183  --program-transform-name=PROGRAM
184                          run sed PROGRAM on installed program names
185EOF
186    cat << EOF
187Host type:
188  --build=BUILD           configure for building on BUILD [BUILD=HOST]
189  --host=HOST             configure for HOST [guessed]
190  --target=TARGET         configure for TARGET [TARGET=HOST]
191Features and packages:
192  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
193  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
194  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
195  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
196  --x-includes=DIR        X include files are in DIR
197  --x-libraries=DIR       X library files are in DIR
198EOF
199    if test -n "$ac_help"; then
200      echo "--enable and --with options recognized:$ac_help"
201    fi
202    exit 0 ;;
203
204  -host | --host | --hos | --ho)
205    ac_prev=host ;;
206  -host=* | --host=* | --hos=* | --ho=*)
207    host="$ac_optarg" ;;
208
209  -includedir | --includedir | --includedi | --included | --include \
210  | --includ | --inclu | --incl | --inc)
211    ac_prev=includedir ;;
212  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213  | --includ=* | --inclu=* | --incl=* | --inc=*)
214    includedir="$ac_optarg" ;;
215
216  -infodir | --infodir | --infodi | --infod | --info | --inf)
217    ac_prev=infodir ;;
218  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219    infodir="$ac_optarg" ;;
220
221  -libdir | --libdir | --libdi | --libd)
222    ac_prev=libdir ;;
223  -libdir=* | --libdir=* | --libdi=* | --libd=*)
224    libdir="$ac_optarg" ;;
225
226  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227  | --libexe | --libex | --libe)
228    ac_prev=libexecdir ;;
229  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230  | --libexe=* | --libex=* | --libe=*)
231    libexecdir="$ac_optarg" ;;
232
233  -localstatedir | --localstatedir | --localstatedi | --localstated \
234  | --localstate | --localstat | --localsta | --localst \
235  | --locals | --local | --loca | --loc | --lo)
236    ac_prev=localstatedir ;;
237  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240    localstatedir="$ac_optarg" ;;
241
242  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243    ac_prev=mandir ;;
244  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245    mandir="$ac_optarg" ;;
246
247  -nfp | --nfp | --nf)
248    # Obsolete; use --without-fp.
249    with_fp=no ;;
250
251  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252  | --no-cr | --no-c)
253    no_create=yes ;;
254
255  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257    no_recursion=yes ;;
258
259  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261  | --oldin | --oldi | --old | --ol | --o)
262    ac_prev=oldincludedir ;;
263  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266    oldincludedir="$ac_optarg" ;;
267
268  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269    ac_prev=prefix ;;
270  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271    prefix="$ac_optarg" ;;
272
273  -program-prefix | --program-prefix | --program-prefi | --program-pref \
274  | --program-pre | --program-pr | --program-p)
275    ac_prev=program_prefix ;;
276  -program-prefix=* | --program-prefix=* | --program-prefi=* \
277  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278    program_prefix="$ac_optarg" ;;
279
280  -program-suffix | --program-suffix | --program-suffi | --program-suff \
281  | --program-suf | --program-su | --program-s)
282    ac_prev=program_suffix ;;
283  -program-suffix=* | --program-suffix=* | --program-suffi=* \
284  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285    program_suffix="$ac_optarg" ;;
286
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    ac_prev=program_transform_name ;;
295  -program-transform-name=* | --program-transform-name=* \
296  | --program-transform-nam=* | --program-transform-na=* \
297  | --program-transform-n=* | --program-transform-=* \
298  | --program-transform=* | --program-transfor=* \
299  | --program-transfo=* | --program-transf=* \
300  | --program-trans=* | --program-tran=* \
301  | --progr-tra=* | --program-tr=* | --program-t=*)
302    program_transform_name="$ac_optarg" ;;
303
304  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305  | -silent | --silent | --silen | --sile | --sil)
306    silent=yes ;;
307
308  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309    ac_prev=sbindir ;;
310  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311  | --sbi=* | --sb=*)
312    sbindir="$ac_optarg" ;;
313
314  -sharedstatedir | --sharedstatedir | --sharedstatedi \
315  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316  | --sharedst | --shareds | --shared | --share | --shar \
317  | --sha | --sh)
318    ac_prev=sharedstatedir ;;
319  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322  | --sha=* | --sh=*)
323    sharedstatedir="$ac_optarg" ;;
324
325  -site | --site | --sit)
326    ac_prev=site ;;
327  -site=* | --site=* | --sit=*)
328    site="$ac_optarg" ;;
329
330  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331    ac_prev=srcdir ;;
332  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333    srcdir="$ac_optarg" ;;
334
335  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336  | --syscon | --sysco | --sysc | --sys | --sy)
337    ac_prev=sysconfdir ;;
338  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340    sysconfdir="$ac_optarg" ;;
341
342  -target | --target | --targe | --targ | --tar | --ta | --t)
343    ac_prev=target ;;
344  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345    target="$ac_optarg" ;;
346
347  -v | -verbose | --verbose | --verbos | --verbo | --verb)
348    verbose=yes ;;
349
350  -version | --version | --versio | --versi | --vers)
351    echo "configure generated by autoconf version 2.13"
352    exit 0 ;;
353
354  -with-* | --with-*)
355    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356    # Reject names that are not valid shell variable names.
357    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359    fi
360    ac_package=`echo $ac_package| sed 's/-/_/g'`
361    case "$ac_option" in
362      *=*) ;;
363      *) ac_optarg=yes ;;
364    esac
365    eval "with_${ac_package}='$ac_optarg'" ;;
366
367  -without-* | --without-*)
368    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369    # Reject names that are not valid shell variable names.
370    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372    fi
373    ac_package=`echo $ac_package| sed 's/-/_/g'`
374    eval "with_${ac_package}=no" ;;
375
376  --x)
377    # Obsolete; use --with-x.
378    with_x=yes ;;
379
380  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381  | --x-incl | --x-inc | --x-in | --x-i)
382    ac_prev=x_includes ;;
383  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385    x_includes="$ac_optarg" ;;
386
387  -x-libraries | --x-libraries | --x-librarie | --x-librari \
388  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389    ac_prev=x_libraries ;;
390  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392    x_libraries="$ac_optarg" ;;
393
394  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395    ;;
396
397  *)
398    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399      echo "configure: warning: $ac_option: invalid host type" 1>&2
400    fi
401    if test "x$nonopt" != xNONE; then
402      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403    fi
404    nonopt="$ac_option"
405    ;;
406
407  esac
408done
409
410if test -n "$ac_prev"; then
411  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412fi
413
414trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415
416# File descriptor usage:
417# 0 standard input
418# 1 file creation
419# 2 errors and warnings
420# 3 some systems may open it to /dev/tty
421# 4 used on the Kubota Titan
422# 6 checking for... messages and results
423# 5 compiler messages saved in config.log
424if test "$silent" = yes; then
425  exec 6>/dev/null
426else
427  exec 6>&1
428fi
429exec 5>./config.log
430
431echo "\
432This file contains any messages produced by compilers while
433running configure, to aid debugging if configure makes a mistake.
434" 1>&5
435
436# Strip out --no-create and --no-recursion so they do not pile up.
437# Also quote any args containing shell metacharacters.
438ac_configure_args=
439for ac_arg
440do
441  case "$ac_arg" in
442  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443  | --no-cr | --no-c) ;;
444  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449  esac
450done
451
452# NLS nuisances.
453# Only set these to C if already set.  These must not be set unconditionally
454# because not all systems understand e.g. LANG=C (notably SCO).
455# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456# Non-C LC_CTYPE values break the ctype check.
457if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
458if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
461
462# confdefs.h avoids OS command line length limits that DEFS can exceed.
463rm -rf conftest* confdefs.h
464# AIX cpp loses on an empty file, so make sure it contains at least a newline.
465echo > confdefs.h
466
467# A filename unique to this package, relative to the directory that
468# configure is in, which we can look for to find out if srcdir is correct.
469ac_unique_file=arpa
470
471# Find the source files, if location was not specified.
472if test -z "$srcdir"; then
473  ac_srcdir_defaulted=yes
474  # Try the directory containing this script, then its parent.
475  ac_prog=$0
476  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478  srcdir=$ac_confdir
479  if test ! -r $srcdir/$ac_unique_file; then
480    srcdir=..
481  fi
482else
483  ac_srcdir_defaulted=no
484fi
485if test ! -r $srcdir/$ac_unique_file; then
486  if test "$ac_srcdir_defaulted" = yes; then
487    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488  else
489    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490  fi
491fi
492srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493
494# Prefer explicitly selected file to automatically selected ones.
495if test -z "$CONFIG_SITE"; then
496  if test "x$prefix" != xNONE; then
497    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498  else
499    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500  fi
501fi
502for ac_site_file in $CONFIG_SITE; do
503  if test -r "$ac_site_file"; then
504    echo "loading site script $ac_site_file"
505    . "$ac_site_file"
506  fi
507done
508
509if test -r "$cache_file"; then
510  echo "loading cache $cache_file"
511  . $cache_file
512else
513  echo "creating cache $cache_file"
514  > $cache_file
515fi
516
517ac_ext=c
518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519ac_cpp='$CPP $CPPFLAGS'
520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522cross_compiling=$ac_cv_prog_cc_cross
523
524ac_exeext=
525ac_objext=o
526if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529    ac_n= ac_c='
530' ac_t='        '
531  else
532    ac_n=-n ac_c= ac_t=
533  fi
534else
535  ac_n= ac_c='\c' ac_t=
536fi
537
538
539# Check whether --with-target-subdir or --without-target-subdir was given.
540if test "${with_target_subdir+set}" = set; then
541  withval="$with_target_subdir"
542  TARGET_SUBDIR="$withval"
543else
544  TARGET_SUBDIR="."
545fi
546
547
548RTEMS_TOPdir="../../../..";
549
550
551echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
552echo "configure:553: checking for RTEMS Version" >&5
553if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
554RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
555sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
556else
557{ echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; }
558fi
559if test -z "$RTEMS_VERSION"; then
560{ echo "configure: error: Unable to determine version" 1>&2; exit 1; }
561fi
562echo "$ac_t""$RTEMS_VERSION" 1>&6
563
564ac_aux_dir=
565for ac_dir in ../../../.. $srcdir/../../../..; do
566  if test -f $ac_dir/install-sh; then
567    ac_aux_dir=$ac_dir
568    ac_install_sh="$ac_aux_dir/install-sh -c"
569    break
570  elif test -f $ac_dir/install.sh; then
571    ac_aux_dir=$ac_dir
572    ac_install_sh="$ac_aux_dir/install.sh -c"
573    break
574  fi
575done
576if test -z "$ac_aux_dir"; then
577  { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
578fi
579ac_config_guess=$ac_aux_dir/config.guess
580ac_config_sub=$ac_aux_dir/config.sub
581ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
582
583
584
585
586# Do some error checking and defaulting for the host and target type.
587# The inputs are:
588#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
589#
590# The rules are:
591# 1. You are not allowed to specify --host, --target, and nonopt at the
592#    same time.
593# 2. Host defaults to nonopt.
594# 3. If nonopt is not specified, then host defaults to the current host,
595#    as determined by config.guess.
596# 4. Target and build default to nonopt.
597# 5. If nonopt is not specified, then target and build default to host.
598
599# The aliases save the names the user supplied, while $host etc.
600# will get canonicalized.
601case $host---$target---$nonopt in
602NONE---*---* | *---NONE---* | *---*---NONE) ;;
603*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
604esac
605
606
607# Make sure we can run config.sub.
608if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
609else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
610fi
611
612echo $ac_n "checking host system type""... $ac_c" 1>&6
613echo "configure:614: checking host system type" >&5
614
615host_alias=$host
616case "$host_alias" in
617NONE)
618  case $nonopt in
619  NONE)
620    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
621    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
622    fi ;;
623  *) host_alias=$nonopt ;;
624  esac ;;
625esac
626
627host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
628host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
631echo "$ac_t""$host" 1>&6
632
633echo $ac_n "checking target system type""... $ac_c" 1>&6
634echo "configure:635: checking target system type" >&5
635
636target_alias=$target
637case "$target_alias" in
638NONE)
639  case $nonopt in
640  NONE) target_alias=$host_alias ;;
641  *) target_alias=$nonopt ;;
642  esac ;;
643esac
644
645target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
646target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649echo "$ac_t""$target" 1>&6
650
651echo $ac_n "checking build system type""... $ac_c" 1>&6
652echo "configure:653: checking build system type" >&5
653
654build_alias=$build
655case "$build_alias" in
656NONE)
657  case $nonopt in
658  NONE) build_alias=$host_alias ;;
659  *) build_alias=$nonopt ;;
660  esac ;;
661esac
662
663build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
664build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667echo "$ac_t""$build" 1>&6
668
669test "$host_alias" != "$target_alias" &&
670  test "$program_prefix$program_suffix$program_transform_name" = \
671    NONENONEs,x,x, &&
672  program_prefix=${target_alias}-
673
674echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
675echo "configure:676: checking rtems target cpu" >&5
676case "${target}" in
677  # hpux unix port should go here
678  i[3456]86-go32-rtems*)
679        RTEMS_CPU=i386
680        ;;
681  i[3456]86-pc-linux*)          # unix "simulator" port
682        RTEMS_CPU=unix
683        ;;
684  i[3456]86-*freebsd2*)         # unix "simulator" port
685        RTEMS_CPU=unix
686        ;;
687  no_cpu-*rtems*)
688        RTEMS_CPU=no_cpu
689        ;;
690  sparc-sun-solaris*)           # unix "simulator" port
691        RTEMS_CPU=unix
692        ;;
693  *)
694        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
695        ;;
696esac
697
698echo "$ac_t""$RTEMS_CPU" 1>&6
699
700
701# Find a good install program.  We prefer a C program (faster),
702# so one script is as good as another.  But avoid the broken or
703# incompatible versions:
704# SysV /etc/install, /usr/sbin/install
705# SunOS /usr/etc/install
706# IRIX /sbin/install
707# AIX /bin/install
708# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
709# AFS /usr/afsws/bin/install, which mishandles nonexistent args
710# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
711# ./install, which can be erroneously created by make from ./install.sh.
712echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
713echo "configure:714: checking for a BSD compatible install" >&5
714if test -z "$INSTALL"; then
715if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
716  echo $ac_n "(cached) $ac_c" 1>&6
717else
718    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
719  for ac_dir in $PATH; do
720    # Account for people who put trailing slashes in PATH elements.
721    case "$ac_dir/" in
722    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
723    *)
724      # OSF1 and SCO ODT 3.0 have their own names for install.
725      # Don't use installbsd from OSF since it installs stuff as root
726      # by default.
727      for ac_prog in ginstall scoinst install; do
728        if test -f $ac_dir/$ac_prog; then
729          if test $ac_prog = install &&
730            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
731            # AIX install.  It has an incompatible calling convention.
732            :
733          else
734            ac_cv_path_install="$ac_dir/$ac_prog -c"
735            break 2
736          fi
737        fi
738      done
739      ;;
740    esac
741  done
742  IFS="$ac_save_IFS"
743
744fi
745  if test "${ac_cv_path_install+set}" = set; then
746    INSTALL="$ac_cv_path_install"
747  else
748    # As a last resort, use the slow shell script.  We don't cache a
749    # path for INSTALL within a source directory, because that will
750    # break other packages using the cache if that directory is
751    # removed, or if the path is relative.
752    INSTALL="$ac_install_sh"
753  fi
754fi
755echo "$ac_t""$INSTALL" 1>&6
756
757# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
758# It thinks the first close brace ends the variable substitution.
759test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
760
761test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
762
763test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
764
765echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
766echo "configure:767: checking whether build environment is sane" >&5
767# Just in case
768sleep 1
769echo timestamp > conftestfile
770# Do `set' in a subshell so we don't clobber the current shell's
771# arguments.  Must try -L first in case configure is actually a
772# symlink; some systems play weird games with the mod time of symlinks
773# (eg FreeBSD returns the mod time of the symlink's containing
774# directory).
775if (
776   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
777   if test "$*" = "X"; then
778      # -L didn't work.
779      set X `ls -t $srcdir/configure conftestfile`
780   fi
781   if test "$*" != "X $srcdir/configure conftestfile" \
782      && test "$*" != "X conftestfile $srcdir/configure"; then
783
784      # If neither matched, then we have a broken ls.  This can happen
785      # if, for instance, CONFIG_SHELL is bash and it inherits a
786      # broken ls alias from the environment.  This has actually
787      # happened.  Such a system could not be considered "sane".
788      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
789alias in your environment" 1>&2; exit 1; }
790   fi
791
792   test "$2" = conftestfile
793   )
794then
795   # Ok.
796   :
797else
798   { echo "configure: error: newly created file is older than distributed files!
799Check your system clock" 1>&2; exit 1; }
800fi
801rm -f conftest*
802echo "$ac_t""yes" 1>&6
803if test "$program_transform_name" = s,x,x,; then
804  program_transform_name=
805else
806  # Double any \ or $.  echo might interpret backslashes.
807  cat <<\EOF_SED > conftestsed
808s,\\,\\\\,g; s,\$,$$,g
809EOF_SED
810  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
811  rm -f conftestsed
812fi
813test "$program_prefix" != NONE &&
814  program_transform_name="s,^,${program_prefix},; $program_transform_name"
815# Use a double $ so make ignores it.
816test "$program_suffix" != NONE &&
817  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
818
819# sed with no file args requires a program.
820test "$program_transform_name" = "" && program_transform_name="s,x,x,"
821
822echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
823echo "configure:824: checking whether ${MAKE-make} sets \${MAKE}" >&5
824set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
825if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
826  echo $ac_n "(cached) $ac_c" 1>&6
827else
828  cat > conftestmake <<\EOF
829all:
830        @echo 'ac_maketemp="${MAKE}"'
831EOF
832# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
833eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
834if test -n "$ac_maketemp"; then
835  eval ac_cv_prog_make_${ac_make}_set=yes
836else
837  eval ac_cv_prog_make_${ac_make}_set=no
838fi
839rm -f conftestmake
840fi
841if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
842  echo "$ac_t""yes" 1>&6
843  SET_MAKE=
844else
845  echo "$ac_t""no" 1>&6
846  SET_MAKE="MAKE=${MAKE-make}"
847fi
848
849
850PACKAGE=rtems-c-src-lib-libnetworking
851
852VERSION=$RTEMS_VERSION
853
854if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
855  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
856fi
857
858
859
860missing_dir=`cd $ac_aux_dir && pwd`
861echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
862echo "configure:863: checking for working aclocal" >&5
863# Run test in a subshell; some versions of sh will print an error if
864# an executable is not found, even if stderr is redirected.
865# Redirect stdin to placate older versions of autoconf.  Sigh.
866if (aclocal --version) < /dev/null > /dev/null 2>&1; then
867   ACLOCAL=aclocal
868   echo "$ac_t""found" 1>&6
869else
870   ACLOCAL="$missing_dir/missing aclocal"
871   echo "$ac_t""missing" 1>&6
872fi
873
874echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
875echo "configure:876: checking for working autoconf" >&5
876# Run test in a subshell; some versions of sh will print an error if
877# an executable is not found, even if stderr is redirected.
878# Redirect stdin to placate older versions of autoconf.  Sigh.
879if (autoconf --version) < /dev/null > /dev/null 2>&1; then
880   AUTOCONF=autoconf
881   echo "$ac_t""found" 1>&6
882else
883   AUTOCONF="$missing_dir/missing autoconf"
884   echo "$ac_t""missing" 1>&6
885fi
886
887echo $ac_n "checking for working automake""... $ac_c" 1>&6
888echo "configure:889: checking for working automake" >&5
889# Run test in a subshell; some versions of sh will print an error if
890# an executable is not found, even if stderr is redirected.
891# Redirect stdin to placate older versions of autoconf.  Sigh.
892if (automake --version) < /dev/null > /dev/null 2>&1; then
893   AUTOMAKE=automake
894   echo "$ac_t""found" 1>&6
895else
896   AUTOMAKE="$missing_dir/missing automake"
897   echo "$ac_t""missing" 1>&6
898fi
899
900echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
901echo "configure:902: checking for working autoheader" >&5
902# Run test in a subshell; some versions of sh will print an error if
903# an executable is not found, even if stderr is redirected.
904# Redirect stdin to placate older versions of autoconf.  Sigh.
905if (autoheader --version) < /dev/null > /dev/null 2>&1; then
906   AUTOHEADER=autoheader
907   echo "$ac_t""found" 1>&6
908else
909   AUTOHEADER="$missing_dir/missing autoheader"
910   echo "$ac_t""missing" 1>&6
911fi
912
913echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
914echo "configure:915: checking for working makeinfo" >&5
915# Run test in a subshell; some versions of sh will print an error if
916# an executable is not found, even if stderr is redirected.
917# Redirect stdin to placate older versions of autoconf.  Sigh.
918if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
919   MAKEINFO=makeinfo
920   echo "$ac_t""found" 1>&6
921else
922   MAKEINFO="$missing_dir/missing makeinfo"
923   echo "$ac_t""missing" 1>&6
924fi
925
926
927echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
928echo "configure:929: checking whether to enable maintainer-specific portions of Makefiles" >&5
929    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
930if test "${enable_maintainer_mode+set}" = set; then
931  enableval="$enable_maintainer_mode"
932  USE_MAINTAINER_MODE=$enableval
933else
934  USE_MAINTAINER_MODE=no
935fi
936
937  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
938 
939
940if test $USE_MAINTAINER_MODE = yes; then
941  MAINTAINER_MODE_TRUE=
942  MAINTAINER_MODE_FALSE='#'
943else
944  MAINTAINER_MODE_TRUE='#'
945  MAINTAINER_MODE_FALSE=
946fi
947  MAINT=$MAINTAINER_MODE_TRUE
948 
949
950
951
952# Check whether --enable-networking or --disable-networking was given.
953if test "${enable_networking+set}" = set; then
954  enableval="$enable_networking"
955  case "${enableval}" in
956  yes) RTEMS_HAS_NETWORKING=yes ;;
957  no) RTEMS_HAS_NETWORKING=no ;;
958  *)  { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;;
959esac
960else
961  RTEMS_HAS_NETWORKING=yes
962fi
963
964
965
966# Check whether --enable-libcdir or --disable-libcdir was given.
967if test "${enable_libcdir+set}" = set; then
968  enableval="$enable_libcdir"
969   RTEMS_LIBC_DIR="${enableval}" ; \
970test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
971fi
972
973
974
975# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
976if test "${enable_bare_cpu_cflags+set}" = set; then
977  enableval="$enable_bare_cpu_cflags"
978  case "${enableval}" in
979  no) BARE_CPU_CFLAGS="" ;;
980  *)    BARE_CPU_CFLAGS="${enableval}" ;;
981esac
982else
983  BARE_CPU_CFLAGS=""
984fi
985
986
987# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
988if test "${enable_bare_cpu_model+set}" = set; then
989  enableval="$enable_bare_cpu_model"
990  case "${enableval}" in
991  no)   BARE_CPU_MODEL="" ;;
992  *)    BARE_CPU_MODEL="${enableval}" ;;
993esac
994else
995  BARE_CPU_MODEL=""
996fi
997
998
999
1000echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6
1001echo "configure:1002: checking for RTEMS_BSP" >&5
1002if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then
1003  echo $ac_n "(cached) $ac_c" 1>&6
1004else
1005    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
1006
1007fi
1008if test -z "$rtems_cv_RTEMS_BSP"; then
1009  { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; }
1010fi
1011RTEMS_BSP="$rtems_cv_RTEMS_BSP"
1012echo "$ac_t""${RTEMS_BSP}" 1>&6
1013
1014
1015
1016
1017
1018# Is this a supported CPU?
1019echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
1020echo "configure:1021: checking if cpu $RTEMS_CPU is supported" >&5
1021if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
1022  echo "$ac_t""yes" 1>&6
1023else
1024  { echo "configure: error: no" 1>&2; exit 1; }
1025fi
1026
1027
1028RTEMS_HOST=$host_os
1029case "${target}" in
1030  # hpux unix port should go here
1031  i[3456]86-pc-linux*)         # unix "simulator" port
1032        RTEMS_HOST=Linux
1033        ;;
1034  i[3456]86-*freebsd2*) # unix "simulator" port
1035        RTEMS_HOST=FreeBSD
1036        ;;
1037  sparc-sun-solaris*)             # unix "simulator" port
1038        RTEMS_HOST=Solaris
1039        ;;
1040  *)
1041        ;;
1042esac
1043
1044
1045
1046
1047if test "$TARGET_SUBDIR" = "." ; then
1048PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
1049else
1050PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
1051fi
1052
1053
1054RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
1055
1056
1057INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
1058
1059
1060PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
1061
1062
1063
1064
1065if [ "${program_prefix}" = "NONE" ] ; then
1066  if [ "${target}" = "${host}" ] ; then
1067    program_prefix=
1068  else
1069    program_prefix=${target}-
1070  fi
1071fi
1072
1073
1074
1075
1076for ac_prog in "$program_prefix"gcc "$program_prefix"cc
1077do
1078# Extract the first word of "$ac_prog", so it can be a program name with args.
1079set dummy $ac_prog; ac_word=$2
1080echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1081echo "configure:1082: checking for $ac_word" >&5
1082if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
1083  echo $ac_n "(cached) $ac_c" 1>&6
1084else
1085  case "$CC_FOR_TARGET" in
1086  /*)
1087  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.
1088  ;;
1089  ?:/*)                 
1090  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path.
1091  ;;
1092  *)
1093  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1094  ac_dummy="$PATH"
1095  for ac_dir in $ac_dummy; do
1096    test -z "$ac_dir" && ac_dir=.
1097    if test -f $ac_dir/$ac_word; then
1098      ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"
1099      break
1100    fi
1101  done
1102  IFS="$ac_save_ifs"
1103  ;;
1104esac
1105fi
1106CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"
1107if test -n "$CC_FOR_TARGET"; then
1108  echo "$ac_t""$CC_FOR_TARGET" 1>&6
1109else
1110  echo "$ac_t""no" 1>&6
1111fi
1112
1113test -n "$CC_FOR_TARGET" && break
1114done
1115
1116test -z "$CC_FOR_TARGET" \
1117  && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1118
1119rtems_save_CC=$CC
1120rtems_save_CFLAGS=$CFLAGS
1121
1122CC=$CC_FOR_TARGET
1123
1124echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1125echo "configure:1126: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1126
1127ac_ext=c
1128# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1129ac_cpp='$CPP $CPPFLAGS'
1130ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1131ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1132cross_compiling=$ac_cv_prog_cc_cross
1133
1134cat > conftest.$ac_ext << EOF
1135
1136#line 1137 "configure"
1137#include "confdefs.h"
1138
1139main(){return(0);}
1140EOF
1141if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1142  ac_cv_prog_cc_works=yes
1143  # If we can't run a trivial program, we are probably using a cross compiler.
1144  if (./conftest; exit) 2>/dev/null; then
1145    ac_cv_prog_cc_cross=no
1146  else
1147    ac_cv_prog_cc_cross=yes
1148  fi
1149else
1150  echo "configure: failed program was:" >&5
1151  cat conftest.$ac_ext >&5
1152  ac_cv_prog_cc_works=no
1153fi
1154rm -fr conftest*
1155ac_ext=c
1156# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1157ac_cpp='$CPP $CPPFLAGS'
1158ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1159ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1160cross_compiling=$ac_cv_prog_cc_cross
1161
1162echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1163if test $ac_cv_prog_cc_works = no; then
1164  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1165fi
1166echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1167echo "configure:1168: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1168echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1169cross_compiling=$ac_cv_prog_cc_cross
1170
1171echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1172echo "configure:1173: checking whether we are using GNU C" >&5
1173if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1174  echo $ac_n "(cached) $ac_c" 1>&6
1175else
1176  cat > conftest.c <<EOF
1177#ifdef __GNUC__
1178  yes;
1179#endif
1180EOF
1181if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1182  ac_cv_prog_gcc=yes
1183else
1184  ac_cv_prog_gcc=no
1185fi
1186fi
1187
1188echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1189
1190if test $ac_cv_prog_gcc = yes; then
1191  GCC=yes
1192  ac_test_CFLAGS="${CFLAGS+set}"
1193  ac_save_CFLAGS="$CFLAGS"
1194  CFLAGS=
1195  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1196echo "configure:1197: checking whether ${CC-cc} accepts -g" >&5
1197if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1198  echo $ac_n "(cached) $ac_c" 1>&6
1199else
1200  echo 'void f(){}' > conftest.c
1201if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1202  ac_cv_prog_cc_g=yes
1203else
1204  ac_cv_prog_cc_g=no
1205fi
1206rm -f conftest*
1207
1208fi
1209
1210echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1211  if test "$ac_test_CFLAGS" = set; then
1212    CFLAGS="$ac_save_CFLAGS"
1213  elif test $ac_cv_prog_cc_g = yes; then
1214    CFLAGS="-g -O2"
1215  else
1216    CFLAGS="-O2"
1217  fi
1218else
1219  GCC=
1220  test "${CFLAGS+set}" = set || CFLAGS="-g"
1221fi
1222
1223rtems_cv_prog_gcc=$ac_cv_prog_gcc
1224rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
1225rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
1226rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
1227
1228CC=$rtems_save_CC
1229CFLAGS=$rtems_save_CFLAGS
1230
1231unset ac_cv_prog_gcc
1232unset ac_cv_prog_cc_g
1233unset ac_cv_prog_cc_works
1234unset ac_cv_prog_cc_cross
1235
1236
1237echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
1238echo "configure:1239: checking whether $CC_FOR_TARGET accepts -specs" >&5
1239if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
1240  echo $ac_n "(cached) $ac_c" 1>&6
1241else
1242 
1243rtems_cv_gcc_specs=no
1244if test "$rtems_cv_prog_gcc" = "yes"; then
1245  touch confspec
1246  echo 'void f(){}' >conftest.c
1247  if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
1248    rtems_cv_gcc_specs=yes
1249  fi
1250fi
1251rm -f confspec conftest*
1252
1253fi
1254
1255echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
1256 
1257
1258echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
1259echo "configure:1260: checking whether $CC_FOR_TARGET accepts --pipe" >&5
1260if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
1261  echo $ac_n "(cached) $ac_c" 1>&6
1262else
1263 
1264rtems_cv_gcc_pipe=no
1265if test "$rtems_cv_prog_gcc" = "yes"; then
1266case "$host_os" in
1267  cygwin*)
1268    ;;
1269  *)
1270    echo 'void f(){}' >conftest.c
1271    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
1272      rtems_cv_gcc_pipe=yes
1273    fi
1274    rm -f conftest*
1275    ;;
1276esac
1277fi
1278
1279fi
1280
1281echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6
1282
1283if test "$RTEMS_USE_GCC272" != "yes" ; then
1284  if test "$rtems_cv_gcc_specs" = "no"; then
1285    echo "configure: warning: *** disabling --enable-gcc28" 1>&2
1286      RTEMS_USE_GCC272=yes
1287  fi
1288fi
1289test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
1290
1291case $host_os in
1292*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
1293*) ;;
1294esac
1295
1296
1297
1298 
1299echo $ac_n "checking target's ar""... $ac_c" 1>&6
1300echo "configure:1301: checking target's ar" >&5
1301if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1302  echo $ac_n "(cached) $ac_c" 1>&6
1303else
1304  :
1305fi
1306
1307echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
1308
1309if test -n "$ac_cv_path_AR_FOR_TARGET"; then
1310    AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
1311else
1312    if test -z "$AR_FOR_TARGET" ; then
1313    if test "$rtems_cv_prog_gcc" = "yes"; then
1314      # We are using gcc, ask it about its tool
1315      # NOTE: Necessary if gcc was configured to use the target's
1316      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1317       case $host_os in
1318  *cygwin*)
1319            AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' `
1320    ;;
1321  *)
1322    AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`
1323    ;;
1324  esac
1325
1326    fi
1327  else
1328    # The user set an environment variable.
1329    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1330    # will override the environment variable, which isn't what the user
1331    # intends
1332    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1333echo "configure:1334: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
1334    case "$AR_FOR_TARGET" in
1335    /*) # valid
1336      echo "$ac_t"""yes"" 1>&6
1337    ;;
1338    *)  # invalid for AC_PATH_PROG
1339      echo "$ac_t"""no"" 1>&6
1340      { echo "configure: error: ***
1341        Environment variable AR_FOR_TARGET should either
1342        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1343    ;;
1344    esac
1345  fi
1346
1347  # Extract the first word of ""$program_prefix"ar", so it can be a program name with args.
1348set dummy "$program_prefix"ar; ac_word=$2
1349echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350echo "configure:1351: checking for $ac_word" >&5
1351if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1352  echo $ac_n "(cached) $ac_c" 1>&6
1353else
1354  case "$AR_FOR_TARGET" in
1355  /*)
1356  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
1357  ;;
1358  ?:/*)                 
1359  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
1360  ;;
1361  *)
1362  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1363  ac_dummy="$PATH"
1364  for ac_dir in $ac_dummy; do
1365    test -z "$ac_dir" && ac_dir=.
1366    if test -f $ac_dir/$ac_word; then
1367      ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
1368      break
1369    fi
1370  done
1371  IFS="$ac_save_ifs"
1372  test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"
1373  ;;
1374esac
1375fi
1376AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
1377if test -n "$AR_FOR_TARGET"; then
1378  echo "$ac_t""$AR_FOR_TARGET" 1>&6
1379else
1380  echo "$ac_t""no" 1>&6
1381fi
1382
1383fi
1384
1385 
1386echo $ac_n "checking target's as""... $ac_c" 1>&6
1387echo "configure:1388: checking target's as" >&5
1388if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
1389  echo $ac_n "(cached) $ac_c" 1>&6
1390else
1391  :
1392fi
1393
1394echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
1395
1396if test -n "$ac_cv_path_AS_FOR_TARGET"; then
1397    AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
1398else
1399    if test -z "$AS_FOR_TARGET" ; then
1400    if test "$rtems_cv_prog_gcc" = "yes"; then
1401      # We are using gcc, ask it about its tool
1402      # NOTE: Necessary if gcc was configured to use the target's
1403      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1404       case $host_os in
1405  *cygwin*)
1406            AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' `
1407    ;;
1408  *)
1409    AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`
1410    ;;
1411  esac
1412
1413    fi
1414  else
1415    # The user set an environment variable.
1416    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1417    # will override the environment variable, which isn't what the user
1418    # intends
1419    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1420echo "configure:1421: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
1421    case "$AS_FOR_TARGET" in
1422    /*) # valid
1423      echo "$ac_t"""yes"" 1>&6
1424    ;;
1425    *)  # invalid for AC_PATH_PROG
1426      echo "$ac_t"""no"" 1>&6
1427      { echo "configure: error: ***
1428        Environment variable AS_FOR_TARGET should either
1429        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1430    ;;
1431    esac
1432  fi
1433
1434  # Extract the first word of ""$program_prefix"as", so it can be a program name with args.
1435set dummy "$program_prefix"as; ac_word=$2
1436echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1437echo "configure:1438: checking for $ac_word" >&5
1438if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
1439  echo $ac_n "(cached) $ac_c" 1>&6
1440else
1441  case "$AS_FOR_TARGET" in
1442  /*)
1443  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
1444  ;;
1445  ?:/*)                 
1446  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
1447  ;;
1448  *)
1449  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1450  ac_dummy="$PATH"
1451  for ac_dir in $ac_dummy; do
1452    test -z "$ac_dir" && ac_dir=.
1453    if test -f $ac_dir/$ac_word; then
1454      ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
1455      break
1456    fi
1457  done
1458  IFS="$ac_save_ifs"
1459  test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"
1460  ;;
1461esac
1462fi
1463AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
1464if test -n "$AS_FOR_TARGET"; then
1465  echo "$ac_t""$AS_FOR_TARGET" 1>&6
1466else
1467  echo "$ac_t""no" 1>&6
1468fi
1469
1470fi
1471
1472 
1473echo $ac_n "checking target's ld""... $ac_c" 1>&6
1474echo "configure:1475: checking target's ld" >&5
1475if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
1476  echo $ac_n "(cached) $ac_c" 1>&6
1477else
1478  :
1479fi
1480
1481echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
1482
1483if test -n "$ac_cv_path_LD_FOR_TARGET"; then
1484    LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
1485else
1486    if test -z "$LD_FOR_TARGET" ; then
1487    if test "$rtems_cv_prog_gcc" = "yes"; then
1488      # We are using gcc, ask it about its tool
1489      # NOTE: Necessary if gcc was configured to use the target's
1490      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1491       case $host_os in
1492  *cygwin*)
1493            LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' `
1494    ;;
1495  *)
1496    LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`
1497    ;;
1498  esac
1499
1500    fi
1501  else
1502    # The user set an environment variable.
1503    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1504    # will override the environment variable, which isn't what the user
1505    # intends
1506    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1507echo "configure:1508: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
1508    case "$LD_FOR_TARGET" in
1509    /*) # valid
1510      echo "$ac_t"""yes"" 1>&6
1511    ;;
1512    *)  # invalid for AC_PATH_PROG
1513      echo "$ac_t"""no"" 1>&6
1514      { echo "configure: error: ***
1515        Environment variable LD_FOR_TARGET should either
1516        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1517    ;;
1518    esac
1519  fi
1520
1521  # Extract the first word of ""$program_prefix"ld", so it can be a program name with args.
1522set dummy "$program_prefix"ld; ac_word=$2
1523echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1524echo "configure:1525: checking for $ac_word" >&5
1525if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
1526  echo $ac_n "(cached) $ac_c" 1>&6
1527else
1528  case "$LD_FOR_TARGET" in
1529  /*)
1530  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
1531  ;;
1532  ?:/*)                 
1533  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
1534  ;;
1535  *)
1536  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1537  ac_dummy="$PATH"
1538  for ac_dir in $ac_dummy; do
1539    test -z "$ac_dir" && ac_dir=.
1540    if test -f $ac_dir/$ac_word; then
1541      ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
1542      break
1543    fi
1544  done
1545  IFS="$ac_save_ifs"
1546  test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"
1547  ;;
1548esac
1549fi
1550LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
1551if test -n "$LD_FOR_TARGET"; then
1552  echo "$ac_t""$LD_FOR_TARGET" 1>&6
1553else
1554  echo "$ac_t""no" 1>&6
1555fi
1556
1557fi
1558
1559 
1560echo $ac_n "checking target's nm""... $ac_c" 1>&6
1561echo "configure:1562: checking target's nm" >&5
1562if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
1563  echo $ac_n "(cached) $ac_c" 1>&6
1564else
1565  :
1566fi
1567
1568echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
1569
1570if test -n "$ac_cv_path_NM_FOR_TARGET"; then
1571    NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
1572else
1573    if test -z "$NM_FOR_TARGET" ; then
1574    if test "$rtems_cv_prog_gcc" = "yes"; then
1575      # We are using gcc, ask it about its tool
1576      # NOTE: Necessary if gcc was configured to use the target's
1577      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1578       case $host_os in
1579  *cygwin*)
1580            NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' `
1581    ;;
1582  *)
1583    NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`
1584    ;;
1585  esac
1586
1587    fi
1588  else
1589    # The user set an environment variable.
1590    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1591    # will override the environment variable, which isn't what the user
1592    # intends
1593    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1594echo "configure:1595: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
1595    case "$NM_FOR_TARGET" in
1596    /*) # valid
1597      echo "$ac_t"""yes"" 1>&6
1598    ;;
1599    *)  # invalid for AC_PATH_PROG
1600      echo "$ac_t"""no"" 1>&6
1601      { echo "configure: error: ***
1602        Environment variable NM_FOR_TARGET should either
1603        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1604    ;;
1605    esac
1606  fi
1607
1608  # Extract the first word of ""$program_prefix"nm", so it can be a program name with args.
1609set dummy "$program_prefix"nm; ac_word=$2
1610echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1611echo "configure:1612: checking for $ac_word" >&5
1612if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
1613  echo $ac_n "(cached) $ac_c" 1>&6
1614else
1615  case "$NM_FOR_TARGET" in
1616  /*)
1617  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
1618  ;;
1619  ?:/*)                 
1620  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
1621  ;;
1622  *)
1623  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1624  ac_dummy="$PATH"
1625  for ac_dir in $ac_dummy; do
1626    test -z "$ac_dir" && ac_dir=.
1627    if test -f $ac_dir/$ac_word; then
1628      ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
1629      break
1630    fi
1631  done
1632  IFS="$ac_save_ifs"
1633  test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"
1634  ;;
1635esac
1636fi
1637NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
1638if test -n "$NM_FOR_TARGET"; then
1639  echo "$ac_t""$NM_FOR_TARGET" 1>&6
1640else
1641  echo "$ac_t""no" 1>&6
1642fi
1643
1644fi
1645
1646
1647 
1648echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
1649echo "configure:1650: checking target's ranlib" >&5
1650if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
1651  echo $ac_n "(cached) $ac_c" 1>&6
1652else
1653  :
1654fi
1655
1656echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
1657
1658if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then
1659    RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
1660else
1661    if test -z "$RANLIB_FOR_TARGET" ; then
1662    if test "$rtems_cv_prog_gcc" = "yes"; then
1663      # We are using gcc, ask it about its tool
1664      # NOTE: Necessary if gcc was configured to use the target's
1665      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1666       case $host_os in
1667  *cygwin*)
1668            RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' `
1669    ;;
1670  *)
1671    RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`
1672    ;;
1673  esac
1674
1675    fi
1676  else
1677    # The user set an environment variable.
1678    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1679    # will override the environment variable, which isn't what the user
1680    # intends
1681    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1682echo "configure:1683: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
1683    case "$RANLIB_FOR_TARGET" in
1684    /*) # valid
1685      echo "$ac_t"""yes"" 1>&6
1686    ;;
1687    *)  # invalid for AC_PATH_PROG
1688      echo "$ac_t"""no"" 1>&6
1689      { echo "configure: error: ***
1690        Environment variable RANLIB_FOR_TARGET should either
1691        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1692    ;;
1693    esac
1694  fi
1695
1696  # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.
1697set dummy "$program_prefix"ranlib; ac_word=$2
1698echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1699echo "configure:1700: checking for $ac_word" >&5
1700if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
1701  echo $ac_n "(cached) $ac_c" 1>&6
1702else
1703  case "$RANLIB_FOR_TARGET" in
1704  /*)
1705  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
1706  ;;
1707  ?:/*)                 
1708  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
1709  ;;
1710  *)
1711  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1712  ac_dummy="$PATH"
1713  for ac_dir in $ac_dummy; do
1714    test -z "$ac_dir" && ac_dir=.
1715    if test -f $ac_dir/$ac_word; then
1716      ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
1717      break
1718    fi
1719  done
1720  IFS="$ac_save_ifs"
1721  test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"
1722  ;;
1723esac
1724fi
1725RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
1726if test -n "$RANLIB_FOR_TARGET"; then
1727  echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
1728else
1729  echo "$ac_t""no" 1>&6
1730fi
1731
1732fi
1733
1734  if test "$RANLIB_FOR_TARGET" = "no"; then
1735    # ranlib wasn't found; check if ar -s is available
1736   
1737echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
1738echo "configure:1739: checking whether $AR_FOR_TARGET -s works" >&5
1739if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
1740  echo $ac_n "(cached) $ac_c" 1>&6
1741else
1742 
1743cat > conftest.$ac_ext <<EOF
1744int foo( int b )
1745{ return b; }
1746EOF
1747if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
1748  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
1749  && test -s conftest.a ; \
1750then
1751  rtems_cv_AR_FOR_TARGET_S="yes"
1752else
1753  rtems_cv_AR_FOR_TARGET_S="no"
1754fi
1755  rm -f conftest*
1756
1757fi
1758
1759echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6
1760
1761    if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then
1762            ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s"
1763      RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
1764    else
1765      { echo "configure: error: ***
1766        Can't figure out how to build a library index
1767        Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; }
1768    fi
1769  fi
1770
1771 
1772echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
1773echo "configure:1774: checking target's objcopy" >&5
1774if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
1775  echo $ac_n "(cached) $ac_c" 1>&6
1776else
1777  :
1778fi
1779
1780echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6
1781
1782if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then
1783    OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
1784else
1785    if test -z "$OBJCOPY_FOR_TARGET" ; then
1786    if test "$rtems_cv_prog_gcc" = "yes"; then
1787      # We are using gcc, ask it about its tool
1788      # NOTE: Necessary if gcc was configured to use the target's
1789      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1790       case $host_os in
1791  *cygwin*)
1792            OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' `
1793    ;;
1794  *)
1795    OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy`
1796    ;;
1797  esac
1798
1799    fi
1800  else
1801    # The user set an environment variable.
1802    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1803    # will override the environment variable, which isn't what the user
1804    # intends
1805    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1806echo "configure:1807: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
1807    case "$OBJCOPY_FOR_TARGET" in
1808    /*) # valid
1809      echo "$ac_t"""yes"" 1>&6
1810    ;;
1811    *)  # invalid for AC_PATH_PROG
1812      echo "$ac_t"""no"" 1>&6
1813      { echo "configure: error: ***
1814        Environment variable OBJCOPY_FOR_TARGET should either
1815        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1816    ;;
1817    esac
1818  fi
1819
1820  # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.
1821set dummy "$program_prefix"objcopy; ac_word=$2
1822echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1823echo "configure:1824: checking for $ac_word" >&5
1824if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
1825  echo $ac_n "(cached) $ac_c" 1>&6
1826else
1827  case "$OBJCOPY_FOR_TARGET" in
1828  /*)
1829  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
1830  ;;
1831  ?:/*)                 
1832  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path.
1833  ;;
1834  *)
1835  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1836  ac_dummy="$PATH"
1837  for ac_dir in $ac_dummy; do
1838    test -z "$ac_dir" && ac_dir=.
1839    if test -f $ac_dir/$ac_word; then
1840      ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"
1841      break
1842    fi
1843  done
1844  IFS="$ac_save_ifs"
1845  test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"
1846  ;;
1847esac
1848fi
1849OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"
1850if test -n "$OBJCOPY_FOR_TARGET"; then
1851  echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6
1852else
1853  echo "$ac_t""no" 1>&6
1854fi
1855
1856fi
1857
1858 
1859echo $ac_n "checking target's size""... $ac_c" 1>&6
1860echo "configure:1861: checking target's size" >&5
1861if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
1862  echo $ac_n "(cached) $ac_c" 1>&6
1863else
1864  :
1865fi
1866
1867echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6
1868
1869if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then
1870    SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET
1871else
1872    if test -z "$SIZE_FOR_TARGET" ; then
1873    if test "$rtems_cv_prog_gcc" = "yes"; then
1874      # We are using gcc, ask it about its tool
1875      # NOTE: Necessary if gcc was configured to use the target's
1876      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1877       case $host_os in
1878  *cygwin*)
1879            SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' `
1880    ;;
1881  *)
1882    SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size`
1883    ;;
1884  esac
1885
1886    fi
1887  else
1888    # The user set an environment variable.
1889    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1890    # will override the environment variable, which isn't what the user
1891    # intends
1892    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1893echo "configure:1894: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
1894    case "$SIZE_FOR_TARGET" in
1895    /*) # valid
1896      echo "$ac_t"""yes"" 1>&6
1897    ;;
1898    *)  # invalid for AC_PATH_PROG
1899      echo "$ac_t"""no"" 1>&6
1900      { echo "configure: error: ***
1901        Environment variable SIZE_FOR_TARGET should either
1902        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1903    ;;
1904    esac
1905  fi
1906
1907  # Extract the first word of ""$program_prefix"size", so it can be a program name with args.
1908set dummy "$program_prefix"size; ac_word=$2
1909echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1910echo "configure:1911: checking for $ac_word" >&5
1911if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
1912  echo $ac_n "(cached) $ac_c" 1>&6
1913else
1914  case "$SIZE_FOR_TARGET" in
1915  /*)
1916  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.
1917  ;;
1918  ?:/*)                 
1919  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path.
1920  ;;
1921  *)
1922  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1923  ac_dummy="$PATH"
1924  for ac_dir in $ac_dummy; do
1925    test -z "$ac_dir" && ac_dir=.
1926    if test -f $ac_dir/$ac_word; then
1927      ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"
1928      break
1929    fi
1930  done
1931  IFS="$ac_save_ifs"
1932  test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"
1933  ;;
1934esac
1935fi
1936SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"
1937if test -n "$SIZE_FOR_TARGET"; then
1938  echo "$ac_t""$SIZE_FOR_TARGET" 1>&6
1939else
1940  echo "$ac_t""no" 1>&6
1941fi
1942
1943fi
1944
1945 
1946echo $ac_n "checking target's strip""... $ac_c" 1>&6
1947echo "configure:1948: checking target's strip" >&5
1948if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
1949  echo $ac_n "(cached) $ac_c" 1>&6
1950else
1951  :
1952fi
1953
1954echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
1955
1956if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then
1957    STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
1958else
1959    if test -z "$STRIP_FOR_TARGET" ; then
1960    if test "$rtems_cv_prog_gcc" = "yes"; then
1961      # We are using gcc, ask it about its tool
1962      # NOTE: Necessary if gcc was configured to use the target's
1963      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1964       case $host_os in
1965  *cygwin*)
1966            STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' `
1967    ;;
1968  *)
1969    STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip`
1970    ;;
1971  esac
1972
1973    fi
1974  else
1975    # The user set an environment variable.
1976    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1977    # will override the environment variable, which isn't what the user
1978    # intends
1979    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1980echo "configure:1981: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
1981    case "$STRIP_FOR_TARGET" in
1982    /*) # valid
1983      echo "$ac_t"""yes"" 1>&6
1984    ;;
1985    *)  # invalid for AC_PATH_PROG
1986      echo "$ac_t"""no"" 1>&6
1987      { echo "configure: error: ***
1988        Environment variable STRIP_FOR_TARGET should either
1989        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1990    ;;
1991    esac
1992  fi
1993
1994  # Extract the first word of ""$program_prefix"strip", so it can be a program name with args.
1995set dummy "$program_prefix"strip; ac_word=$2
1996echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1997echo "configure:1998: checking for $ac_word" >&5
1998if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
1999  echo $ac_n "(cached) $ac_c" 1>&6
2000else
2001  case "$STRIP_FOR_TARGET" in
2002  /*)
2003  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
2004  ;;
2005  ?:/*)                 
2006  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
2007  ;;
2008  *)
2009  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2010  ac_dummy="$PATH"
2011  for ac_dir in $ac_dummy; do
2012    test -z "$ac_dir" && ac_dir=.
2013    if test -f $ac_dir/$ac_word; then
2014      ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
2015      break
2016    fi
2017  done
2018  IFS="$ac_save_ifs"
2019  test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no"
2020  ;;
2021esac
2022fi
2023STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
2024if test -n "$STRIP_FOR_TARGET"; then
2025  echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
2026else
2027  echo "$ac_t""no" 1>&6
2028fi
2029
2030fi
2031
2032
2033
2034echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
2035echo "configure:2036: checking for make/custom/$RTEMS_BSP.cfg" >&5
2036if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
2037  echo "$ac_t""yes" 1>&6
2038else
2039  { echo "configure: error: no" 1>&2; exit 1; }
2040fi
2041
2042echo $ac_n "checking whether BSP supports networking""... $ac_c" 1>&6
2043echo "configure:2044: checking whether BSP supports networking" >&5
2044if eval "test \"`echo '$''{'rtems_cv_HAS_NETWORKING'+set}'`\" = set"; then
2045  echo $ac_n "(cached) $ac_c" 1>&6
2046else
2047      case "$RTEMS_CPU" in
2048    unix*)
2049      rtems_cv_HAS_NETWORKING="no"
2050      ;;
2051    *)
2052      if test "${RTEMS_HAS_NETWORKING}" = "yes"; then
2053        rtems_cv_HAS_NETWORKING="yes";
2054      else
2055        rtems_cv_HAS_NETWORKING="disabled";
2056      fi
2057      ;;
2058    esac
2059fi
2060
2061echo "$ac_t""$rtems_cv_HAS_NETWORKING" 1>&6
2062if test "$rtems_cv_HAS_NETWORKING" = "yes"; then
2063  HAS_NETWORKING="yes";
2064else
2065  HAS_NETWORKING="no";
2066fi
2067
2068
2069
2070    # account for "aliased" bsps which share source code
2071    case ${RTEMS_BSP} in
2072      mvme162lx)    bspdir=mvme162  ;;  # mvme162 board variant
2073      gen68360_040) bspdir=gen68360 ;;  # 68360 in companion mode
2074      go32_p5)      bspdir=go32     ;;  # go32 on Pentium class CPU
2075      p4600)        bspdir=p4000    ;;  # p4000 board with IDT 4600
2076      p4650)        bspdir=p4000    ;;  # p4000 board with IDT 4650
2077      *)            bspdir=${RTEMS_BSP};;
2078    esac
2079
2080
2081# try to explicitly list a Makefile here
2082trap '' 1 2 15
2083cat > confcache <<\EOF
2084# This file is a shell script that caches the results of configure
2085# tests run on this system so they can be shared between configure
2086# scripts and configure runs.  It is not useful on other systems.
2087# If it contains results you don't want to keep, you may remove or edit it.
2088#
2089# By default, configure uses ./config.cache as the cache file,
2090# creating it if it does not exist already.  You can give configure
2091# the --cache-file=FILE option to use a different cache file; that is
2092# what configure does when it calls configure scripts in
2093# subdirectories, so they share the cache.
2094# Giving --cache-file=/dev/null disables caching, for debugging configure.
2095# config.status only pays attention to the cache file if you give it the
2096# --recheck option to rerun configure.
2097#
2098EOF
2099# The following way of writing the cache mishandles newlines in values,
2100# but we know of no workaround that is simple, portable, and efficient.
2101# So, don't put newlines in cache variables' values.
2102# Ultrix sh set writes to stderr and can't be redirected directly,
2103# and sets the high bit in the cache file unless we assign to the vars.
2104(set) 2>&1 |
2105  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2106  *ac_space=\ *)
2107    # `set' does not quote correctly, so add quotes (double-quote substitution
2108    # turns \\\\ into \\, and sed turns \\ into \).
2109    sed -n \
2110      -e "s/'/'\\\\''/g" \
2111      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2112    ;;
2113  *)
2114    # `set' quotes correctly as required by POSIX, so do not add quotes.
2115    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2116    ;;
2117  esac >> confcache
2118if cmp -s $cache_file confcache; then
2119  :
2120else
2121  if test -w $cache_file; then
2122    echo "updating cache $cache_file"
2123    cat confcache > $cache_file
2124  else
2125    echo "not updating unwritable cache $cache_file"
2126  fi
2127fi
2128rm -f confcache
2129
2130trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2131
2132test "x$prefix" = xNONE && prefix=$ac_default_prefix
2133# Let make expand exec_prefix.
2134test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2135
2136# Any assignment to VPATH causes Sun make to only execute
2137# the first set of double-colon rules, so remove it if not needed.
2138# If there is a colon in the path, we need to keep it.
2139if test "x$srcdir" = x.; then
2140  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2141fi
2142
2143trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2144
2145# Transform confdefs.h into DEFS.
2146# Protect against shell expansion while executing Makefile rules.
2147# Protect against Makefile macro expansion.
2148cat > conftest.defs <<\EOF
2149s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2150s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2151s%\[%\\&%g
2152s%\]%\\&%g
2153s%\$%$$%g
2154EOF
2155DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2156rm -f conftest.defs
2157
2158
2159# Without the "./", some shells look in PATH for config.status.
2160: ${CONFIG_STATUS=./config.status}
2161
2162echo creating $CONFIG_STATUS
2163rm -f $CONFIG_STATUS
2164cat > $CONFIG_STATUS <<EOF
2165#! /bin/sh
2166# Generated automatically by configure.
2167# Run this file to recreate the current configuration.
2168# This directory was configured as follows,
2169# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2170#
2171# $0 $ac_configure_args
2172#
2173# Compiler output produced by configure, useful for debugging
2174# configure, is in ./config.log if it exists.
2175
2176ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2177for ac_option
2178do
2179  case "\$ac_option" in
2180  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2181    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2182    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2183  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2184    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2185    exit 0 ;;
2186  -help | --help | --hel | --he | --h)
2187    echo "\$ac_cs_usage"; exit 0 ;;
2188  *) echo "\$ac_cs_usage"; exit 1 ;;
2189  esac
2190done
2191
2192ac_given_srcdir=$srcdir
2193ac_given_INSTALL="$INSTALL"
2194
2195trap 'rm -fr `echo "Makefile
2196include/Makefile
2197kern/Makefile
2198lib/Makefile
2199libc/Makefile
2200net/Makefile
2201netinet/Makefile
2202nfs/Makefile
2203rtems/Makefile
2204rtems_servers/Makefile
2205wrapup/Makefile
2206" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2207EOF
2208cat >> $CONFIG_STATUS <<EOF
2209
2210# Protect against being on the right side of a sed subst in config.status.
2211sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2212 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2213$ac_vpsub
2214$extrasub
2215s%@SHELL@%$SHELL%g
2216s%@CFLAGS@%$CFLAGS%g
2217s%@CPPFLAGS@%$CPPFLAGS%g
2218s%@CXXFLAGS@%$CXXFLAGS%g
2219s%@FFLAGS@%$FFLAGS%g
2220s%@DEFS@%$DEFS%g
2221s%@LDFLAGS@%$LDFLAGS%g
2222s%@LIBS@%$LIBS%g
2223s%@exec_prefix@%$exec_prefix%g
2224s%@prefix@%$prefix%g
2225s%@program_transform_name@%$program_transform_name%g
2226s%@bindir@%$bindir%g
2227s%@sbindir@%$sbindir%g
2228s%@libexecdir@%$libexecdir%g
2229s%@datadir@%$datadir%g
2230s%@sysconfdir@%$sysconfdir%g
2231s%@sharedstatedir@%$sharedstatedir%g
2232s%@localstatedir@%$localstatedir%g
2233s%@libdir@%$libdir%g
2234s%@includedir@%$includedir%g
2235s%@oldincludedir@%$oldincludedir%g
2236s%@infodir@%$infodir%g
2237s%@mandir@%$mandir%g
2238s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
2239s%@host@%$host%g
2240s%@host_alias@%$host_alias%g
2241s%@host_cpu@%$host_cpu%g
2242s%@host_vendor@%$host_vendor%g
2243s%@host_os@%$host_os%g
2244s%@target@%$target%g
2245s%@target_alias@%$target_alias%g
2246s%@target_cpu@%$target_cpu%g
2247s%@target_vendor@%$target_vendor%g
2248s%@target_os@%$target_os%g
2249s%@build@%$build%g
2250s%@build_alias@%$build_alias%g
2251s%@build_cpu@%$build_cpu%g
2252s%@build_vendor@%$build_vendor%g
2253s%@build_os@%$build_os%g
2254s%@RTEMS_CPU@%$RTEMS_CPU%g
2255s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2256s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2257s%@INSTALL_DATA@%$INSTALL_DATA%g
2258s%@PACKAGE@%$PACKAGE%g
2259s%@VERSION@%$VERSION%g
2260s%@ACLOCAL@%$ACLOCAL%g
2261s%@AUTOCONF@%$AUTOCONF%g
2262s%@AUTOMAKE@%$AUTOMAKE%g
2263s%@AUTOHEADER@%$AUTOHEADER%g
2264s%@MAKEINFO@%$MAKEINFO%g
2265s%@SET_MAKE@%$SET_MAKE%g
2266s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2267s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2268s%@MAINT@%$MAINT%g
2269s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g
2270s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
2271s%@RTEMS_BSP@%$RTEMS_BSP%g
2272s%@RTEMS_HOST@%$RTEMS_HOST%g
2273s%@PROJECT_ROOT@%$PROJECT_ROOT%g
2274s%@RTEMS_ROOT@%$RTEMS_ROOT%g
2275s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g
2276s%@PACKHEX@%$PACKHEX%g
2277s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
2278s%@GCCSED@%$GCCSED%g
2279s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
2280s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
2281s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
2282s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
2283s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
2284s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g
2285s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g
2286s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
2287s%@HAS_NETWORKING@%$HAS_NETWORKING%g
2288
2289CEOF
2290EOF
2291
2292cat >> $CONFIG_STATUS <<\EOF
2293
2294# Split the substitutions into bite-sized pieces for seds with
2295# small command number limits, like on Digital OSF/1 and HP-UX.
2296ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2297ac_file=1 # Number of current file.
2298ac_beg=1 # First line for current file.
2299ac_end=$ac_max_sed_cmds # Line after last line for current file.
2300ac_more_lines=:
2301ac_sed_cmds=""
2302while $ac_more_lines; do
2303  if test $ac_beg -gt 1; then
2304    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2305  else
2306    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2307  fi
2308  if test ! -s conftest.s$ac_file; then
2309    ac_more_lines=false
2310    rm -f conftest.s$ac_file
2311  else
2312    if test -z "$ac_sed_cmds"; then
2313      ac_sed_cmds="sed -f conftest.s$ac_file"
2314    else
2315      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2316    fi
2317    ac_file=`expr $ac_file + 1`
2318    ac_beg=$ac_end
2319    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2320  fi
2321done
2322if test -z "$ac_sed_cmds"; then
2323  ac_sed_cmds=cat
2324fi
2325EOF
2326
2327cat >> $CONFIG_STATUS <<EOF
2328
2329CONFIG_FILES=\${CONFIG_FILES-"Makefile
2330include/Makefile
2331kern/Makefile
2332lib/Makefile
2333libc/Makefile
2334net/Makefile
2335netinet/Makefile
2336nfs/Makefile
2337rtems/Makefile
2338rtems_servers/Makefile
2339wrapup/Makefile
2340"}
2341EOF
2342cat >> $CONFIG_STATUS <<\EOF
2343for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2344  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2345  case "$ac_file" in
2346  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2347       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2348  *) ac_file_in="${ac_file}.in" ;;
2349  esac
2350
2351  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2352
2353  # Remove last slash and all that follows it.  Not all systems have dirname.
2354  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2355  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2356    # The file is in a subdirectory.
2357    test ! -d "$ac_dir" && mkdir "$ac_dir"
2358    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2359    # A "../" for each directory in $ac_dir_suffix.
2360    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2361  else
2362    ac_dir_suffix= ac_dots=
2363  fi
2364
2365  case "$ac_given_srcdir" in
2366  .)  srcdir=.
2367      if test -z "$ac_dots"; then top_srcdir=.
2368      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2369  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2370  *) # Relative path.
2371    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2372    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2373  esac
2374
2375  case "$ac_given_INSTALL" in
2376  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2377  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2378  esac
2379
2380  echo creating "$ac_file"
2381  rm -f "$ac_file"
2382  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2383  case "$ac_file" in
2384  *Makefile*) ac_comsub="1i\\
2385# $configure_input" ;;
2386  *) ac_comsub= ;;
2387  esac
2388
2389  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2390  sed -e "$ac_comsub
2391s%@configure_input@%$configure_input%g
2392s%@srcdir@%$srcdir%g
2393s%@top_srcdir@%$top_srcdir%g
2394s%@INSTALL@%$INSTALL%g
2395" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2396fi; done
2397rm -f conftest.s*
2398
2399EOF
2400cat >> $CONFIG_STATUS <<EOF
2401
2402EOF
2403cat >> $CONFIG_STATUS <<\EOF
2404
2405exit 0
2406EOF
2407chmod +x $CONFIG_STATUS
2408rm -fr confdefs* $ac_clean_files
2409test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2410
Note: See TracBrowser for help on using the repository browser.