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

Subversion Repositories or1k

[/] [or1k/] [tags/] [VER_5_3/] [gdb-5.3/] [sim/] [common/] [configure] - Blame information for rev 1783

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

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

powered by: WebSVN 2.1.0

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