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

Subversion Repositories or1k

[/] [or1k/] [tags/] [final_interface/] [gdb-5.0/] [sim/] [igen/] [configure] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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