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

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [insight/] [sim/] [v850/] [configure] - Blame information for rev 579

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

Line No. Rev Author Line
1 578 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
  --disable-nls           do not use Native Language Support"
139
ac_help="$ac_help
140
  --with-included-gettext use the GNU gettext library included here"
141
ac_help="$ac_help
142
  --enable-maintainer-mode              Enable developer functionality."
143
ac_help="$ac_help
144
  --enable-sim-bswap                    Use Host specific BSWAP instruction."
145
ac_help="$ac_help
146
  --enable-sim-cflags=opts              Extra CFLAGS for use in building simulator"
147
ac_help="$ac_help
148
  --enable-sim-debug=opts               Enable debugging flags"
149
ac_help="$ac_help
150
  --enable-sim-stdio                    Specify whether to use stdio for console input/output."
151
ac_help="$ac_help
152
  --enable-sim-trace=opts               Enable tracing flags"
153
ac_help="$ac_help
154
  --enable-sim-profile=opts             Enable profiling flags"
155
ac_help="$ac_help
156
  --enable-sim-endian=endian            Specify target byte endian orientation."
157
ac_help="$ac_help
158
  --enable-sim-alignment=align          Specify strict,  nonstrict or forced alignment of memory accesses."
159
ac_help="$ac_help
160
  --enable-sim-hostendian=end           Specify host byte endian orientation."
161
ac_help="$ac_help
162
  --enable-build-warnings[=LIST]                Enable build-time compiler warnings"
163
ac_help="$ac_help
164
  --enable-sim-reserved-bits            Specify whether to check reserved bits in instruction."
165
ac_help="$ac_help
166
  --enable-sim-bitsize=N                Specify target bitsize (32 or 64)."
167
 
168
# Initialize some variables set by options.
169
# The variables have the same names as the options, with
170
# dashes changed to underlines.
171
build=NONE
172
cache_file=./config.cache
173
exec_prefix=NONE
174
host=NONE
175
no_create=
176
nonopt=NONE
177
no_recursion=
178
prefix=NONE
179
program_prefix=NONE
180
program_suffix=NONE
181
program_transform_name=s,x,x,
182
silent=
183
site=
184
sitefile=
185
srcdir=
186
target=NONE
187
verbose=
188
x_includes=NONE
189
x_libraries=NONE
190
bindir='${exec_prefix}/bin'
191
sbindir='${exec_prefix}/sbin'
192
libexecdir='${exec_prefix}/libexec'
193
datadir='${prefix}/share'
194
sysconfdir='${prefix}/etc'
195
sharedstatedir='${prefix}/com'
196
localstatedir='${prefix}/var'
197
libdir='${exec_prefix}/lib'
198
includedir='${prefix}/include'
199
oldincludedir='/usr/include'
200
infodir='${prefix}/info'
201
mandir='${prefix}/man'
202
 
203
# Initialize some other variables.
204
subdirs=
205
MFLAGS= MAKEFLAGS=
206
SHELL=${CONFIG_SHELL-/bin/sh}
207
# Maximum number of lines to put in a shell here document.
208
ac_max_here_lines=12
209
 
210
ac_prev=
211
for ac_option
212
do
213
 
214
  # If the previous option needs an argument, assign it.
215
  if test -n "$ac_prev"; then
216
    eval "$ac_prev=\$ac_option"
217
    ac_prev=
218
    continue
219
  fi
220
 
221
  case "$ac_option" in
222
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
223
  *) ac_optarg= ;;
224
  esac
225
 
226
  # Accept the important Cygnus configure options, so we can diagnose typos.
227
 
228
  case "$ac_option" in
229
 
230
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
231
    ac_prev=bindir ;;
232
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
233
    bindir="$ac_optarg" ;;
234
 
235
  -build | --build | --buil | --bui | --bu)
236
    ac_prev=build ;;
237
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
238
    build="$ac_optarg" ;;
239
 
240
  -cache-file | --cache-file | --cache-fil | --cache-fi \
241
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
242
    ac_prev=cache_file ;;
243
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
244
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
245
    cache_file="$ac_optarg" ;;
246
 
247
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
248
    ac_prev=datadir ;;
249
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
250
  | --da=*)
251
    datadir="$ac_optarg" ;;
252
 
253
  -disable-* | --disable-*)
254
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
255
    # Reject names that are not valid shell variable names.
256
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
257
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
258
    fi
259
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
260
    eval "enable_${ac_feature}=no" ;;
261
 
262
  -enable-* | --enable-*)
263
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
264
    # Reject names that are not valid shell variable names.
265
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
266
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
267
    fi
268
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
269
    case "$ac_option" in
270
      *=*) ;;
271
      *) ac_optarg=yes ;;
272
    esac
273
    eval "enable_${ac_feature}='$ac_optarg'" ;;
274
 
275
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
276
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
277
  | --exec | --exe | --ex)
278
    ac_prev=exec_prefix ;;
279
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
280
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
281
  | --exec=* | --exe=* | --ex=*)
282
    exec_prefix="$ac_optarg" ;;
283
 
284
  -gas | --gas | --ga | --g)
285
    # Obsolete; use --with-gas.
286
    with_gas=yes ;;
287
 
288
  -help | --help | --hel | --he)
289
    # Omit some internal or obsolete options to make the list less imposing.
290
    # This message is too long to be a string in the A/UX 3.1 sh.
291
    cat << EOF
292
Usage: configure [options] [host]
293
Options: [defaults in brackets after descriptions]
294
Configuration:
295
  --cache-file=FILE       cache test results in FILE
296
  --help                  print this message
297
  --no-create             do not create output files
