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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [sim/] [w65/] [configure] - Blame information for rev 1767

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

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

powered by: WebSVN 2.1.0

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