OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [configure] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.