298
  --quiet, --silent       do not print \`checking...' messages
299
  --site-file=FILE        use FILE as the site file
300
  --version               print the version of autoconf that created configure
301
Directory and file names:
302
  --prefix=PREFIX         install architecture-independent files in PREFIX
303
                          [$ac_default_prefix]
304
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
305
                          [same as prefix]
306
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
307
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
308
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
309
  --datadir=DIR           read-only architecture-independent data in DIR
310
                          [PREFIX/share]
311
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
312
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
313
                          [PREFIX/com]
314
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
315
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
316
  --includedir=DIR        C header files in DIR [PREFIX/include]
317
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
318
  --infodir=DIR           info documentation in DIR [PREFIX/info]
319
  --mandir=DIR            man documentation in DIR [PREFIX/man]
320
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
321
  --program-prefix=PREFIX prepend PREFIX to installed program names
322
  --program-suffix=SUFFIX append SUFFIX to installed program names
323
  --program-transform-name=PROGRAM
324
                          run sed PROGRAM on installed program names
325
EOF
326
    cat << EOF
327
Host type:
328
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
329
  --host=HOST             configure for HOST [guessed]
330
  --target=TARGET         configure for TARGET [TARGET=HOST]
331
Features and packages:
332
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
333
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
334
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
335
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
336
  --x-includes=DIR        X include files are in DIR
337
  --x-libraries=DIR       X library files are in DIR
338
EOF
339
    if test -n "$ac_help"; then
340
      echo "--enable and --with options recognized:$ac_help"
341
    fi
342
    exit 0 ;;
343
 
344
  -host | --host | --hos | --ho)
345
    ac_prev=host ;;
346
  -host=* | --host=* | --hos=* | --ho=*)
347
    host="$ac_optarg" ;;
348
 
349
  -includedir | --includedir | --includedi | --included | --include \
350
  | --includ | --inclu | --incl | --inc)
351
    ac_prev=includedir ;;
352
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
353
  | --includ=* | --inclu=* | --incl=* | --inc=*)
354
    includedir="$ac_optarg" ;;
355
 
356
  -infodir | --infodir | --infodi | --infod | --info | --inf)
357
    ac_prev=infodir ;;
358
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
359
    infodir="$ac_optarg" ;;
360
 
361
  -libdir | --libdir | --libdi | --libd)
362
    ac_prev=libdir ;;
363
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
364
    libdir="$ac_optarg" ;;
365
 
366
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
367
  | --libexe | --libex | --libe)
368
    ac_prev=libexecdir ;;
369
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
370
  | --libexe=* | --libex=* | --libe=*)
371
    libexecdir="$ac_optarg" ;;
372
 
373
  -localstatedir | --localstatedir | --localstatedi | --localstated \
374
  | --localstate | --localstat | --localsta | --localst \
375
  | --locals | --local | --loca | --loc | --lo)
376
    ac_prev=localstatedir ;;
377
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
378
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
379
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
380
    localstatedir="$ac_optarg" ;;
381
 
382
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
383
    ac_prev=mandir ;;
384
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
385
    mandir="$ac_optarg" ;;
386
 
387
  -nfp | --nfp | --nf)
388
    # Obsolete; use --without-fp.
389
    with_fp=no ;;
390
 
391
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
392
  | --no-cr | --no-c)
393
    no_create=yes ;;
394
 
395
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
396
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
397
    no_recursion=yes ;;
398
 
399
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
400
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
401
  | --oldin | --oldi | --old | --ol | --o)
402
    ac_prev=oldincludedir ;;
403
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
404
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
405
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
406
    oldincludedir="$ac_optarg" ;;
407
 
408
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
409
    ac_prev=prefix ;;
410
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
411
    prefix="$ac_optarg" ;;
412
 
413
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
414
  | --program-pre | --program-pr | --program-p)
415
    ac_prev=program_prefix ;;
416
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
417
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
418
    program_prefix="$ac_optarg" ;;
419
 
420
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
421
  | --program-suf | --program-su | --program-s)
422
    ac_prev=program_suffix ;;
423
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
424
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
425
    program_suffix="$ac_optarg" ;;
426
 
427
  -program-transform-name | --program-transform-name \
428
  | --program-transform-nam | --program-transform-na \
429
  | --program-transform-n | --program-transform- \
430
  | --program-transform | --program-transfor \
431
  | --program-transfo | --program-transf \
432
  | --program-trans | --program-tran \
433
  | --progr-tra | --program-tr | --program-t)
434
    ac_prev=program_transform_name ;;
435
  -program-transform-name=* | --program-transform-name=* \
436
  | --program-transform-nam=* | --program-transform-na=* \
437
  | --program-transform-n=* | --program-transform-=* \
438
  | --program-transform=* | --program-transfor=* \
439
  | --program-transfo=* | --program-transf=* \
440
  | --program-trans=* | --program-tran=* \
441
  | --progr-tra=* | --program-tr=* | --program-t=*)
442
    program_transform_name="$ac_optarg" ;;
443
 
444
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
445
  | -silent | --silent | --silen | --sile | --sil)
446
    silent=yes ;;
447
 
448
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
449
    ac_prev=sbindir ;;
450
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
451
  | --sbi=* | --sb=*)
452
    sbindir="$ac_optarg" ;;
453
 
454
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
455
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
456
  | --sharedst | --shareds | --shared | --share | --shar \
457
  | --sha | --sh)
458
    ac_prev=sharedstatedir ;;
459
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
460
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
461
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
462
  | --sha=* | --sh=*)
463
    sharedstatedir="$ac_optarg" ;;
464
 
465
  -site | --site | --sit)
466
    ac_prev=site ;;
467
  -site=* | --site=* | --sit=*)
468
    site="$ac_optarg" ;;
469
 
470
  -site-file | --site-file | --site-fil | --site-fi | --site-f)
471
    ac_prev=sitefile ;;
472
  -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
473
    sitefile="$ac_optarg" ;;
474
 
475
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
476
    ac_prev=srcdir ;;
477
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
478
    srcdir="$ac_optarg" ;;
479
 
480
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
481
  | --syscon | --sysco | --sysc | --sys | --sy)
482
    ac_prev=sysconfdir ;;
483
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
484
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
485
    sysconfdir="$ac_optarg" ;;
486
 
487
  -target | --target | --targe | --targ | --tar | --ta | --t)
488
    ac_prev=target ;;
489
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
490
    target="$ac_optarg" ;;
491
 
492
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
493
    verbose=yes ;;
494
 
495
  -version | --version | --versio | --versi | --vers)
496
    echo "configure generated by autoconf version 2.13"
497
    exit 0 ;;
498
 
499
  -with-* | --with-*)
500
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
501
    # Reject names that are not valid shell variable names.
502
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
503
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
504
    fi
505
    ac_package=`echo $ac_package| sed 's/-/_/g'`
506
    case "$ac_option" in
507
      *=*) ;;
508
      *) ac_optarg=yes ;;
509
    esac
510
    eval "with_${ac_package}='$ac_optarg'" ;;
511
 
512
  -without-* | --without-*)
513
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
514
    # Reject names that are not valid shell variable names.
515
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
516
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
517
    fi
518
    ac_package=`echo $ac_package| sed 's/-/_/g'`
519
    eval "with_${ac_package}=no" ;;
520
 
521
  --x)
522
    # Obsolete; use --with-x.
523
    with_x=yes ;;
524
 
525
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
526
  | --x-incl | --x-inc | --x-in | --x-i)
527
    ac_prev=x_includes ;;
528
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
529
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
530
    x_includes="$ac_optarg" ;;
531
 
532
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
533
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
534
    ac_prev=x_libraries ;;
535
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
536
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
537
    x_libraries="$ac_optarg" ;;
538
 
539
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
540
    ;;
541
 
542
  *)
543
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
544
      echo "configure: warning: $ac_option: invalid host type" 1>&2
545
    fi
546
    if test "x$nonopt" != xNONE; then
547
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
548
    fi
549
    nonopt="$ac_option"
550
    ;;
551
 
552
  esac
553
done
554
 
555
if test -n "$ac_prev"; then
556
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
557
fi
558
 
559
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
560
 
561
# File descriptor usage:
562
# 0 standard input
563
# 1 file creation
564
# 2 errors and warnings
565
# 3 some systems may open it to /dev/tty
566
# 4 used on the Kubota Titan
567
# 6 checking for... messages and results
568
# 5 compiler messages saved in config.log
569
if test "$silent" = yes; then
570
  exec 6>/dev/null
571
else
572
  exec 6>&1
573
fi
574
exec 5>./config.log
575
 
576
echo "\
577
This file contains any messages produced by compilers while
578
running configure, to aid debugging if configure makes a mistake.
579
" 1>&5
580
 
581
# Strip out --no-create and --no-recursion so they do not pile up.
582
# Also quote any args containing shell metacharacters.
583
ac_configure_args=
584
for ac_arg
585
do
586
  case "$ac_arg" in
587
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
588
  | --no-cr | --no-c) ;;
589
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
590
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
591
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
592
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
593
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
594
  esac
595
done
596
 
597
# NLS nuisances.
598
# Only set these to C if already set.  These must not be set unconditionally
599
# because not all systems understand e.g. LANG=C (notably SCO).
600
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
601
# Non-C LC_CTYPE values break the ctype check.
602
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
603
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
604
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
605
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
606
 
607
# confdefs.h avoids OS command line length limits that DEFS can exceed.
608
rm -rf conftest* confdefs.h
609
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
610
echo > confdefs.h
611
 
612
# A filename unique to this package, relative to the directory that
613
# configure is in, which we can look for to find out if srcdir is correct.
614
ac_unique_file=Makefile.in
615
 
616
# Find the source files, if location was not specified.
617
if test -z "$srcdir"; then
618
  ac_srcdir_defaulted=yes
619
  # Try the directory containing this script, then its parent.
620
  ac_prog=$0
621
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
622
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
623
  srcdir=$ac_confdir
624
  if test ! -r $srcdir/$ac_unique_file; then
625
    srcdir=..
626
  fi
627
else
628
  ac_srcdir_defaulted=no
629
fi
630
if test ! -r $srcdir/$ac_unique_file; then
631
  if test "$ac_srcdir_defaulted" = yes; then
632
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
633
  else
634
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
635
  fi
636
fi
637
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
638
 
639
# Prefer explicitly selected file to automatically selected ones.
640
if test -z "$sitefile"; then
641
  if test -z "$CONFIG_SITE"; then
642
    if test "x$prefix" != xNONE; then
643
      CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
644
    else
645
      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
646
    fi
647
  fi
648
else
649
  CONFIG_SITE="$sitefile"
650
fi
651
for ac_site_file in $CONFIG_SITE; do
652
  if test -r "$ac_site_file"; then
653
    echo "loading site script $ac_site_file"
654
    . "$ac_site_file"
655
  fi
656
done
657
 
658
if test -r "$cache_file"; then
659
  echo "loading cache $cache_file"
660
  . $cache_file
661
else
662
  echo "creating cache $cache_file"
663
  > $cache_file
664
fi
665
 
666
ac_ext=c
667
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
668
ac_cpp='$CPP $CPPFLAGS'
669
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
670
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
671
cross_compiling=$ac_cv_prog_cc_cross
672
 
673
ac_exeext=
674
ac_objext=o
675
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
676
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
677
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
678
    ac_n= ac_c='
679
' ac_t='        '
680
  else
681
    ac_n=-n ac_c= ac_t=
682
  fi
683
else
684
  ac_n= ac_c='\c' ac_t=
685
fi
686
 
687
 
688
 
689
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
690
echo "configure:691: checking how to run the C preprocessor" >&5
691
# On Suns, sometimes $CPP names a directory.
692
if test -n "$CPP" && test -d "$CPP"; then
693
  CPP=
694
fi
695
if test -z "$CPP"; then
696
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
697
  echo $ac_n "(cached) $ac_c" 1>&6
698
else
699
    # This must be in double quotes, not single quotes, because CPP may get
700
  # substituted into the Makefile and "${CC-cc}" will confuse make.
701
  CPP="${CC-cc} -E"
702
  # On the NeXT, cc -E runs the code through the compiler's parser,
703
  # not just through cpp.
704
  cat > conftest.$ac_ext <
705
#line 706 "configure"
706
#include "confdefs.h"
707
#include 
708
Syntax Error
709
EOF
710
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
711
{ (eval echo configure:712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
712
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
713
if test -z "$ac_err"; then
714
  :
715
else
716
  echo "$ac_err" >&5
717
  echo "configure: failed program was:" >&5
718
  cat conftest.$ac_ext >&5
719
  rm -rf conftest*
720
  CPP="${CC-cc} -E -traditional-cpp"
721
  cat > conftest.$ac_ext <
722
#line 723 "configure"
723
#include "confdefs.h"
724
#include 
725
Syntax Error
726
EOF
727
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
728
{ (eval echo configure:729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
729
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
730
if test -z "$ac_err"; then
731
  :
732
else
733
  echo "$ac_err" >&5
734
  echo "configure: failed program was:" >&5
735
  cat conftest.$ac_ext >&5
736
  rm -rf conftest*
737
  CPP="${CC-cc} -nologo -E"
738
  cat > conftest.$ac_ext <
739
#line 740 "configure"
740
#include "confdefs.h"
741
#include 
742
Syntax Error
743
EOF
744
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
745
{ (eval echo configure:746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
746
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
747
if test -z "$ac_err"; then
748
  :
749
else
750
  echo "$ac_err" >&5
751
  echo "configure: failed program was:" >&5
752
  cat conftest.$ac_ext >&5
753
  rm -rf conftest*
754
  CPP=/lib/cpp
755
fi
756
rm -f conftest*
757
fi
758
rm -f conftest*
759
fi
760
rm -f conftest*
761
  ac_cv_prog_CPP="$CPP"
762
fi
763
  CPP="$ac_cv_prog_CPP"
764
else
765
  ac_cv_prog_CPP="$CPP"
766
fi
767
echo "$ac_t""$CPP" 1>&6
768
 
769
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
770
echo "configure:771: checking whether ${MAKE-make} sets \${MAKE}" >&5
771
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
772
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
773
  echo $ac_n "(cached) $ac_c" 1>&6
774
else
775
  cat > conftestmake <<\EOF
776
all:
777
        @echo 'ac_maketemp="${MAKE}"'
778
EOF
779
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
780
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
781
if test -n "$ac_maketemp"; then
782
  eval ac_cv_prog_make_${ac_make}_set=yes
783
else
784
  eval ac_cv_prog_make_${ac_make}_set=no
785
fi
786
rm -f conftestmake
787
fi
788
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
789
  echo "$ac_t""yes" 1>&6
790
  SET_MAKE=
791
else
792
  echo "$ac_t""no" 1>&6
793
  SET_MAKE="MAKE=${MAKE-make}"
794
fi
795
 
796
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
797
echo "configure:798: checking for POSIXized ISC" >&5
798
if test -d /etc/conf/kconfig.d &&
799
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
800
then
801
  echo "$ac_t""yes" 1>&6
802
  ISC=yes # If later tests want to check for ISC.
803
  cat >> confdefs.h <<\EOF
804
#define _POSIX_SOURCE 1
805
EOF
806
 
807
  if test "$GCC" = yes; then
808
    CC="$CC -posix"
809
  else
810
    CC="$CC -Xp"
811
  fi
812
else
813
  echo "$ac_t""no" 1>&6
814
  ISC=
815
fi
816
 
817
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
818
echo "configure:819: checking for ANSI C header files" >&5
819
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
820
  echo $ac_n "(cached) $ac_c" 1>&6
821
else
822
  cat > conftest.$ac_ext <
823
#line 824 "configure"
824
#include "confdefs.h"
825
#include 
826
#include 
827
#include 
828
#include 
829
EOF
830
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831
{ (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
832
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
833
if test -z "$ac_err"; then
834
  rm -rf conftest*
835
  ac_cv_header_stdc=yes
836
else
837
  echo "$ac_err" >&5
838
  echo "configure: failed program was:" >&5
839
  cat conftest.$ac_ext >&5
840
  rm -rf conftest*
841
  ac_cv_header_stdc=no
842
fi
843
rm -f conftest*
844
 
845
if test $ac_cv_header_stdc = yes; then
846
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
847
cat > conftest.$ac_ext <
848
#line 849 "configure"
849
#include "confdefs.h"
850
#include 
851
EOF
852
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
853
  egrep "memchr" >/dev/null 2>&1; then
854
  :
855
else
856
  rm -rf conftest*
857
  ac_cv_header_stdc=no
858
fi
859
rm -f conftest*
860
 
861
fi
862
 
863
if test $ac_cv_header_stdc = yes; then
864
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
865
cat > conftest.$ac_ext <
866
#line 867 "configure"
867
#include "confdefs.h"
868
#include 
869
EOF
870
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
871
  egrep "free" >/dev/null 2>&1; then
872
  :
873
else
874
  rm -rf conftest*
875
  ac_cv_header_stdc=no
876
fi
877
rm -f conftest*
878
 
879
fi
880
 
881
if test $ac_cv_header_stdc = yes; then
882
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
883
if test "$cross_compiling" = yes; then
884
  :
885
else
886
  cat > conftest.$ac_ext <
887
#line 888 "configure"
888
#include "confdefs.h"
889
#include 
890
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
891
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
892
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
893
int main () { int i; for (i = 0; i < 256; i++)
894
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
895
exit (0); }
896
 
897
EOF
898
if { (eval echo configure:899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
899
then
900
  :
901
else
902
  echo "configure: failed program was:" >&5
903
  cat conftest.$ac_ext >&5
904
  rm -fr conftest*
905
  ac_cv_header_stdc=no
906
fi
907
rm -fr conftest*
908
fi
909
 
910
fi
911
fi
912
 
913
echo "$ac_t""$ac_cv_header_stdc" 1>&6
914
if test $ac_cv_header_stdc = yes; then
915
  cat >> confdefs.h <<\EOF
916
#define STDC_HEADERS 1
917
EOF
918
 
919
fi
920
 
921
echo $ac_n "checking for working const""... $ac_c" 1>&6
922
echo "configure:923: checking for working const" >&5
923
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
924
  echo $ac_n "(cached) $ac_c" 1>&6
925
else
926
  cat > conftest.$ac_ext <
927
#line 928 "configure"
928
#include "confdefs.h"
929
 
930
int main() {
931
 
932
/* Ultrix mips cc rejects this.  */
933
typedef int charset[2]; const charset x;
934
/* SunOS 4.1.1 cc rejects this.  */
935
char const *const *ccp;
936
char **p;
937
/* NEC SVR4.0.2 mips cc rejects this.  */
938
struct point {int x, y;};
939
static struct point const zero = {0,0};
940
/* AIX XL C 1.02.0.0 rejects this.
941
   It does not let you subtract one const X* pointer from another in an arm
942
   of an if-expression whose if-part is not a constant expression */
943
const char *g = "string";
944
ccp = &g + (g ? g-g : 0);
945
/* HPUX 7.0 cc rejects these. */
946
++ccp;
947
p = (char**) ccp;
948
ccp = (char const *const *) p;
949
{ /* SCO 3.2v4 cc rejects this.  */
950
  char *t;
951
  char const *s = 0 ? (char *) 0 : (char const *) 0;
952
 
953
  *t++ = 0;
954
}
955
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
956
  int x[] = {25, 17};
957
  const int *foo = &x[0];
958
  ++foo;
959
}
960
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
961
  typedef const int *iptr;
962
  iptr p = 0;
963
  ++p;
964
}
965
{ /* AIX XL C 1.02.0.0 rejects this saying
966
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
967
  struct s { int j; const int *ap[3]; };
968
  struct s *b; b->j = 5;
969
}
970
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
971
  const int foo = 10;
972
}
973
 
974
; return 0; }
975
EOF
976
if { (eval echo configure:977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
977
  rm -rf conftest*
978
  ac_cv_c_const=yes
979
else
980
  echo "configure: failed program was:" >&5
981
  cat conftest.$ac_ext >&5
982
  rm -rf conftest*
983
  ac_cv_c_const=no
984
fi
985
rm -f conftest*
986
fi
987
 
988
echo "$ac_t""$ac_cv_c_const" 1>&6
989
if test $ac_cv_c_const = no; then
990
  cat >> confdefs.h <<\EOF
991
#define const
992
EOF
993
 
994
fi
995
 
996
echo $ac_n "checking for inline""... $ac_c" 1>&6
997
echo "configure:998: checking for inline" >&5
998
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
999
  echo $ac_n "(cached) $ac_c" 1>&6
1000
else
1001
  ac_cv_c_inline=no
1002
for ac_kw in inline __inline__ __inline; do
1003
  cat > conftest.$ac_ext <
1004
#line 1005 "configure"
1005
#include "confdefs.h"
1006
 
1007
int main() {
1008
} $ac_kw foo() {
1009
; return 0; }
1010
EOF
1011
if { (eval echo configure:1012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1012
  rm -rf conftest*
1013
  ac_cv_c_inline=$ac_kw; break
1014
else
1015
  echo "configure: failed program was:" >&5
1016
  cat conftest.$ac_ext >&5
1017
fi
1018
rm -f conftest*
1019
done
1020
 
1021
fi
1022
 
1023
echo "$ac_t""$ac_cv_c_inline" 1>&6
1024
case "$ac_cv_c_inline" in
1025
  inline | yes) ;;
1026
  no) cat >> confdefs.h <<\EOF
1027
#define inline
1028
EOF
1029
 ;;
1030
  *)  cat >> confdefs.h <
1031
#define inline $ac_cv_c_inline
1032
EOF
1033
 ;;
1034
esac
1035
 
1036
echo $ac_n "checking for off_t""... $ac_c" 1>&6
1037
echo "configure:1038: checking for off_t" >&5
1038
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1039
  echo $ac_n "(cached) $ac_c" 1>&6
1040
else
1041
  cat > conftest.$ac_ext <
1042
#line 1043 "configure"
1043
#include "confdefs.h"
1044
#include 
1045
#if STDC_HEADERS
1046
#include 
1047
#include 
1048
#endif
1049
EOF
1050
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1051
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1052
  rm -rf conftest*
1053
  ac_cv_type_off_t=yes
1054
else
1055
  rm -rf conftest*
1056
  ac_cv_type_off_t=no
1057
fi
1058
rm -f conftest*
1059
 
1060
fi
1061
echo "$ac_t""$ac_cv_type_off_t" 1>&6
1062
if test $ac_cv_type_off_t = no; then
1063
  cat >> confdefs.h <<\EOF
1064
#define off_t long
1065
EOF
1066
 
1067
fi
1068
 
1069
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1070
echo "configure:1071: checking for size_t" >&5
1071
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1072
  echo $ac_n "(cached) $ac_c" 1>&6
1073
else
1074
  cat > conftest.$ac_ext <
1075
#line 1076 "configure"
1076
#include "confdefs.h"
1077
#include 
1078
#if STDC_HEADERS
1079
#include 
1080
#include 
1081
#endif
1082
EOF
1083
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1084
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1085
  rm -rf conftest*
1086
  ac_cv_type_size_t=yes
1087
else
1088
  rm -rf conftest*
1089
  ac_cv_type_size_t=no
1090
fi
1091
rm -f conftest*
1092
 
1093
fi
1094
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1095
if test $ac_cv_type_size_t = no; then
1096
  cat >> confdefs.h <<\EOF
1097
#define size_t unsigned
1098
EOF
1099
 
1100
fi
1101
 
1102
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1103
# for constant arguments.  Useless!
1104
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1105
echo "configure:1106: checking for working alloca.h" >&5
1106
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1107
  echo $ac_n "(cached) $ac_c" 1>&6
1108
else
1109
  cat > conftest.$ac_ext <
1110
#line 1111 "configure"
1111
#include "confdefs.h"
1112
#include 
1113
int main() {
1114
char *p = alloca(2 * sizeof(int));
1115
; return 0; }
1116
EOF
1117
if { (eval echo configure:1118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1118
  rm -rf conftest*
1119
  ac_cv_header_alloca_h=yes
1120
else
1121
  echo "configure: failed program was:" >&5
1122
  cat conftest.$ac_ext >&5
1123
  rm -rf conftest*
1124
  ac_cv_header_alloca_h=no
1125
fi
1126
rm -f conftest*
1127
fi
1128
 
1129
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1130
if test $ac_cv_header_alloca_h = yes; then
1131
  cat >> confdefs.h <<\EOF
1132
#define HAVE_ALLOCA_H 1
1133
EOF
1134
 
1135
fi
1136
 
1137
echo $ac_n "checking for alloca""... $ac_c" 1>&6
1138
echo "configure:1139: checking for alloca" >&5
1139
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1140
  echo $ac_n "(cached) $ac_c" 1>&6
1141
else
1142
  cat > conftest.$ac_ext <
1143
#line 1144 "configure"
1144
#include "confdefs.h"
1145
 
1146
#ifdef __GNUC__
1147
# define alloca __builtin_alloca
1148
#else
1149
# ifdef _MSC_VER
1150
#  include 
1151
#  define alloca _alloca
1152
# else
1153
#  if HAVE_ALLOCA_H
1154
#   include 
1155
#  else
1156
#   ifdef _AIX
1157
 #pragma alloca
1158
#   else
1159
#    ifndef alloca /* predefined by HP cc +Olibcalls */
1160
char *alloca ();
1161
#    endif
1162
#   endif
1163
#  endif
1164
# endif
1165
#endif
1166
 
1167
int main() {
1168
char *p = (char *) alloca(1);
1169
; return 0; }
1170
EOF
1171
if { (eval echo configure:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1172
  rm -rf conftest*
1173
  ac_cv_func_alloca_works=yes
1174
else
1175
  echo "configure: failed program was:" >&5
1176
  cat conftest.$ac_ext >&5
1177
  rm -rf conftest*
1178
  ac_cv_func_alloca_works=no
1179
fi
1180
rm -f conftest*
1181
fi
1182
 
1183
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1184
if test $ac_cv_func_alloca_works = yes; then
1185
  cat >> confdefs.h <<\EOF
1186
#define HAVE_ALLOCA 1
1187
EOF
1188
 
1189
fi
1190
 
1191
if test $ac_cv_func_alloca_works = no; then
1192
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1193
  # that cause trouble.  Some versions do not even contain alloca or
1194
  # contain a buggy version.  If you still want to use their alloca,
1195
  # use ar to extract alloca.o from them instead of compiling alloca.c.
1196
  ALLOCA=alloca.${ac_objext}
1197
  cat >> confdefs.h <<\EOF
1198
#define C_ALLOCA 1
1199
EOF
1200
 
1201
 
1202
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1203
echo "configure:1204: checking whether alloca needs Cray hooks" >&5
1204
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1205
  echo $ac_n "(cached) $ac_c" 1>&6
1206
else
1207
  cat > conftest.$ac_ext <
1208
#line 1209 "configure"
1209
#include "confdefs.h"
1210
#if defined(CRAY) && ! defined(CRAY2)
1211
webecray
1212
#else
1213
wenotbecray
1214
#endif
1215
 
1216
EOF
1217
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1218
  egrep "webecray" >/dev/null 2>&1; then
1219
  rm -rf conftest*
1220
  ac_cv_os_cray=yes
1221
else
1222
  rm -rf conftest*
1223
  ac_cv_os_cray=no
1224
fi
1225
rm -f conftest*
1226
 
1227
fi
1228
 
1229
echo "$ac_t""$ac_cv_os_cray" 1>&6
1230
if test $ac_cv_os_cray = yes; then
1231
for ac_func in _getb67 GETB67 getb67; do
1232
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1233
echo "configure:1234: checking for $ac_func" >&5
1234
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1235
  echo $ac_n "(cached) $ac_c" 1>&6
1236
else
1237
  cat > conftest.$ac_ext <
1238
#line 1239 "configure"
1239
#include "confdefs.h"
1240
/* System header to define __stub macros and hopefully few prototypes,
1241
    which can conflict with char $ac_func(); below.  */
1242
#include 
1243
/* Override any gcc2 internal prototype to avoid an error.  */
1244
/* We use char because int might match the return type of a gcc2
1245
    builtin and then its argument prototype would still apply.  */
1246
char $ac_func();
1247
 
1248
int main() {
1249
 
1250
/* The GNU C library defines this for functions which it implements
1251
    to always fail with ENOSYS.  Some functions are actually named
1252
    something starting with __ and the normal name is an alias.  */
1253
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1254
choke me
1255
#else
1256
$ac_func();
1257
#endif
1258
 
1259
; return 0; }
1260
EOF
1261
if { (eval echo configure:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1262
  rm -rf conftest*
1263
  eval "ac_cv_func_$ac_func=yes"
1264
else
1265
  echo "configure: failed program was:" >&5
1266
  cat conftest.$ac_ext >&5
1267
  rm -rf conftest*
1268
  eval "ac_cv_func_$ac_func=no"
1269
fi
1270
rm -f conftest*
1271
fi
1272
 
1273
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1274
  echo "$ac_t""yes" 1>&6
1275
  cat >> confdefs.h <
1276
#define CRAY_STACKSEG_END $ac_func
1277
EOF
1278
 
1279
  break
1280
else
1281
  echo "$ac_t""no" 1>&6
1282
fi
1283
 
1284
done
1285
fi
1286
 
1287
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1288
echo "configure:1289: checking stack direction for C alloca" >&5
1289
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1290
  echo $ac_n "(cached) $ac_c" 1>&6
1291
else
1292
  if test "$cross_compiling" = yes; then
1293
  ac_cv_c_stack_direction=0
1294
else
1295
  cat > conftest.$ac_ext <
1296
#line 1297 "configure"
1297
#include "confdefs.h"
1298
find_stack_direction ()
1299
{
1300
  static char *addr = 0;
1301
  auto char dummy;
1302
  if (addr == 0)
1303
    {
1304
      addr = &dummy;
1305
      return find_stack_direction ();
1306
    }
1307
  else
1308
    return (&dummy > addr) ? 1 : -1;
1309
}
1310
main ()
1311
{
1312
  exit (find_stack_direction() < 0);
1313
}
1314
EOF
1315
if { (eval echo configure:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1316
then
1317
  ac_cv_c_stack_direction=1
1318
else
1319
  echo "configure: failed program was:" >&5
1320
  cat conftest.$ac_ext >&5
1321
  rm -fr conftest*
1322
  ac_cv_c_stack_direction=-1
1323
fi
1324
rm -fr conftest*
1325
fi
1326
 
1327
fi
1328
 
1329
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1330
cat >> confdefs.h <
1331
#define STACK_DIRECTION $ac_cv_c_stack_direction
1332
EOF
1333
 
1334
fi
1335
 
1336
for ac_hdr in unistd.h
1337
do
1338
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1339
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1340
echo "configure:1341: checking for $ac_hdr" >&5
1341
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1342
  echo $ac_n "(cached) $ac_c" 1>&6
1343
else
1344
  cat > conftest.$ac_ext <
1345
#line 1346 "configure"
1346
#include "confdefs.h"
1347
#include <$ac_hdr>
1348
EOF
1349
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1350
{ (eval echo configure:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1351
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1352
if test -z "$ac_err"; then
1353
  rm -rf conftest*
1354
  eval "ac_cv_header_$ac_safe=yes"
1355
else
1356
  echo "$ac_err" >&5
1357
  echo "configure: failed program was:" >&5
1358
  cat conftest.$ac_ext >&5
1359
  rm -rf conftest*
1360
  eval "ac_cv_header_$ac_safe=no"
1361
fi
1362
rm -f conftest*
1363
fi
1364
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1365
  echo "$ac_t""yes" 1>&6
1366
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1367
  cat >> confdefs.h <
1368
#define $ac_tr_hdr 1
1369
EOF
1370
 
1371
else
1372
  echo "$ac_t""no" 1>&6
1373
fi
1374
done
1375
 
1376
for ac_func in getpagesize
1377
do
1378
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1379
echo "configure:1380: checking for $ac_func" >&5
1380
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1381
  echo $ac_n "(cached) $ac_c" 1>&6
1382
else
1383
  cat > conftest.$ac_ext <
1384
#line 1385 "configure"
1385
#include "confdefs.h"
1386
/* System header to define __stub macros and hopefully few prototypes,
1387
    which can conflict with char $ac_func(); below.  */
1388
#include 
1389
/* Override any gcc2 internal prototype to avoid an error.  */
1390
/* We use char because int might match the return type of a gcc2
1391
    builtin and then its argument prototype would still apply.  */
1392
char $ac_func();
1393
 
1394
int main() {
1395
 
1396
/* The GNU C library defines this for functions which it implements
1397
    to always fail with ENOSYS.  Some functions are actually named
1398
    something starting with __ and the normal name is an alias.  */
1399
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1400
choke me
1401
#else
1402
$ac_func();
1403
#endif
1404
 
1405
; return 0; }
1406
EOF
1407
if { (eval echo configure:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1408
  rm -rf conftest*
1409
  eval "ac_cv_func_$ac_func=yes"
1410
else
1411
  echo "configure: failed program was:" >&5
1412
  cat conftest.$ac_ext >&5
1413
  rm -rf conftest*
1414
  eval "ac_cv_func_$ac_func=no"
1415
fi
1416
rm -f conftest*
1417
fi
1418
 
1419
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1420
  echo "$ac_t""yes" 1>&6
1421
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1422
  cat >> confdefs.h <
1423
#define $ac_tr_func 1
1424
EOF
1425
 
1426
else
1427
  echo "$ac_t""no" 1>&6
1428
fi
1429
done
1430
 
1431
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1432
echo "configure:1433: checking for working mmap" >&5
1433
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1434
  echo $ac_n "(cached) $ac_c" 1>&6
1435
else
1436
  if test "$cross_compiling" = yes; then
1437
  ac_cv_func_mmap_fixed_mapped=no
1438
else
1439
  cat > conftest.$ac_ext <
1440
#line 1441 "configure"
1441
#include "confdefs.h"
1442
 
1443
/* Thanks to Mike Haertel and Jim Avera for this test.
1444
   Here is a matrix of mmap possibilities:
1445
        mmap private not fixed
1446
        mmap private fixed at somewhere currently unmapped
1447
        mmap private fixed at somewhere already mapped
1448
        mmap shared not fixed
1449
        mmap shared fixed at somewhere currently unmapped
1450
        mmap shared fixed at somewhere already mapped
1451
   For private mappings, we should verify that changes cannot be read()
1452
   back from the file, nor mmap's back from the file at a different
1453
   address.  (There have been systems where private was not correctly
1454
   implemented like the infamous i386 svr4.0, and systems where the
1455
   VM page cache was not coherent with the filesystem buffer cache
1456
   like early versions of FreeBSD and possibly contemporary NetBSD.)
1457
   For shared mappings, we should conversely verify that changes get
1458
   propogated back to all the places they're supposed to be.
1459
 
1460
   Grep wants private fixed already mapped.
1461
   The main things grep needs to know about mmap are:
1462
   * does it exist and is it safe to write into the mmap'd area
1463
   * how to use it (BSD variants)  */
1464
#include 
1465
#include 
1466
#include 
1467
 
1468
/* This mess was copied from the GNU getpagesize.h.  */
1469
#ifndef HAVE_GETPAGESIZE
1470
# ifdef HAVE_UNISTD_H
1471
#  include 
1472
# endif
1473
 
1474
/* Assume that all systems that can run configure have sys/param.h.  */
1475
# ifndef HAVE_SYS_PARAM_H
1476
#  define HAVE_SYS_PARAM_H 1
1477
# endif
1478
 
1479
# ifdef _SC_PAGESIZE
1480
#  define getpagesize() sysconf(_SC_PAGESIZE)
1481
# else /* no _SC_PAGESIZE */
1482
#  ifdef HAVE_SYS_PARAM_H
1483
#   include 
1484
#   ifdef EXEC_PAGESIZE
1485
#    define getpagesize() EXEC_PAGESIZE
1486
#   else /* no EXEC_PAGESIZE */
1487
#    ifdef NBPG
1488
#     define getpagesize() NBPG * CLSIZE
1489
#     ifndef CLSIZE
1490
#      define CLSIZE 1
1491
#     endif /* no CLSIZE */
1492
#    else /* no NBPG */
1493
#     ifdef NBPC
1494
#      define getpagesize() NBPC
1495
#     else /* no NBPC */
1496
#      ifdef PAGESIZE
1497
#       define getpagesize() PAGESIZE
1498
#      endif /* PAGESIZE */
1499
#     endif /* no NBPC */
1500
#    endif /* no NBPG */
1501
#   endif /* no EXEC_PAGESIZE */
1502
#  else /* no HAVE_SYS_PARAM_H */
1503
#   define getpagesize() 8192   /* punt totally */
1504
#  endif /* no HAVE_SYS_PARAM_H */
1505
# endif /* no _SC_PAGESIZE */
1506
 
1507
#endif /* no HAVE_GETPAGESIZE */
1508
 
1509
#ifdef __cplusplus
1510
extern "C" { void *malloc(unsigned); }
1511
#else
1512
char *malloc();
1513
#endif
1514
 
1515
int
1516
main()
1517
{
1518
        char *data, *data2, *data3;
1519
        int i, pagesize;
1520
        int fd;
1521
 
1522
        pagesize = getpagesize();
1523
 
1524
        /*
1525
         * First, make a file with some known garbage in it.
1526
         */
1527
        data = malloc(pagesize);
1528
        if (!data)
1529
                exit(1);
1530
        for (i = 0; i < pagesize; ++i)
1531
                *(data + i) = rand();
1532
        umask(0);
1533
        fd = creat("conftestmmap", 0600);
1534
        if (fd < 0)
1535
                exit(1);
1536
        if (write(fd, data, pagesize) != pagesize)
1537
                exit(1);
1538
        close(fd);
1539
 
1540
        /*
1541
         * Next, try to mmap the file at a fixed address which
1542
         * already has something else allocated at it.  If we can,
1543
         * also make sure that we see the same garbage.
1544
         */
1545
        fd = open("conftestmmap", O_RDWR);
1546
        if (fd < 0)
1547
                exit(1);
1548
        data2 = malloc(2 * pagesize);
1549
        if (!data2)
1550
                exit(1);
1551
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1552
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1553
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
1554
                exit(1);
1555
        for (i = 0; i < pagesize; ++i)
1556
                if (*(data + i) != *(data2 + i))
1557
                        exit(1);
1558
 
1559
        /*
1560
         * Finally, make sure that changes to the mapped area
1561
         * do not percolate back to the file as seen by read().
1562
         * (This is a bug on some variants of i386 svr4.0.)
1563
         */
1564
        for (i = 0; i < pagesize; ++i)
1565
                *(data2 + i) = *(data2 + i) + 1;
1566
        data3 = malloc(pagesize);
1567
        if (!data3)
1568
                exit(1);
1569
        if (read(fd, data3, pagesize) != pagesize)
1570
                exit(1);
1571
        for (i = 0; i < pagesize; ++i)
1572
                if (*(data + i) != *(data3 + i))
1573
                        exit(1);
1574
        close(fd);
1575
        unlink("conftestmmap");
1576
        exit(0);
1577
}
1578
 
1579
EOF
1580
if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1581
then
1582
  ac_cv_func_mmap_fixed_mapped=yes
1583
else
1584
  echo "configure: failed program was:" >&5
1585
  cat conftest.$ac_ext >&5
1586
  rm -fr conftest*
1587
  ac_cv_func_mmap_fixed_mapped=no
1588
fi
1589
rm -fr conftest*
1590
fi
1591
 
1592
fi
1593
 
1594
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1595
if test $ac_cv_func_mmap_fixed_mapped = yes; then
1596
  cat >> confdefs.h <<\EOF
1597
#define HAVE_MMAP 1
1598
EOF
1599
 
1600
fi
1601
 
1602
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1603
echo "configure:1604: checking for Cygwin environment" >&5
1604
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1605
  echo $ac_n "(cached) $ac_c" 1>&6
1606
else
1607
  cat > conftest.$ac_ext <
1608
#line 1609 "configure"
1609
#include "confdefs.h"
1610
 
1611
int main() {
1612
 
1613
#ifndef __CYGWIN__
1614
#define __CYGWIN__ __CYGWIN32__
1615
#endif
1616
return __CYGWIN__;
1617
; return 0; }
1618
EOF
1619
if { (eval echo configure:1620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1620
  rm -rf conftest*
1621
  ac_cv_cygwin=yes
1622
else
1623
  echo "configure: failed program was:" >&5
1624
  cat conftest.$ac_ext >&5
1625
  rm -rf conftest*
1626
  ac_cv_cygwin=no
1627
fi
1628
rm -f conftest*
1629
rm -f conftest*
1630
fi
1631
 
1632
echo "$ac_t""$ac_cv_cygwin" 1>&6
1633
CYGWIN=
1634
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1635
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1636
echo "configure:1637: checking for mingw32 environment" >&5
1637
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1638
  echo $ac_n "(cached) $ac_c" 1>&6
1639
else
1640
  cat > conftest.$ac_ext <
1641
#line 1642 "configure"
1642
#include "confdefs.h"
1643
 
1644
int main() {
1645
return __MINGW32__;
1646
; return 0; }
1647
EOF
1648
if { (eval echo configure:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1649
  rm -rf conftest*
1650
  ac_cv_mingw32=yes
1651
else
1652
  echo "configure: failed program was:" >&5
1653
  cat conftest.$ac_ext >&5
1654
  rm -rf conftest*
1655
  ac_cv_mingw32=no
1656
fi
1657
rm -f conftest*
1658
rm -f conftest*
1659
fi
1660
 
1661
echo "$ac_t""$ac_cv_mingw32" 1>&6
1662
MINGW32=
1663
test "$ac_cv_mingw32" = yes && MINGW32=yes
1664
 
1665
# autoconf.info says this should be called right after AC_INIT.
1666
 
1667
 
1668
ac_aux_dir=
1669
for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1670
  if test -f $ac_dir/install-sh; then
1671
    ac_aux_dir=$ac_dir
1672
    ac_install_sh="$ac_aux_dir/install-sh -c"
1673
    break
1674
  elif test -f $ac_dir/install.sh; then
1675
    ac_aux_dir=$ac_dir
1676
    ac_install_sh="$ac_aux_dir/install.sh -c"
1677
    break
1678
  fi
1679
done
1680
if test -z "$ac_aux_dir"; then
1681
  { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1682
fi
1683
ac_config_guess=$ac_aux_dir/config.guess
1684
ac_config_sub=$ac_aux_dir/config.sub
1685
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1686
 
1687
 
1688
# Do some error checking and defaulting for the host and target type.
1689
# The inputs are:
1690
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
1691
#
1692
# The rules are:
1693
# 1. You are not allowed to specify --host, --target, and nonopt at the
1694
#    same time.
1695
# 2. Host defaults to nonopt.
1696
# 3. If nonopt is not specified, then host defaults to the current host,
1697
#    as determined by config.guess.
1698
# 4. Target and build default to nonopt.
1699
# 5. If nonopt is not specified, then target and build default to host.
1700
 
1701
# The aliases save the names the user supplied, while $host etc.
1702
# will get canonicalized.
1703
case $host---$target---$nonopt in
1704
NONE---*---* | *---NONE---* | *---*---NONE) ;;
1705
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1706
esac
1707
 
1708
 
1709
# Make sure we can run config.sub.
1710
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1711
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1712
fi
1713
 
1714
echo $ac_n "checking host system type""... $ac_c" 1>&6
1715
echo "configure:1716: checking host system type" >&5
1716
 
1717
host_alias=$host
1718
case "$host_alias" in
1719
NONE)
1720
  case $nonopt in
1721
  NONE)
1722
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1723
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1724
    fi ;;
1725
  *) host_alias=$nonopt ;;
1726
  esac ;;
1727
esac
1728
 
1729
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1730
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1731
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1732
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1733
echo "$ac_t""$host" 1>&6
1734
 
1735
echo $ac_n "checking target system type""... $ac_c" 1>&6
1736
echo "configure:1737: checking target system type" >&5
1737
 
1738
target_alias=$target
1739
case "$target_alias" in
1740
NONE)
1741
  case $nonopt in
1742
  NONE) target_alias=$host_alias ;;
1743
  *) target_alias=$nonopt ;;
1744
  esac ;;
1745
esac
1746
 
1747
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1748
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1749
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1750
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1751
echo "$ac_t""$target" 1>&6
1752
 
1753
echo $ac_n "checking build system type""... $ac_c" 1>&6
1754
echo "configure:1755: checking build system type" >&5
1755
 
1756
build_alias=$build
1757
case "$build_alias" in
1758
NONE)
1759
  case $nonopt in
1760
  NONE) build_alias=$host_alias ;;
1761
  *) build_alias=$nonopt ;;
1762
  esac ;;
1763
esac
1764
 
1765
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1766
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769
echo "$ac_t""$build" 1>&6
1770
 
1771
test "$host_alias" != "$target_alias" &&
1772
  test "$program_prefix$program_suffix$program_transform_name" = \
1773
    NONENONEs,x,x, &&
1774
  program_prefix=${target_alias}-
1775
 
1776
if test "$program_transform_name" = s,x,x,; then
1777
  program_transform_name=
1778
else
1779
  # Double any \ or $.  echo might interpret backslashes.
1780
  cat <<\EOF_SED > conftestsed
1781
s,\\,\\\\,g; s,\$,$$,g
1782
EOF_SED
1783
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1784
  rm -f conftestsed
1785
fi
1786
test "$program_prefix" != NONE &&
1787
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
1788
# Use a double $ so make ignores it.
1789
test "$program_suffix" != NONE &&
1790
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1791
 
1792
# sed with no file args requires a program.
1793
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1794
 
1795
# Extract the first word of "gcc", so it can be a program name with args.
1796
set dummy gcc; ac_word=$2
1797
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1798
echo "configure:1799: checking for $ac_word" >&5
1799
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1800
  echo $ac_n "(cached) $ac_c" 1>&6
1801
else
1802
  if test -n "$CC"; then
1803
  ac_cv_prog_CC="$CC" # Let the user override the test.
1804
else
1805
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1806
  ac_dummy="$PATH"
1807
  for ac_dir in $ac_dummy; do
1808
    test -z "$ac_dir" && ac_dir=.
1809
    if test -f $ac_dir/$ac_word; then
1810
      ac_cv_prog_CC="gcc"
1811
      break
1812
    fi
1813
  done
1814
  IFS="$ac_save_ifs"
1815
fi
1816
fi
1817
CC="$ac_cv_prog_CC"
1818
if test -n "$CC"; then
1819
  echo "$ac_t""$CC" 1>&6
1820
else
1821
  echo "$ac_t""no" 1>&6
1822
fi
1823
 
1824
if test -z "$CC"; then
1825
  # Extract the first word of "cc", so it can be a program name with args.
1826
set dummy cc; ac_word=$2
1827
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1828
echo "configure:1829: checking for $ac_word" >&5
1829
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1830
  echo $ac_n "(cached) $ac_c" 1>&6
1831
else
1832
  if test -n "$CC"; then
1833
  ac_cv_prog_CC="$CC" # Let the user override the test.
1834
else
1835
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1836
  ac_prog_rejected=no
1837
  ac_dummy="$PATH"
1838
  for ac_dir in $ac_dummy; do
1839
    test -z "$ac_dir" && ac_dir=.
1840
    if test -f $ac_dir/$ac_word; then
1841
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1842
        ac_prog_rejected=yes
1843
        continue
1844
      fi
1845
      ac_cv_prog_CC="cc"
1846
      break
1847
    fi
1848
  done
1849
  IFS="$ac_save_ifs"
1850
if test $ac_prog_rejected = yes; then
1851
  # We found a bogon in the path, so make sure we never use it.
1852
  set dummy $ac_cv_prog_CC
1853
  shift
1854
  if test $# -gt 0; then
1855
    # We chose a different compiler from the bogus one.
1856
    # However, it has the same basename, so the bogon will be chosen
1857
    # first if we set CC to just the basename; use the full file name.
1858
    shift
1859
    set dummy "$ac_dir/$ac_word" "$@"
1860
    shift
1861
    ac_cv_prog_CC="$@"
1862
  fi
1863
fi
1864
fi
1865
fi
1866
CC="$ac_cv_prog_CC"
1867
if test -n "$CC"; then
1868
  echo "$ac_t""$CC" 1>&6
1869
else
1870
  echo "$ac_t""no" 1>&6
1871
fi
1872
 
1873
  if test -z "$CC"; then
1874
    case "`uname -s`" in
1875
    *win32* | *WIN32*)
1876
      # Extract the first word of "cl", so it can be a program name with args.
1877
set dummy cl; ac_word=$2
1878
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1879
echo "configure:1880: checking for $ac_word" >&5
1880
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1881
  echo $ac_n "(cached) $ac_c" 1>&6
1882
else
1883
  if test -n "$CC"; then
1884
  ac_cv_prog_CC="$CC" # Let the user override the test.
1885
else
1886
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1887
  ac_dummy="$PATH"
1888
  for ac_dir in $ac_dummy; do
1889
    test -z "$ac_dir" && ac_dir=.
1890
    if test -f $ac_dir/$ac_word; then
1891
      ac_cv_prog_CC="cl"
1892
      break
1893
    fi
1894
  done
1895
  IFS="$ac_save_ifs"
1896
fi
1897
fi
1898
CC="$ac_cv_prog_CC"
1899
if test -n "$CC"; then
1900
  echo "$ac_t""$CC" 1>&6
1901
else
1902
  echo "$ac_t""no" 1>&6
1903
fi
1904
 ;;
1905
    esac
1906
  fi
1907
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1908
fi
1909
 
1910
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1911
echo "configure:1912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1912
 
1913
ac_ext=c
1914
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1915
ac_cpp='$CPP $CPPFLAGS'
1916
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1917
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1918
cross_compiling=$ac_cv_prog_cc_cross
1919
 
1920
cat > conftest.$ac_ext << EOF
1921
 
1922
#line 1923 "configure"
1923
#include "confdefs.h"
1924
 
1925
main(){return(0);}
1926
EOF
1927
if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1928
  ac_cv_prog_cc_works=yes
1929
  # If we can't run a trivial program, we are probably using a cross compiler.
1930
  if (./conftest; exit) 2>/dev/null; then
1931
    ac_cv_prog_cc_cross=no
1932
  else
1933
    ac_cv_prog_cc_cross=yes
1934
  fi
1935
else
1936
  echo "configure: failed program was:" >&5
1937
  cat conftest.$ac_ext >&5
1938
  ac_cv_prog_cc_works=no
1939
fi
1940
rm -fr conftest*
1941
ac_ext=c
1942
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1943
ac_cpp='$CPP $CPPFLAGS'
1944
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1945
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1946
cross_compiling=$ac_cv_prog_cc_cross
1947
 
1948
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1949
if test $ac_cv_prog_cc_works = no; then
1950
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1951
fi
1952
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1953
echo "configure:1954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1954
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1955
cross_compiling=$ac_cv_prog_cc_cross
1956
 
1957
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1958
echo "configure:1959: checking whether we are using GNU C" >&5
1959
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1960
  echo $ac_n "(cached) $ac_c" 1>&6
1961
else
1962
  cat > conftest.c <
1963
#ifdef __GNUC__
1964
  yes;
1965
#endif
1966
EOF
1967
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1968
  ac_cv_prog_gcc=yes
1969
else
1970
  ac_cv_prog_gcc=no
1971
fi
1972
fi
1973
 
1974
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1975
 
1976
if test $ac_cv_prog_gcc = yes; then
1977
  GCC=yes
1978
else
1979
  GCC=
1980
fi
1981
 
1982
ac_test_CFLAGS="${CFLAGS+set}"
1983
ac_save_CFLAGS="$CFLAGS"
1984
CFLAGS=
1985
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1986
echo "configure:1987: checking whether ${CC-cc} accepts -g" >&5
1987
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1988
  echo $ac_n "(cached) $ac_c" 1>&6
1989
else
1990
  echo 'void f(){}' > conftest.c
1991
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1992
  ac_cv_prog_cc_g=yes
1993
else
1994
  ac_cv_prog_cc_g=no
1995
fi
1996
rm -f conftest*
1997
 
1998
fi
1999
 
2000
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2001
if test "$ac_test_CFLAGS" = set; then
2002
  CFLAGS="$ac_save_CFLAGS"
2003
elif test $ac_cv_prog_cc_g = yes; then
2004
  if test "$GCC" = yes; then
2005
    CFLAGS="-g -O2"
2006
  else
2007
    CFLAGS="-g"
2008
  fi
2009
else
2010
  if test "$GCC" = yes; then
2011
    CFLAGS="-O2"
2012
  else
2013
    CFLAGS=
2014
  fi
2015
fi
2016
 
2017
# Find a good install program.  We prefer a C program (faster),
2018
# so one script is as good as another.  But avoid the broken or
2019
# incompatible versions:
2020
# SysV /etc/install, /usr/sbin/install
2021
# SunOS /usr/etc/install
2022
# IRIX /sbin/install
2023
# AIX /bin/install
2024
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2025
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2026
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2027
# ./install, which can be erroneously created by make from ./install.sh.
2028
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2029
echo "configure:2030: checking for a BSD compatible install" >&5
2030
if test -z "$INSTALL"; then
2031
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2032
  echo $ac_n "(cached) $ac_c" 1>&6
2033
else
2034
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
2035
  for ac_dir in $PATH; do
2036
    # Account for people who put trailing slashes in PATH elements.
2037
    case "$ac_dir/" in
2038
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2039
    *)
2040
      # OSF1 and SCO ODT 3.0 have their own names for install.
2041
      # Don't use installbsd from OSF since it installs stuff as root
2042
      # by default.
2043
      for ac_prog in ginstall scoinst install; do
2044
        if test -f $ac_dir/$ac_prog; then
2045
          if test $ac_prog = install &&
2046
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2047
            # AIX install.  It has an incompatible calling convention.
2048
            :
2049
          else
2050
            ac_cv_path_install="$ac_dir/$ac_prog -c"
2051
            break 2
2052
          fi
2053
        fi
2054
      done
2055
      ;;
2056
    esac
2057
  done
2058
  IFS="$ac_save_IFS"
2059
 
2060
fi
2061
  if test "${ac_cv_path_install+set}" = set; then
2062
    INSTALL="$ac_cv_path_install"
2063
  else
2064
    # As a last resort, use the slow shell script.  We don't cache a
2065
    # path for INSTALL within a source directory, because that will
2066
    # break other packages using the cache if that directory is
2067
    # removed, or if the path is relative.
2068
    INSTALL="$ac_install_sh"
2069
  fi
2070
fi
2071
echo "$ac_t""$INSTALL" 1>&6
2072
 
2073
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2074
# It thinks the first close brace ends the variable substitution.
2075
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2076
 
2077
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2078
 
2079
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2080
 
2081
 
2082
# Put a plausible default for CC_FOR_BUILD in Makefile.
2083
if test "x$cross_compiling" = "xno"; then
2084
  CC_FOR_BUILD='$(CC)'
2085
else
2086
  CC_FOR_BUILD=gcc
2087
fi
2088
 
2089
 
2090
 
2091
 
2092
AR=${AR-ar}
2093
 
2094
# Extract the first word of "ranlib", so it can be a program name with args.
2095
set dummy ranlib; ac_word=$2
2096
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2097
echo "configure:2098: checking for $ac_word" >&5
2098
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2099
  echo $ac_n "(cached) $ac_c" 1>&6
2100
else
2101
  if test -n "$RANLIB"; then
2102
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2103
else
2104
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2105
  ac_dummy="$PATH"
2106
  for ac_dir in $ac_dummy; do
2107
    test -z "$ac_dir" && ac_dir=.
2108
    if test -f $ac_dir/$ac_word; then
2109
      ac_cv_prog_RANLIB="ranlib"
2110
      break
2111
    fi
2112
  done
2113
  IFS="$ac_save_ifs"
2114
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2115
fi
2116
fi
2117
RANLIB="$ac_cv_prog_RANLIB"
2118
if test -n "$RANLIB"; then
2119
  echo "$ac_t""$RANLIB" 1>&6
2120
else
2121
  echo "$ac_t""no" 1>&6
2122
fi
2123
 
2124
 
2125
ALL_LINGUAS=
2126
 
2127
   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2128
unistd.h values.h sys/param.h
2129
do
2130
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2131
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2132
echo "configure:2133: checking for $ac_hdr" >&5
2133
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2134
  echo $ac_n "(cached) $ac_c" 1>&6
2135
else
2136
  cat > conftest.$ac_ext <
2137
#line 2138 "configure"
2138
#include "confdefs.h"
2139
#include <$ac_hdr>
2140
EOF
2141
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2142
{ (eval echo configure:2143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2143
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2144
if test -z "$ac_err"; then
2145
  rm -rf conftest*
2146
  eval "ac_cv_header_$ac_safe=yes"
2147
else
2148
  echo "$ac_err" >&5
2149
  echo "configure: failed program was:" >&5
2150
  cat conftest.$ac_ext >&5
2151
  rm -rf conftest*
2152
  eval "ac_cv_header_$ac_safe=no"
2153
fi
2154
rm -f conftest*
2155
fi
2156
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2157
  echo "$ac_t""yes" 1>&6
2158
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2159
  cat >> confdefs.h <
2160
#define $ac_tr_hdr 1
2161
EOF
2162
 
2163
else
2164
  echo "$ac_t""no" 1>&6
2165
fi
2166
done
2167
 
2168
   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2169
__argz_count __argz_stringify __argz_next
2170
do
2171
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2172
echo "configure:2173: checking for $ac_func" >&5
2173
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2174
  echo $ac_n "(cached) $ac_c" 1>&6
2175
else
2176
  cat > conftest.$ac_ext <
2177
#line 2178 "configure"
2178
#include "confdefs.h"
2179
/* System header to define __stub macros and hopefully few prototypes,
2180
    which can conflict with char $ac_func(); below.  */
2181
#include 
2182
/* Override any gcc2 internal prototype to avoid an error.  */
2183
/* We use char because int might match the return type of a gcc2
2184
    builtin and then its argument prototype would still apply.  */
2185
char $ac_func();
2186
 
2187
int main() {
2188
 
2189
/* The GNU C library defines this for functions which it implements
2190
    to always fail with ENOSYS.  Some functions are actually named
2191
    something starting with __ and the normal name is an alias.  */
2192
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2193
choke me
2194
#else
2195
$ac_func();
2196
#endif
2197
 
2198
; return 0; }
2199
EOF
2200
if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2201
  rm -rf conftest*
2202
  eval "ac_cv_func_$ac_func=yes"
2203
else
2204
  echo "configure: failed program was:" >&5
2205
  cat conftest.$ac_ext >&5
2206
  rm -rf conftest*
2207
  eval "ac_cv_func_$ac_func=no"
2208
fi
2209
rm -f conftest*
2210
fi
2211
 
2212
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2213
  echo "$ac_t""yes" 1>&6
2214
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2215
  cat >> confdefs.h <
2216
#define $ac_tr_func 1
2217
EOF
2218
 
2219
else
2220
  echo "$ac_t""no" 1>&6
2221
fi
2222
done
2223
 
2224
 
2225
   if test "${ac_cv_func_stpcpy+set}" != "set"; then
2226
     for ac_func in stpcpy
2227
do
2228
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2229
echo "configure:2230: checking for $ac_func" >&5
2230
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2231
  echo $ac_n "(cached) $ac_c" 1>&6
2232
else
2233
  cat > conftest.$ac_ext <
2234
#line 2235 "configure"
2235
#include "confdefs.h"
2236
/* System header to define __stub macros and hopefully few prototypes,
2237
    which can conflict with char $ac_func(); below.  */
2238
#include 
2239
/* Override any gcc2 internal prototype to avoid an error.  */
2240
/* We use char because int might match the return type of a gcc2
2241
    builtin and then its argument prototype would still apply.  */
2242
char $ac_func();
2243
 
2244
int main() {
2245
 
2246
/* The GNU C library defines this for functions which it implements
2247
    to always fail with ENOSYS.  Some functions are actually named
2248
    something starting with __ and the normal name is an alias.  */
2249
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2250
choke me
2251
#else
2252
$ac_func();
2253
#endif
2254
 
2255
; return 0; }
2256
EOF
2257
if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2258
  rm -rf conftest*
2259
  eval "ac_cv_func_$ac_func=yes"
2260
else
2261
  echo "configure: failed program was:" >&5
2262
  cat conftest.$ac_ext >&5
2263
  rm -rf conftest*
2264
  eval "ac_cv_func_$ac_func=no"
2265
fi
2266
rm -f conftest*
2267
fi
2268
 
2269
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2270
  echo "$ac_t""yes" 1>&6
2271
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2272
  cat >> confdefs.h <
2273
#define $ac_tr_func 1
2274
EOF
2275
 
2276
else
2277
  echo "$ac_t""no" 1>&6
2278
fi
2279
done
2280
 
2281
   fi
2282
   if test "${ac_cv_func_stpcpy}" = "yes"; then
2283
     cat >> confdefs.h <<\EOF
2284
#define HAVE_STPCPY 1
2285
EOF
2286
 
2287
   fi
2288
 
2289
   if test $ac_cv_header_locale_h = yes; then
2290
    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2291
echo "configure:2292: checking for LC_MESSAGES" >&5
2292
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2293
  echo $ac_n "(cached) $ac_c" 1>&6
2294
else
2295
  cat > conftest.$ac_ext <
2296
#line 2297 "configure"
2297
#include "confdefs.h"
2298
#include 
2299
int main() {
2300
return LC_MESSAGES
2301
; return 0; }
2302
EOF
2303
if { (eval echo configure:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2304
  rm -rf conftest*
2305
  am_cv_val_LC_MESSAGES=yes
2306
else
2307
  echo "configure: failed program was:" >&5
2308
  cat conftest.$ac_ext >&5
2309
  rm -rf conftest*
2310
  am_cv_val_LC_MESSAGES=no
2311
fi
2312
rm -f conftest*
2313
fi
2314
 
2315
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2316
    if test $am_cv_val_LC_MESSAGES = yes; then
2317
      cat >> confdefs.h <<\EOF
2318
#define HAVE_LC_MESSAGES 1
2319
EOF
2320
 
2321
    fi
2322
  fi
2323
   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2324
echo "configure:2325: checking whether NLS is requested" >&5
2325
        # Check whether --enable-nls or --disable-nls was given.
2326
if test "${enable_nls+set}" = set; then
2327
  enableval="$enable_nls"
2328
  USE_NLS=$enableval
2329
else
2330
  USE_NLS=yes
2331
fi
2332
 
2333
    echo "$ac_t""$USE_NLS" 1>&6
2334
 
2335
 
2336
    USE_INCLUDED_LIBINTL=no
2337
 
2338
        if test "$USE_NLS" = "yes"; then
2339
      cat >> confdefs.h <<\EOF
2340
#define ENABLE_NLS 1
2341
EOF
2342
 
2343
      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2344
echo "configure:2345: checking whether included gettext is requested" >&5
2345
      # Check whether --with-included-gettext or --without-included-gettext was given.
2346
if test "${with_included_gettext+set}" = set; then
2347
  withval="$with_included_gettext"
2348
  nls_cv_force_use_gnu_gettext=$withval
2349
else
2350
  nls_cv_force_use_gnu_gettext=no
2351
fi
2352
 
2353
      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2354
 
2355
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2356
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2357
                                        nls_cv_header_intl=
2358
        nls_cv_header_libgt=
2359
        CATOBJEXT=NONE
2360
 
2361
        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2362
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2363
echo "configure:2364: checking for libintl.h" >&5
2364
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2365
  echo $ac_n "(cached) $ac_c" 1>&6
2366
else
2367
  cat > conftest.$ac_ext <
2368
#line 2369 "configure"
2369
#include "confdefs.h"
2370
#include 
2371
EOF
2372
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2373
{ (eval echo configure:2374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2374
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2375
if test -z "$ac_err"; then
2376
  rm -rf conftest*
2377
  eval "ac_cv_header_$ac_safe=yes"
2378
else
2379
  echo "$ac_err" >&5
2380
  echo "configure: failed program was:" >&5
2381
  cat conftest.$ac_ext >&5
2382
  rm -rf conftest*
2383
  eval "ac_cv_header_$ac_safe=no"
2384
fi
2385
rm -f conftest*
2386
fi
2387
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2388
  echo "$ac_t""yes" 1>&6
2389
  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2390
echo "configure:2391: checking for gettext in libc" >&5
2391
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2392
  echo $ac_n "(cached) $ac_c" 1>&6
2393
else
2394
  cat > conftest.$ac_ext <
2395
#line 2396 "configure"
2396
#include "confdefs.h"
2397
#include 
2398
int main() {
2399
return (int) gettext ("")
2400
; return 0; }
2401
EOF
2402
if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2403
  rm -rf conftest*
2404
  gt_cv_func_gettext_libc=yes
2405
else
2406
  echo "configure: failed program was:" >&5
2407
  cat conftest.$ac_ext >&5
2408
  rm -rf conftest*
2409
  gt_cv_func_gettext_libc=no
2410
fi
2411
rm -f conftest*
2412
fi
2413
 
2414
echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2415
 
2416
           if test "$gt_cv_func_gettext_libc" != "yes"; then
2417
             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2418
echo "configure:2419: checking for bindtextdomain in -lintl" >&5
2419
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2420
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2421
  echo $ac_n "(cached) $ac_c" 1>&6
2422
else
2423
  ac_save_LIBS="$LIBS"
2424
LIBS="-lintl  $LIBS"
2425
cat > conftest.$ac_ext <
2426
#line 2427 "configure"
2427
#include "confdefs.h"
2428
/* Override any gcc2 internal prototype to avoid an error.  */
2429
/* We use char because int might match the return type of a gcc2
2430
    builtin and then its argument prototype would still apply.  */
2431
char bindtextdomain();
2432
 
2433
int main() {
2434
bindtextdomain()
2435
; return 0; }
2436
EOF
2437
if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2438
  rm -rf conftest*
2439
  eval "ac_cv_lib_$ac_lib_var=yes"
2440
else
2441
  echo "configure: failed program was:" >&5
2442
  cat conftest.$ac_ext >&5
2443
  rm -rf conftest*
2444
  eval "ac_cv_lib_$ac_lib_var=no"
2445
fi
2446
rm -f conftest*
2447
LIBS="$ac_save_LIBS"
2448
 
2449
fi
2450
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2451
  echo "$ac_t""yes" 1>&6
2452
  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2453
echo "configure:2454: checking for gettext in libintl" >&5
2454
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2455
  echo $ac_n "(cached) $ac_c" 1>&6
2456
else
2457
  cat > conftest.$ac_ext <
2458
#line 2459 "configure"
2459
#include "confdefs.h"
2460
 
2461
int main() {
2462
return (int) gettext ("")
2463
; return 0; }
2464
EOF
2465
if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2466
  rm -rf conftest*
2467
  gt_cv_func_gettext_libintl=yes
2468
else
2469
  echo "configure: failed program was:" >&5
2470
  cat conftest.$ac_ext >&5
2471
  rm -rf conftest*
2472
  gt_cv_func_gettext_libintl=no
2473
fi
2474
rm -f conftest*
2475
fi
2476
 
2477
echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2478
else
2479
  echo "$ac_t""no" 1>&6
2480
fi
2481
 
2482
           fi
2483
 
2484
           if test "$gt_cv_func_gettext_libc" = "yes" \
2485
              || test "$gt_cv_func_gettext_libintl" = "yes"; then
2486
              cat >> confdefs.h <<\EOF
2487
#define HAVE_GETTEXT 1
2488
EOF
2489
 
2490
              # Extract the first word of "msgfmt", so it can be a program name with args.
2491
set dummy msgfmt; ac_word=$2
2492
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2493
echo "configure:2494: checking for $ac_word" >&5
2494
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2495
  echo $ac_n "(cached) $ac_c" 1>&6
2496
else
2497
  case "$MSGFMT" in
2498
  /*)
2499
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2500
  ;;
2501
  *)
2502
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2503
  for ac_dir in $PATH; do
2504
    test -z "$ac_dir" && ac_dir=.
2505
    if test -f $ac_dir/$ac_word; then
2506
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2507
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2508
        break
2509
      fi
2510
    fi
2511
  done
2512
  IFS="$ac_save_ifs"
2513
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2514
  ;;
2515
esac
2516
fi
2517
MSGFMT="$ac_cv_path_MSGFMT"
2518
if test -n "$MSGFMT"; then
2519
  echo "$ac_t""$MSGFMT" 1>&6
2520
else
2521
  echo "$ac_t""no" 1>&6
2522
fi
2523
              if test "$MSGFMT" != "no"; then
2524
                for ac_func in dcgettext
2525
do
2526
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2527
echo "configure:2528: checking for $ac_func" >&5
2528
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2529
  echo $ac_n "(cached) $ac_c" 1>&6
2530
else
2531
  cat > conftest.$ac_ext <
2532
#line 2533 "configure"
2533
#include "confdefs.h"
2534
/* System header to define __stub macros and hopefully few prototypes,
2535
    which can conflict with char $ac_func(); below.  */
2536
#include 
2537
/* Override any gcc2 internal prototype to avoid an error.  */
2538
/* We use char because int might match the return type of a gcc2
2539
    builtin and then its argument prototype would still apply.  */
2540
char $ac_func();
2541
 
2542
int main() {
2543
 
2544
/* The GNU C library defines this for functions which it implements
2545
    to always fail with ENOSYS.  Some functions are actually named
2546
    something starting with __ and the normal name is an alias.  */
2547
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2548
choke me
2549
#else
2550
$ac_func();
2551
#endif
2552
 
2553
; return 0; }
2554
EOF
2555
if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2556
  rm -rf conftest*
2557
  eval "ac_cv_func_$ac_func=yes"
2558
else
2559
  echo "configure: failed program was:" >&5
2560
  cat conftest.$ac_ext >&5
2561
  rm -rf conftest*
2562
  eval "ac_cv_func_$ac_func=no"
2563
fi
2564
rm -f conftest*
2565
fi
2566
 
2567
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2568
  echo "$ac_t""yes" 1>&6
2569
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2570
  cat >> confdefs.h <
2571
#define $ac_tr_func 1
2572
EOF
2573
 
2574
else
2575
  echo "$ac_t""no" 1>&6
2576
fi
2577
done
2578
 
2579
                # Extract the first word of "gmsgfmt", so it can be a program name with args.
2580
set dummy gmsgfmt; ac_word=$2
2581
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2582
echo "configure:2583: checking for $ac_word" >&5
2583
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2584
  echo $ac_n "(cached) $ac_c" 1>&6
2585
else
2586
  case "$GMSGFMT" in
2587
  /*)
2588
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2589
  ;;
2590
  ?:/*)
2591
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2592
  ;;
2593
  *)
2594
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2595
  ac_dummy="$PATH"
2596
  for ac_dir in $ac_dummy; do
2597
    test -z "$ac_dir" && ac_dir=.
2598
    if test -f $ac_dir/$ac_word; then
2599
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2600
      break
2601
    fi
2602
  done
2603
  IFS="$ac_save_ifs"
2604
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2605
  ;;
2606
esac
2607
fi
2608
GMSGFMT="$ac_cv_path_GMSGFMT"
2609
if test -n "$GMSGFMT"; then
2610
  echo "$ac_t""$GMSGFMT" 1>&6
2611
else
2612
  echo "$ac_t""no" 1>&6
2613
fi
2614
 
2615
                # Extract the first word of "xgettext", so it can be a program name with args.
2616
set dummy xgettext; ac_word=$2
2617
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2618
echo "configure:2619: checking for $ac_word" >&5
2619
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2620
  echo $ac_n "(cached) $ac_c" 1>&6
2621
else
2622
  case "$XGETTEXT" in
2623
  /*)
2624
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2625
  ;;
2626
  *)
2627
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2628
  for ac_dir in $PATH; do
2629
    test -z "$ac_dir" && ac_dir=.
2630
    if test -f $ac_dir/$ac_word; then
2631
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2632
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2633
        break
2634
      fi
2635
    fi
2636
  done
2637
  IFS="$ac_save_ifs"
2638
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2639
  ;;
2640
esac
2641
fi
2642
XGETTEXT="$ac_cv_path_XGETTEXT"
2643
if test -n "$XGETTEXT"; then
2644
  echo "$ac_t""$XGETTEXT" 1>&6
2645
else
2646
  echo "$ac_t""no" 1>&6
2647
fi
2648
 
2649
                cat > conftest.$ac_ext <
2650
#line 2651 "configure"
2651
#include "confdefs.h"
2652
 
2653
int main() {
2654
extern int _nl_msg_cat_cntr;
2655
                               return _nl_msg_cat_cntr
2656
; return 0; }
2657
EOF
2658
if { (eval echo configure:2659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2659
  rm -rf conftest*
2660
  CATOBJEXT=.gmo
2661
                   DATADIRNAME=share
2662
else
2663
  echo "configure: failed program was:" >&5
2664
  cat conftest.$ac_ext >&5
2665
  rm -rf conftest*
2666
  CATOBJEXT=.mo
2667
                   DATADIRNAME=lib
2668
fi
2669
rm -f conftest*
2670
                INSTOBJEXT=.mo
2671
              fi
2672
            fi
2673
 
2674
else
2675
  echo "$ac_t""no" 1>&6
2676
fi
2677
 
2678
 
2679
 
2680
        if test "$CATOBJEXT" = "NONE"; then
2681
                          nls_cv_use_gnu_gettext=yes
2682
        fi
2683
      fi
2684
 
2685
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
2686
                INTLOBJS="\$(GETTOBJS)"
2687
        # Extract the first word of "msgfmt", so it can be a program name with args.
2688
set dummy msgfmt; ac_word=$2
2689
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2690
echo "configure:2691: checking for $ac_word" >&5
2691
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2692
  echo $ac_n "(cached) $ac_c" 1>&6
2693
else
2694
  case "$MSGFMT" in
2695
  /*)
2696
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2697
  ;;
2698
  *)
2699
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2700
  for ac_dir in $PATH; do
2701
    test -z "$ac_dir" && ac_dir=.
2702
    if test -f $ac_dir/$ac_word; then
2703
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2704
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2705
        break
2706
      fi
2707
    fi
2708
  done
2709
  IFS="$ac_save_ifs"
2710
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2711
  ;;
2712
esac
2713
fi
2714
MSGFMT="$ac_cv_path_MSGFMT"
2715
if test -n "$MSGFMT"; then
2716
  echo "$ac_t""$MSGFMT" 1>&6
2717
else
2718
  echo "$ac_t""no" 1>&6
2719
fi
2720
 
2721
        # Extract the first word of "gmsgfmt", so it can be a program name with args.
2722
set dummy gmsgfmt; ac_word=$2
2723
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2724
echo "configure:2725: checking for $ac_word" >&5
2725
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2726
  echo $ac_n "(cached) $ac_c" 1>&6
2727
else
2728
  case "$GMSGFMT" in
2729
  /*)
2730
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2731
  ;;
2732
  ?:/*)
2733
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2734
  ;;
2735
  *)
2736
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2737
  ac_dummy="$PATH"
2738
  for ac_dir in $ac_dummy; do
2739
    test -z "$ac_dir" && ac_dir=.
2740
    if test -f $ac_dir/$ac_word; then
2741
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2742
      break
2743
    fi
2744
  done
2745
  IFS="$ac_save_ifs"
2746
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2747
  ;;
2748
esac
2749
fi
2750
GMSGFMT="$ac_cv_path_GMSGFMT"
2751
if test -n "$GMSGFMT"; then
2752
  echo "$ac_t""$GMSGFMT" 1>&6
2753
else
2754
  echo "$ac_t""no" 1>&6
2755
fi
2756
 
2757
        # Extract the first word of "xgettext", so it can be a program name with args.
2758
set dummy xgettext; ac_word=$2
2759
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2760
echo "configure:2761: checking for $ac_word" >&5
2761
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2762
  echo $ac_n "(cached) $ac_c" 1>&6
2763
else
2764
  case "$XGETTEXT" in
2765
  /*)
2766
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2767
  ;;
2768
  *)
2769
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2770
  for ac_dir in $PATH; do
2771
    test -z "$ac_dir" && ac_dir=.
2772
    if test -f $ac_dir/$ac_word; then
2773
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2774
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2775
        break
2776
      fi
2777
    fi
2778
  done
2779
  IFS="$ac_save_ifs"
2780
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2781
  ;;
2782
esac
2783
fi
2784
XGETTEXT="$ac_cv_path_XGETTEXT"
2785
if test -n "$XGETTEXT"; then
2786
  echo "$ac_t""$XGETTEXT" 1>&6
2787
else
2788
  echo "$ac_t""no" 1>&6
2789
fi
2790
 
2791
 
2792
        USE_INCLUDED_LIBINTL=yes
2793
        CATOBJEXT=.gmo
2794
        INSTOBJEXT=.mo
2795
        DATADIRNAME=share
2796
        INTLDEPS='$(top_builddir)/../intl/libintl.a'
2797
        INTLLIBS=$INTLDEPS
2798
        LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2799
        nls_cv_header_intl=libintl.h
2800
        nls_cv_header_libgt=libgettext.h
2801
      fi
2802
 
2803
            if test "$XGETTEXT" != ":"; then
2804
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2805
          : ;
2806
        else
2807
          echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2808
          XGETTEXT=":"
2809
        fi
2810
      fi
2811
 
2812
      # We need to process the po/ directory.
2813
      POSUB=po
2814
    else
2815
      DATADIRNAME=share
2816
      nls_cv_header_intl=libintl.h
2817
      nls_cv_header_libgt=libgettext.h
2818
    fi
2819
 
2820
    # If this is used in GNU gettext we have to set USE_NLS to `yes'
