source: rtems/c/src/configure @ 3cad2919

4.104.114.84.95
Last change on this file since 3cad2919 was e1d8abb, checked in by Joel Sherrill <joel.sherrill@…>, on 09/07/99 at 13:45:03

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