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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [sim/] [d30v/] [configure] - Blame information for rev 1782

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

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

powered by: WebSVN 2.1.0

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