2821
    # because some of the sources are only built for this goal.
2822
    if test "$PACKAGE" = gettext; then
2823
      USE_NLS=yes
2824
      USE_INCLUDED_LIBINTL=yes
2825
    fi
2826
 
2827
                for lang in $ALL_LINGUAS; do
2828
      GMOFILES="$GMOFILES $lang.gmo"
2829
      POFILES="$POFILES $lang.po"
2830
    done
2831
 
2832
 
2833
 
2834
 
2835
 
2836
 
2837
 
2838
 
2839
 
2840
 
2841
 
2842
 
2843
 
2844
 
2845
   if test "x$CATOBJEXT" != "x"; then
2846
     if test "x$ALL_LINGUAS" = "x"; then
2847
       LINGUAS=
2848
     else
2849
       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2850
echo "configure:2851: checking for catalogs to be installed" >&5
2851
       NEW_LINGUAS=
2852
       for lang in ${LINGUAS=$ALL_LINGUAS}; do
2853
         case "$ALL_LINGUAS" in
2854
          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2855
         esac
2856
       done
2857
       LINGUAS=$NEW_LINGUAS
2858
       echo "$ac_t""$LINGUAS" 1>&6
2859
     fi
2860
 
2861
          if test -n "$LINGUAS"; then
2862
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2863
     fi
