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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [unix/] [configure] - Blame information for rev 1773

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

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

powered by: WebSVN 2.1.0

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