source: rtems/tools/build/configure @ 6693a68

4.104.114.84.95
Last change on this file since 6693a68 was 6693a68, checked in by Joel Sherrill <joel.sherrill@…>, on 07/26/99 at 20:00:37

This is part of a major patch from Ralf Corsepius <corsepiu@…>
to move RTEMS more to automake/autoconf and GNU compliance.

Finally, here they are: the "big-patch" patches - merged into one big
patch (~1.5MB).

Sorry for the delay, but testing took much more time than I had expected

  • esp. reworking the acpolish script triggered many more tiny issues than I had expected (cf. below).

At least, now you've got something to spend your weekend with :-.

WARNINGS:

  • I've gone a little (??) further than I had announced before.
  • Several directories have been moved.
  • Several files have been added and removed
  • I have tested it with many BSPs/CPUs and a variety of permutiations of configuration flags, but not with all.
  • Most parts of the patch are automatically generated, however there are many tiny manual modifications.

APPLYING THE PATCH:

./autogen -c
mkdir tools
mv c/src/exec/score/tools tools/cpu
mv c/build-tools tools/build
mv c/update-tools tools/update
patch -p1 -E < rtems-rc-19990709-0.diff
./autogen

If the patch doesn't apply to rtems-cvs, I would suggest that you should
try to apply it brute-force and then to run tools/update/rtems-polish.sh
-ac -am afterwards. A recursive diff between rtems-19990709 + patch and
rtems-cvs + patch then should report only a few dozen significant
changes to configuration files which need to be merged manually (IIRC, I
did not change any source files).

* Attention: There are files to be removed, moved, copied and added
in/to CVS!