2864
   fi
2865
 
2866
            if test $ac_cv_header_locale_h = yes; then
2867
     INCLUDE_LOCALE_H="#include "
2868
   else
2869
     INCLUDE_LOCALE_H="\
2870
/* The system does not provide the header .  Take care yourself.  */"
2871
   fi
2872
 
2873
 
2874
            if test -f $srcdir/po2tbl.sed.in; then
2875
      if test "$CATOBJEXT" = ".cat"; then
2876
         ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2877
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2878
echo "configure:2879: checking for linux/version.h" >&5
2879
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2880
  echo $ac_n "(cached) $ac_c" 1>&6
2881
else
2882
  cat > conftest.$ac_ext <
2883
#line 2884 "configure"
2884
#include "confdefs.h"
2885
#include 
2886
EOF
2887
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2888
{ (eval echo configure:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2889
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2890
if test -z "$ac_err"; then
2891
  rm -rf conftest*
2892
  eval "ac_cv_header_$ac_safe=yes"
2893
else
2894
  echo "$ac_err" >&5
2895
  echo "configure: failed program was:" >&5
2896
  cat conftest.$ac_ext >&5
2897
  rm -rf conftest*
2898
  eval "ac_cv_header_$ac_safe=no"
2899
fi
2900
rm -f conftest*
2901
fi
2902
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2903
  echo "$ac_t""yes" 1>&6
2904
  msgformat=linux
2905
else
2906
  echo "$ac_t""no" 1>&6
2907
msgformat=xopen
2908
fi
2909
 
2910
 
2911
                         sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2912
      fi
2913
            sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2914
         $srcdir/po2tbl.sed.in > po2tbl.sed
2915
   fi
2916
 
2917
            if test "$PACKAGE" = "gettext"; then
2918
     GT_NO="#NO#"
2919
     GT_YES=
2920
   else
2921
     GT_NO=
2922
     GT_YES="#YES#"
2923
   fi
2924
 
2925
 
2926
 
2927
   MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2928
 
2929
 
2930
      l=
2931
 
2932
 
2933
            if test -d $srcdir/po; then
2934
      test -d po || mkdir po
2935
      if test "x$srcdir" != "x."; then
2936
         if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2937
            posrcprefix="$srcdir/"
2938
         else
2939
            posrcprefix="../$srcdir/"
2940
         fi
2941
      else
2942
         posrcprefix="../"
2943
      fi
2944
      rm -f po/POTFILES
2945
      sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2946
         < $srcdir/po/POTFILES.in > po/POTFILES
2947
   fi
2948
 
2949
 
2950
# Check for common headers.
2951
# FIXME: Seems to me this can cause problems for i386-windows hosts.
2952
# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2953
for ac_hdr in stdlib.h string.h strings.h unistd.h time.h
2954
do
2955
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2956
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2957
echo "configure:2958: checking for $ac_hdr" >&5
2958
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2959
  echo $ac_n "(cached) $ac_c" 1>&6
2960
else
2961
  cat > conftest.$ac_ext <
2962
#line 2963 "configure"
2963
#include "confdefs.h"
2964
#include <$ac_hdr>
2965
EOF
2966
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2967
{ (eval echo configure:2968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2968
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2969
if test -z "$ac_err"; then
2970
  rm -rf conftest*
2971
  eval "ac_cv_header_$ac_safe=yes"
2972
else
2973
  echo "$ac_err" >&5
2974
  echo "configure: failed program was:" >&5
2975
  cat conftest.$ac_ext >&5
2976
  rm -rf conftest*
2977
  eval "ac_cv_header_$ac_safe=no"
2978
fi
2979
rm -f conftest*
2980
fi
2981
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2982
  echo "$ac_t""yes" 1>&6
2983
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2984
  cat >> confdefs.h <
2985
#define $ac_tr_hdr 1
2986
EOF
2987
 
2988
else
2989
  echo "$ac_t""no" 1>&6
2990
fi
2991
done
2992
 
2993
for ac_hdr in sys/time.h sys/resource.h
2994
do
2995
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2996
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2997
echo "configure:2998: checking for $ac_hdr" >&5
2998
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2999
  echo $ac_n "(cached) $ac_c" 1>&6
3000
else
3001
  cat > conftest.$ac_ext <
3002
#line 3003 "configure"
3003
#include "confdefs.h"
3004
#include <$ac_hdr>
3005
EOF
3006
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3007
{ (eval echo configure:3008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3008
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3009
if test -z "$ac_err"; then
3010
  rm -rf conftest*
3011
  eval "ac_cv_header_$ac_safe=yes"
3012
else
3013
  echo "$ac_err" >&5
3014
  echo "configure: failed program was:" >&5
3015
  cat conftest.$ac_ext >&5
3016
  rm -rf conftest*
3017
  eval "ac_cv_header_$ac_safe=no"
3018
fi
3019
rm -f conftest*
3020
fi
3021
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3022
  echo "$ac_t""yes" 1>&6
3023
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3024
  cat >> confdefs.h <
3025
#define $ac_tr_hdr 1
3026
EOF
3027
 
3028
else
3029
  echo "$ac_t""no" 1>&6
3030
fi
3031
done
3032
 
3033
for ac_hdr in fcntl.h fpu_control.h
3034
do
3035
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3036
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3037
echo "configure:3038: checking for $ac_hdr" >&5
3038
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3039
  echo $ac_n "(cached) $ac_c" 1>&6
3040
else
3041
  cat > conftest.$ac_ext <
3042
#line 3043 "configure"
3043
#include "confdefs.h"
3044
#include <$ac_hdr>
3045
EOF
3046
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3047
{ (eval echo configure:3048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3048
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3049
if test -z "$ac_err"; then
3050
  rm -rf conftest*
3051
  eval "ac_cv_header_$ac_safe=yes"
3052
else
3053
  echo "$ac_err" >&5
3054
  echo "configure: failed program was:" >&5
3055
  cat conftest.$ac_ext >&5
3056
  rm -rf conftest*
3057
  eval "ac_cv_header_$ac_safe=no"
3058
fi
3059
rm -f conftest*
3060
fi
3061
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3062
  echo "$ac_t""yes" 1>&6
3063
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3064
  cat >> confdefs.h <
3065
#define $ac_tr_hdr 1
3066
EOF
3067
 
3068
else
3069
  echo "$ac_t""no" 1>&6
3070
fi
3071
done
3072
 
3073
for ac_hdr in dlfcn.h errno.h sys/stat.h
3074
do
3075
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3076
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3077
echo "configure:3078: checking for $ac_hdr" >&5
3078
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3079
  echo $ac_n "(cached) $ac_c" 1>&6
3080
else
3081
  cat > conftest.$ac_ext <
3082
#line 3083 "configure"
3083
#include "confdefs.h"
3084
#include <$ac_hdr>
3085
EOF
3086
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3087
{ (eval echo configure:3088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3088
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3089
if test -z "$ac_err"; then
3090
  rm -rf conftest*
3091
  eval "ac_cv_header_$ac_safe=yes"
3092
else
3093
  echo "$ac_err" >&5
3094
  echo "configure: failed program was:" >&5
3095
  cat conftest.$ac_ext >&5
3096
  rm -rf conftest*
3097
  eval "ac_cv_header_$ac_safe=no"
3098
fi
3099
rm -f conftest*
3100
fi
3101
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3102
  echo "$ac_t""yes" 1>&6
3103
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3104
  cat >> confdefs.h <
3105
#define $ac_tr_hdr 1
3106
EOF
3107
 
3108
else
3109
  echo "$ac_t""no" 1>&6
3110
fi
3111
done
3112
 
3113
for ac_func in getrusage time sigaction __setfpucw
3114
do
3115
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3116
echo "configure:3117: checking for $ac_func" >&5
3117
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3118
  echo $ac_n "(cached) $ac_c" 1>&6
3119
else
3120
  cat > conftest.$ac_ext <
3121
#line 3122 "configure"
3122
#include "confdefs.h"
3123
/* System header to define __stub macros and hopefully few prototypes,
3124
    which can conflict with char $ac_func(); below.  */
3125
#include 
3126
/* Override any gcc2 internal prototype to avoid an error.  */
3127
/* We use char because int might match the return type of a gcc2
3128
    builtin and then its argument prototype would still apply.  */
3129
char $ac_func();
3130
 
3131
int main() {
3132
 
3133
/* The GNU C library defines this for functions which it implements
3134
    to always fail with ENOSYS.  Some functions are actually named
3135
    something starting with __ and the normal name is an alias.  */
3136
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3137
choke me
3138
#else
3139
$ac_func();
3140
#endif
3141
 
3142
; return 0; }
3143
EOF
3144
if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3145
  rm -rf conftest*
3146
  eval "ac_cv_func_$ac_func=yes"
3147
else
3148
  echo "configure: failed program was:" >&5
3149
  cat conftest.$ac_ext >&5
3150
  rm -rf conftest*
3151
  eval "ac_cv_func_$ac_func=no"
3152
fi
3153
rm -f conftest*
3154
fi
3155
 
3156
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3157
  echo "$ac_t""yes" 1>&6
3158
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3159
  cat >> confdefs.h <
3160
#define $ac_tr_func 1
3161
EOF
3162
 
3163
else
3164
  echo "$ac_t""no" 1>&6
3165
fi
3166
done
3167
 
3168
 
3169
# Check for socket libraries
3170
echo $ac_n "checking for bind in -lsocket""... $ac_c" 1>&6
3171
echo "configure:3172: checking for bind in -lsocket" >&5
3172
ac_lib_var=`echo socket'_'bind | sed 'y%./+-%__p_%'`
3173
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3174
  echo $ac_n "(cached) $ac_c" 1>&6
3175
else
3176
  ac_save_LIBS="$LIBS"
3177
LIBS="-lsocket  $LIBS"
3178
cat > conftest.$ac_ext <
3179
#line 3180 "configure"
3180
#include "confdefs.h"
3181
/* Override any gcc2 internal prototype to avoid an error.  */
3182
/* We use char because int might match the return type of a gcc2
3183
    builtin and then its argument prototype would still apply.  */
3184
char bind();
3185
 
3186
int main() {
3187
bind()
3188
; return 0; }
3189
EOF
3190
if { (eval echo configure:3191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3191
  rm -rf conftest*
3192
  eval "ac_cv_lib_$ac_lib_var=yes"
3193
else
3194
  echo "configure: failed program was:" >&5
3195
  cat conftest.$ac_ext >&5
3196
  rm -rf conftest*
3197
  eval "ac_cv_lib_$ac_lib_var=no"
3198
fi
3199
rm -f conftest*
3200
LIBS="$ac_save_LIBS"
3201
 
3202
fi
3203
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3204
  echo "$ac_t""yes" 1>&6
3205
    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3206
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3207
  cat >> confdefs.h <
3208
#define $ac_tr_lib 1
3209
EOF
3210
 
3211
  LIBS="-lsocket $LIBS"
3212
 
3213
else
3214
  echo "$ac_t""no" 1>&6
3215
fi
3216
 
3217
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3218
echo "configure:3219: checking for gethostbyname in -lnsl" >&5
3219
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3220
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3221
  echo $ac_n "(cached) $ac_c" 1>&6
3222
else
3223
  ac_save_LIBS="$LIBS"
3224
LIBS="-lnsl  $LIBS"
3225
cat > conftest.$ac_ext <
3226
#line 3227 "configure"
3227
#include "confdefs.h"
3228
/* Override any gcc2 internal prototype to avoid an error.  */
3229
/* We use char because int might match the return type of a gcc2
3230
    builtin and then its argument prototype would still apply.  */
3231
char gethostbyname();
3232
 
3233
int main() {
3234
gethostbyname()
3235
; return 0; }
3236
EOF
3237
if { (eval echo configure:3238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3238
  rm -rf conftest*
3239
  eval "ac_cv_lib_$ac_lib_var=yes"
3240
else
3241
  echo "configure: failed program was:" >&5
3242
  cat conftest.$ac_ext >&5
3243
  rm -rf conftest*
3244
  eval "ac_cv_lib_$ac_lib_var=no"
3245
fi
3246
rm -f conftest*
3247
LIBS="$ac_save_LIBS"
3248
 
3249
fi
3250
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3251
  echo "$ac_t""yes" 1>&6
3252
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3253
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3254
  cat >> confdefs.h <
3255
#define $ac_tr_lib 1
3256
EOF
3257
 
3258
  LIBS="-lnsl $LIBS"
3259
 
3260
else
3261
  echo "$ac_t""no" 1>&6
3262
fi
3263
 
3264
 
3265
. ${srcdir}/../../bfd/configure.host
3266
 
3267
 
3268
 
3269
USE_MAINTAINER_MODE=no
3270
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3271
if test "${enable_maintainer_mode+set}" = set; then
3272
  enableval="$enable_maintainer_mode"
3273
  case "${enableval}" in
3274
  yes)  MAINT="" USE_MAINTAINER_MODE=yes ;;
3275
  no)   MAINT="#" ;;
3276
  *)    { echo "configure: error: "--enable-maintainer-mode does not take a value"" 1>&2; exit 1; }; MAINT="#" ;;
3277
esac
3278
if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
3279
  echo "Setting maintainer mode" 6>&1
3280
fi
3281
else
3282
  MAINT="#"
3283
fi
3284
 
3285
 
3286
 
3287
# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3288
if test "${enable_sim_bswap+set}" = set; then
3289
  enableval="$enable_sim_bswap"
3290
  case "${enableval}" in
3291
  yes)  sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3292
  no)   sim_bswap="-DWITH_BSWAP=0";;
3293
  *)    { echo "configure: error: "--enable-sim-bswap does not take a value"" 1>&2; exit 1; }; sim_bswap="";;
3294
esac
3295
if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3296
  echo "Setting bswap flags = $sim_bswap" 6>&1
3297
fi
3298
else
3299
  sim_bswap=""
3300
fi
3301
 
3302
 
3303
 
3304
# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3305
if test "${enable_sim_cflags+set}" = set; then
3306
  enableval="$enable_sim_cflags"
3307
  case "${enableval}" in
3308
  yes)   sim_cflags="-O2 -fomit-frame-pointer";;
3309
  trace) { echo "configure: error: "Please use --enable-sim-debug instead."" 1>&2; exit 1; }; sim_cflags="";;
3310
  no)    sim_cflags="";;
3311
  *)     sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3312
esac
3313
if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3314
  echo "Setting sim cflags = $sim_cflags" 6>&1
3315
fi
3316
else
3317
  sim_cflags=""
3318
fi
3319
 
3320
 
3321
 
3322
# Check whether --enable-sim-debug or --disable-sim-debug was given.
3323
if test "${enable_sim_debug+set}" = set; then
3324
  enableval="$enable_sim_debug"
3325
  case "${enableval}" in
3326
  yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
3327
  no)  sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
3328
  *)   sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3329
esac
3330
if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
3331
  echo "Setting sim debug = $sim_debug" 6>&1
3332
fi
3333
else
3334
  sim_debug=""
3335
fi
3336
 
3337
 
3338
 
3339
# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3340
if test "${enable_sim_stdio+set}" = set; then
3341
  enableval="$enable_sim_stdio"
3342
  case "${enableval}" in
3343
  yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3344
  no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3345
  *)    { echo "configure: error: "Unknown value $enableval passed to --enable-sim-stdio"" 1>&2; exit 1; }; sim_stdio="";;
3346
esac
3347
if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3348
  echo "Setting stdio flags = $sim_stdio" 6>&1
3349
fi
3350
else
3351
  sim_stdio=""
3352
fi
3353
 
3354
 
3355
 
3356
# Check whether --enable-sim-trace or --disable-sim-trace was given.
3357
if test "${enable_sim_trace+set}" = set; then
3358
  enableval="$enable_sim_trace"
3359
  case "${enableval}" in
3360
  yes)  sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
