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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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