NEWS/CHANGES:

  1. Configuration takes place in 3 stages: 1. per host (toplevel configure script), 2. per target (c/configure), 3. per bsp c/src/configure automatically triggered from ./configure and c/Makefile.am.
  2. Building of subdirectory c/ takes place in c/$(target_alias) for cross-targets in c/ for native targets
  3. Building of subdirectory c/src takes place in c/${target_alias}/<bsp> for cross-targets, c/<bsp> for native targets
  4. c/build-tools moved to tools/build
  5. c/src/exec/score/cpu/tools moved to tools/cpu (=cpu-tools split out)
  6. c/update-tools moved to tools/update
  7. New subdirectory c/src/make, handles files from make/ on a per BSP basis
  8. Maintainer mode support: Ie. if configuring with --enable-maintainer-mode disabled (the default), then tracking of many dependencies will be disabled in Makefiles. Esp. many dependencies for auto* generated files will be switched off in Makefiles. Ie. if not using "--enable-maintainer-mode" many auto* generated files will not be updated automatically, i.e. normal users should not be required to have auto* tools anymore (untested).
  9. Independent configuration scripts for / (toplevel), tools/build, tools/cpu, tools/update, c/, c/src/, c/src/exec, c/src/lib, c/src/tests, c/src/make
  10. Automake support for all directories above and besides c/src
  11. "preinstall" now is implemented as depth-first recursive make target
  1. host compiled tools (exception bsp-tools) are accessed in location in the build tree instead of inside the build-tree when building RTEMS.
  2. RTEMS_ROOT and PROJECT_ROOT now point to directories inside the build-tree - many tiny changes as consequence from this.
  3. --with-cross-host support removed (offically announced obsolete by cygnus)
  4. Changing the order of building libraries below c/src/lib/
  5. Former toplevel configure script broken into aclocal/*.m4 macros
  6. Newlib now detected by configure macros, RTEMS_HAS_NEWLIB removed from *cfg.
  7. sptables.h now generated by autoconf
  8. Rules for "mkinstalldirs temporary installation tree" moved from c/Makefile to subdirectories.
  9. Cpu-tools do not get installed.
  10. FIX: Use ACLOCAL_AMFLAGS instead of ACLOCAL = -I ... in Makefile.ams which are in directories with own configure scripts.
  11. Hardcoding BSP names into libbsp/.../tools to avoid RTEMS_BSP get overridden from the environment.
  12. FIX: Handling of MP_PIECES in various Makefiles
  13. FIX: Removing "::" rules from some Makefile.ins
  14. FIX: File permission chaos: (-m 444 and -m 555 vs. -m 644 and -m 755) - Now all include files use -m 644.
  15. Removed many gnumake-conditionals in Makefile.ins - Partially replaced with automake-conditional, partially replaced with conditionalized Makefile variables (... _yes_V)
  16. Massively reworked acpolish: acpolish now parses Makefile.ins and interprets parts of the Makefile.ins.
  17. FIX: Some $(wildcard $(srcdir)/*.h) macros removed / replaced with explicit lists of files in Makefile.ins.
  18. FIX: Replacing MKLIB with RANLIB in Makefile.ins
  19. HACK: Add preinstallation for pc386 specific $(PROJECT_RELEASE)/BootImgs? directory

... many more details, I can't recall

KNOWN BUGS:

  1. make [debug|profile]_install do not do what they are promissing. "make [debug|profile] install" does what "make [debug|profile]_install" has been doing. Proposal: remove [debug|profile]_install
  2. Dependencies between temporary installation tree and source tree are not yet handled correctly.
  3. Dependencies between temporary installation tree and source tree are handled ineffencently (Using INSTALL_CHANGE instead of make dependencies)
  4. RTEMS_ROOT, PROJECT_ROOT, top_builddir, RTEMS_TOPdir now are redundant.
  5. The new configure scripts still are in their infancy. They contain redundant checks and might still contain bugs, too.
  6. RTEMS autoconf Makefile.ins use a mixture of configuration information gathered in c/$(target_alias)/<bsp>/make and of information collected from their configure scripts.
  7. make dist is not fully functional
  8. Subdirectory host-/build-/target- configure options (--target, --host, --build) do not conform to Cygnus/GNU conventions.
  9. Some RTEMS autoconf Makefile.in's makefile targets are not supported in automake Makefile.ams/ins (e.g. get, clobber).
  10. Some automake standard targets are not propagated from toplevel and c/Makefile.am to autoconf subdirectories (eg. make dist).
  11. rpcgen generated files are not part of the source-tree (Automake conventions favor supplying generated files inside the source-tree, however there is no support for rpcgen generated files in automake, cf. yacc/lex support in automake).
  12. RTEMS_HAS_RDBG handling is flaky. make/*.cfg use RTEMS_HAS_RDBG per CPU, while librdb's sources can only be built per BSP. Raises the more general question whether librdbg located correctly in the source-tree.
  13. All make/*cfg files are configured per cpu, currently there is no location to store per-bsp configuration information --> bsp.cfg, per aconfig.h?
  14. "make install" without having run "make all" beforehand does not work.
  15. handling of --enable-multiprocessing seems to be broken in make/custom/*
  16. Makefile.ins still exploit many gmake features.
  17. File permisson chaos on libraries (no explict -m for libraries/rels/etc).
  18. mcp750 Makefiles are broken (Note: I *do* mean buggy - I am not talking about "not-conforming to conventions", here :-).
  19. Dependencies between configure scripts are not handled, eg. aborting "make RTEMS_BSP=<bsp>" can leave the build-tree in an unusable state.
  20. "make clean" does not delete <build-tree>/<bsp>. This is intentional for now, because rerunning "make" after "make clean" requires an explicit "make preinstall" afterwards now. This should be done automatically, but doesn't work in this case for now. To work around this problem <build-tree>/<bsp> is kept during "make clean" for now (HACK).

TODO:

  1. split out host-compiled bsp-tools
  2. Use Cygnus/GNU standards for cross-compiling target-subdir (CC=CC_FOR_TARGET .. configure --host=${target_alias} --build=`config.guess'}), to be added to toplevel configure script after splitting out bsp-tools.
  3. Exploit per cpu support directory (c/src/<cpu>)- Splitting out per-cpu libraries - Are there any?
  4. Further automake support
  5. Converting subdirectories into standalone / self-contained subdirectories (Esp. moving their headers to the same common root as their sources, eg. mv lib/include/rtems++ lib/librtems++/include/rtems++) - This is the main obstacle which prevents moving further towards automake.
  6. Propagating values from *.cfg into Makefiles instead of propagating them at make time via Makefile-fragments (i.e. try to avoid using *.cfg).
  7. Testing on cygwin host (I *do* expect cygwin specific problems).
  8. The ARCH in o-$(ARCH)-$(VARIANT) build-subdirectories is not needed anymore.

GENERAL ISSUES:

  1. Temporary installation tree -- Ian and I seem to disagree basically. Though I think that I understand his argumentation, I do not share it. IMO, his way of using the buildtree is mis-using the build-tree, relying on an inofficial feature of RTEMS's current implementation, which doesn't even work correctly in the current build-tree, though it attempts hard to do so. From my very POV, it unnecessarily complicates the structures of the source- and build-trees. It is not supported by automake (No automatic generation for the necessary rules) and complicates the transition to automake significantly (Generating the rules with an enhanced version of acpolish could be possible). As Ian correctly pointed out, here a management decision is needed - though I don't see the need to draw this decision in short terms.
  1. preinstallation generally is a sure means to spoil the structure of the source tree, IMHO (No ranting intended, I am completly serious about this one). eg. through tree dependencies. The worst problem related to this I have found in the meantime is bsp_specs. bsp_specs is part of libbsp, ie. there is *no* way to build *any* part of the source tree *without* having a BSP *preinstalled*. Note: This issue is related to issue 1., but is not identical - The difference is the change of the order make rules have to be triggered. While preinstallation triggers rules spread all over the source tree before a "make all" can be run, a temporary installation tree could also be installed by post "make all" hooks (all-local:, to be run after make all in a directory is completed) if the directories' dependencies would be a tree,
  1. Stuctural dependencies between subdirectories.
  2. Depth of the source tree (Prevents multilibbing and introduces many unnecessary configure scripts).
  3. per cpu vs. per bsp configuration (There are no real per-cpu parts yets :-).
  4. automake does not support $makefiles in AC_OUTPUT. Unlike before, we now should try to avoid RTEMS_CHECK_MAKEFILE and to hard-code as much paths to Makefiles as possible.
  5. General redesign of the source tree
  6. Main installation point - Changing it to ${prefix}/${target_alias}. ?

Besides item 8. (which is a must, IMHO), as far as I see most of them
can not be solved soon and will remain issues in the mid- to long-term
:-.

REMARKS:

  • You (as the maintainer) should always use --enable-maintainer-mode when building RTEMS to ensure that maintainer mode generated files (esp. those in c/src/make) will be updated when make/* files have changed.
  • Use @RTEMS_BSP@ in Makefile.ins and Makefile.ams below c/src/, $(RTEMS_BSP) or ${RTEMS_BSP} will be overridden from environment variables when using make RTEMS_BSP="....".
  • c/src/make is a temporary cludge until configuration issues are solved. At the moment it is configured per bsp, but contains per-target/cpu info only. Its main purpose now is to circumvent modifying make/*.cfg files, because I consider make/* to be frozen for backward compatibilty.
  • This patch should only affect configuration files. At least I do not remember having touched any source files.
  • To build the bare bsp you now need to mention it in --enable-rtemsbsp.

Example: building gensh1 and sh1/bare simultaneously:
../rtems-rc-19990709-1/configure --target=sh-rtems \
--enable-rtemsbsp="bare gensh1" \
--prefix=/tmp/rtems \
--enable-bare-cpu-cflags='-DMHZ=20 -m1
-DCPU_CONSOLE_DEVNAME=\"/dev/null\"' \
--enable-bare-cpu-model=sh7032 \
--enable-maintainer-mode \
--enable-cxx
make
make install

  • The next steps in development would be to split out bsp-tools and then to change to Cygnus/GNU canonicalization conventions for building the c/ subdirectory afterwards (i.e. many standard AC_*.m4 macros could be used instead of customized versions)

FINAL REMARK:
The issues mentioned in the lists above sound much worser than the
situation actually is. Most of them are not specific to this patch, but
are also valid for the snapshot. I just wrote down what I came across
when working on the patch over the last few weeks.

I wouldn't be too surprised if you don't like the patch at the current
point in development. I am willing to discuss details and problems, I
also have no problem if you would post-pone applying this patch to times
after 4.1, but rejecting it as a whole for all times would be a false
management decision, IMHO.

Therefore I would suggest that you, if your time constaints allow it,
should at least play a little while with this patch to understand what
is going on and before drawing a decision on how to handle this
proposal. I know this patch is neither perfect nor complete, but I
consider it to be a major breakthrough. Don't be anxious because of the
size of the patch, the core of the patch is rather small, the size is
mainly the side effect of some systematic cleanups inside the Makefiles
(result of acpolish).

Feel free to ask if you encounter problems, if you don't understand
something or if you meet bugs - I am far from being perfect and am
prepared to answer them.

Ralf.

--
Ralf Corsepius
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung (FAW)
Helmholtzstr. 16, 89081 Ulm, Germany Tel: +49/731/501-8690
mailto:corsepiu@… FAX: +49/731/501-999
http://www.faw.uni-ulm.de

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