3361
  no)   sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
3362
  [-0-9]*)
3363
        sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
3364
  [a-z]*)
3365
        sim_trace=""
3366
        for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3367
          if test x"$sim_trace" = x; then
3368
            sim_trace="-DWITH_TRACE='(TRACE_$x"
3369
          else
3370
            sim_trace="${sim_trace}|TRACE_$x"
3371
          fi
3372
        done
3373
        sim_trace="$sim_trace)'" ;;
3374
esac
3375
if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3376
  echo "Setting sim trace = $sim_trace" 6>&1
3377
fi
3378
else
3379
  sim_trace=""
3380
fi
3381
 
3382
 
3383
 
3384
# Check whether --enable-sim-profile or --disable-sim-profile was given.
3385
if test "${enable_sim_profile+set}" = set; then
3386
  enableval="$enable_sim_profile"
3387
  case "${enableval}" in
3388
  yes)  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
3389
  no)   sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
3390
  [-0-9]*)
3391
        sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
3392
  [a-z]*)
3393
        sim_profile=""
3394
        for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3395
          if test x"$sim_profile" = x; then
3396
            sim_profile="-DWITH_PROFILE='(PROFILE_$x"
3397
          else
3398
            sim_profile="${sim_profile}|PROFILE_$x"
3399
          fi
