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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [io/] [usb/] [slave/] [v2_0/] [host/] [configure] - Blame information for rev 219

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

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

powered by: WebSVN 2.1.0

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