3400
        done
3401
        sim_profile="$sim_profile)'" ;;
3402
esac
3403
if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
3404
  echo "Setting sim profile = $sim_profile" 6>&1
3405
fi
3406
else
3407
  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
3408
fi
3409
 
3410
 
3411
 
3412
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3413
echo "configure:3414: checking return type of signal handlers" >&5
3414
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3415
  echo $ac_n "(cached) $ac_c" 1>&6
3416
else
3417
  cat > conftest.$ac_ext <
3418
#line 3419 "configure"
3419
#include "confdefs.h"
3420
#include 
3421
#include 
3422
#ifdef signal
3423
#undef signal
3424
#endif
3425
#ifdef __cplusplus
3426
extern "C" void (*signal (int, void (*)(int)))(int);
3427
#else
3428
void (*signal ()) ();
3429
#endif
3430
 
3431
int main() {
3432
int i;
3433
; return 0; }
3434
EOF
3435
if { (eval echo configure:3436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3436
  rm -rf conftest*
3437
  ac_cv_type_signal=void
3438
else
3439
  echo "configure: failed program was:" >&5
3440
  cat conftest.$ac_ext >&5
3441
  rm -rf conftest*
3442
  ac_cv_type_signal=int
3443
fi
3444
rm -f conftest*
3445
fi
3446
 
3447
echo "$ac_t""$ac_cv_type_signal" 1>&6
3448
cat >> confdefs.h <
3449
#define RETSIGTYPE $ac_cv_type_signal
3450
EOF
3451
 
3452
 
3453
 
3454
 
3455
 
3456
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3457
echo "configure:3458: checking for executable suffix" >&5
3458
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3459
  echo $ac_n "(cached) $ac_c" 1>&6
3460
else
3461
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3462
  ac_cv_exeext=.exe
3463
else
3464
  rm -f conftest*
3465
  echo 'int main () { return 0; }' > conftest.$ac_ext
3466
  ac_cv_exeext=
3467
  if { (eval echo configure:3468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3468
    for file in conftest.*; do
3469
      case $file in
3470
      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
3471
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3472
      esac
3473
    done
3474
  else
3475
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3476
  fi
3477
  rm -f conftest*
3478
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3479
fi
3480
fi
3481
 
3482
EXEEXT=""
3483
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3484
echo "$ac_t""${ac_cv_exeext}" 1>&6
3485
ac_exeext=$EXEEXT
3486
 
3487
 
3488
sim_link_files=
3489
sim_link_links=
3490
 
3491
sim_link_links=tconfig.h
3492
if test -f ${srcdir}/tconfig.in
3493
then
3494
  sim_link_files=tconfig.in
3495
else
3496
  sim_link_files=../common/tconfig.in
3497
fi
3498
 
3499
# targ-vals.def points to the libc macro description file.
3500
case "${target}" in
3501
*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
3502
esac
3503
sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
3504
sim_link_links="${sim_link_links} targ-vals.def"
3505
 
3506
 
3507
 
3508
 
3509
wire_endian="LITTLE_ENDIAN"
3510
default_endian=""
3511
# Check whether --enable-sim-endian or --disable-sim-endian was given.
3512
if test "${enable_sim_endian+set}" = set; then
3513
  enableval="$enable_sim_endian"
3514
  case "${enableval}" in
3515
  b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3516
  l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3517
  yes)   if test x"$wire_endian" != x; then
3518
           sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3519
         else
3520
           if test x"$default_endian" != x; then
3521
             sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
3522
           else
3523
             echo "No hard-wired endian for target $target" 1>&6
3524
             sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
3525
           fi
3526
         fi;;
3527
  no)    if test x"$default_endian" != x; then
3528
           sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3529
         else
3530
           if test x"$wire_endian" != x; then
3531
             sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
3532
           else
3533
             echo "No default endian for target $target" 1>&6
3534
             sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
3535
           fi
3536
         fi;;
3537
  *)     { echo "configure: error: "Unknown value $enableval for --enable-sim-endian"" 1>&2; exit 1; }; sim_endian="";;
3538
esac
3539
if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3540
  echo "Setting endian flags = $sim_endian" 6>&1
3541
fi
3542
else
3543
  if test x"$default_endian" != x; then
3544
  sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
3545
else
3546
  if test x"$wire_endian" != x; then
3547
    sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
3548
  else
3549
    sim_endian=
3550
  fi
3551
fi
3552
fi
3553
 
3554
wire_alignment=""
3555
default_alignment="NONSTRICT_ALIGNMENT"
3556
 
3557
# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
3558
if test "${enable_sim_alignment+set}" = set; then
3559
  enableval="$enable_sim_alignment"
3560
  case "${enableval}" in
3561
  strict | STRICT)       sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3562
  nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3563
  forced | FORCED)       sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
3564
  yes) if test x"$wire_alignment" != x; then
3565
         sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
3566
       else
3567
         if test x"$default_alignment" != x; then
3568
           sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
3569
         else
3570
           echo "No hard-wired alignment for target $target" 1>&6
3571
           sim_alignment="-DWITH_ALIGNMENT=0"
3572
         fi
3573
       fi;;
3574
  no)  if test x"$default_alignment" != x; then
3575
         sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3576
       else
3577
         if test x"$wire_alignment" != x; then
3578
           sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
3579
         else
3580
           echo "No default alignment for target $target" 1>&6
3581
           sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
3582
         fi
3583
       fi;;
3584
  *)   { echo "configure: error: "Unknown value $enableval passed to --enable-sim-alignment"" 1>&2; exit 1; }; sim_alignment="";;
3585
esac
3586
if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
3587
  echo "Setting alignment flags = $sim_alignment" 6>&1
3588
fi
3589
else
3590
  if test x"$default_alignment" != x; then
3591
  sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
3592
else
3593
  if test x"$wire_alignment" != x; then
3594
    sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
3595
  else
3596
    sim_alignment=
3597
  fi
3598
fi
3599
fi
3600
 
3601
 
3602
# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
3603
if test "${enable_sim_hostendian+set}" = set; then
3604
  enableval="$enable_sim_hostendian"
3605
  case "${enableval}" in
3606
  no)    sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
3607
  b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3608
  l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3609
  *)     { echo "configure: error: "Unknown value $enableval for --enable-sim-hostendian"" 1>&2; exit 1; }; sim_hostendian="";;
3610
esac
3611
if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
3612
  echo "Setting hostendian flags = $sim_hostendian" 6>&1
3613
fi
3614
else
3615
 
3616
if test "x$cross_compiling" = "xno"; then
3617
  echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3618
echo "configure:3619: checking whether byte ordering is bigendian" >&5
3619
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3620
  echo $ac_n "(cached) $ac_c" 1>&6
3621
else
3622
  ac_cv_c_bigendian=unknown
3623
# See if sys/param.h defines the BYTE_ORDER macro.
3624
cat > conftest.$ac_ext <
3625
#line 3626 "configure"
3626
#include "confdefs.h"
3627
#include 
3628
#include 
3629
int main() {
3630
 
3631
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3632
 bogus endian macros
3633
#endif
3634
; return 0; }
3635
EOF
3636
if { (eval echo configure:3637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3637
  rm -rf conftest*
3638
  # It does; now see whether it defined to BIG_ENDIAN or not.
3639
cat > conftest.$ac_ext <
3640
#line 3641 "configure"
3641
#include "confdefs.h"
3642
#include 
3643
#include 
3644
int main() {
3645
 
3646
#if BYTE_ORDER != BIG_ENDIAN
3647
 not big endian
3648
#endif
3649
; return 0; }
3650
EOF
3651
if { (eval echo configure:3652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3652
  rm -rf conftest*
3653
  ac_cv_c_bigendian=yes
3654
else
3655
  echo "configure: failed program was:" >&5
3656
  cat conftest.$ac_ext >&5
3657
  rm -rf conftest*
3658
  ac_cv_c_bigendian=no
3659
fi
3660
rm -f conftest*
3661
else
3662
  echo "configure: failed program was:" >&5
3663
  cat conftest.$ac_ext >&5
3664
fi
3665
rm -f conftest*
3666
if test $ac_cv_c_bigendian = unknown; then
3667
if test "$cross_compiling" = yes; then
3668
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3669
else
3670
  cat > conftest.$ac_ext <
3671
#line 3672 "configure"
3672
#include "confdefs.h"
3673
main () {
3674
  /* Are we little or big endian?  From Harbison&Steele.  */
3675
  union
3676
  {
3677
    long l;
3678
    char c[sizeof (long)];
3679
  } u;
3680
  u.l = 1;
3681
  exit (u.c[sizeof (long) - 1] == 1);
3682
}
3683
EOF
3684
if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3685
then
3686
  ac_cv_c_bigendian=no
3687
else
3688
  echo "configure: failed program was:" >&5
3689
  cat conftest.$ac_ext >&5
3690
  rm -fr conftest*
3691
  ac_cv_c_bigendian=yes
3692
fi
3693
rm -fr conftest*
3694
fi
3695
 
3696
fi
3697
fi
3698
 
3699
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3700
if test $ac_cv_c_bigendian = yes; then
3701
  cat >> confdefs.h <<\EOF
3702
#define WORDS_BIGENDIAN 1
3703
EOF
3704
 
3705
fi
3706
 
3707
  if test $ac_cv_c_bigendian = yes; then
3708
    sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3709
  else
3710
    sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3711
  fi
3712
else
3713
  sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
3714
fi
3715
fi
3716
 
3717
 
3718
# Check whether --enable-build-warnings or --disable-build-warnings was given.
3719
if test "${enable_build_warnings+set}" = set; then
3720
  enableval="$enable_build_warnings"
3721
  build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
3722
case "${enableval}" in
3723
  yes)  ;;
3724
  no)   build_warnings="-w";;
3725
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
3726
        build_warnings="${build_warnings} ${t}";;
3727
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
3728
        build_warnings="${t} ${build_warnings}";;
3729
  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3730
esac
3731
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3732
  echo "Setting warning flags = $build_warnings" 6>&1
3733
fi
3734
WARN_CFLAGS=""
3735
WERROR_CFLAGS=""
3736
if test "x${build_warnings}" != x -a "x$GCC" = xyes
3737
then
3738
  # Separate out the -Werror flag as some files just cannot be
3739
  # compiled with it enabled.
3740
  for w in ${build_warnings}; do
3741
    case $w in
3742
    -Werr*) WERROR_CFLAGS=-Werror ;;
3743
    *) WARN_CFLAGS="${WARN_CFLAGS} $w"
3744
    esac
3745
  done
3746
fi
3747
else
3748
  build_warnings=""
3749
fi
3750
 
3751
 
3752
default_sim_reserved_bits="1"
3753
# Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3754
if test "${enable_sim_reserved_bits+set}" = set; then
3755
  enableval="$enable_sim_reserved_bits"
3756
  case "${enableval}" in
3757
  yes)  sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
3758
  no)   sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
3759
  *)    { echo "configure: error: "--enable-sim-reserved-bits does not take a value"" 1>&2; exit 1; }; sim_reserved_bits="";;
3760
esac
3761
if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
3762
  echo "Setting reserved flags = $sim_reserved_bits" 6>&1
3763
fi
3764
else
3765
  sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
3766
fi
3767
 
3768
wire_word_bitsize="32"
3769
wire_word_msb="31"
3770
wire_address_bitsize=""
3771
wire_cell_bitsize=""
3772
# Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
3773
if test "${enable_sim_bitsize+set}" = set; then
3774
  enableval="$enable_sim_bitsize"
3775
  sim_bitsize=
3776
case "${enableval}" in
3777
  64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
3778
  32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
3779
  64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3780
  32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
3781
  32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
3782
        sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
3783
      else
3784
        sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
3785
      fi ;;
3786
  64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
3787
        sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
3788
      else
3789
        sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
3790
      fi ;;
3791
  *)  { echo "configure: error: "--enable-sim-bitsize was given $enableval.  Expected 32 or 64"" 1>&2; exit 1; } ;;
3792
esac
3793
# address bitsize
3794
tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
3795
case x"${tmp}" in
3796
  x ) ;;
3797
  x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
3798
  x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
3799
  * ) { echo "configure: error: "--enable-sim-bitsize was given address size $enableval.  Expected 32 or 64"" 1>&2; exit 1; } ;;
3800
esac
3801
# cell bitsize
3802
tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
3803
case x"${tmp}" in
3804
  x ) ;;
3805
  x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
3806
  x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
3807
  * ) { echo "configure: error: "--enable-sim-bitsize was given cell size $enableval.  Expected 32 or 64"" 1>&2; exit 1; } ;;
3808
esac
3809
if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3810
  echo "Setting bitsize flags = $sim_bitsize" 6>&1
3811
fi
3812
else
3813
  sim_bitsize=""
3814
if test x"$wire_word_bitsize" != x; then
3815
  sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
3816
fi
3817
if test x"$wire_word_msb" != x; then
3818
  sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
3819
fi
3820
if test x"$wire_address_bitsize" != x; then
3821
  sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
3822
fi
3823
if test x"$wire_cell_bitsize" != x; then
3824
  sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
3825
fi
3826
fi
3827
 
3828
 
3829
for ac_func in time chmod utime fork execve execv chown
3830
do
3831
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3832
echo "configure:3833: checking for $ac_func" >&5
3833
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3834
  echo $ac_n "(cached) $ac_c" 1>&6
3835
else
3836
  cat > conftest.$ac_ext <
3837
#line 3838 "configure"
3838
#include "confdefs.h"
3839
/* System header to define __stub macros and hopefully few prototypes,
3840
    which can conflict with char $ac_func(); below.  */
3841
#include 
3842
/* Override any gcc2 internal prototype to avoid an error.  */
3843
/* We use char because int might match the return type of a gcc2
3844
    builtin and then its argument prototype would still apply.  */
3845
char $ac_func();
3846
 
3847
int main() {
3848
 
3849
/* The GNU C library defines this for functions which it implements
3850
    to always fail with ENOSYS.  Some functions are actually named
3851
    something starting with __ and the normal name is an alias.  */
3852
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3853
choke me
3854
#else
3855
$ac_func();
3856
#endif
3857
 
3858
; return 0; }
3859
EOF
3860
if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3861
  rm -rf conftest*
3862
  eval "ac_cv_func_$ac_func=yes"
3863
else
3864
  echo "configure: failed program was:" >&5
3865
  cat conftest.$ac_ext >&5
3866
  rm -rf conftest*
3867
  eval "ac_cv_func_$ac_func=no"
3868
fi
3869
rm -f conftest*
3870
fi
3871
 
3872
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3873
  echo "$ac_t""yes" 1>&6
3874
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3875
  cat >> confdefs.h <
3876
#define $ac_tr_func 1
3877
EOF
3878
 
3879
else
3880
  echo "$ac_t""no" 1>&6
3881
fi
3882
done
3883
 
3884
for ac_hdr in unistd.h stdlib.h string.h strings.h utime.h time.h
3885
do
3886
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3887
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3888
echo "configure:3889: checking for $ac_hdr" >&5
3889
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3890
  echo $ac_n "(cached) $ac_c" 1>&6
3891
else
3892
  cat > conftest.$ac_ext <
3893
#line 3894 "configure"
3894
#include "confdefs.h"
3895
#include <$ac_hdr>
3896
EOF
3897
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3898
{ (eval echo configure:3899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3899
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3900
if test -z "$ac_err"; then
3901
  rm -rf conftest*
3902
  eval "ac_cv_header_$ac_safe=yes"
3903
else
3904
  echo "$ac_err" >&5
3905
  echo "configure: failed program was:" >&5
3906
  cat conftest.$ac_ext >&5
3907
  rm -rf conftest*
3908
  eval "ac_cv_header_$ac_safe=no"
3909
fi
3910
rm -f conftest*
3911
fi
3912
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3913
  echo "$ac_t""yes" 1>&6
3914
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3915
  cat >> confdefs.h <
3916
#define $ac_tr_hdr 1
3917
EOF
3918
 
3919
else
3920
  echo "$ac_t""no" 1>&6
3921
fi
3922
done
3923
 
3924
 
3925
 
3926
 
3927
trap '' 1 2 15
3928
cat > confcache <<\EOF
3929
# This file is a shell script that caches the results of configure
3930
# tests run on this system so they can be shared between configure
3931
# scripts and configure runs.  It is not useful on other systems.
3932
# If it contains results you don't want to keep, you may remove or edit it.
3933
#
3934
# By default, configure uses ./config.cache as the cache file,
3935
# creating it if it does not exist already.  You can give configure
3936
# the --cache-file=FILE option to use a different cache file; that is
3937
# what configure does when it calls configure scripts in
3938
# subdirectories, so they share the cache.
3939
# Giving --cache-file=/dev/null disables caching, for debugging configure.
3940
# config.status only pays attention to the cache file if you give it the
3941
# --recheck option to rerun configure.
3942
#
3943
EOF
3944
# The following way of writing the cache mishandles newlines in values,
3945
# but we know of no workaround that is simple, portable, and efficient.
3946
# So, don't put newlines in cache variables' values.
3947
# Ultrix sh set writes to stderr and can't be redirected directly,
3948
# and sets the high bit in the cache file unless we assign to the vars.
3949
(set) 2>&1 |
3950
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3951
  *ac_space=\ *)
3952
    # `set' does not quote correctly, so add quotes (double-quote substitution
3953
    # turns \\\\ into \\, and sed turns \\ into \).
3954
    sed -n \
3955
      -e "s/'/'\\\\''/g" \
3956
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3957
    ;;
3958
  *)
3959
    # `set' quotes correctly as required by POSIX, so do not add quotes.
3960
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3961
    ;;
3962
  esac >> confcache
3963
if cmp -s $cache_file confcache; then
3964
  :
3965
else
3966
  if test -w $cache_file; then
3967
    echo "updating cache $cache_file"
3968
    cat confcache > $cache_file
3969
  else
3970
    echo "not updating unwritable cache $cache_file"
3971
  fi
3972
fi
3973
rm -f confcache
3974
 
3975
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3976
 
3977
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3978
# Let make expand exec_prefix.
3979
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3980
 
3981
# Any assignment to VPATH causes Sun make to only execute
3982
# the first set of double-colon rules, so remove it if not needed.
3983
# If there is a colon in the path, we need to keep it.
3984
if test "x$srcdir" = x.; then
3985
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3986
fi
3987
 
3988
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3989
 
3990
DEFS=-DHAVE_CONFIG_H
3991
 
3992
# Without the "./", some shells look in PATH for config.status.
3993
: ${CONFIG_STATUS=./config.status}
3994
 
3995
echo creating $CONFIG_STATUS
3996
rm -f $CONFIG_STATUS
3997
cat > $CONFIG_STATUS <
3998
#! /bin/sh
3999
# Generated automatically by configure.
4000
# Run this file to recreate the current configuration.
4001
# This directory was configured as follows,
4002
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4003
#
4004
# $0 $ac_configure_args
4005
#
4006
# Compiler output produced by configure, useful for debugging
4007
# configure, is in ./config.log if it exists.
4008
 
4009
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4010
for ac_option
4011
do
4012
  case "\$ac_option" in
4013
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4014
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4015
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4016
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4017
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
4018
    exit 0 ;;
4019
  -help | --help | --hel | --he | --h)
4020
    echo "\$ac_cs_usage"; exit 0 ;;
4021
  *) echo "\$ac_cs_usage"; exit 1 ;;
4022
  esac
4023
done
4024
 
4025
ac_given_srcdir=$srcdir
4026
ac_given_INSTALL="$INSTALL"
4027
 
4028
trap 'rm -fr `echo "Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4029
EOF
4030
cat >> $CONFIG_STATUS <
4031
 
4032
# Protect against being on the right side of a sed subst in config.status.
4033
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4034
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4035
$ac_vpsub
4036
$extrasub
4037
s%@sim_environment@%$sim_environment%g
4038
s%@sim_alignment@%$sim_alignment%g
4039
s%@sim_assert@%$sim_assert%g
4040
s%@sim_bitsize@%$sim_bitsize%g
4041
s%@sim_endian@%$sim_endian%g
4042
s%@sim_hostendian@%$sim_hostendian%g
4043
s%@sim_float@%$sim_float%g
4044
s%@sim_scache@%$sim_scache%g
4045
s%@sim_default_model@%$sim_default_model%g
4046
s%@sim_hw_cflags@%$sim_hw_cflags%g
4047
s%@sim_hw_objs@%$sim_hw_objs%g
4048
s%@sim_hw@%$sim_hw%g
4049
s%@sim_inline@%$sim_inline%g
4050
s%@sim_packages@%$sim_packages%g
4051
s%@sim_regparm@%$sim_regparm%g
4052
s%@sim_reserved_bits@%$sim_reserved_bits%g
4053
s%@sim_smp@%$sim_smp%g
4054
s%@sim_stdcall@%$sim_stdcall%g
4055
s%@sim_xor_endian@%$sim_xor_endian%g
4056
s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4057
s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
4058
s%@SHELL@%$SHELL%g
4059
s%@CFLAGS@%$CFLAGS%g
4060
s%@CPPFLAGS@%$CPPFLAGS%g
4061
s%@CXXFLAGS@%$CXXFLAGS%g
4062
s%@FFLAGS@%$FFLAGS%g
4063
s%@DEFS@%$DEFS%g
4064
s%@LDFLAGS@%$LDFLAGS%g
4065
s%@LIBS@%$LIBS%g
4066
s%@exec_prefix@%$exec_prefix%g
4067
s%@prefix@%$prefix%g
4068
s%@program_transform_name@%$program_transform_name%g
4069
s%@bindir@%$bindir%g
4070
s%@sbindir@%$sbindir%g
4071
s%@libexecdir@%$libexecdir%g
4072
s%@datadir@%$datadir%g
4073
s%@sysconfdir@%$sysconfdir%g
4074
s%@sharedstatedir@%$sharedstatedir%g
4075
s%@localstatedir@%$localstatedir%g
4076
s%@libdir@%$libdir%g
4077
s%@includedir@%$includedir%g
4078
s%@oldincludedir@%$oldincludedir%g
4079
s%@infodir@%$infodir%g
4080
s%@mandir@%$mandir%g
4081
s%@host@%$host%g
4082
s%@host_alias@%$host_alias%g
4083
s%@host_cpu@%$host_cpu%g
4084
s%@host_vendor@%$host_vendor%g
4085
s%@host_os@%$host_os%g
4086
s%@target@%$target%g
4087
s%@target_alias@%$target_alias%g
4088
s%@target_cpu@%$target_cpu%g
4089
s%@target_vendor@%$target_vendor%g
4090
s%@target_os@%$target_os%g
4091
s%@build@%$build%g
4092
s%@build_alias@%$build_alias%g
4093
s%@build_cpu@%$build_cpu%g
4094
s%@build_vendor@%$build_vendor%g
4095
s%@build_os@%$build_os%g
4096
s%@CC@%$CC%g
4097
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4098
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4099
s%@INSTALL_DATA@%$INSTALL_DATA%g
4100
s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4101
s%@HDEFINES@%$HDEFINES%g
4102
s%@AR@%$AR%g
4103
s%@RANLIB@%$RANLIB%g
4104
s%@SET_MAKE@%$SET_MAKE%g
4105
s%@CPP@%$CPP%g
4106
s%@ALLOCA@%$ALLOCA%g
4107
s%@USE_NLS@%$USE_NLS%g
4108
s%@MSGFMT@%$MSGFMT%g
4109
s%@GMSGFMT@%$GMSGFMT%g
4110
s%@XGETTEXT@%$XGETTEXT%g
4111
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4112
s%@CATALOGS@%$CATALOGS%g
4113
s%@CATOBJEXT@%$CATOBJEXT%g
4114
s%@DATADIRNAME@%$DATADIRNAME%g
4115
s%@GMOFILES@%$GMOFILES%g
4116
s%@INSTOBJEXT@%$INSTOBJEXT%g
4117
s%@INTLDEPS@%$INTLDEPS%g
4118
s%@INTLLIBS@%$INTLLIBS%g
4119
s%@INTLOBJS@%$INTLOBJS%g
4120
s%@POFILES@%$POFILES%g
4121
s%@POSUB@%$POSUB%g
4122
s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4123
s%@GT_NO@%$GT_NO%g
4124
s%@GT_YES@%$GT_YES%g
4125
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4126
s%@l@%$l%g
4127
s%@MAINT@%$MAINT%g
4128
s%@sim_bswap@%$sim_bswap%g
4129
s%@sim_cflags@%$sim_cflags%g
4130
s%@sim_debug@%$sim_debug%g
4131
s%@sim_stdio@%$sim_stdio%g
4132
s%@sim_trace@%$sim_trace%g
4133
s%@sim_profile@%$sim_profile%g
4134
s%@EXEEXT@%$EXEEXT%g
4135
 
4136
CEOF
4137
EOF
4138
 
4139
cat >> $CONFIG_STATUS <<\EOF
4140
 
4141
# Split the substitutions into bite-sized pieces for seds with
4142
# small command number limits, like on Digital OSF/1 and HP-UX.
4143
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4144
ac_file=1 # Number of current file.
4145
ac_beg=1 # First line for current file.
4146
ac_end=$ac_max_sed_cmds # Line after last line for current file.
4147
ac_more_lines=:
4148
ac_sed_cmds=""
4149
while $ac_more_lines; do
4150
  if test $ac_beg -gt 1; then
4151
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4152
  else
4153
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4154
  fi
4155
  if test ! -s conftest.s$ac_file; then
4156
    ac_more_lines=false
4157
    rm -f conftest.s$ac_file
4158
  else
4159
    if test -z "$ac_sed_cmds"; then
4160
      ac_sed_cmds="sed -f conftest.s$ac_file"
4161
    else
4162
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4163
    fi
4164
    ac_file=`expr $ac_file + 1`
4165
    ac_beg=$ac_end
4166
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4167
  fi
4168
done
4169
if test -z "$ac_sed_cmds"; then
4170
  ac_sed_cmds=cat
4171
fi
4172
EOF
4173
 
4174
cat >> $CONFIG_STATUS <
4175
 
4176
CONFIG_FILES=\${CONFIG_FILES-"Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"}
4177
EOF
4178
cat >> $CONFIG_STATUS <<\EOF
4179
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4180
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4181
  case "$ac_file" in
4182
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4183
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4184
  *) ac_file_in="${ac_file}.in" ;;
4185
  esac
4186
 
4187
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4188
 
4189
  # Remove last slash and all that follows it.  Not all systems have dirname.
4190
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4191
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4192
    # The file is in a subdirectory.
4193
    test ! -d "$ac_dir" && mkdir "$ac_dir"
4194
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4195
    # A "../" for each directory in $ac_dir_suffix.
4196
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4197
  else
4198
    ac_dir_suffix= ac_dots=
4199
  fi
4200
 
4201
  case "$ac_given_srcdir" in
4202
  .)  srcdir=.
4203
      if test -z "$ac_dots"; then top_srcdir=.
4204
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4205
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4206
  *) # Relative path.
4207
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4208
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4209
  esac
4210
 
4211
  case "$ac_given_INSTALL" in
4212
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
4213
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4214
  esac
4215
 
4216
  echo creating "$ac_file"
4217
  rm -f "$ac_file"
4218
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4219
  case "$ac_file" in
4220
  *Makefile*) ac_comsub="1i\\
4221
# $configure_input" ;;
4222
  *) ac_comsub= ;;
4223
  esac
4224
 
4225
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4226
  sed -e "$ac_comsub
4227
s%@configure_input@%$configure_input%g
4228
s%@srcdir@%$srcdir%g
4229
s%@top_srcdir@%$top_srcdir%g
4230
s%@INSTALL@%$INSTALL%g
4231
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4232
fi; done
4233
rm -f conftest.s*
4234
 
4235
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4236
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4237
#
4238
# ac_d sets the value in "#define NAME VALUE" lines.
4239
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4240
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4241
ac_dC='\3'
4242
ac_dD='%g'
4243
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4244
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4245
ac_uB='\([      ]\)%\1#\2define\3'
4246
ac_uC=' '
4247
ac_uD='\4%g'
4248
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4249
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4250
ac_eB='$%\1#\2define\3'
4251
ac_eC=' '
4252
ac_eD='%g'
4253
 
4254
if test "${CONFIG_HEADERS+set}" != set; then
4255
EOF
4256
cat >> $CONFIG_STATUS <
4257
  CONFIG_HEADERS="config.h:config.in"
4258
EOF
4259
cat >> $CONFIG_STATUS <<\EOF
4260
fi
4261
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4262
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4263
  case "$ac_file" in
4264
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4265
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4266
  *) ac_file_in="${ac_file}.in" ;;
4267
  esac
4268
 
4269
  echo creating $ac_file
4270
 
4271
  rm -f conftest.frag conftest.in conftest.out
4272
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4273
  cat $ac_file_inputs > conftest.in
4274
 
4275
EOF
4276
 
4277
# Transform confdefs.h into a sed script conftest.vals that substitutes
4278
# the proper values into config.h.in to produce config.h.  And first:
4279
# Protect against being on the right side of a sed subst in config.status.
4280
# Protect against being in an unquoted here document in config.status.
4281
rm -f conftest.vals
4282
cat > conftest.hdr <<\EOF
4283
s/[\\&%]/\\&/g
4284
s%[\\$`]%\\&%g
4285
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4286
s%ac_d%ac_u%gp
4287
s%ac_u%ac_e%gp
4288
EOF
4289
sed -n -f conftest.hdr confdefs.h > conftest.vals
4290
rm -f conftest.hdr
4291
 
4292
# This sed command replaces #undef with comments.  This is necessary, for
4293
# example, in the case of _POSIX_SOURCE, which is predefined and required
4294
# on some systems where configure will not decide to define it.
4295
cat >> conftest.vals <<\EOF
4296
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4297
EOF
4298
 
4299
# Break up conftest.vals because some shells have a limit on
4300
# the size of here documents, and old seds have small limits too.
4301
 
4302
rm -f conftest.tail
4303
while :
4304
do
4305
  ac_lines=`grep -c . conftest.vals`
4306
  # grep -c gives empty output for an empty file on some AIX systems.
4307
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4308
  # Write a limited-size here document to conftest.frag.
4309
  echo '  cat > conftest.frag <> $CONFIG_STATUS
4310
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4311
  echo 'CEOF
4312
  sed -f conftest.frag conftest.in > conftest.out
4313
  rm -f conftest.in
4314
  mv conftest.out conftest.in
4315
' >> $CONFIG_STATUS
4316
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4317
  rm -f conftest.vals
4318
  mv conftest.tail conftest.vals
4319
done
4320
rm -f conftest.vals
4321
 
4322
cat >> $CONFIG_STATUS <<\EOF
4323
  rm -f conftest.frag conftest.h
4324
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4325
  cat conftest.in >> conftest.h
4326
  rm -f conftest.in
4327
  if cmp -s $ac_file conftest.h 2>/dev/null; then
4328
    echo "$ac_file is unchanged"
4329
    rm -f conftest.h
4330
  else
4331
    # Remove last slash and all that follows it.  Not all systems have dirname.
4332
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4333
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4334
      # The file is in a subdirectory.
4335
      test ! -d "$ac_dir" && mkdir "$ac_dir"
4336
    fi
4337
    rm -f $ac_file
4338
    mv conftest.h $ac_file
4339
  fi
4340
fi; done
4341
 
4342
EOF
4343
 
4344
cat >> $CONFIG_STATUS <
4345
ac_sources="$sim_link_files"
4346
ac_dests="$sim_link_links"
4347
EOF
4348
 
4349
cat >> $CONFIG_STATUS <<\EOF
4350
srcdir=$ac_given_srcdir
4351
while test -n "$ac_sources"; do
4352
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4353
  set $ac_sources; ac_source=$1; shift; ac_sources=$*
4354
 
4355
  echo "linking $srcdir/$ac_source to $ac_dest"
4356
 
4357
  if test ! -r $srcdir/$ac_source; then
4358
    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4359
  fi
4360
  rm -f $ac_dest
4361
 
4362
  # Make relative symlinks.
4363
  # Remove last slash and all that follows it.  Not all systems have dirname.
4364
  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4365
  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4366
    # The dest file is in a subdirectory.
4367
    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4368
    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4369
    # A "../" for each directory in $ac_dest_dir_suffix.
4370
    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4371
  else
4372
    ac_dest_dir_suffix= ac_dots=
4373
  fi
4374
 
4375
  case "$srcdir" in
4376
  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4377
  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4378
  esac
4379
 
4380
  # Make a symlink if possible; otherwise try a hard link.
4381
  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4382
    ln $srcdir/$ac_source $ac_dest; then :
4383
  else
4384
    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4385
  fi
4386
done
4387
EOF
4388
cat >> $CONFIG_STATUS <
4389
 
4390
EOF
4391
cat >> $CONFIG_STATUS <<\EOF
4392
case "x$CONFIG_FILES" in
4393
 xMakefile*)
4394
   echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
4395
   rm -f Makesim1.tmp Makesim2.tmp Makefile
4396
   sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' Makesim1.tmp
4397
   sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' Makesim2.tmp
4398
   sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
4399
        -e '/^## COMMON_POST_/ r Makesim2.tmp' \
4400
        Makefile
4401
   rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
4402
   ;;
4403
 esac
4404
 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
4405
 
4406
exit 0
4407
EOF
4408
chmod +x $CONFIG_STATUS
4409
rm -fr confdefs* $ac_clean_files
4410
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4411
 
4412
 

powered by: WebSVN 2.1.0

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