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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [ppc/] [configure] - Blame information for rev 856

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

Line No. Rev Author Line
1 131 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
4
#
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization.  ##
10
## --------------------- ##
11
 
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
  emulate sh
15
  NULLCMD=:
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
  # is contrary to our usage.  Disable this feature.
18
  alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
  set -o posix
21
fi
22
DUALCASE=1; export DUALCASE # for MKS sh
23
 
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
  as_unset=unset
27
else
28
  as_unset=false
29
fi
30
 
31
 
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
34
PS1='$ '
35
PS2='> '
36
PS4='+ '
37
 
38
# NLS nuisances.
39
for as_var in \
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
  LC_TELEPHONE LC_TIME
43
do
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
    eval $as_var=C; export $as_var
46
  else
47
    $as_unset $as_var
48
  fi
49
done
50
 
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
53
  as_expr=expr
54
else
55
  as_expr=false
56
fi
57
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
  as_basename=basename
60
else
61
  as_basename=false
62
fi
63
 
64
 
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
         X"$0" : 'X\(//\)$' \| \
69
         X"$0" : 'X\(/\)$' \| \
70
         .     : '\(.\)' 2>/dev/null ||
71
echo X/"$0" |
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
          /^X\/\(\/\).*/{ s//\1/; q; }
75
          s/.*/./; q'`
76
 
77
 
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
  echo "#! /bin/sh" >conf$$.sh
89
  echo  "exit 0"   >>conf$$.sh
90
  chmod +x conf$$.sh
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
    PATH_SEPARATOR=';'
93
  else
94
    PATH_SEPARATOR=:
95
  fi
96
  rm -f conf$$.sh
97
fi
98
 
99
 
100
  as_lineno_1=$LINENO
101
  as_lineno_2=$LINENO
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
  # Find who we are.  Look in the path if we contain no path at all
106
  # relative or not.
107
  case $0 in
108
    *[\\/]* ) as_myself=$0 ;;
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
for as_dir in $PATH
111
do
112
  IFS=$as_save_IFS
113
  test -z "$as_dir" && as_dir=.
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
done
116
 
117
       ;;
118
  esac
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
  # in which case we are not to be found in the path.
121
  if test "x$as_myself" = x; then
122
    as_myself=$0
123
  fi
124
  if test ! -f "$as_myself"; then
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
   { (exit 1); exit 1; }; }
127
  fi
128
  case $CONFIG_SHELL in
129
  '')
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
do
133
  IFS=$as_save_IFS
134
  test -z "$as_dir" && as_dir=.
135
  for as_base in sh bash ksh sh5; do
136
         case $as_dir in
137
         /*)
138
           if ("$as_dir/$as_base" -c '
139
  as_lineno_1=$LINENO
140
  as_lineno_2=$LINENO
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
             CONFIG_SHELL=$as_dir/$as_base
147
             export CONFIG_SHELL
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
           fi;;
150
         esac
151
       done
152
done
153
;;
154
  esac
155
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
  # line-number line before each line; the second 'sed' does the real
159
  # work.  The second script uses 'N' to pair each line-number line
160
  # with the numbered line, and appends trailing '-' during
161
  # substitution so that $LINENO is not a special case at line end.
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
  sed '=' <$as_myself |
165
    sed '
166
      N
167
      s,$,-,
168
      : loop
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
      t loop
171
      s,-$,,
172
      s,^['$as_cr_digits']*\n,,
173
    ' >$as_me.lineno &&
174
  chmod +x $as_me.lineno ||
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
   { (exit 1); exit 1; }; }
177
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
179
  # (the dirname of $[0] is not the place where we might find the
180
  # original and so on.  Autoconf is especially sensible to this).
181
  . ./$as_me.lineno
182
  # Exit status is that of the last command.
183
  exit
184
}
185
 
186
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
  *c*,-n*) ECHO_N= ECHO_C='
189
' ECHO_T='      ' ;;
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
esac
193
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
195
  as_expr=expr
196
else
197
  as_expr=false
198
fi
199
 
200
rm -f conf$$ conf$$.exe conf$$.file
201
echo >conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
  # We could just check for DJGPP; but this test a) works b) is more generic
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
  if test -f conf$$.exe; then
206
    # Don't use ln at all; we don't have any links
207
    as_ln_s='cp -p'
208
  else
209
    as_ln_s='ln -s'
210
  fi
211
elif ln conf$$.file conf$$ 2>/dev/null; then
212
  as_ln_s=ln
213
else
214
  as_ln_s='cp -p'
215
fi
216
rm -f conf$$ conf$$.exe conf$$.file
217
 
218
if mkdir -p . 2>/dev/null; then
219
  as_mkdir_p=:
220
else
221
  test -d ./-p && rmdir ./-p
222
  as_mkdir_p=false
223
fi
224
 
225
as_executable_p="test -f"
226
 
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
233
 
234
# IFS
235
# We need space, tab and new line, in precisely that order.
236
as_nl='
237
'
238
IFS="   $as_nl"
239
 
240
# CDPATH.
241
$as_unset CDPATH
242
 
243
 
244
# Name of the host.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
 
249
exec 6>&1
250
 
251
#
252
# Initializations.
253
#
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
256
cross_compiling=no
257
subdirs=
258
MFLAGS=
259
MAKEFLAGS=
260
SHELL=${CONFIG_SHELL-/bin/sh}
261
 
262
# Maximum number of lines to put in a shell here document.
263
# This variable seems obsolete.  It should probably be removed, and
264
# only ac_max_sed_lines should be used.
265
: ${ac_max_here_lines=38}
266
 
267
# Identity of this package.
268
PACKAGE_NAME=
269
PACKAGE_TARNAME=
270
PACKAGE_VERSION=
271
PACKAGE_STRING=
272
PACKAGE_BUGREPORT=
273
 
274
ac_unique_file="Makefile.in"
275
# Factoring default headers for most tests.
276
ac_includes_default="\
277
#include 
278
#if HAVE_SYS_TYPES_H
279
# include 
280
#endif
281
#if HAVE_SYS_STAT_H
282
# include 
283
#endif
284
#if STDC_HEADERS
285
# include 
286
# include 
287
#else
288
# if HAVE_STDLIB_H
289
#  include 
290
# endif
291
#endif
292
#if HAVE_STRING_H
293
# if !STDC_HEADERS && HAVE_MEMORY_H
294
#  include 
295
# endif
296
# include 
297
#endif
298
#if HAVE_STRINGS_H
299
# include 
300
#endif
301
#if HAVE_INTTYPES_H
302
# include 
303
#else
304
# if HAVE_STDINT_H
305
#  include 
306
# endif
307
#endif
308
#if HAVE_UNISTD_H
309
# include 
310
#endif"
311
 
312
ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP LIBOBJS CC_FOR_BUILD CFLAGS_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB sim_cflags sim_warnings sim_line_nr sim_config sim_opcode sim_switch sim_dup sim_decode_mechanism sim_jump sim_filter sim_icache sim_hw_src sim_hw_obj sim_pk_src sim_pk_obj sim_bswap sim_igen_smp sim_hostbitsize sim_env sim_timebase sim_trace sim_reserved sim_monitor sim_model sim_model_issue sim_stdio sim_termio sim_devzero sim_callback sim_targ_vals sim_fpu_cflags sim_fpu LTLIBOBJS'
313
ac_subst_files=''
314
 
315
# Initialize some variables set by options.
316
ac_init_help=
317
ac_init_version=false
318
# The variables have the same names as the options, with
319
# dashes changed to underlines.
320
cache_file=/dev/null
321
exec_prefix=NONE
322
no_create=
323
no_recursion=
324
prefix=NONE
325
program_prefix=NONE
326
program_suffix=NONE
327
program_transform_name=s,x,x,
328
silent=
329
site=
330
srcdir=
331
verbose=
332
x_includes=NONE
333
x_libraries=NONE
334
 
335
# Installation directory options.
336
# These are left unexpanded so users can "make install exec_prefix=/foo"
337
# and all the variables that are supposed to be based on exec_prefix
338
# by default will actually change.
339
# Use braces instead of parens because sh, perl, etc. also accept them.
340
bindir='${exec_prefix}/bin'
341
sbindir='${exec_prefix}/sbin'
342
libexecdir='${exec_prefix}/libexec'
343
datadir='${prefix}/share'
344
sysconfdir='${prefix}/etc'
345
sharedstatedir='${prefix}/com'
346
localstatedir='${prefix}/var'
347
libdir='${exec_prefix}/lib'
348
includedir='${prefix}/include'
349
oldincludedir='/usr/include'
350
infodir='${prefix}/info'
351
mandir='${prefix}/man'
352
 
353
ac_prev=
354
for ac_option
355
do
356
  # If the previous option needs an argument, assign it.
357
  if test -n "$ac_prev"; then
358
    eval "$ac_prev=\$ac_option"
359
    ac_prev=
360
    continue
361
  fi
362
 
363
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
 
365
  # Accept the important Cygnus configure options, so we can diagnose typos.
366
 
367
  case $ac_option in
368
 
369
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370
    ac_prev=bindir ;;
371
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372
    bindir=$ac_optarg ;;
373
 
374
  -build | --build | --buil | --bui | --bu)
375
    ac_prev=build_alias ;;
376
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377
    build_alias=$ac_optarg ;;
378
 
379
  -cache-file | --cache-file | --cache-fil | --cache-fi \
380
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381
    ac_prev=cache_file ;;
382
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384
    cache_file=$ac_optarg ;;
385
 
386
  --config-cache | -C)
387
    cache_file=config.cache ;;
388
 
389
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390
    ac_prev=datadir ;;
391
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392
  | --da=*)
393
    datadir=$ac_optarg ;;
394
 
395
  -disable-* | --disable-*)
396
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397
    # Reject names that are not valid shell variable names.
398
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400
   { (exit 1); exit 1; }; }
401
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402
    eval "enable_$ac_feature=no" ;;
403
 
404
  -enable-* | --enable-*)
405
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406
    # Reject names that are not valid shell variable names.
407
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409
   { (exit 1); exit 1; }; }
410
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411
    case $ac_option in
412
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413
      *) ac_optarg=yes ;;
414
    esac
415
    eval "enable_$ac_feature='$ac_optarg'" ;;
416
 
417
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419
  | --exec | --exe | --ex)
420
    ac_prev=exec_prefix ;;
421
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423
  | --exec=* | --exe=* | --ex=*)
424
    exec_prefix=$ac_optarg ;;
425
 
426
  -gas | --gas | --ga | --g)
427
    # Obsolete; use --with-gas.
428
    with_gas=yes ;;
429
 
430
  -help | --help | --hel | --he | -h)
431
    ac_init_help=long ;;
432
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433
    ac_init_help=recursive ;;
434
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435
    ac_init_help=short ;;
436
 
437
  -host | --host | --hos | --ho)
438
    ac_prev=host_alias ;;
439
  -host=* | --host=* | --hos=* | --ho=*)
440
    host_alias=$ac_optarg ;;
441
 
442
  -includedir | --includedir | --includedi | --included | --include \
443
  | --includ | --inclu | --incl | --inc)
444
    ac_prev=includedir ;;
445
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446
  | --includ=* | --inclu=* | --incl=* | --inc=*)
447
    includedir=$ac_optarg ;;
448
 
449
  -infodir | --infodir | --infodi | --infod | --info | --inf)
450
    ac_prev=infodir ;;
451
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452
    infodir=$ac_optarg ;;
453
 
454
  -libdir | --libdir | --libdi | --libd)
455
    ac_prev=libdir ;;
456
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457
    libdir=$ac_optarg ;;
458
 
459
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460
  | --libexe | --libex | --libe)
461
    ac_prev=libexecdir ;;
462
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463
  | --libexe=* | --libex=* | --libe=*)
464
    libexecdir=$ac_optarg ;;
465
 
466
  -localstatedir | --localstatedir | --localstatedi | --localstated \
467
  | --localstate | --localstat | --localsta | --localst \
468
  | --locals | --local | --loca | --loc | --lo)
469
    ac_prev=localstatedir ;;
470
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473
    localstatedir=$ac_optarg ;;
474
 
475
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476
    ac_prev=mandir ;;
477
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478
    mandir=$ac_optarg ;;
479
 
480
  -nfp | --nfp | --nf)
481
    # Obsolete; use --without-fp.
482
    with_fp=no ;;
483
 
484
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485
  | --no-cr | --no-c | -n)
486
    no_create=yes ;;
487
 
488
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490
    no_recursion=yes ;;
491
 
492
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494
  | --oldin | --oldi | --old | --ol | --o)
495
    ac_prev=oldincludedir ;;
496
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499
    oldincludedir=$ac_optarg ;;
500
 
501
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502
    ac_prev=prefix ;;
503
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504
    prefix=$ac_optarg ;;
505
 
506
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507
  | --program-pre | --program-pr | --program-p)
508
    ac_prev=program_prefix ;;
509
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511
    program_prefix=$ac_optarg ;;
512
 
513
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514
  | --program-suf | --program-su | --program-s)
515
    ac_prev=program_suffix ;;
516
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518
    program_suffix=$ac_optarg ;;
519
 
520
  -program-transform-name | --program-transform-name \
521
  | --program-transform-nam | --program-transform-na \
522
  | --program-transform-n | --program-transform- \
523
  | --program-transform | --program-transfor \
524
  | --program-transfo | --program-transf \
525
  | --program-trans | --program-tran \
526
  | --progr-tra | --program-tr | --program-t)
527
    ac_prev=program_transform_name ;;
528
  -program-transform-name=* | --program-transform-name=* \
529
  | --program-transform-nam=* | --program-transform-na=* \
530
  | --program-transform-n=* | --program-transform-=* \
531
  | --program-transform=* | --program-transfor=* \
532
  | --program-transfo=* | --program-transf=* \
533
  | --program-trans=* | --program-tran=* \
534
  | --progr-tra=* | --program-tr=* | --program-t=*)
535
    program_transform_name=$ac_optarg ;;
536
 
537
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538
  | -silent | --silent | --silen | --sile | --sil)
539
    silent=yes ;;
540
 
541
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542
    ac_prev=sbindir ;;
543
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544
  | --sbi=* | --sb=*)
545
    sbindir=$ac_optarg ;;
546
 
547
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549
  | --sharedst | --shareds | --shared | --share | --shar \
550
  | --sha | --sh)
551
    ac_prev=sharedstatedir ;;
552
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555
  | --sha=* | --sh=*)
556
    sharedstatedir=$ac_optarg ;;
557
 
558
  -site | --site | --sit)
559
    ac_prev=site ;;
560
  -site=* | --site=* | --sit=*)
561
    site=$ac_optarg ;;
562
 
563
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564
    ac_prev=srcdir ;;
565
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566
    srcdir=$ac_optarg ;;
567
 
568
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569
  | --syscon | --sysco | --sysc | --sys | --sy)
570
    ac_prev=sysconfdir ;;
571
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573
    sysconfdir=$ac_optarg ;;
574
 
575
  -target | --target | --targe | --targ | --tar | --ta | --t)
576
    ac_prev=target_alias ;;
577
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578
    target_alias=$ac_optarg ;;
579
 
580
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581
    verbose=yes ;;
582
 
583
  -version | --version | --versio | --versi | --vers | -V)
584
    ac_init_version=: ;;
585
 
586
  -with-* | --with-*)
587
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588
    # Reject names that are not valid shell variable names.
589
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590
      { echo "$as_me: error: invalid package name: $ac_package" >&2
591
   { (exit 1); exit 1; }; }
592
    ac_package=`echo $ac_package| sed 's/-/_/g'`
593
    case $ac_option in
594
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595
      *) ac_optarg=yes ;;
596
    esac
597
    eval "with_$ac_package='$ac_optarg'" ;;
598
 
599
  -without-* | --without-*)
600
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601
    # Reject names that are not valid shell variable names.
602
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603
      { echo "$as_me: error: invalid package name: $ac_package" >&2
604
   { (exit 1); exit 1; }; }
605
    ac_package=`echo $ac_package | sed 's/-/_/g'`
606
    eval "with_$ac_package=no" ;;
607
 
608
  --x)
609
    # Obsolete; use --with-x.
610
    with_x=yes ;;
611
 
612
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613
  | --x-incl | --x-inc | --x-in | --x-i)
614
    ac_prev=x_includes ;;
615
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617
    x_includes=$ac_optarg ;;
618
 
619
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621
    ac_prev=x_libraries ;;
622
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624
    x_libraries=$ac_optarg ;;
625
 
626
  -*) { echo "$as_me: error: unrecognized option: $ac_option
627
Try \`$0 --help' for more information." >&2
628
   { (exit 1); exit 1; }; }
629
    ;;
630
 
631
  *=*)
632
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633
    # Reject names that are not valid shell variable names.
634
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636
   { (exit 1); exit 1; }; }
637
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638
    eval "$ac_envvar='$ac_optarg'"
639
    export $ac_envvar ;;
640
 
641
  *)
642
    # FIXME: should be removed in autoconf 3.0.
643
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647
    ;;
648
 
649
  esac
650
done
651
 
652
if test -n "$ac_prev"; then
653
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654
  { echo "$as_me: error: missing argument to $ac_option" >&2
655
   { (exit 1); exit 1; }; }
656
fi
657
 
658
# Be sure to have absolute paths.
659
for ac_var in exec_prefix prefix
660
do
661
  eval ac_val=$`echo $ac_var`
662
  case $ac_val in
663
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665
   { (exit 1); exit 1; }; };;
666
  esac
667
done
668
 
669
# Be sure to have absolute paths.
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671
              localstatedir libdir includedir oldincludedir infodir mandir
672
do
673
  eval ac_val=$`echo $ac_var`
674
  case $ac_val in
675
    [\\/$]* | ?:[\\/]* ) ;;
676
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677
   { (exit 1); exit 1; }; };;
678
  esac
679
done
680
 
681
# There might be people who depend on the old broken behavior: `$host'
682
# used to hold the argument of --host etc.
683
# FIXME: To remove some day.
684
build=$build_alias
685
host=$host_alias
686
target=$target_alias
687
 
688
# FIXME: To remove some day.
689
if test "x$host_alias" != x; then
690
  if test "x$build_alias" = x; then
691
    cross_compiling=maybe
692
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693
    If a cross compiler is detected then cross compile mode will be used." >&2
694
  elif test "x$build_alias" != "x$host_alias"; then
695
    cross_compiling=yes
696
  fi
697
fi
698
 
699
ac_tool_prefix=
700
test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
 
702
test "$silent" = yes && exec 6>/dev/null
703
 
704
 
705
# Find the source files, if location was not specified.
706
if test -z "$srcdir"; then
707
  ac_srcdir_defaulted=yes
708
  # Try the directory containing this script, then its parent.
709
  ac_confdir=`(dirname "$0") 2>/dev/null ||
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711
         X"$0" : 'X\(//\)[^/]' \| \
712
         X"$0" : 'X\(//\)$' \| \
713
         X"$0" : 'X\(/\)' \| \
714
         .     : '\(.\)' 2>/dev/null ||
715
echo X"$0" |
716
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718
          /^X\(\/\/\)$/{ s//\1/; q; }
719
          /^X\(\/\).*/{ s//\1/; q; }
720
          s/.*/./; q'`
721
  srcdir=$ac_confdir
722
  if test ! -r $srcdir/$ac_unique_file; then
723
    srcdir=..
724
  fi
725
else
726
  ac_srcdir_defaulted=no
727
fi
728
if test ! -r $srcdir/$ac_unique_file; then
729
  if test "$ac_srcdir_defaulted" = yes; then
730
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731
   { (exit 1); exit 1; }; }
732
  else
733
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734
   { (exit 1); exit 1; }; }
735
  fi
736
fi
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739
   { (exit 1); exit 1; }; }
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741
ac_env_build_alias_set=${build_alias+set}
742
ac_env_build_alias_value=$build_alias
743
ac_cv_env_build_alias_set=${build_alias+set}
744
ac_cv_env_build_alias_value=$build_alias
745
ac_env_host_alias_set=${host_alias+set}
746
ac_env_host_alias_value=$host_alias
747
ac_cv_env_host_alias_set=${host_alias+set}
748
ac_cv_env_host_alias_value=$host_alias
749
ac_env_target_alias_set=${target_alias+set}
750
ac_env_target_alias_value=$target_alias
751
ac_cv_env_target_alias_set=${target_alias+set}
752
ac_cv_env_target_alias_value=$target_alias
753
ac_env_CC_set=${CC+set}
754
ac_env_CC_value=$CC
755
ac_cv_env_CC_set=${CC+set}
756
ac_cv_env_CC_value=$CC
757
ac_env_CFLAGS_set=${CFLAGS+set}
758
ac_env_CFLAGS_value=$CFLAGS
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
760
ac_cv_env_CFLAGS_value=$CFLAGS
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
762
ac_env_LDFLAGS_value=$LDFLAGS
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766
ac_env_CPPFLAGS_value=$CPPFLAGS
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769
ac_env_CPP_set=${CPP+set}
770
ac_env_CPP_value=$CPP
771
ac_cv_env_CPP_set=${CPP+set}
772
ac_cv_env_CPP_value=$CPP
773
 
774
#
775
# Report the --help message.
776
#
777
if test "$ac_init_help" = "long"; then
778
  # Omit some internal or obsolete options to make the list less imposing.
779
  # This message is too long to be a string in the A/UX 3.1 sh.
780
  cat <<_ACEOF
781
\`configure' configures this package to adapt to many kinds of systems.
782
 
783
Usage: $0 [OPTION]... [VAR=VALUE]...
784
 
785
To assign environment variables (e.g., CC, CFLAGS...), specify them as
786
VAR=VALUE.  See below for descriptions of some of the useful variables.
787
 
788
Defaults for the options are specified in brackets.
789
 
790
Configuration:
791
  -h, --help              display this help and exit
792
      --help=short        display options specific to this package
793
      --help=recursive    display the short help of all the included packages
794
  -V, --version           display version information and exit
795
  -q, --quiet, --silent   do not print \`checking...' messages
796
      --cache-file=FILE   cache test results in FILE [disabled]
797
  -C, --config-cache      alias for \`--cache-file=config.cache'
798
  -n, --no-create         do not create output files
799
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
 
801
_ACEOF
802
 
803
  cat <<_ACEOF
804
Installation directories:
805
  --prefix=PREFIX         install architecture-independent files in PREFIX
806
                          [$ac_default_prefix]
807
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808
                          [PREFIX]
809
 
810
By default, \`make install' will install all the files in
811
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813
for instance \`--prefix=\$HOME'.
814
 
815
For better control, use the options below.
816
 
817
Fine tuning of the installation directories:
818
  --bindir=DIR           user executables [EPREFIX/bin]
819
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820
  --libexecdir=DIR       program executables [EPREFIX/libexec]
821
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825
  --libdir=DIR           object code libraries [EPREFIX/lib]
826
  --includedir=DIR       C header files [PREFIX/include]
827
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828
  --infodir=DIR          info documentation [PREFIX/info]
829
  --mandir=DIR           man documentation [PREFIX/man]
830
_ACEOF
831
 
832
  cat <<\_ACEOF
833
 
834
Program names:
835
  --program-prefix=PREFIX            prepend PREFIX to installed program names
836
  --program-suffix=SUFFIX            append SUFFIX to installed program names
837
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
 
839
System types:
840
  --build=BUILD     configure for building on BUILD [guessed]
841
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842
  --target=TARGET   configure for building compilers for TARGET [HOST]
843
_ACEOF
844
fi
845
 
846
if test -n "$ac_init_help"; then
847
 
848
  cat <<\_ACEOF
849
 
850
Optional Features:
851
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853
  --enable-sim-alignment=align          Specify strict or nonstrict alignment.
854
  --enable-sim-assert                   Specify whether to perform random assertions.
855
  --enable-sim-bitsize=n                Specify target bitsize (32 or 64).
856
  --enable-sim-bswap                    Use the BSWAP instruction on Intel 486s and Pentiums.
857
  --enable-sim-cflags=opts              Extra CFLAGS for use in building simulator
858
  --enable-sim-config=file              Override default config file
859
  --enable-sim-decode-mechanism=which           Specify the instruction decode mechanism.
860
  --enable-sim-default-model=which      Specify default PowerPC to model.
861
  --enable-sim-duplicate                Expand (duplicate) semantic functions.
862
  --enable-sim-endian=endian            Specify target byte endian orientation.
863
  --enable-sim-env=env                  Specify target environment (operating, virtual, user).
864
  --enable-sim-filter=rule              Specify filter rules.
865
  --enable-sim-float                    Specify whether the target has hard, soft, altivec or e500 floating point.
866
  --enable-sim-hardware=list            Specify the hardware to be included in the build.
867
  --enable-sim-hostbitsize=32|64        Specify host bitsize (32 or 64).
868
  --enable-sim-hostendian=end           Specify host byte endian orientation.
869
  --enable-sim-icache=size              Specify instruction-decode cache size and type.
870
  --enable-sim-inline=inlines           Specify which functions should be inlined.
871
  --enable-sim-jump             Jump between semantic code (instead of call/return).
872
  --enable-sim-line-nr=opts             Generate extra CPP code that references source rather than generated code
873
  --enable-sim-model=which              Specify PowerPC to model.
874
  --enable-sim-model-issue              Specify whether to simulate model specific actions
875
  --enable-sim-monitor=mon              Specify whether to enable monitoring events.
876
  --enable-sim-opcode=which             Override default opcode lookup.
877
  --enable-sim-packages=list            Specify the packages to be included in the build.
878
  --enable-sim-regparm=nr-parm          Pass parameters in registers instead of on the stack - x86/GCC specific.
879
  --enable-sim-reserved-bits            Specify whether to check reserved bits in instruction.
880
  --enable-sim-smp=n                    Specify number of processors to configure for.
881
  --enable-sim-stdcall=type             Use an alternative function call/return mechanism - x86/GCC specific.
882
  --enable-sim-stdio                    Specify whether to use stdio for console input/output.
883
  --enable-sim-switch                   Use a switch instead of a table for instruction call.
884
  --enable-sim-timebase                 Specify whether the PPC timebase is supported.
885
  --enable-sim-trace                    Specify whether tracing is supported.
886
  --enable-sim-warnings=opts            Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
887
  --enable-sim-xor-endian=n             Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
888
 
889
Some influential environment variables:
890
  CC          C compiler command
891
  CFLAGS      C compiler flags
892
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
893
              nonstandard directory 
894
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
895
              headers in a nonstandard directory 
896
  CPP         C preprocessor
897
 
898
Use these variables to override the choices made by `configure' or to help
899
it to find libraries and programs with nonstandard names/locations.
900
 
901
_ACEOF
902
fi
903
 
904
if test "$ac_init_help" = "recursive"; then
905
  # If there are subdirs, report their specific --help.
906
  ac_popdir=`pwd`
907
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
908
    test -d $ac_dir || continue
909
    ac_builddir=.
910
 
911
if test "$ac_dir" != .; then
912
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
913
  # A "../" for each directory in $ac_dir_suffix.
914
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
915
else
916
  ac_dir_suffix= ac_top_builddir=
917
fi
918
 
919
case $srcdir in
920
  .)  # No --srcdir option.  We are building in place.
921
    ac_srcdir=.
922
    if test -z "$ac_top_builddir"; then
923
       ac_top_srcdir=.
924
    else
925
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
926
    fi ;;
927
  [\\/]* | ?:[\\/]* )  # Absolute path.
928
    ac_srcdir=$srcdir$ac_dir_suffix;
929
    ac_top_srcdir=$srcdir ;;
930
  *) # Relative path.
931
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
933
esac
934
 
935
# Do not use `cd foo && pwd` to compute absolute paths, because
936
# the directories may not exist.
937
case `pwd` in
938
.) ac_abs_builddir="$ac_dir";;
939
*)
940
  case "$ac_dir" in
941
  .) ac_abs_builddir=`pwd`;;
942
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
943
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
944
  esac;;
945
esac
946
case $ac_abs_builddir in
947
.) ac_abs_top_builddir=${ac_top_builddir}.;;
948
*)
949
  case ${ac_top_builddir}. in
950
  .) ac_abs_top_builddir=$ac_abs_builddir;;
951
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
952
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953
  esac;;
954
esac
955
case $ac_abs_builddir in
956
.) ac_abs_srcdir=$ac_srcdir;;
957
*)
958
  case $ac_srcdir in
959
  .) ac_abs_srcdir=$ac_abs_builddir;;
960
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
961
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962
  esac;;
963
esac
964
case $ac_abs_builddir in
965
.) ac_abs_top_srcdir=$ac_top_srcdir;;
966
*)
967
  case $ac_top_srcdir in
968
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
969
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
970
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
971
  esac;;
972
esac
973
 
974
    cd $ac_dir
975
    # Check for guested configure; otherwise get Cygnus style configure.
976
    if test -f $ac_srcdir/configure.gnu; then
977
      echo
978
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
979
    elif test -f $ac_srcdir/configure; then
980
      echo
981
      $SHELL $ac_srcdir/configure  --help=recursive
982
    elif test -f $ac_srcdir/configure.ac ||
983
           test -f $ac_srcdir/configure.in; then
984
      echo
985
      $ac_configure --help
986
    else
987
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988
    fi
989
    cd $ac_popdir
990
  done
991
fi
992
 
993
test -n "$ac_init_help" && exit 0
994
if $ac_init_version; then
995
  cat <<\_ACEOF
996
 
997
Copyright (C) 2003 Free Software Foundation, Inc.
998
This configure script is free software; the Free Software Foundation
999
gives unlimited permission to copy, distribute and modify it.
1000
_ACEOF
1001
  exit 0
1002
fi
1003
exec 5>config.log
1004
cat >&5 <<_ACEOF
1005
This file contains any messages produced by compilers while
1006
running configure, to aid debugging if configure makes a mistake.
1007
 
1008
It was created by $as_me, which was
1009
generated by GNU Autoconf 2.59.  Invocation command line was
1010
 
1011
  $ $0 $@
1012
 
1013
_ACEOF
1014
{
1015
cat <<_ASUNAME
1016
## --------- ##
1017
## Platform. ##
1018
## --------- ##
1019
 
1020
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025
 
1026
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1028
 
1029
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1030
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1031
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1033
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1034
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1035
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1036
 
1037
_ASUNAME
1038
 
1039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040
for as_dir in $PATH
1041
do
1042
  IFS=$as_save_IFS
1043
  test -z "$as_dir" && as_dir=.
1044
  echo "PATH: $as_dir"
1045
done
1046
 
1047
} >&5
1048
 
1049
cat >&5 <<_ACEOF
1050
 
1051
 
1052
## ----------- ##
1053
## Core tests. ##
1054
## ----------- ##
1055
 
1056
_ACEOF
1057
 
1058
 
1059
# Keep a trace of the command line.
1060
# Strip out --no-create and --no-recursion so they do not pile up.
1061
# Strip out --silent because we don't want to record it for future runs.
1062
# Also quote any args containing shell meta-characters.
1063
# Make two passes to allow for proper duplicate-argument suppression.
1064
ac_configure_args=
1065
ac_configure_args0=
1066
ac_configure_args1=
1067
ac_sep=
1068
ac_must_keep_next=false
1069
for ac_pass in 1 2
1070
do
1071
  for ac_arg
1072
  do
1073
    case $ac_arg in
1074
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076
    | -silent | --silent | --silen | --sile | --sil)
1077
      continue ;;
1078
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080
    esac
1081
    case $ac_pass in
1082
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083
    2)
1084
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085
      if test $ac_must_keep_next = true; then
1086
        ac_must_keep_next=false # Got value, back to normal.
1087
      else
1088
        case $ac_arg in
1089
          *=* | --config-cache | -C | -disable-* | --disable-* \
1090
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092
          | -with-* | --with-* | -without-* | --without-* | --x)
1093
            case "$ac_configure_args0 " in
1094
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095
            esac
1096
            ;;
1097
          -* ) ac_must_keep_next=true ;;
1098
        esac
1099
      fi
1100
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101
      # Get rid of the leading space.
1102
      ac_sep=" "
1103
      ;;
1104
    esac
1105
  done
1106
done
1107
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109
 
1110
# When interrupted or exit'd, cleanup temporary files, and complete
1111
# config.log.  We remove comments because anyway the quotes in there
1112
# would cause problems or look ugly.
1113
# WARNING: Be sure not to use single quotes in there, as some shells,
1114
# such as our DU 5.0 friend, will then `close' the trap.
1115
trap 'exit_status=$?
1116
  # Save into config.log some information that might help in debugging.
1117
  {
1118
    echo
1119
 
1120
    cat <<\_ASBOX
1121
## ---------------- ##
1122
## Cache variables. ##
1123
## ---------------- ##
1124
_ASBOX
1125
    echo
1126
    # The following way of writing the cache mishandles newlines in values,
1127
{
1128
  (set) 2>&1 |
1129
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130
    *ac_space=\ *)
1131
      sed -n \
1132
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134
      ;;
1135
    *)
1136
      sed -n \
1137
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138
      ;;
1139
    esac;
1140
}
1141
    echo
1142
 
1143
    cat <<\_ASBOX
1144
## ----------------- ##
1145
## Output variables. ##
1146
## ----------------- ##
1147
_ASBOX
1148
    echo
1149
    for ac_var in $ac_subst_vars
1150
    do
1151
      eval ac_val=$`echo $ac_var`
1152
      echo "$ac_var='"'"'$ac_val'"'"'"
1153
    done | sort
1154
    echo
1155
 
1156
    if test -n "$ac_subst_files"; then
1157
      cat <<\_ASBOX
1158
## ------------- ##
1159
## Output files. ##
1160
## ------------- ##
1161
_ASBOX
1162
      echo
1163
      for ac_var in $ac_subst_files
1164
      do
1165
        eval ac_val=$`echo $ac_var`
1166
        echo "$ac_var='"'"'$ac_val'"'"'"
1167
      done | sort
1168
      echo
1169
    fi
1170
 
1171
    if test -s confdefs.h; then
1172
      cat <<\_ASBOX
1173
## ----------- ##
1174
## confdefs.h. ##
1175
## ----------- ##
1176
_ASBOX
1177
      echo
1178
      sed "/^$/d" confdefs.h | sort
1179
      echo
1180
    fi
1181
    test "$ac_signal" != 0 &&
1182
      echo "$as_me: caught signal $ac_signal"
1183
    echo "$as_me: exit $exit_status"
1184
  } >&5
1185
  rm -f core *.core &&
1186
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187
    exit $exit_status
1188
     ' 0
1189
for ac_signal in 1 2 13 15; do
1190
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191
done
1192
ac_signal=0
1193
 
1194
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1195
rm -rf conftest* confdefs.h
1196
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197
echo >confdefs.h
1198
 
1199
# Predefined preprocessor variables.
1200
 
1201
cat >>confdefs.h <<_ACEOF
1202
#define PACKAGE_NAME "$PACKAGE_NAME"
1203
_ACEOF
1204
 
1205
 
1206
cat >>confdefs.h <<_ACEOF
1207
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208
_ACEOF
1209
 
1210
 
1211
cat >>confdefs.h <<_ACEOF
1212
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1213
_ACEOF
1214
 
1215
 
1216
cat >>confdefs.h <<_ACEOF
1217
#define PACKAGE_STRING "$PACKAGE_STRING"
1218
_ACEOF
1219
 
1220
 
1221
cat >>confdefs.h <<_ACEOF
1222
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223
_ACEOF
1224
 
1225
 
1226
# Let the site file select an alternate cache file if it wants to.
1227
# Prefer explicitly selected file to automatically selected ones.
1228
if test -z "$CONFIG_SITE"; then
1229
  if test "x$prefix" != xNONE; then
1230
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231
  else
1232
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233
  fi
1234
fi
1235
for ac_site_file in $CONFIG_SITE; do
1236
  if test -r "$ac_site_file"; then
1237
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238
echo "$as_me: loading site script $ac_site_file" >&6;}
1239
    sed 's/^/| /' "$ac_site_file" >&5
1240
    . "$ac_site_file"
1241
  fi
1242
done
1243
 
1244
if test -r "$cache_file"; then
1245
  # Some versions of bash will fail to source /dev/null (special
1246
  # files actually), so we avoid doing that.
1247
  if test -f "$cache_file"; then
1248
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249
echo "$as_me: loading cache $cache_file" >&6;}
1250
    case $cache_file in
1251
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1252
      *)                      . ./$cache_file;;
1253
    esac
1254
  fi
1255
else
1256
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257
echo "$as_me: creating cache $cache_file" >&6;}
1258
  >$cache_file
1259
fi
1260
 
1261
# Check that the precious variables saved in the cache have kept the same
1262
# value.
1263
ac_cache_corrupted=false
1264
for ac_var in `(set) 2>&1 |
1265
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267
  eval ac_new_set=\$ac_env_${ac_var}_set
1268
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269
  eval ac_new_val="\$ac_env_${ac_var}_value"
1270
  case $ac_old_set,$ac_new_set in
1271
    set,)
1272
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274
      ac_cache_corrupted=: ;;
1275
    ,set)
1276
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278
      ac_cache_corrupted=: ;;
1279
    ,);;
1280
    *)
1281
      if test "x$ac_old_val" != "x$ac_new_val"; then
1282
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1285
echo "$as_me:   former value:  $ac_old_val" >&2;}
1286
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1287
echo "$as_me:   current value: $ac_new_val" >&2;}
1288
        ac_cache_corrupted=:
1289
      fi;;
1290
  esac
1291
  # Pass precious variables to config.status.
1292
  if test "$ac_new_set" = set; then
1293
    case $ac_new_val in
1294
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296
    *) ac_arg=$ac_var=$ac_new_val ;;
1297
    esac
1298
    case " $ac_configure_args " in
1299
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1300
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301
    esac
1302
  fi
1303
done
1304
if $ac_cache_corrupted; then
1305
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309
   { (exit 1); exit 1; }; }
1310
fi
1311
 
1312
ac_ext=c
1313
ac_cpp='$CPP $CPPFLAGS'
1314
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317
 
1318
 
1319
 
1320
 
1321
 
1322
 
1323
 
1324
 
1325
 
1326
 
1327
 
1328
 
1329
 
1330
 
1331
 
1332
 
1333
 
1334
 
1335
 
1336
 
1337
ac_aux_dir=
1338
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1339
  if test -f $ac_dir/install-sh; then
1340
    ac_aux_dir=$ac_dir
1341
    ac_install_sh="$ac_aux_dir/install-sh -c"
1342
    break
1343
  elif test -f $ac_dir/install.sh; then
1344
    ac_aux_dir=$ac_dir
1345
    ac_install_sh="$ac_aux_dir/install.sh -c"
1346
    break
1347
  elif test -f $ac_dir/shtool; then
1348
    ac_aux_dir=$ac_dir
1349
    ac_install_sh="$ac_aux_dir/shtool install -c"
1350
    break
1351
  fi
1352
done
1353
if test -z "$ac_aux_dir"; then
1354
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1355
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1356
   { (exit 1); exit 1; }; }
1357
fi
1358
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
 
1362
# Find a good install program.  We prefer a C program (faster),
1363
# so one script is as good as another.  But avoid the broken or
1364
# incompatible versions:
1365
# SysV /etc/install, /usr/sbin/install
1366
# SunOS /usr/etc/install
1367
# IRIX /sbin/install
1368
# AIX /bin/install
1369
# AmigaOS /C/install, which installs bootblocks on floppy discs
1370
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1371
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1372
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1373
# OS/2's system install, which has a completely different semantic
1374
# ./install, which can be erroneously created by make from ./install.sh.
1375
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1376
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1377
if test -z "$INSTALL"; then
1378
if test "${ac_cv_path_install+set}" = set; then
1379
  echo $ECHO_N "(cached) $ECHO_C" >&6
1380
else
1381
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382
for as_dir in $PATH
1383
do
1384
  IFS=$as_save_IFS
1385
  test -z "$as_dir" && as_dir=.
1386
  # Account for people who put trailing slashes in PATH elements.
1387
case $as_dir/ in
1388
  ./ | .// | /cC/* | \
1389
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1390
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1391
  /usr/ucb/* ) ;;
1392
  *)
1393
    # OSF1 and SCO ODT 3.0 have their own names for install.
1394
    # Don't use installbsd from OSF since it installs stuff as root
1395
    # by default.
1396
    for ac_prog in ginstall scoinst install; do
1397
      for ac_exec_ext in '' $ac_executable_extensions; do
1398
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1399
          if test $ac_prog = install &&
1400
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1401
            # AIX install.  It has an incompatible calling convention.
1402
            :
1403
          elif test $ac_prog = install &&
1404
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1405
            # program-specific install script used by HP pwplus--don't use.
1406
            :
1407
          else
1408
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1409
            break 3
1410
          fi
1411
        fi
1412
      done
1413
    done
1414
    ;;
1415
esac
1416
done
1417
 
1418
 
1419
fi
1420
  if test "${ac_cv_path_install+set}" = set; then
1421
    INSTALL=$ac_cv_path_install
1422
  else
1423
    # As a last resort, use the slow shell script.  We don't cache a
1424
    # path for INSTALL within a source directory, because that will
1425
    # break other packages using the cache if that directory is
1426
    # removed, or if the path is relative.
1427
    INSTALL=$ac_install_sh
1428
  fi
1429
fi
1430
echo "$as_me:$LINENO: result: $INSTALL" >&5
1431
echo "${ECHO_T}$INSTALL" >&6
1432
 
1433
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1434
# It thinks the first close brace ends the variable substitution.
1435
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1436
 
1437
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1438
 
1439
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1440
 
1441
ac_ext=c
1442
ac_cpp='$CPP $CPPFLAGS'
1443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1446
if test -n "$ac_tool_prefix"; then
1447
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1448
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1449
echo "$as_me:$LINENO: checking for $ac_word" >&5
1450
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451
if test "${ac_cv_prog_CC+set}" = set; then
1452
  echo $ECHO_N "(cached) $ECHO_C" >&6
1453
else
1454
  if test -n "$CC"; then
1455
  ac_cv_prog_CC="$CC" # Let the user override the test.
1456
else
1457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458
for as_dir in $PATH
1459
do
1460
  IFS=$as_save_IFS
1461
  test -z "$as_dir" && as_dir=.
1462
  for ac_exec_ext in '' $ac_executable_extensions; do
1463
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1465
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1466
    break 2
1467
  fi
1468
done
1469
done
1470
 
1471
fi
1472
fi
1473
CC=$ac_cv_prog_CC
1474
if test -n "$CC"; then
1475
  echo "$as_me:$LINENO: result: $CC" >&5
1476
echo "${ECHO_T}$CC" >&6
1477
else
1478
  echo "$as_me:$LINENO: result: no" >&5
1479
echo "${ECHO_T}no" >&6
1480
fi
1481
 
1482
fi
1483
if test -z "$ac_cv_prog_CC"; then
1484
  ac_ct_CC=$CC
1485
  # Extract the first word of "gcc", so it can be a program name with args.
1486
set dummy gcc; ac_word=$2
1487
echo "$as_me:$LINENO: checking for $ac_word" >&5
1488
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1490
  echo $ECHO_N "(cached) $ECHO_C" >&6
1491
else
1492
  if test -n "$ac_ct_CC"; then
1493
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1494
else
1495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496
for as_dir in $PATH
1497
do
1498
  IFS=$as_save_IFS
1499
  test -z "$as_dir" && as_dir=.
1500
  for ac_exec_ext in '' $ac_executable_extensions; do
1501
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502
    ac_cv_prog_ac_ct_CC="gcc"
1503
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504
    break 2
1505
  fi
1506
done
1507
done
1508
 
1509
fi
1510
fi
1511
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1512
if test -n "$ac_ct_CC"; then
1513
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1514
echo "${ECHO_T}$ac_ct_CC" >&6
1515
else
1516
  echo "$as_me:$LINENO: result: no" >&5
1517
echo "${ECHO_T}no" >&6
1518
fi
1519
 
1520
  CC=$ac_ct_CC
1521
else
1522
  CC="$ac_cv_prog_CC"
1523
fi
1524
 
1525
if test -z "$CC"; then
1526
  if test -n "$ac_tool_prefix"; then
1527
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1528
set dummy ${ac_tool_prefix}cc; ac_word=$2
1529
echo "$as_me:$LINENO: checking for $ac_word" >&5
1530
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531
if test "${ac_cv_prog_CC+set}" = set; then
1532
  echo $ECHO_N "(cached) $ECHO_C" >&6
1533
else
1534
  if test -n "$CC"; then
1535
  ac_cv_prog_CC="$CC" # Let the user override the test.
1536
else
1537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538
for as_dir in $PATH
1539
do
1540
  IFS=$as_save_IFS
1541
  test -z "$as_dir" && as_dir=.
1542
  for ac_exec_ext in '' $ac_executable_extensions; do
1543
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1545
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546
    break 2
1547
  fi
1548
done
1549
done
1550
 
1551
fi
1552
fi
1553
CC=$ac_cv_prog_CC
1554
if test -n "$CC"; then
1555
  echo "$as_me:$LINENO: result: $CC" >&5
1556
echo "${ECHO_T}$CC" >&6
1557
else
1558
  echo "$as_me:$LINENO: result: no" >&5
1559
echo "${ECHO_T}no" >&6
1560
fi
1561
 
1562
fi
1563
if test -z "$ac_cv_prog_CC"; then
1564
  ac_ct_CC=$CC
1565
  # Extract the first word of "cc", so it can be a program name with args.
1566
set dummy cc; ac_word=$2
1567
echo "$as_me:$LINENO: checking for $ac_word" >&5
1568
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570
  echo $ECHO_N "(cached) $ECHO_C" >&6
1571
else
1572
  if test -n "$ac_ct_CC"; then
1573
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574
else
1575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576
for as_dir in $PATH
1577
do
1578
  IFS=$as_save_IFS
1579
  test -z "$as_dir" && as_dir=.
1580
  for ac_exec_ext in '' $ac_executable_extensions; do
1581
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582
    ac_cv_prog_ac_ct_CC="cc"
1583
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584
    break 2
1585
  fi
1586
done
1587
done
1588
 
1589
fi
1590
fi
1591
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592
if test -n "$ac_ct_CC"; then
1593
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594
echo "${ECHO_T}$ac_ct_CC" >&6
1595
else
1596
  echo "$as_me:$LINENO: result: no" >&5
1597
echo "${ECHO_T}no" >&6
1598
fi
1599
 
1600
  CC=$ac_ct_CC
1601
else
1602
  CC="$ac_cv_prog_CC"
1603
fi
1604
 
1605
fi
1606
if test -z "$CC"; then
1607
  # Extract the first word of "cc", so it can be a program name with args.
1608
set dummy cc; ac_word=$2
1609
echo "$as_me:$LINENO: checking for $ac_word" >&5
1610
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611
if test "${ac_cv_prog_CC+set}" = set; then
1612
  echo $ECHO_N "(cached) $ECHO_C" >&6
1613
else
1614
  if test -n "$CC"; then
1615
  ac_cv_prog_CC="$CC" # Let the user override the test.
1616
else
1617
  ac_prog_rejected=no
1618
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619
for as_dir in $PATH
1620
do
1621
  IFS=$as_save_IFS
1622
  test -z "$as_dir" && as_dir=.
1623
  for ac_exec_ext in '' $ac_executable_extensions; do
1624
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1626
       ac_prog_rejected=yes
1627
       continue
1628
     fi
1629
    ac_cv_prog_CC="cc"
1630
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631
    break 2
1632
  fi
1633
done
1634
done
1635
 
1636
if test $ac_prog_rejected = yes; then
1637
  # We found a bogon in the path, so make sure we never use it.
1638
  set dummy $ac_cv_prog_CC
1639
  shift
1640
  if test $# != 0; then
1641
    # We chose a different compiler from the bogus one.
1642
    # However, it has the same basename, so the bogon will be chosen
1643
    # first if we set CC to just the basename; use the full file name.
1644
    shift
1645
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1646
  fi
1647
fi
1648
fi
1649
fi
1650
CC=$ac_cv_prog_CC
1651
if test -n "$CC"; then
1652
  echo "$as_me:$LINENO: result: $CC" >&5
1653
echo "${ECHO_T}$CC" >&6
1654
else
1655
  echo "$as_me:$LINENO: result: no" >&5
1656
echo "${ECHO_T}no" >&6
1657
fi
1658
 
1659
fi
1660
if test -z "$CC"; then
1661
  if test -n "$ac_tool_prefix"; then
1662
  for ac_prog in cl
1663
  do
1664
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1665
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1666
echo "$as_me:$LINENO: checking for $ac_word" >&5
1667
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668
if test "${ac_cv_prog_CC+set}" = set; then
1669
  echo $ECHO_N "(cached) $ECHO_C" >&6
1670
else
1671
  if test -n "$CC"; then
1672
  ac_cv_prog_CC="$CC" # Let the user override the test.
1673
else
1674
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675
for as_dir in $PATH
1676
do
1677
  IFS=$as_save_IFS
1678
  test -z "$as_dir" && as_dir=.
1679
  for ac_exec_ext in '' $ac_executable_extensions; do
1680
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1682
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683
    break 2
1684
  fi
1685
done
1686
done
1687
 
1688
fi
1689
fi
1690
CC=$ac_cv_prog_CC
1691
if test -n "$CC"; then
1692
  echo "$as_me:$LINENO: result: $CC" >&5
1693
echo "${ECHO_T}$CC" >&6
1694
else
1695
  echo "$as_me:$LINENO: result: no" >&5
1696
echo "${ECHO_T}no" >&6
1697
fi
1698
 
1699
    test -n "$CC" && break
1700
  done
1701
fi
1702
if test -z "$CC"; then
1703
  ac_ct_CC=$CC
1704
  for ac_prog in cl
1705
do
1706
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1707
set dummy $ac_prog; ac_word=$2
1708
echo "$as_me:$LINENO: checking for $ac_word" >&5
1709
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711
  echo $ECHO_N "(cached) $ECHO_C" >&6
1712
else
1713
  if test -n "$ac_ct_CC"; then
1714
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715
else
1716
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717
for as_dir in $PATH
1718
do
1719
  IFS=$as_save_IFS
1720
  test -z "$as_dir" && as_dir=.
1721
  for ac_exec_ext in '' $ac_executable_extensions; do
1722
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723
    ac_cv_prog_ac_ct_CC="$ac_prog"
1724
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725
    break 2
1726
  fi
1727
done
1728
done
1729
 
1730
fi
1731
fi
1732
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1733
if test -n "$ac_ct_CC"; then
1734
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1735
echo "${ECHO_T}$ac_ct_CC" >&6
1736
else
1737
  echo "$as_me:$LINENO: result: no" >&5
1738
echo "${ECHO_T}no" >&6
1739
fi
1740
 
1741
  test -n "$ac_ct_CC" && break
1742
done
1743
 
1744
  CC=$ac_ct_CC
1745
fi
1746
 
1747
fi
1748
 
1749
 
1750
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1751
See \`config.log' for more details." >&5
1752
echo "$as_me: error: no acceptable C compiler found in \$PATH
1753
See \`config.log' for more details." >&2;}
1754
   { (exit 1); exit 1; }; }
1755
 
1756
# Provide some information about the compiler.
1757
echo "$as_me:$LINENO:" \
1758
     "checking for C compiler version" >&5
1759
ac_compiler=`set X $ac_compile; echo $2`
1760
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1761
  (eval $ac_compiler --version &5) 2>&5
1762
  ac_status=$?
1763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764
  (exit $ac_status); }
1765
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
1766
  (eval $ac_compiler -v &5) 2>&5
1767
  ac_status=$?
1768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769
  (exit $ac_status); }
1770
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
1771
  (eval $ac_compiler -V &5) 2>&5
1772
  ac_status=$?
1773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774
  (exit $ac_status); }
1775
 
1776
cat >conftest.$ac_ext <<_ACEOF
1777
/* confdefs.h.  */
1778
_ACEOF
1779
cat confdefs.h >>conftest.$ac_ext
1780
cat >>conftest.$ac_ext <<_ACEOF
1781
/* end confdefs.h.  */
1782
 
1783
int
1784
main ()
1785
{
1786
 
1787
  ;
1788
  return 0;
1789
}
1790
_ACEOF
1791
ac_clean_files_save=$ac_clean_files
1792
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1793
# Try to create an executable without -o first, disregard a.out.
1794
# It will help us diagnose broken compilers, and finding out an intuition
1795
# of exeext.
1796
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1797
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1798
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1799
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1800
  (eval $ac_link_default) 2>&5
1801
  ac_status=$?
1802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803
  (exit $ac_status); }; then
1804
  # Find the output, starting from the most likely.  This scheme is
1805
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1806
# resort.
1807
 
1808
# Be careful to initialize this variable, since it used to be cached.
1809
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1810
ac_cv_exeext=
1811
# b.out is created by i960 compilers.
1812
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1813
do
1814
  test -f "$ac_file" || continue
1815
  case $ac_file in
1816
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1817
        ;;
1818
    conftest.$ac_ext )
1819
        # This is the source file.
1820
        ;;
1821
    [ab].out )
1822
        # We found the default executable, but exeext='' is most
1823
        # certainly right.
1824
        break;;
1825
    *.* )
1826
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1827
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1828
        # but it would be cool to find out if it's true.  Does anybody
1829
        # maintain Libtool? --akim.
1830
        export ac_cv_exeext
1831
        break;;
1832
    * )
1833
        break;;
1834
  esac
1835
done
1836
else
1837
  echo "$as_me: failed program was:" >&5
1838
sed 's/^/| /' conftest.$ac_ext >&5
1839
 
1840
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1841
See \`config.log' for more details." >&5
1842
echo "$as_me: error: C compiler cannot create executables
1843
See \`config.log' for more details." >&2;}
1844
   { (exit 77); exit 77; }; }
1845
fi
1846
 
1847
ac_exeext=$ac_cv_exeext
1848
echo "$as_me:$LINENO: result: $ac_file" >&5
1849
echo "${ECHO_T}$ac_file" >&6
1850
 
1851
# Check the compiler produces executables we can run.  If not, either
1852
# the compiler is broken, or we cross compile.
1853
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1854
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1855
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1856
# If not cross compiling, check that we can run a simple program.
1857
if test "$cross_compiling" != yes; then
1858
  if { ac_try='./$ac_file'
1859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1860
  (eval $ac_try) 2>&5
1861
  ac_status=$?
1862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863
  (exit $ac_status); }; }; then
1864
    cross_compiling=no
1865
  else
1866
    if test "$cross_compiling" = maybe; then
1867
        cross_compiling=yes
1868
    else
1869
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1870
If you meant to cross compile, use \`--host'.
1871
See \`config.log' for more details." >&5
1872
echo "$as_me: error: cannot run C compiled programs.
1873
If you meant to cross compile, use \`--host'.
1874
See \`config.log' for more details." >&2;}
1875
   { (exit 1); exit 1; }; }
1876
    fi
1877
  fi
1878
fi
1879
echo "$as_me:$LINENO: result: yes" >&5
1880
echo "${ECHO_T}yes" >&6
1881
 
1882
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1883
ac_clean_files=$ac_clean_files_save
1884
# Check the compiler produces executables we can run.  If not, either
1885
# the compiler is broken, or we cross compile.
1886
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1887
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1888
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1889
echo "${ECHO_T}$cross_compiling" >&6
1890
 
1891
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1892
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1893
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1894
  (eval $ac_link) 2>&5
1895
  ac_status=$?
1896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897
  (exit $ac_status); }; then
1898
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1899
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1900
# work properly (i.e., refer to `conftest.exe'), while it won't with
1901
# `rm'.
1902
for ac_file in conftest.exe conftest conftest.*; do
1903
  test -f "$ac_file" || continue
1904
  case $ac_file in
1905
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1906
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907
          export ac_cv_exeext
1908
          break;;
1909
    * ) break;;
1910
  esac
1911
done
1912
else
1913
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1914
See \`config.log' for more details." >&5
1915
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1916
See \`config.log' for more details." >&2;}
1917
   { (exit 1); exit 1; }; }
1918
fi
1919
 
1920
rm -f conftest$ac_cv_exeext
1921
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1922
echo "${ECHO_T}$ac_cv_exeext" >&6
1923
 
1924
rm -f conftest.$ac_ext
1925
EXEEXT=$ac_cv_exeext
1926
ac_exeext=$EXEEXT
1927
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1928
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1929
if test "${ac_cv_objext+set}" = set; then
1930
  echo $ECHO_N "(cached) $ECHO_C" >&6
1931
else
1932
  cat >conftest.$ac_ext <<_ACEOF
1933
/* confdefs.h.  */
1934
_ACEOF
1935
cat confdefs.h >>conftest.$ac_ext
1936
cat >>conftest.$ac_ext <<_ACEOF
1937
/* end confdefs.h.  */
1938
 
1939
int
1940
main ()
1941
{
1942
 
1943
  ;
1944
  return 0;
1945
}
1946
_ACEOF
1947
rm -f conftest.o conftest.obj
1948
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1949
  (eval $ac_compile) 2>&5
1950
  ac_status=$?
1951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952
  (exit $ac_status); }; then
1953
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1954
  case $ac_file in
1955
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1956
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1957
       break;;
1958
  esac
1959
done
1960
else
1961
  echo "$as_me: failed program was:" >&5
1962
sed 's/^/| /' conftest.$ac_ext >&5
1963
 
1964
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1965
See \`config.log' for more details." >&5
1966
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1967
See \`config.log' for more details." >&2;}
1968
   { (exit 1); exit 1; }; }
1969
fi
1970
 
1971
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1972
fi
1973
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1974
echo "${ECHO_T}$ac_cv_objext" >&6
1975
OBJEXT=$ac_cv_objext
1976
ac_objext=$OBJEXT
1977
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1978
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1979
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1980
  echo $ECHO_N "(cached) $ECHO_C" >&6
1981
else
1982
  cat >conftest.$ac_ext <<_ACEOF
1983
/* confdefs.h.  */
1984
_ACEOF
1985
cat confdefs.h >>conftest.$ac_ext
1986
cat >>conftest.$ac_ext <<_ACEOF
1987
/* end confdefs.h.  */
1988
 
1989
int
1990
main ()
1991
{
1992
#ifndef __GNUC__
1993
       choke me
1994
#endif
1995
 
1996
  ;
1997
  return 0;
1998
}
1999
_ACEOF
2000
rm -f conftest.$ac_objext
2001
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2002
  (eval $ac_compile) 2>conftest.er1
2003
  ac_status=$?
2004
  grep -v '^ *+' conftest.er1 >conftest.err
2005
  rm -f conftest.er1
2006
  cat conftest.err >&5
2007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008
  (exit $ac_status); } &&
2009
         { ac_try='test -z "$ac_c_werror_flag"
2010
                         || test ! -s conftest.err'
2011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012
  (eval $ac_try) 2>&5
2013
  ac_status=$?
2014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015
  (exit $ac_status); }; } &&
2016
         { ac_try='test -s conftest.$ac_objext'
2017
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018
  (eval $ac_try) 2>&5
2019
  ac_status=$?
2020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021
  (exit $ac_status); }; }; then
2022
  ac_compiler_gnu=yes
2023
else
2024
  echo "$as_me: failed program was:" >&5
2025
sed 's/^/| /' conftest.$ac_ext >&5
2026
 
2027
ac_compiler_gnu=no
2028
fi
2029
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2030
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2031
 
2032
fi
2033
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2034
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2035
GCC=`test $ac_compiler_gnu = yes && echo yes`
2036
ac_test_CFLAGS=${CFLAGS+set}
2037
ac_save_CFLAGS=$CFLAGS
2038
CFLAGS="-g"
2039
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2040
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2041
if test "${ac_cv_prog_cc_g+set}" = set; then
2042
  echo $ECHO_N "(cached) $ECHO_C" >&6
2043
else
2044
  cat >conftest.$ac_ext <<_ACEOF
2045
/* confdefs.h.  */
2046
_ACEOF
2047
cat confdefs.h >>conftest.$ac_ext
2048
cat >>conftest.$ac_ext <<_ACEOF
2049
/* end confdefs.h.  */
2050
 
2051
int
2052
main ()
2053
{
2054
 
2055
  ;
2056
  return 0;
2057
}
2058
_ACEOF
2059
rm -f conftest.$ac_objext
2060
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2061
  (eval $ac_compile) 2>conftest.er1
2062
  ac_status=$?
2063
  grep -v '^ *+' conftest.er1 >conftest.err
2064
  rm -f conftest.er1
2065
  cat conftest.err >&5
2066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067
  (exit $ac_status); } &&
2068
         { ac_try='test -z "$ac_c_werror_flag"
2069
                         || test ! -s conftest.err'
2070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071
  (eval $ac_try) 2>&5
2072
  ac_status=$?
2073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074
  (exit $ac_status); }; } &&
2075
         { ac_try='test -s conftest.$ac_objext'
2076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077
  (eval $ac_try) 2>&5
2078
  ac_status=$?
2079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080
  (exit $ac_status); }; }; then
2081
  ac_cv_prog_cc_g=yes
2082
else
2083
  echo "$as_me: failed program was:" >&5
2084
sed 's/^/| /' conftest.$ac_ext >&5
2085
 
2086
ac_cv_prog_cc_g=no
2087
fi
2088
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2089
fi
2090
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2091
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2092
if test "$ac_test_CFLAGS" = set; then
2093
  CFLAGS=$ac_save_CFLAGS
2094
elif test $ac_cv_prog_cc_g = yes; then
2095
  if test "$GCC" = yes; then
2096
    CFLAGS="-g -O2"
2097
  else
2098
    CFLAGS="-g"
2099
  fi
2100
else
2101
  if test "$GCC" = yes; then
2102
    CFLAGS="-O2"
2103
  else
2104
    CFLAGS=
2105
  fi
2106
fi
2107
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2108
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2109
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2110
  echo $ECHO_N "(cached) $ECHO_C" >&6
2111
else
2112
  ac_cv_prog_cc_stdc=no
2113
ac_save_CC=$CC
2114
cat >conftest.$ac_ext <<_ACEOF
2115
/* confdefs.h.  */
2116
_ACEOF
2117
cat confdefs.h >>conftest.$ac_ext
2118
cat >>conftest.$ac_ext <<_ACEOF
2119
/* end confdefs.h.  */
2120
#include 
2121
#include 
2122
#include 
2123
#include 
2124
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2125
struct buf { int x; };
2126
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2127
static char *e (p, i)
2128
     char **p;
2129
     int i;
2130
{
2131
  return p[i];
2132
}
2133
static char *f (char * (*g) (char **, int), char **p, ...)
2134
{
2135
  char *s;
2136
  va_list v;
2137
  va_start (v,p);
2138
  s = g (p, va_arg (v,int));
2139
  va_end (v);
2140
  return s;
2141
}
2142
 
2143
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2144
   function prototypes and stuff, but not '\xHH' hex character constants.
2145
   These don't provoke an error unfortunately, instead are silently treated
2146
   as 'x'.  The following induces an error, until -std1 is added to get
2147
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2148
   array size at least.  It's necessary to write '\x00'==0 to get something
2149
   that's true only with -std1.  */
2150
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2151
 
2152
int test (int i, double x);
2153
struct s1 {int (*f) (int a);};
2154
struct s2 {int (*f) (double a);};
2155
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2156
int argc;
2157
char **argv;
2158
int
2159
main ()
2160
{
2161
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2162
  ;
2163
  return 0;
2164
}
2165
_ACEOF
2166
# Don't try gcc -ansi; that turns off useful extensions and
2167
# breaks some systems' header files.
2168
# AIX                   -qlanglvl=ansi
2169
# Ultrix and OSF/1      -std1
2170
# HP-UX 10.20 and later -Ae
2171
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2172
# SVR4                  -Xc -D__EXTENSIONS__
2173
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2174
do
2175
  CC="$ac_save_CC $ac_arg"
2176
  rm -f conftest.$ac_objext
2177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178
  (eval $ac_compile) 2>conftest.er1
2179
  ac_status=$?
2180
  grep -v '^ *+' conftest.er1 >conftest.err
2181
  rm -f conftest.er1
2182
  cat conftest.err >&5
2183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184
  (exit $ac_status); } &&
2185
         { ac_try='test -z "$ac_c_werror_flag"
2186
                         || test ! -s conftest.err'
2187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188
  (eval $ac_try) 2>&5
2189
  ac_status=$?
2190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191
  (exit $ac_status); }; } &&
2192
         { ac_try='test -s conftest.$ac_objext'
2193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194
  (eval $ac_try) 2>&5
2195
  ac_status=$?
2196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197
  (exit $ac_status); }; }; then
2198
  ac_cv_prog_cc_stdc=$ac_arg
2199
break
2200
else
2201
  echo "$as_me: failed program was:" >&5
2202
sed 's/^/| /' conftest.$ac_ext >&5
2203
 
2204
fi
2205
rm -f conftest.err conftest.$ac_objext
2206
done
2207
rm -f conftest.$ac_ext conftest.$ac_objext
2208
CC=$ac_save_CC
2209
 
2210
fi
2211
 
2212
case "x$ac_cv_prog_cc_stdc" in
2213
  x|xno)
2214
    echo "$as_me:$LINENO: result: none needed" >&5
2215
echo "${ECHO_T}none needed" >&6 ;;
2216
  *)
2217
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2218
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2219
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2220
esac
2221
 
2222
# Some people use a C++ compiler to compile C.  Since we use `exit',
2223
# in C++ we need to declare it.  In case someone uses the same compiler
2224
# for both compiling C and C++ we need to have the C++ compiler decide
2225
# the declaration of exit, since it's the most demanding environment.
2226
cat >conftest.$ac_ext <<_ACEOF
2227
#ifndef __cplusplus
2228
  choke me
2229
#endif
2230
_ACEOF
2231
rm -f conftest.$ac_objext
2232
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233
  (eval $ac_compile) 2>conftest.er1
2234
  ac_status=$?
2235
  grep -v '^ *+' conftest.er1 >conftest.err
2236
  rm -f conftest.er1
2237
  cat conftest.err >&5
2238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239
  (exit $ac_status); } &&
2240
         { ac_try='test -z "$ac_c_werror_flag"
2241
                         || test ! -s conftest.err'
2242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243
  (eval $ac_try) 2>&5
2244
  ac_status=$?
2245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246
  (exit $ac_status); }; } &&
2247
         { ac_try='test -s conftest.$ac_objext'
2248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249
  (eval $ac_try) 2>&5
2250
  ac_status=$?
2251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252
  (exit $ac_status); }; }; then
2253
  for ac_declaration in \
2254
   '' \
2255
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2256
   'extern "C" void std::exit (int); using std::exit;' \
2257
   'extern "C" void exit (int) throw ();' \
2258
   'extern "C" void exit (int);' \
2259
   'void exit (int);'
2260
do
2261
  cat >conftest.$ac_ext <<_ACEOF
2262
/* confdefs.h.  */
2263
_ACEOF
2264
cat confdefs.h >>conftest.$ac_ext
2265
cat >>conftest.$ac_ext <<_ACEOF
2266
/* end confdefs.h.  */
2267
$ac_declaration
2268
#include 
2269
int
2270
main ()
2271
{
2272
exit (42);
2273
  ;
2274
  return 0;
2275
}
2276
_ACEOF
2277
rm -f conftest.$ac_objext
2278
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279
  (eval $ac_compile) 2>conftest.er1
2280
  ac_status=$?
2281
  grep -v '^ *+' conftest.er1 >conftest.err
2282
  rm -f conftest.er1
2283
  cat conftest.err >&5
2284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285
  (exit $ac_status); } &&
2286
         { ac_try='test -z "$ac_c_werror_flag"
2287
                         || test ! -s conftest.err'
2288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289
  (eval $ac_try) 2>&5
2290
  ac_status=$?
2291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292
  (exit $ac_status); }; } &&
2293
         { ac_try='test -s conftest.$ac_objext'
2294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295
  (eval $ac_try) 2>&5
2296
  ac_status=$?
2297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298
  (exit $ac_status); }; }; then
2299
  :
2300
else
2301
  echo "$as_me: failed program was:" >&5
2302
sed 's/^/| /' conftest.$ac_ext >&5
2303
 
2304
continue
2305
fi
2306
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307
  cat >conftest.$ac_ext <<_ACEOF
2308
/* confdefs.h.  */
2309
_ACEOF
2310
cat confdefs.h >>conftest.$ac_ext
2311
cat >>conftest.$ac_ext <<_ACEOF
2312
/* end confdefs.h.  */
2313
$ac_declaration
2314
int
2315
main ()
2316
{
2317
exit (42);
2318
  ;
2319
  return 0;
2320
}
2321
_ACEOF
2322
rm -f conftest.$ac_objext
2323
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324
  (eval $ac_compile) 2>conftest.er1
2325
  ac_status=$?
2326
  grep -v '^ *+' conftest.er1 >conftest.err
2327
  rm -f conftest.er1
2328
  cat conftest.err >&5
2329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330
  (exit $ac_status); } &&
2331
         { ac_try='test -z "$ac_c_werror_flag"
2332
                         || test ! -s conftest.err'
2333
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334
  (eval $ac_try) 2>&5
2335
  ac_status=$?
2336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337
  (exit $ac_status); }; } &&
2338
         { ac_try='test -s conftest.$ac_objext'
2339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340
  (eval $ac_try) 2>&5
2341
  ac_status=$?
2342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343
  (exit $ac_status); }; }; then
2344
  break
2345
else
2346
  echo "$as_me: failed program was:" >&5
2347
sed 's/^/| /' conftest.$ac_ext >&5
2348
 
2349
fi
2350
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351
done
2352
rm -f conftest*
2353
if test -n "$ac_declaration"; then
2354
  echo '#ifdef __cplusplus' >>confdefs.h
2355
  echo $ac_declaration      >>confdefs.h
2356
  echo '#endif'             >>confdefs.h
2357
fi
2358
 
2359
else
2360
  echo "$as_me: failed program was:" >&5
2361
sed 's/^/| /' conftest.$ac_ext >&5
2362
 
2363
fi
2364
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2365
ac_ext=c
2366
ac_cpp='$CPP $CPPFLAGS'
2367
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370
 
2371
 
2372
# Put a plausible default for CC_FOR_BUILD in Makefile.
2373
if test "x$cross_compiling" = "xno"; then
2374
  CC_FOR_BUILD='$(CC)'
2375
else
2376
  CC_FOR_BUILD=gcc
2377
fi
2378
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
2379
 
2380
ALL_LINGUAS=
2381
# If we haven't got the data from the intl directory,
2382
# assume NLS is disabled.
2383
USE_NLS=no
2384
LIBINTL=
2385
LIBINTL_DEP=
2386
INCINTL=
2387
XGETTEXT=
2388
GMSGFMT=
2389
POSUB=
2390
 
2391
if test -f  ../../intl/config.intl; then
2392
  .  ../../intl/config.intl
2393
fi
2394
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2395
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2396
if test x"$USE_NLS" != xyes; then
2397
  echo "$as_me:$LINENO: result: no" >&5
2398
echo "${ECHO_T}no" >&6
2399
else
2400
  echo "$as_me:$LINENO: result: yes" >&5
2401
echo "${ECHO_T}yes" >&6
2402
 
2403
cat >>confdefs.h <<\_ACEOF
2404
#define ENABLE_NLS 1
2405
_ACEOF
2406
 
2407
 
2408
  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2409
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2410
  # Look for .po and .gmo files in the source directory.
2411
  CATALOGS=
2412
  XLINGUAS=
2413
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2414
    # If there aren't any .gmo files the shell will give us the
2415
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
2416
    # weeded out.
2417
    case "$cat" in *\**)
2418
      continue;;
2419
    esac
2420
    # The quadruple backslash is collapsed to a double backslash
2421
    # by the backticks, then collapsed again by the double quotes,
2422
    # leaving us with one backslash in the sed expression (right
2423
    # before the dot that mustn't act as a wildcard).
2424
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2425
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2426
    # The user is allowed to set LINGUAS to a list of languages to
2427
    # install catalogs for.  If it's empty that means "all of them."
2428
    if test "x$LINGUAS" = x; then
2429
      CATALOGS="$CATALOGS $cat"
2430
      XLINGUAS="$XLINGUAS $lang"
2431
    else
2432
      case "$LINGUAS" in *$lang*)
2433
        CATALOGS="$CATALOGS $cat"
2434
        XLINGUAS="$XLINGUAS $lang"
2435
        ;;
2436
      esac
2437
    fi
2438
  done
2439
  LINGUAS="$XLINGUAS"
2440
  echo "$as_me:$LINENO: result: $LINGUAS" >&5
2441
echo "${ECHO_T}$LINGUAS" >&6
2442
 
2443
 
2444
    DATADIRNAME=share
2445
 
2446
  INSTOBJEXT=.mo
2447
 
2448
  GENCAT=gencat
2449
 
2450
  CATOBJEXT=.gmo
2451
 
2452
fi
2453
 
2454
 
2455
# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
2456
if test "${enable_sim_alignment+set}" = set; then
2457
  enableval="$enable_sim_alignment"
2458
  case "${enableval}" in
2459
  yes | strict | STRICT)        sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
2460
  no | nonstrict | NONSTRICT)   sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
2461
 
2462
  *)                            { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
2463
echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
2464
   { (exit 1); exit 1; }; }; sim_alignment="";;
2465
esac
2466
if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
2467
  echo "Setting alignment flags = $sim_alignment" 6>&1
2468
fi
2469
else
2470
  sim_alignment=""
2471
fi;
2472
 
2473
# Check whether --enable-sim-assert or --disable-sim-assert was given.
2474
if test "${enable_sim_assert+set}" = set; then
2475
  enableval="$enable_sim_assert"
2476
  case "${enableval}" in
2477
  yes)  sim_assert="-DWITH_ASSERT=1";;
2478
  no)   sim_assert="-DWITH_ASSERT=0";;
2479
  *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5
2480
echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
2481
   { (exit 1); exit 1; }; }; sim_assert="";;
2482
esac
2483
if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
2484
  echo "Setting assert flags = $sim_assert" 6>&1
2485
fi
2486
else
2487
  sim_assert=""
2488
fi;
2489
 
2490
# Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
2491
if test "${enable_sim_bitsize+set}" = set; then
2492
  enableval="$enable_sim_bitsize"
2493
  case "${enableval}" in
2494
  32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
2495
  *)     { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval.  Expected 32 or 64\"" >&5
2496
echo "$as_me: error: \"--enable-sim-bitsize was given $enableval.  Expected 32 or 64\"" >&2;}
2497
   { (exit 1); exit 1; }; }; sim_bitsize="";;
2498
esac
2499
if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
2500
  echo "Setting bitsize flags = $sim_bitsize" 6>&1
2501
fi
2502
else
2503
  sim_bitsize=""
2504
fi;
2505
 
2506
# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2507
if test "${enable_sim_bswap+set}" = set; then
2508
  enableval="$enable_sim_bswap"
2509
  case "${enableval}" in
2510
  yes)  sim_bswap="-DWITH_BSWAP=1";;
2511
  no)   sim_bswap="-DWITH_BSWAP=0";;
2512
  *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
2513
echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
2514
   { (exit 1); exit 1; }; }; sim_bswap="";;
2515
esac
2516
if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
2517
  echo "Setting bswap flags = $sim_bswap" 6>&1
2518
fi
2519
else
2520
  sim_bswap=""
2521
fi;
2522
 
2523
# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2524
if test "${enable_sim_cflags+set}" = set; then
2525
  enableval="$enable_sim_cflags"
2526
  case "${enableval}" in
2527
  yes)  sim_cflags="-O2 -fomit-frame-pointer";;
2528
  no)   sim_cflags="";;
2529
  *)    sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2530
esac
2531
if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
2532
  echo "Setting sim cflags = $sim_cflags" 6>&1
2533
fi
2534
else
2535
  sim_cflags=""
2536
fi;
2537
 
2538
# Check whether --enable-sim-config or --disable-sim-config was given.
2539
if test "${enable_sim_config+set}" = set; then
2540
  enableval="$enable_sim_config"
2541
  case "${enableval}" in
2542
  yes|no)       { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5
2543
echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;}
2544
   { (exit 1); exit 1; }; };;
2545
  *)            if test -f "${srcdir}/${enableval}"; then
2546
                  sim_config="${enableval}";
2547
                elif test -f "${srcdir}/${enableval}-config.h"; then
2548
                  sim_config="${enableval}-config.h"
2549
                else
2550
                  { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5
2551
echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
2552
   { (exit 1); exit 1; }; };
2553
                  sim_config=std-config.h
2554
                fi;;
2555
esac
2556
if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
2557
  echo "Setting config flags = $sim_config" 6>&1
2558
fi
2559
else
2560
  sim_config="std-config.h"
2561
if test x"$silent" != x"yes"; then
2562
  echo "Setting config flags = $sim_config" 6>&1
2563
fi
2564
fi;
2565
 
2566
# Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
2567
if test "${enable_sim_decode_mechanism+set}" = set; then
2568
  enableval="$enable_sim_decode_mechanism"
2569
  case "${enableval}" in
2570
  yes|no)       { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5
2571
echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;}
2572
   { (exit 1); exit 1; }; };;
2573
  array|switch|padded-switch|goto-switch)       sim_decode_mechanism="-T ${enableval}";;
2574
  *)            { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
2575
echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
2576
   { (exit 1); exit 1; }; };
2577
                sim_decode_mechanism="switch";;
2578
esac
2579
if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
2580
  echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2581
fi
2582
else
2583
  sim_decode_mechanism=""
2584
if test x"$silent" != x"yes"; then
2585
  echo "Setting decode mechanism flags = $sim_decode_mechanism"
2586
fi
2587
fi;
2588
 
2589
# Check whether --enable-sim-default-model or --disable-sim-default-model was given.
2590
if test "${enable_sim_default_model+set}" = set; then
2591
  enableval="$enable_sim_default_model"
2592
  case "${enableval}" in
2593
  yes|no)       { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5
2594
echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;}
2595
   { (exit 1); exit 1; }; };;
2596
  *)            sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
2597
esac
2598
if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
2599
  echo "Setting default-model flags = $sim_default_model" 6>&1
2600
fi
2601
else
2602
  sim_default_model=""
2603
fi;
2604
 
2605
# Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
2606
if test "${enable_sim_duplicate+set}" = set; then
2607
  enableval="$enable_sim_duplicate"
2608
  case "${enableval}" in
2609
  yes)  sim_dup="-E";;
2610
  no)   sim_dup="";;
2611
  *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5
2612
echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
2613
   { (exit 1); exit 1; }; }; sim_dup="";;
2614
esac
2615
if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
2616
  echo "Setting duplicate flags = $sim_dup" 6>&1
2617
fi
2618
else
2619
  sim_dup="-E"
2620
if test x"$silent" != x"yes"; then
2621
  echo "Setting duplicate flags = $sim_dup" 6>&1
2622
fi
2623
fi;
2624
 
2625
# Check whether --enable-sim-endian or --disable-sim-endian was given.
2626
if test "${enable_sim_endian+set}" = set; then
2627
  enableval="$enable_sim_endian"
2628
  case "${enableval}" in
2629
  yes)  case "$target" in
2630
          *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2631
          *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2632
          *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
2633
        esac;;
2634
  no)    sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
2635
  b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2636
  l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2637
  *)     { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
2638
echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
2639
   { (exit 1); exit 1; }; }; sim_endian="";;
2640
esac
2641
if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
2642
  echo "Setting endian flags = $sim_endian" 6>&1
2643
fi
2644
else
2645
  sim_endian=""
2646
fi;
2647
 
2648
# Check whether --enable-sim-env or --disable-sim-env was given.
2649
if test "${enable_sim_env+set}" = set; then
2650
  enableval="$enable_sim_env"
2651
  case "${enableval}" in
2652
  operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
2653
  virtual | vea)        sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
2654
  user | uea)           sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
2655
  no)                   sim_env="-DWITH_ENVIRONMENT=0";;
2656
  *)                    { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5
2657
echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
2658
   { (exit 1); exit 1; }; }; sim_env="";;
2659
esac
2660
if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
2661
  echo "Setting env flags = $sim_env" 6>&1
2662
fi
2663
else
2664
  sim_env=""
2665
fi;
2666
 
2667
# Check whether --enable-sim-filter or --disable-sim-filter was given.
2668
if test "${enable_sim_filter+set}" = set; then
2669
  enableval="$enable_sim_filter"
2670
  case "${enableval}" in
2671
  yes)  { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5
2672
echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;}
2673
   { (exit 1); exit 1; }; }; sim_filter="";;
2674
  no)   sim_filter="";;
2675
  *)    sim_filter="-F $enableval";;
2676
esac
2677
if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
2678
  echo "Setting filter flags = $sim_filter" 6>&1
2679
fi
2680
else
2681
  sim_filter="-F 32,f,o"
2682
if test x"$silent" != x"yes"; then
2683
  echo "Setting filter flags = $sim_filter" 6>&1
2684
fi
2685
fi;
2686
 
2687
# Check whether --enable-sim-float or --disable-sim-float was given.
2688
if test "${enable_sim_float+set}" = set; then
2689
  enableval="$enable_sim_float"
2690
  case "${enableval}" in
2691
  yes | hard)   sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
2692
  no | soft)    sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
2693
  altivec)      sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
2694
  *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
2695
  *)            { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
2696
echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
2697
   { (exit 1); exit 1; }; }; sim_float="";;
2698
esac
2699
if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
2700
  echo "Setting float flags = $sim_float" 6>&1
2701
fi
2702
else
2703
 
2704
case "${target}" in
2705
  *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
2706
  *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
2707
  *) sim_float=""
2708
esac
2709
 
2710
fi;
2711
 
2712
# Check whether --enable-sim-hardware or --disable-sim-hardware was given.
2713
if test "${enable_sim_hardware+set}" = set; then
2714
  enableval="$enable_sim_hardware"
2715
  hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2716
case "${enableval}" in
2717
  yes)  ;;
2718
  no)   { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
2719
echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
2720
   { (exit 1); exit 1; }; }; hardware="";;
2721
  ,*)   hardware="${hardware}${enableval}";;
2722
  *,)   hardware="${enableval}${hardware}";;
2723
  *)    hardware="${enableval}"'';;
2724
esac
2725
sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2726
sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2727
if test x"$silent" != x"yes" && test x"$hardware" != x""; then
2728
  echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2729
fi
2730
else
2731
  hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2732
sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2733
sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2734
if test x"$silent" != x"yes"; then
2735
  echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2736
fi
2737
fi;
2738
 
2739
# Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
2740
if test "${enable_sim_hostbitsize+set}" = set; then
2741
  enableval="$enable_sim_hostbitsize"
2742
  case "${enableval}" in
2743
  32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
2744
  *)     { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval.  Expected 32 or 64\"" >&5
2745
echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval.  Expected 32 or 64\"" >&2;}
2746
   { (exit 1); exit 1; }; }; sim_hostbitsize="";;
2747
esac
2748
if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
2749
  echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
2750
fi
2751
else
2752
  sim_hostbitsize=""
2753
fi;
2754
 
2755
 
2756
# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
2757
if test "${enable_sim_hostendian+set}" = set; then
2758
  enableval="$enable_sim_hostendian"
2759
  case "${enableval}" in
2760
  no)    sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
2761
  b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
2762
  l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
2763
  *)     { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
2764
echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
2765
   { (exit 1); exit 1; }; }; sim_hostendian="";;
2766
esac
2767
if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
2768
  echo "Setting hostendian flags = $sim_hostendian" 6>&1
2769
fi
2770
else
2771
 
2772
if test "x$cross_compiling" = "xno"; then
2773
  echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2774
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2775
if test "${ac_cv_c_bigendian+set}" = set; then
2776
  echo $ECHO_N "(cached) $ECHO_C" >&6
2777
else
2778
  # See if sys/param.h defines the BYTE_ORDER macro.
2779
cat >conftest.$ac_ext <<_ACEOF
2780
/* confdefs.h.  */
2781
_ACEOF
2782
cat confdefs.h >>conftest.$ac_ext
2783
cat >>conftest.$ac_ext <<_ACEOF
2784
/* end confdefs.h.  */
2785
#include 
2786
#include 
2787
 
2788
int
2789
main ()
2790
{
2791
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2792
 bogus endian macros
2793
#endif
2794
 
2795
  ;
2796
  return 0;
2797
}
2798
_ACEOF
2799
rm -f conftest.$ac_objext
2800
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801
  (eval $ac_compile) 2>conftest.er1
2802
  ac_status=$?
2803
  grep -v '^ *+' conftest.er1 >conftest.err
2804
  rm -f conftest.er1
2805
  cat conftest.err >&5
2806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807
  (exit $ac_status); } &&
2808
         { ac_try='test -z "$ac_c_werror_flag"
2809
                         || test ! -s conftest.err'
2810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811
  (eval $ac_try) 2>&5
2812
  ac_status=$?
2813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814
  (exit $ac_status); }; } &&
2815
         { ac_try='test -s conftest.$ac_objext'
2816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817
  (eval $ac_try) 2>&5
2818
  ac_status=$?
2819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820
  (exit $ac_status); }; }; then
2821
  # It does; now see whether it defined to BIG_ENDIAN or not.
2822
cat >conftest.$ac_ext <<_ACEOF
2823
/* confdefs.h.  */
2824
_ACEOF
2825
cat confdefs.h >>conftest.$ac_ext
2826
cat >>conftest.$ac_ext <<_ACEOF
2827
/* end confdefs.h.  */
2828
#include 
2829
#include 
2830
 
2831
int
2832
main ()
2833
{
2834
#if BYTE_ORDER != BIG_ENDIAN
2835
 not big endian
2836
#endif
2837
 
2838
  ;
2839
  return 0;
2840
}
2841
_ACEOF
2842
rm -f conftest.$ac_objext
2843
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844
  (eval $ac_compile) 2>conftest.er1
2845
  ac_status=$?
2846
  grep -v '^ *+' conftest.er1 >conftest.err
2847
  rm -f conftest.er1
2848
  cat conftest.err >&5
2849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850
  (exit $ac_status); } &&
2851
         { ac_try='test -z "$ac_c_werror_flag"
2852
                         || test ! -s conftest.err'
2853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854
  (eval $ac_try) 2>&5
2855
  ac_status=$?
2856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857
  (exit $ac_status); }; } &&
2858
         { ac_try='test -s conftest.$ac_objext'
2859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860
  (eval $ac_try) 2>&5
2861
  ac_status=$?
2862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863
  (exit $ac_status); }; }; then
2864
  ac_cv_c_bigendian=yes
2865
else
2866
  echo "$as_me: failed program was:" >&5
2867
sed 's/^/| /' conftest.$ac_ext >&5
2868
 
2869
ac_cv_c_bigendian=no
2870
fi
2871
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2872
else
2873
  echo "$as_me: failed program was:" >&5
2874
sed 's/^/| /' conftest.$ac_ext >&5
2875
 
2876
# It does not; compile a test program.
2877
if test "$cross_compiling" = yes; then
2878
  # try to guess the endianness by grepping values into an object file
2879
  ac_cv_c_bigendian=unknown
2880
  cat >conftest.$ac_ext <<_ACEOF
2881
/* confdefs.h.  */
2882
_ACEOF
2883
cat confdefs.h >>conftest.$ac_ext
2884
cat >>conftest.$ac_ext <<_ACEOF
2885
/* end confdefs.h.  */
2886
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2887
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2888
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2889
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2890
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2891
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2892
int
2893
main ()
2894
{
2895
 _ascii (); _ebcdic ();
2896
  ;
2897
  return 0;
2898
}
2899
_ACEOF
2900
rm -f conftest.$ac_objext
2901
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2902
  (eval $ac_compile) 2>conftest.er1
2903
  ac_status=$?
2904
  grep -v '^ *+' conftest.er1 >conftest.err
2905
  rm -f conftest.er1
2906
  cat conftest.err >&5
2907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908
  (exit $ac_status); } &&
2909
         { ac_try='test -z "$ac_c_werror_flag"
2910
                         || test ! -s conftest.err'
2911
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912
  (eval $ac_try) 2>&5
2913
  ac_status=$?
2914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915
  (exit $ac_status); }; } &&
2916
         { ac_try='test -s conftest.$ac_objext'
2917
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918
  (eval $ac_try) 2>&5
2919
  ac_status=$?
2920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921
  (exit $ac_status); }; }; then
2922
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2923
  ac_cv_c_bigendian=yes
2924
fi
2925
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2926
  if test "$ac_cv_c_bigendian" = unknown; then
2927
    ac_cv_c_bigendian=no
2928
  else
2929
    # finding both strings is unlikely to happen, but who knows?
2930
    ac_cv_c_bigendian=unknown
2931
  fi
2932
fi
2933
else
2934
  echo "$as_me: failed program was:" >&5
2935
sed 's/^/| /' conftest.$ac_ext >&5
2936
 
2937
fi
2938
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2939
else
2940
  cat >conftest.$ac_ext <<_ACEOF
2941
/* confdefs.h.  */
2942
_ACEOF
2943
cat confdefs.h >>conftest.$ac_ext
2944
cat >>conftest.$ac_ext <<_ACEOF
2945
/* end confdefs.h.  */
2946
int
2947
main ()
2948
{
2949
  /* Are we little or big endian?  From Harbison&Steele.  */
2950
  union
2951
  {
2952
    long l;
2953
    char c[sizeof (long)];
2954
  } u;
2955
  u.l = 1;
2956
  exit (u.c[sizeof (long) - 1] == 1);
2957
}
2958
_ACEOF
2959
rm -f conftest$ac_exeext
2960
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2961
  (eval $ac_link) 2>&5
2962
  ac_status=$?
2963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966
  (eval $ac_try) 2>&5
2967
  ac_status=$?
2968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969
  (exit $ac_status); }; }; then
2970
  ac_cv_c_bigendian=no
2971
else
2972
  echo "$as_me: program exited with status $ac_status" >&5
2973
echo "$as_me: failed program was:" >&5
2974
sed 's/^/| /' conftest.$ac_ext >&5
2975
 
2976
( exit $ac_status )
2977
ac_cv_c_bigendian=yes
2978
fi
2979
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2980
fi
2981
fi
2982
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2983
fi
2984
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2985
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2986
case $ac_cv_c_bigendian in
2987
  yes)
2988
 
2989
cat >>confdefs.h <<\_ACEOF
2990
#define WORDS_BIGENDIAN 1
2991
_ACEOF
2992
 ;;
2993
  no)
2994
     ;;
2995
  *)
2996
    { { echo "$as_me:$LINENO: error: unknown endianness
2997
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2998
echo "$as_me: error: unknown endianness
2999
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3000
   { (exit 1); exit 1; }; } ;;
3001
esac
3002
 
3003
  if test $ac_cv_c_bigendian = yes; then
3004
    sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
3005
  else
3006
    sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
3007
  fi
3008
else
3009
  sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
3010
fi
3011
fi;
3012
 
3013
# Check whether --enable-sim-icache or --disable-sim-icache was given.
3014
if test "${enable_sim_icache+set}" = set; then
3015
  enableval="$enable_sim_icache"
3016
  icache="-R"
3017
 case "${enableval}" in
3018
  yes)          icache="1024"; sim_icache="-I $icache";;
3019
  no)           sim_icache="-R";;
3020
  *) icache=1024
3021
     sim_icache="-"
3022
     for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3023
       case "$x" in
3024
         define)        sim_icache="${sim_icache}R";;
3025
         semantic)      sim_icache="${sim_icache}C";;
3026
         insn)          sim_icache="${sim_icache}S";;
3027
         0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
3028
         *)             { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
3029
echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
3030
   { (exit 1); exit 1; }; }; sim_icache="";;
3031
       esac
3032
     done
3033
     sim_icache="${sim_icache}I $icache";;
3034
esac
3035
if test x"$silent" != x"yes" && test x"$icache" != x""; then
3036
  echo "Setting instruction cache size to $icache ($sim_icache)"
3037
fi
3038
else
3039
  sim_icache="-CSRI 1024"
3040
if test x"$silent" != x"yes"; then
3041
  echo "Setting instruction cache size to 1024 ($sim_icache)"
3042
fi
3043
fi;
3044
 
3045
# Check whether --enable-sim-inline or --disable-sim-inline was given.
3046
if test "${enable_sim_inline+set}" = set; then
3047
  enableval="$enable_sim_inline"
3048
  sim_inline=""
3049
case "$enableval" in
3050
  no)           sim_inline="-DDEFAULT_INLINE=0";;
3051
  0)            sim_inline="-DDEFAULT_INLINE=0";;
3052
  yes | 2)      sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
3053
  1)            sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
3054
  *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3055
       new_flag=""
3056
       case "$x" in
3057
         *_INLINE=*)    new_flag="-D$x";;
3058
         *=*)           new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3059
         *_INLINE)      new_flag="-D$x=ALL_INLINE";;
3060
         *)             new_flag="-D$x""_INLINE=ALL_INLINE";;
3061
       esac
3062
       if test x"$sim_inline" = x""; then
3063
         sim_inline="$new_flag"
3064
       else
3065
         sim_inline="$sim_inline $new_flag"
3066
       fi
3067
     done;;
3068
esac
3069
if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
3070
  echo "Setting inline flags = $sim_inline" 6>&1
3071
fi
3072
else
3073
  if test x"$GCC" != ""; then
3074
  sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
3075
  if test x"$silent" != x"yes"; then
3076
    echo "Setting inline flags = $sim_inline" 6>&1
3077
  fi
3078
else
3079
  sim_inline=""
3080
fi
3081
fi;
3082
 
3083
# Check whether --enable-sim-jump or --disable-sim-jump was given.
3084
if test "${enable_sim_jump+set}" = set; then
3085
  enableval="$enable_sim_jump"
3086
  case "${enableval}" in
3087
  yes)  sim_jump="-J";;
3088
  no)   sim_jump="";;
3089
  *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
3090
echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
3091
   { (exit 1); exit 1; }; }; sim_jump="";;
3092
esac
3093
if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
3094
  echo "Setting jump flag = $sim_jump" 6>&1
3095
fi
3096
else
3097
  sim_jump=""
3098
if test x"$silent" != x"yes"; then
3099
  echo "Setting jump flag = $sim_jump" 6>&1
3100
fi
3101
fi;
3102
 
3103
# Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3104
if test "${enable_sim_line_nr+set}" = set; then
3105
  enableval="$enable_sim_line_nr"
3106
  case "${enableval}" in
3107
  yes)  sim_line_nr="";;
3108
  no)   sim_line_nr="-L";;
3109
  *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
3110
echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
3111
   { (exit 1); exit 1; }; }; sim_line_nr="";;
3112
esac
3113
if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
3114
  echo "Setting warning flags = $sim_line_nr" 6>&1
3115
fi
3116
else
3117
  sim_line_nr=""
3118
fi;
3119
 
3120
# Check whether --enable-sim-model or --disable-sim-model was given.
3121
if test "${enable_sim_model+set}" = set; then
3122
  enableval="$enable_sim_model"
3123
  case "${enableval}" in
3124
  yes|no)       { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
3125
echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
3126
   { (exit 1); exit 1; }; };;
3127
  *)            sim_model="-DWITH_MODEL=${enableval}";;
3128
esac
3129
if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
3130
  echo "Setting model flags = $sim_model" 6>&1
3131
fi
3132
else
3133
  sim_model=""
3134
fi;
3135
 
3136
# Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3137
if test "${enable_sim_model_issue+set}" = set; then
3138
  enableval="$enable_sim_model_issue"
3139
  case "${enableval}" in
3140
  yes)  sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3141
  no)   sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3142
  *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
3143
echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
3144
   { (exit 1); exit 1; }; }; sim_model_issue="";;
3145
esac
3146
if test x"$silent" != x"yes"; then
3147
  echo "Setting model-issue flags = $sim_model_issue" 6>&1
3148
fi
3149
else
3150
  sim_model_issue=""
3151
fi;
3152
 
3153
# Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3154
if test "${enable_sim_monitor+set}" = set; then
3155
  enableval="$enable_sim_monitor"
3156
  case "${enableval}" in
3157
  yes)          sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3158
  no)           sim_monitor="-DWITH_MON=0";;
3159
  instruction)  sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3160
  memory)       sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3161
  *)            { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
3162
echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
3163
   { (exit 1); exit 1; }; }; sim_env="";;
3164
esac
3165
if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
3166
  echo "Setting monitor flags = $sim_monitor" 6>&1
3167
fi
3168
else
3169
  sim_monitor=""
3170
fi;
3171
 
3172
# Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3173
if test "${enable_sim_opcode+set}" = set; then
3174
  enableval="$enable_sim_opcode"
3175
  case "${enableval}" in
3176
  yes|no)       { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
3177
echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
3178
   { (exit 1); exit 1; }; };;
3179
  *)            if test -f "${srcdir}/${enableval}"; then
3180
                  sim_opcode="${enableval}"
3181
                elif test -f "${srcdir}/dc-${enableval}"; then
3182
                  sim_opcode="dc-${enableval}"
3183
                else
3184
                  { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
3185
echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
3186
   { (exit 1); exit 1; }; };
3187
                  sim_opcode="dc-complex"
3188
                fi;;
3189
esac
3190
if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
3191
  echo "Setting opcode flags = $sim_opcode" 6>&1
3192
fi
3193
else
3194
  sim_opcode="dc-complex"
3195
if test x"$silent" != x"yes"; then
3196
  echo "Setting opcode flags = $sim_opcode"
3197
fi
3198
fi;
3199
 
3200
# Check whether --enable-sim-packages or --disable-sim-packages was given.
3201
if test "${enable_sim_packages+set}" = set; then
3202
  enableval="$enable_sim_packages"
3203
  packages=disklabel
3204
case "${enableval}" in
3205
  yes)  ;;
3206
  no)   { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
3207
echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
3208
   { (exit 1); exit 1; }; }; packages="";;
3209
  ,*)   packages="${packages}${enableval}";;
3210
  *,)   packages="${enableval}${packages}";;
3211
  *)    packages="${enableval}"'';;
3212
esac
3213
sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3214
sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3215
if test x"$silent" != x"yes" && test x"$packages" != x""; then
3216
  echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3217
fi
3218
else
3219
  packages=disklabel
3220
sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3221
sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3222
if test x"$silent" != x"yes"; then
3223
  echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3224
fi
3225
fi;
3226
 
3227
# Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3228
if test "${enable_sim_regparm+set}" = set; then
3229
  enableval="$enable_sim_regparm"
3230
  case "${enableval}" in
3231
  0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
3232
  no)                            sim_regparm="" ;;
3233
  yes)                           sim_regparm="-DWITH_REGPARM=3";;
3234
  *)   { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
3235
echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
3236
   { (exit 1); exit 1; }; }; sim_regparm="";;
3237
esac
3238
if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
3239
  echo "Setting regparm flags = $sim_regparm" 6>&1
3240
fi
3241
else
3242
  sim_regparm=""
3243
fi;
3244
 
3245
# Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3246
if test "${enable_sim_reserved_bits+set}" = set; then
3247
  enableval="$enable_sim_reserved_bits"
3248
  case "${enableval}" in
3249
  yes)  sim_reserved="-DWITH_RESERVED_BITS=1";;
3250
  no)   sim_reserved="-DWITH_RESERVED_BITS=0";;
3251
  *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
3252
echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
3253
   { (exit 1); exit 1; }; }; sim_reserved="";;
3254
esac
3255
if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
3256
  echo "Setting reserved flags = $sim_reserved" 6>&1
3257
fi
3258
else
3259
  sim_reserved=""
3260
fi;
3261
 
3262
# Check whether --enable-sim-smp or --disable-sim-smp was given.
3263
if test "${enable_sim_smp+set}" = set; then
3264
  enableval="$enable_sim_smp"
3265
  case "${enableval}" in
3266
  yes)  sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
3267
  no)   sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
3268
  *)    sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
3269
esac
3270
if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
3271
  echo "Setting smp flags = $sim_smp" 6>&1
3272
fi
3273
else
3274
  sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
3275
if test x"$silent" != x"yes"; then
3276
  echo "Setting smp flags = $sim_smp" 6>&1
3277
fi
3278
fi;
3279
 
3280
# Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3281
if test "${enable_sim_stdcall+set}" = set; then
3282
  enableval="$enable_sim_stdcall"
3283
  case "${enableval}" in
3284
  no)           sim_stdcall="" ;;
3285
  std*)         sim_stdcall="-DWITH_STDCALL=1";;
3286
  yes)          sim_stdcall="-DWITH_STDCALL=1";;
3287
  *)   { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
3288
echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
3289
   { (exit 1); exit 1; }; }; sim_stdcall="";;
3290
esac
3291
if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
3292
  echo "Setting function call flags = $sim_stdcall" 6>&1
3293
fi
3294
else
3295
  sim_stdcall=""
3296
fi;
3297
 
3298
# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3299
if test "${enable_sim_stdio+set}" = set; then
3300
  enableval="$enable_sim_stdio"
3301
  case "${enableval}" in
3302
  yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3303
  no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3304
  *)    { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3305
echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3306
   { (exit 1); exit 1; }; }; sim_stdio="";;
3307
esac
3308
if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3309
  echo "Setting stdio flags = $sim_stdio" 6>&1
3310
fi
3311
else
3312
  sim_stdio=""
3313
fi;
3314
 
3315
# Check whether --enable-sim-switch or --disable-sim-switch was given.
3316
if test "${enable_sim_switch+set}" = set; then
3317
  enableval="$enable_sim_switch"
3318
  case "${enableval}" in
3319
  yes)  sim_switch="-s";;
3320
  no)   sim_switch="";;
3321
  *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
3322
echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
3323
   { (exit 1); exit 1; }; }; sim_switch="";;
3324
esac
3325
if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
3326
  echo "Setting switch flags = $sim_switch" 6>&1
3327
fi
3328
else
3329
  sim_switch="";
3330
if test x"$silent" != x"yes"; then
3331
  echo "Setting switch flags = $sim_switch" 6>&1
3332
fi
3333
fi;
3334
 
3335
# Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3336
if test "${enable_sim_timebase+set}" = set; then
3337
  enableval="$enable_sim_timebase"
3338
  case "${enableval}" in
3339
  yes)  sim_timebase="-DWITH_TIME_BASE=1";;
3340
  no)   sim_timebase="-DWITH_TIME_BASE=0";;
3341
  *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
3342
echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
3343
   { (exit 1); exit 1; }; }; sim_timebase="";;
3344
esac
3345
if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
3346
  echo "Setting timebase flags = $sim_timebase" 6>&1
3347
fi
3348
else
3349
  sim_timebase=""
3350
fi;
3351
 
3352
# Check whether --enable-sim-trace or --disable-sim-trace was given.
3353
if test "${enable_sim_trace+set}" = set; then
3354
  enableval="$enable_sim_trace"
3355
  case "${enableval}" in
3356
  yes)  sim_trace="-DWITH_TRACE=1";;
3357
  no)   sim_trace="-DWITH_TRACE=0";;
3358
  *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
3359
echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
3360
   { (exit 1); exit 1; }; }; sim_trace="";;
3361
esac
3362
if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3363
  echo "Setting trace flags = $sim_trace" 6>&1
3364
fi
3365
else
3366
  sim_trace=""
3367
fi;
3368
 
3369
# Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3370
if test "${enable_sim_warnings+set}" = set; then
3371
  enableval="$enable_sim_warnings"
3372
  case "${enableval}" in
3373
  yes)  sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3374
  no)   sim_warnings="-w";;
3375
  *)    sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3376
esac
3377
if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
3378
  echo "Setting warning flags = $sim_warnings" 6>&1
3379
fi
3380
else
3381
  sim_warnings=""
3382
fi;
3383
 
3384
# Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3385
if test "${enable_sim_xor_endian+set}" = set; then
3386
  enableval="$enable_sim_xor_endian"
3387
  case "${enableval}" in
3388
  yes)  sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
3389
  no)   sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
3390
  *)    sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
3391
esac
3392
if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
3393
  echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3394
fi
3395
else
3396
  sim_xor_endian=""
3397
fi;
3398
 
3399
# Make sure we can run config.sub.
3400
$ac_config_sub sun4 >/dev/null 2>&1 ||
3401
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3402
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3403
   { (exit 1); exit 1; }; }
3404
 
3405
echo "$as_me:$LINENO: checking build system type" >&5
3406
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3407
if test "${ac_cv_build+set}" = set; then
3408
  echo $ECHO_N "(cached) $ECHO_C" >&6
3409
else
3410
  ac_cv_build_alias=$build_alias
3411
test -z "$ac_cv_build_alias" &&
3412
  ac_cv_build_alias=`$ac_config_guess`
3413
test -z "$ac_cv_build_alias" &&
3414
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3415
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3416
   { (exit 1); exit 1; }; }
3417
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3418
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3419
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3420
   { (exit 1); exit 1; }; }
3421
 
3422
fi
3423
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3424
echo "${ECHO_T}$ac_cv_build" >&6
3425
build=$ac_cv_build
3426
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3427
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3428
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3429
 
3430
 
3431
echo "$as_me:$LINENO: checking host system type" >&5
3432
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3433
if test "${ac_cv_host+set}" = set; then
3434
  echo $ECHO_N "(cached) $ECHO_C" >&6
3435
else
3436
  ac_cv_host_alias=$host_alias
3437
test -z "$ac_cv_host_alias" &&
3438
  ac_cv_host_alias=$ac_cv_build_alias
3439
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3440
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3441
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3442
   { (exit 1); exit 1; }; }
3443
 
3444
fi
3445
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3446
echo "${ECHO_T}$ac_cv_host" >&6
3447
host=$ac_cv_host
3448
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3449
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3450
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3451
 
3452
 
3453
echo "$as_me:$LINENO: checking target system type" >&5
3454
echo $ECHO_N "checking target system type... $ECHO_C" >&6
3455
if test "${ac_cv_target+set}" = set; then
3456
  echo $ECHO_N "(cached) $ECHO_C" >&6
3457
else
3458
  ac_cv_target_alias=$target_alias
3459
test "x$ac_cv_target_alias" = "x" &&
3460
  ac_cv_target_alias=$ac_cv_host_alias
3461
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3462
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3463
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3464
   { (exit 1); exit 1; }; }
3465
 
3466
fi
3467
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3468
echo "${ECHO_T}$ac_cv_target" >&6
3469
target=$ac_cv_target
3470
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3471
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3472
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3473
 
3474
 
3475
# The aliases save the names the user supplied, while $host etc.
3476
# will get canonicalized.
3477
test -n "$target_alias" &&
3478
  test "$program_prefix$program_suffix$program_transform_name" = \
3479
    NONENONEs,x,x, &&
3480
  program_prefix=${target_alias}-
3481
test "$program_prefix" != NONE &&
3482
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3483
# Use a double $ so make ignores it.
3484
test "$program_suffix" != NONE &&
3485
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3486
# Double any \ or $.  echo might interpret backslashes.
3487
# By default was `s,x,x', remove it if useless.
3488
cat <<\_ACEOF >conftest.sed
3489
s/[\\$]/&&/g;s/;s,x,x,$//
3490
_ACEOF
3491
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3492
rm conftest.sed
3493
 
3494
 
3495
. ${srcdir}/../../bfd/configure.host
3496
 
3497
case ${host} in
3498
  *mingw32*)
3499
 
3500
cat >>confdefs.h <<\_ACEOF
3501
#define USE_WIN32API 1
3502
_ACEOF
3503
 
3504
    ;;
3505
esac
3506
 
3507
          ac_config_headers="$ac_config_headers config.h:config.in"
3508
 
3509
 
3510
ac_ext=c
3511
ac_cpp='$CPP $CPPFLAGS'
3512
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3516
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3517
# On Suns, sometimes $CPP names a directory.
3518
if test -n "$CPP" && test -d "$CPP"; then
3519
  CPP=
3520
fi
3521
if test -z "$CPP"; then
3522
  if test "${ac_cv_prog_CPP+set}" = set; then
3523
  echo $ECHO_N "(cached) $ECHO_C" >&6
3524
else
3525
      # Double quotes because CPP needs to be expanded
3526
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3527
    do
3528
      ac_preproc_ok=false
3529
for ac_c_preproc_warn_flag in '' yes
3530
do
3531
  # Use a header file that comes with gcc, so configuring glibc
3532
  # with a fresh cross-compiler works.
3533
  # Prefer  to  if __STDC__ is defined, since
3534
  #  exists even on freestanding compilers.
3535
  # On the NeXT, cc -E runs the code through the compiler's parser,
3536
  # not just through cpp. "Syntax error" is here to catch this case.
3537
  cat >conftest.$ac_ext <<_ACEOF
3538
/* confdefs.h.  */
3539
_ACEOF
3540
cat confdefs.h >>conftest.$ac_ext
3541
cat >>conftest.$ac_ext <<_ACEOF
3542
/* end confdefs.h.  */
3543
#ifdef __STDC__
3544
# include 
3545
#else
3546
# include 
3547
#endif
3548
                     Syntax error
3549
_ACEOF
3550
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3551
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3552
  ac_status=$?
3553
  grep -v '^ *+' conftest.er1 >conftest.err
3554
  rm -f conftest.er1
3555
  cat conftest.err >&5
3556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557
  (exit $ac_status); } >/dev/null; then
3558
  if test -s conftest.err; then
3559
    ac_cpp_err=$ac_c_preproc_warn_flag
3560
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561
  else
3562
    ac_cpp_err=
3563
  fi
3564
else
3565
  ac_cpp_err=yes
3566
fi
3567
if test -z "$ac_cpp_err"; then
3568
  :
3569
else
3570
  echo "$as_me: failed program was:" >&5
3571
sed 's/^/| /' conftest.$ac_ext >&5
3572
 
3573
  # Broken: fails on valid input.
3574
continue
3575
fi
3576
rm -f conftest.err conftest.$ac_ext
3577
 
3578
  # OK, works on sane cases.  Now check whether non-existent headers
3579
  # can be detected and how.
3580
  cat >conftest.$ac_ext <<_ACEOF
3581
/* confdefs.h.  */
3582
_ACEOF
3583
cat confdefs.h >>conftest.$ac_ext
3584
cat >>conftest.$ac_ext <<_ACEOF
3585
/* end confdefs.h.  */
3586
#include 
3587
_ACEOF
3588
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3589
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3590
  ac_status=$?
3591
  grep -v '^ *+' conftest.er1 >conftest.err
3592
  rm -f conftest.er1
3593
  cat conftest.err >&5
3594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595
  (exit $ac_status); } >/dev/null; then
3596
  if test -s conftest.err; then
3597
    ac_cpp_err=$ac_c_preproc_warn_flag
3598
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3599
  else
3600
    ac_cpp_err=
3601
  fi
3602
else
3603
  ac_cpp_err=yes
3604
fi
3605
if test -z "$ac_cpp_err"; then
3606
  # Broken: success on invalid input.
3607
continue
3608
else
3609
  echo "$as_me: failed program was:" >&5
3610
sed 's/^/| /' conftest.$ac_ext >&5
3611
 
3612
  # Passes both tests.
3613
ac_preproc_ok=:
3614
break
3615
fi
3616
rm -f conftest.err conftest.$ac_ext
3617
 
3618
done
3619
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620
rm -f conftest.err conftest.$ac_ext
3621
if $ac_preproc_ok; then
3622
  break
3623
fi
3624
 
3625
    done
3626
    ac_cv_prog_CPP=$CPP
3627
 
3628
fi
3629
  CPP=$ac_cv_prog_CPP
3630
else
3631
  ac_cv_prog_CPP=$CPP
3632
fi
3633
echo "$as_me:$LINENO: result: $CPP" >&5
3634
echo "${ECHO_T}$CPP" >&6
3635
ac_preproc_ok=false
3636
for ac_c_preproc_warn_flag in '' yes
3637
do
3638
  # Use a header file that comes with gcc, so configuring glibc
3639
  # with a fresh cross-compiler works.
3640
  # Prefer  to  if __STDC__ is defined, since
3641
  #  exists even on freestanding compilers.
3642
  # On the NeXT, cc -E runs the code through the compiler's parser,
3643
  # not just through cpp. "Syntax error" is here to catch this case.
3644
  cat >conftest.$ac_ext <<_ACEOF
3645
/* confdefs.h.  */
3646
_ACEOF
3647
cat confdefs.h >>conftest.$ac_ext
3648
cat >>conftest.$ac_ext <<_ACEOF
3649
/* end confdefs.h.  */
3650
#ifdef __STDC__
3651
# include 
3652
#else
3653
# include 
3654
#endif
3655
                     Syntax error
3656
_ACEOF
3657
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3658
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3659
  ac_status=$?
3660
  grep -v '^ *+' conftest.er1 >conftest.err
3661
  rm -f conftest.er1
3662
  cat conftest.err >&5
3663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664
  (exit $ac_status); } >/dev/null; then
3665
  if test -s conftest.err; then
3666
    ac_cpp_err=$ac_c_preproc_warn_flag
3667
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3668
  else
3669
    ac_cpp_err=
3670
  fi
3671
else
3672
  ac_cpp_err=yes
3673
fi
3674
if test -z "$ac_cpp_err"; then
3675
  :
3676
else
3677
  echo "$as_me: failed program was:" >&5
3678
sed 's/^/| /' conftest.$ac_ext >&5
3679
 
3680
  # Broken: fails on valid input.
3681
continue
3682
fi
3683
rm -f conftest.err conftest.$ac_ext
3684
 
3685
  # OK, works on sane cases.  Now check whether non-existent headers
3686
  # can be detected and how.
3687
  cat >conftest.$ac_ext <<_ACEOF
3688
/* confdefs.h.  */
3689
_ACEOF
3690
cat confdefs.h >>conftest.$ac_ext
3691
cat >>conftest.$ac_ext <<_ACEOF
3692
/* end confdefs.h.  */
3693
#include 
3694
_ACEOF
3695
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3696
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3697
  ac_status=$?
3698
  grep -v '^ *+' conftest.er1 >conftest.err
3699
  rm -f conftest.er1
3700
  cat conftest.err >&5
3701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702
  (exit $ac_status); } >/dev/null; then
3703
  if test -s conftest.err; then
3704
    ac_cpp_err=$ac_c_preproc_warn_flag
3705
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3706
  else
3707
    ac_cpp_err=
3708
  fi
3709
else
3710
  ac_cpp_err=yes
3711
fi
3712
if test -z "$ac_cpp_err"; then
3713
  # Broken: success on invalid input.
3714
continue
3715
else
3716
  echo "$as_me: failed program was:" >&5
3717
sed 's/^/| /' conftest.$ac_ext >&5
3718
 
3719
  # Passes both tests.
3720
ac_preproc_ok=:
3721
break
3722
fi
3723
rm -f conftest.err conftest.$ac_ext
3724
 
3725
done
3726
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727
rm -f conftest.err conftest.$ac_ext
3728
if $ac_preproc_ok; then
3729
  :
3730
else
3731
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3732
See \`config.log' for more details." >&5
3733
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3734
See \`config.log' for more details." >&2;}
3735
   { (exit 1); exit 1; }; }
3736
fi
3737
 
3738
ac_ext=c
3739
ac_cpp='$CPP $CPPFLAGS'
3740
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
 
3744
 
3745
echo "$as_me:$LINENO: checking for egrep" >&5
3746
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3747
if test "${ac_cv_prog_egrep+set}" = set; then
3748
  echo $ECHO_N "(cached) $ECHO_C" >&6
3749
else
3750
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3751
    then ac_cv_prog_egrep='grep -E'
3752
    else ac_cv_prog_egrep='egrep'
3753
    fi
3754
fi
3755
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3756
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3757
 EGREP=$ac_cv_prog_egrep
3758
 
3759
 
3760
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3761
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3762
if test "${ac_cv_header_stdc+set}" = set; then
3763
  echo $ECHO_N "(cached) $ECHO_C" >&6
3764
else
3765
  cat >conftest.$ac_ext <<_ACEOF
3766
/* confdefs.h.  */
3767
_ACEOF
3768
cat confdefs.h >>conftest.$ac_ext
3769
cat >>conftest.$ac_ext <<_ACEOF
3770
/* end confdefs.h.  */
3771
#include 
3772
#include 
3773
#include 
3774
#include 
3775
 
3776
int
3777
main ()
3778
{
3779
 
3780
  ;
3781
  return 0;
3782
}
3783
_ACEOF
3784
rm -f conftest.$ac_objext
3785
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786
  (eval $ac_compile) 2>conftest.er1
3787
  ac_status=$?
3788
  grep -v '^ *+' conftest.er1 >conftest.err
3789
  rm -f conftest.er1
3790
  cat conftest.err >&5
3791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792
  (exit $ac_status); } &&
3793
         { ac_try='test -z "$ac_c_werror_flag"
3794
                         || test ! -s conftest.err'
3795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796
  (eval $ac_try) 2>&5
3797
  ac_status=$?
3798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799
  (exit $ac_status); }; } &&
3800
         { ac_try='test -s conftest.$ac_objext'
3801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802
  (eval $ac_try) 2>&5
3803
  ac_status=$?
3804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805
  (exit $ac_status); }; }; then
3806
  ac_cv_header_stdc=yes
3807
else
3808
  echo "$as_me: failed program was:" >&5
3809
sed 's/^/| /' conftest.$ac_ext >&5
3810
 
3811
ac_cv_header_stdc=no
3812
fi
3813
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814
 
3815
if test $ac_cv_header_stdc = yes; then
3816
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3817
  cat >conftest.$ac_ext <<_ACEOF
3818
/* confdefs.h.  */
3819
_ACEOF
3820
cat confdefs.h >>conftest.$ac_ext
3821
cat >>conftest.$ac_ext <<_ACEOF
3822
/* end confdefs.h.  */
3823
#include 
3824
 
3825
_ACEOF
3826
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827
  $EGREP "memchr" >/dev/null 2>&1; then
3828
  :
3829
else
3830
  ac_cv_header_stdc=no
3831
fi
3832
rm -f conftest*
3833
 
3834
fi
3835
 
3836
if test $ac_cv_header_stdc = yes; then
3837
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3838
  cat >conftest.$ac_ext <<_ACEOF
3839
/* confdefs.h.  */
3840
_ACEOF
3841
cat confdefs.h >>conftest.$ac_ext
3842
cat >>conftest.$ac_ext <<_ACEOF
3843
/* end confdefs.h.  */
3844
#include 
3845
 
3846
_ACEOF
3847
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848
  $EGREP "free" >/dev/null 2>&1; then
3849
  :
3850
else
3851
  ac_cv_header_stdc=no
3852
fi
3853
rm -f conftest*
3854
 
3855
fi
3856
 
3857
if test $ac_cv_header_stdc = yes; then
3858
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3859
  if test "$cross_compiling" = yes; then
3860
  :
3861
else
3862
  cat >conftest.$ac_ext <<_ACEOF
3863
/* confdefs.h.  */
3864
_ACEOF
3865
cat confdefs.h >>conftest.$ac_ext
3866
cat >>conftest.$ac_ext <<_ACEOF
3867
/* end confdefs.h.  */
3868
#include 
3869
#if ((' ' & 0x0FF) == 0x020)
3870
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3871
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3872
#else
3873
# define ISLOWER(c) \
3874
                   (('a' <= (c) && (c) <= 'i') \
3875
                     || ('j' <= (c) && (c) <= 'r') \
3876
                     || ('s' <= (c) && (c) <= 'z'))
3877
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3878
#endif
3879
 
3880
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3881
int
3882
main ()
3883
{
3884
  int i;
3885
  for (i = 0; i < 256; i++)
3886
    if (XOR (islower (i), ISLOWER (i))
3887
        || toupper (i) != TOUPPER (i))
3888
      exit(2);
3889
  exit (0);
3890
}
3891
_ACEOF
3892
rm -f conftest$ac_exeext
3893
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894
  (eval $ac_link) 2>&5
3895
  ac_status=$?
3896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899
  (eval $ac_try) 2>&5
3900
  ac_status=$?
3901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902
  (exit $ac_status); }; }; then
3903
  :
3904
else
3905
  echo "$as_me: program exited with status $ac_status" >&5
3906
echo "$as_me: failed program was:" >&5
3907
sed 's/^/| /' conftest.$ac_ext >&5
3908
 
3909
( exit $ac_status )
3910
ac_cv_header_stdc=no
3911
fi
3912
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3913
fi
3914
fi
3915
fi
3916
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3917
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3918
if test $ac_cv_header_stdc = yes; then
3919
 
3920
cat >>confdefs.h <<\_ACEOF
3921
#define STDC_HEADERS 1
3922
_ACEOF
3923
 
3924
fi
3925
 
3926
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3927
 
3928
 
3929
 
3930
 
3931
 
3932
 
3933
 
3934
 
3935
 
3936
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3937
                  inttypes.h stdint.h unistd.h
3938
do
3939
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3940
echo "$as_me:$LINENO: checking for $ac_header" >&5
3941
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943
  echo $ECHO_N "(cached) $ECHO_C" >&6
3944
else
3945
  cat >conftest.$ac_ext <<_ACEOF
3946
/* confdefs.h.  */
3947
_ACEOF
3948
cat confdefs.h >>conftest.$ac_ext
3949
cat >>conftest.$ac_ext <<_ACEOF
3950
/* end confdefs.h.  */
3951
$ac_includes_default
3952
 
3953
#include <$ac_header>
3954
_ACEOF
3955
rm -f conftest.$ac_objext
3956
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957
  (eval $ac_compile) 2>conftest.er1
3958
  ac_status=$?
3959
  grep -v '^ *+' conftest.er1 >conftest.err
3960
  rm -f conftest.er1
3961
  cat conftest.err >&5
3962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963
  (exit $ac_status); } &&
3964
         { ac_try='test -z "$ac_c_werror_flag"
3965
                         || test ! -s conftest.err'
3966
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967
  (eval $ac_try) 2>&5
3968
  ac_status=$?
3969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970
  (exit $ac_status); }; } &&
3971
         { ac_try='test -s conftest.$ac_objext'
3972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973
  (eval $ac_try) 2>&5
3974
  ac_status=$?
3975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976
  (exit $ac_status); }; }; then
3977
  eval "$as_ac_Header=yes"
3978
else
3979
  echo "$as_me: failed program was:" >&5
3980
sed 's/^/| /' conftest.$ac_ext >&5
3981
 
3982
eval "$as_ac_Header=no"
3983
fi
3984
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3985
fi
3986
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3987
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3988
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3989
  cat >>confdefs.h <<_ACEOF
3990
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3991
_ACEOF
3992
 
3993
fi
3994
 
3995
done
3996
 
3997
 
3998
 
3999
echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4000
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4001
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4002
  echo $ECHO_N "(cached) $ECHO_C" >&6
4003
else
4004
  cat >conftest.$ac_ext <<_ACEOF
4005
/* confdefs.h.  */
4006
_ACEOF
4007
cat confdefs.h >>conftest.$ac_ext
4008
cat >>conftest.$ac_ext <<_ACEOF
4009
/* end confdefs.h.  */
4010
$ac_includes_default
4011
int
4012
main ()
4013
{
4014
static struct stat ac_aggr;
4015
if (ac_aggr.st_blksize)
4016
return 0;
4017
  ;
4018
  return 0;
4019
}
4020
_ACEOF
4021
rm -f conftest.$ac_objext
4022
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023
  (eval $ac_compile) 2>conftest.er1
4024
  ac_status=$?
4025
  grep -v '^ *+' conftest.er1 >conftest.err
4026
  rm -f conftest.er1
4027
  cat conftest.err >&5
4028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029
  (exit $ac_status); } &&
4030
         { ac_try='test -z "$ac_c_werror_flag"
4031
                         || test ! -s conftest.err'
4032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033
  (eval $ac_try) 2>&5
4034
  ac_status=$?
4035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036
  (exit $ac_status); }; } &&
4037
         { ac_try='test -s conftest.$ac_objext'
4038
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039
  (eval $ac_try) 2>&5
4040
  ac_status=$?
4041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042
  (exit $ac_status); }; }; then
4043
  ac_cv_member_struct_stat_st_blksize=yes
4044
else
4045
  echo "$as_me: failed program was:" >&5
4046
sed 's/^/| /' conftest.$ac_ext >&5
4047
 
4048
cat >conftest.$ac_ext <<_ACEOF
4049
/* confdefs.h.  */
4050
_ACEOF
4051
cat confdefs.h >>conftest.$ac_ext
4052
cat >>conftest.$ac_ext <<_ACEOF
4053
/* end confdefs.h.  */
4054
$ac_includes_default
4055
int
4056
main ()
4057
{
4058
static struct stat ac_aggr;
4059
if (sizeof ac_aggr.st_blksize)
4060
return 0;
4061
  ;
4062
  return 0;
4063
}
4064
_ACEOF
4065
rm -f conftest.$ac_objext
4066
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067
  (eval $ac_compile) 2>conftest.er1
4068
  ac_status=$?
4069
  grep -v '^ *+' conftest.er1 >conftest.err
4070
  rm -f conftest.er1
4071
  cat conftest.err >&5
4072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073
  (exit $ac_status); } &&
4074
         { ac_try='test -z "$ac_c_werror_flag"
4075
                         || test ! -s conftest.err'
4076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077
  (eval $ac_try) 2>&5
4078
  ac_status=$?
4079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080
  (exit $ac_status); }; } &&
4081
         { ac_try='test -s conftest.$ac_objext'
4082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083
  (eval $ac_try) 2>&5
4084
  ac_status=$?
4085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086
  (exit $ac_status); }; }; then
4087
  ac_cv_member_struct_stat_st_blksize=yes
4088
else
4089
  echo "$as_me: failed program was:" >&5
4090
sed 's/^/| /' conftest.$ac_ext >&5
4091
 
4092
ac_cv_member_struct_stat_st_blksize=no
4093
fi
4094
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095
fi
4096
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4097
fi
4098
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4099
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4100
if test $ac_cv_member_struct_stat_st_blksize = yes; then
4101
 
4102
cat >>confdefs.h <<_ACEOF
4103
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4104
_ACEOF
4105
 
4106
 
4107
cat >>confdefs.h <<\_ACEOF
4108
#define HAVE_ST_BLKSIZE 1
4109
_ACEOF
4110
 
4111
fi
4112
 
4113
 
4114
echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4115
echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4116
if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4117
  echo $ECHO_N "(cached) $ECHO_C" >&6
4118
else
4119
  cat >conftest.$ac_ext <<_ACEOF
4120
/* confdefs.h.  */
4121
_ACEOF
4122
cat confdefs.h >>conftest.$ac_ext
4123
cat >>conftest.$ac_ext <<_ACEOF
4124
/* end confdefs.h.  */
4125
$ac_includes_default
4126
int
4127
main ()
4128
{
4129
static struct stat ac_aggr;
4130
if (ac_aggr.st_blocks)
4131
return 0;
4132
  ;
4133
  return 0;
4134
}
4135
_ACEOF
4136
rm -f conftest.$ac_objext
4137
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138
  (eval $ac_compile) 2>conftest.er1
4139
  ac_status=$?
4140
  grep -v '^ *+' conftest.er1 >conftest.err
4141
  rm -f conftest.er1
4142
  cat conftest.err >&5
4143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144
  (exit $ac_status); } &&
4145
         { ac_try='test -z "$ac_c_werror_flag"
4146
                         || test ! -s conftest.err'
4147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148
  (eval $ac_try) 2>&5
4149
  ac_status=$?
4150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151
  (exit $ac_status); }; } &&
4152
         { ac_try='test -s conftest.$ac_objext'
4153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154
  (eval $ac_try) 2>&5
4155
  ac_status=$?
4156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157
  (exit $ac_status); }; }; then
4158
  ac_cv_member_struct_stat_st_blocks=yes
4159
else
4160
  echo "$as_me: failed program was:" >&5
4161
sed 's/^/| /' conftest.$ac_ext >&5
4162
 
4163
cat >conftest.$ac_ext <<_ACEOF
4164
/* confdefs.h.  */
4165
_ACEOF
4166
cat confdefs.h >>conftest.$ac_ext
4167
cat >>conftest.$ac_ext <<_ACEOF
4168
/* end confdefs.h.  */
4169
$ac_includes_default
4170
int
4171
main ()
4172
{
4173
static struct stat ac_aggr;
4174
if (sizeof ac_aggr.st_blocks)
4175
return 0;
4176
  ;
4177
  return 0;
4178
}
4179
_ACEOF
4180
rm -f conftest.$ac_objext
4181
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182
  (eval $ac_compile) 2>conftest.er1
4183
  ac_status=$?
4184
  grep -v '^ *+' conftest.er1 >conftest.err
4185
  rm -f conftest.er1
4186
  cat conftest.err >&5
4187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188
  (exit $ac_status); } &&
4189
         { ac_try='test -z "$ac_c_werror_flag"
4190
                         || test ! -s conftest.err'
4191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192
  (eval $ac_try) 2>&5
4193
  ac_status=$?
4194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195
  (exit $ac_status); }; } &&
4196
         { ac_try='test -s conftest.$ac_objext'
4197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198
  (eval $ac_try) 2>&5
4199
  ac_status=$?
4200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201
  (exit $ac_status); }; }; then
4202
  ac_cv_member_struct_stat_st_blocks=yes
4203
else
4204
  echo "$as_me: failed program was:" >&5
4205
sed 's/^/| /' conftest.$ac_ext >&5
4206
 
4207
ac_cv_member_struct_stat_st_blocks=no
4208
fi
4209
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210
fi
4211
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4212
fi
4213
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4214
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4215
if test $ac_cv_member_struct_stat_st_blocks = yes; then
4216
 
4217
cat >>confdefs.h <<_ACEOF
4218
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
4219
_ACEOF
4220
 
4221
 
4222
cat >>confdefs.h <<\_ACEOF
4223
#define HAVE_ST_BLOCKS 1
4224
_ACEOF
4225
 
4226
else
4227
  case $LIBOBJS in
4228
    "fileblocks.$ac_objext"   | \
4229
  *" fileblocks.$ac_objext"   | \
4230
    "fileblocks.$ac_objext "* | \
4231
  *" fileblocks.$ac_objext "* ) ;;
4232
  *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
4233
esac
4234
 
4235
fi
4236
 
4237
 
4238
 
4239
echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4240
echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4241
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4242
  echo $ECHO_N "(cached) $ECHO_C" >&6
4243
else
4244
  cat >conftest.$ac_ext <<_ACEOF
4245
/* confdefs.h.  */
4246
_ACEOF
4247
cat confdefs.h >>conftest.$ac_ext
4248
cat >>conftest.$ac_ext <<_ACEOF
4249
/* end confdefs.h.  */
4250
$ac_includes_default
4251
int
4252
main ()
4253
{
4254
static struct stat ac_aggr;
4255
if (ac_aggr.st_rdev)
4256
return 0;
4257
  ;
4258
  return 0;
4259
}
4260
_ACEOF
4261
rm -f conftest.$ac_objext
4262
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263
  (eval $ac_compile) 2>conftest.er1
4264
  ac_status=$?
4265
  grep -v '^ *+' conftest.er1 >conftest.err
4266
  rm -f conftest.er1
4267
  cat conftest.err >&5
4268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269
  (exit $ac_status); } &&
4270
         { ac_try='test -z "$ac_c_werror_flag"
4271
                         || test ! -s conftest.err'
4272
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273
  (eval $ac_try) 2>&5
4274
  ac_status=$?
4275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276
  (exit $ac_status); }; } &&
4277
         { ac_try='test -s conftest.$ac_objext'
4278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279
  (eval $ac_try) 2>&5
4280
  ac_status=$?
4281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282
  (exit $ac_status); }; }; then
4283
  ac_cv_member_struct_stat_st_rdev=yes
4284
else
4285
  echo "$as_me: failed program was:" >&5
4286
sed 's/^/| /' conftest.$ac_ext >&5
4287
 
4288
cat >conftest.$ac_ext <<_ACEOF
4289
/* confdefs.h.  */
4290
_ACEOF
4291
cat confdefs.h >>conftest.$ac_ext
4292
cat >>conftest.$ac_ext <<_ACEOF
4293
/* end confdefs.h.  */
4294
$ac_includes_default
4295
int
4296
main ()
4297
{
4298
static struct stat ac_aggr;
4299
if (sizeof ac_aggr.st_rdev)
4300
return 0;
4301
  ;
4302
  return 0;
4303
}
4304
_ACEOF
4305
rm -f conftest.$ac_objext
4306
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307
  (eval $ac_compile) 2>conftest.er1
4308
  ac_status=$?
4309
  grep -v '^ *+' conftest.er1 >conftest.err
4310
  rm -f conftest.er1
4311
  cat conftest.err >&5
4312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313
  (exit $ac_status); } &&
4314
         { ac_try='test -z "$ac_c_werror_flag"
4315
                         || test ! -s conftest.err'
4316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317
  (eval $ac_try) 2>&5
4318
  ac_status=$?
4319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320
  (exit $ac_status); }; } &&
4321
         { ac_try='test -s conftest.$ac_objext'
4322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323
  (eval $ac_try) 2>&5
4324
  ac_status=$?
4325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326
  (exit $ac_status); }; }; then
4327
  ac_cv_member_struct_stat_st_rdev=yes
4328
else
4329
  echo "$as_me: failed program was:" >&5
4330
sed 's/^/| /' conftest.$ac_ext >&5
4331
 
4332
ac_cv_member_struct_stat_st_rdev=no
4333
fi
4334
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4335
fi
4336
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4337
fi
4338
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4339
echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4340
if test $ac_cv_member_struct_stat_st_rdev = yes; then
4341
 
4342
cat >>confdefs.h <<_ACEOF
4343
#define HAVE_STRUCT_STAT_ST_RDEV 1
4344
_ACEOF
4345
 
4346
 
4347
cat >>confdefs.h <<\_ACEOF
4348
#define HAVE_ST_RDEV 1
4349
_ACEOF
4350
 
4351
fi
4352
 
4353
 
4354
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4355
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4356
if test "${ac_cv_struct_tm+set}" = set; then
4357
  echo $ECHO_N "(cached) $ECHO_C" >&6
4358
else
4359
  cat >conftest.$ac_ext <<_ACEOF
4360
/* confdefs.h.  */
4361
_ACEOF
4362
cat confdefs.h >>conftest.$ac_ext
4363
cat >>conftest.$ac_ext <<_ACEOF
4364
/* end confdefs.h.  */
4365
#include 
4366
#include 
4367
 
4368
int
4369
main ()
4370
{
4371
struct tm *tp; tp->tm_sec;
4372
  ;
4373
  return 0;
4374
}
4375
_ACEOF
4376
rm -f conftest.$ac_objext
4377
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4378
  (eval $ac_compile) 2>conftest.er1
4379
  ac_status=$?
4380
  grep -v '^ *+' conftest.er1 >conftest.err
4381
  rm -f conftest.er1
4382
  cat conftest.err >&5
4383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384
  (exit $ac_status); } &&
4385
         { ac_try='test -z "$ac_c_werror_flag"
4386
                         || test ! -s conftest.err'
4387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388
  (eval $ac_try) 2>&5
4389
  ac_status=$?
4390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391
  (exit $ac_status); }; } &&
4392
         { ac_try='test -s conftest.$ac_objext'
4393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394
  (eval $ac_try) 2>&5
4395
  ac_status=$?
4396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397
  (exit $ac_status); }; }; then
4398
  ac_cv_struct_tm=time.h
4399
else
4400
  echo "$as_me: failed program was:" >&5
4401
sed 's/^/| /' conftest.$ac_ext >&5
4402
 
4403
ac_cv_struct_tm=sys/time.h
4404
fi
4405
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4406
fi
4407
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4408
echo "${ECHO_T}$ac_cv_struct_tm" >&6
4409
if test $ac_cv_struct_tm = sys/time.h; then
4410
 
4411
cat >>confdefs.h <<\_ACEOF
4412
#define TM_IN_SYS_TIME 1
4413
_ACEOF
4414
 
4415
fi
4416
 
4417
echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
4418
echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4419
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4420
  echo $ECHO_N "(cached) $ECHO_C" >&6
4421
else
4422
  cat >conftest.$ac_ext <<_ACEOF
4423
/* confdefs.h.  */
4424
_ACEOF
4425
cat confdefs.h >>conftest.$ac_ext
4426
cat >>conftest.$ac_ext <<_ACEOF
4427
/* end confdefs.h.  */
4428
#include 
4429
#include <$ac_cv_struct_tm>
4430
 
4431
 
4432
int
4433
main ()
4434
{
4435
static struct tm ac_aggr;
4436
if (ac_aggr.tm_zone)
4437
return 0;
4438
  ;
4439
  return 0;
4440
}
4441
_ACEOF
4442
rm -f conftest.$ac_objext
4443
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444
  (eval $ac_compile) 2>conftest.er1
4445
  ac_status=$?
4446
  grep -v '^ *+' conftest.er1 >conftest.err
4447
  rm -f conftest.er1
4448
  cat conftest.err >&5
4449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450
  (exit $ac_status); } &&
4451
         { ac_try='test -z "$ac_c_werror_flag"
4452
                         || test ! -s conftest.err'
4453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454
  (eval $ac_try) 2>&5
4455
  ac_status=$?
4456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457
  (exit $ac_status); }; } &&
4458
         { ac_try='test -s conftest.$ac_objext'
4459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460
  (eval $ac_try) 2>&5
4461
  ac_status=$?
4462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463
  (exit $ac_status); }; }; then
4464
  ac_cv_member_struct_tm_tm_zone=yes
4465
else
4466
  echo "$as_me: failed program was:" >&5
4467
sed 's/^/| /' conftest.$ac_ext >&5
4468
 
4469
cat >conftest.$ac_ext <<_ACEOF
4470
/* confdefs.h.  */
4471
_ACEOF
4472
cat confdefs.h >>conftest.$ac_ext
4473
cat >>conftest.$ac_ext <<_ACEOF
4474
/* end confdefs.h.  */
4475
#include 
4476
#include <$ac_cv_struct_tm>
4477
 
4478
 
4479
int
4480
main ()
4481
{
4482
static struct tm ac_aggr;
4483
if (sizeof ac_aggr.tm_zone)
4484
return 0;
4485
  ;
4486
  return 0;
4487
}
4488
_ACEOF
4489
rm -f conftest.$ac_objext
4490
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491
  (eval $ac_compile) 2>conftest.er1
4492
  ac_status=$?
4493
  grep -v '^ *+' conftest.er1 >conftest.err
4494
  rm -f conftest.er1
4495
  cat conftest.err >&5
4496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497
  (exit $ac_status); } &&
4498
         { ac_try='test -z "$ac_c_werror_flag"
4499
                         || test ! -s conftest.err'
4500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501
  (eval $ac_try) 2>&5
4502
  ac_status=$?
4503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504
  (exit $ac_status); }; } &&
4505
         { ac_try='test -s conftest.$ac_objext'
4506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507
  (eval $ac_try) 2>&5
4508
  ac_status=$?
4509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510
  (exit $ac_status); }; }; then
4511
  ac_cv_member_struct_tm_tm_zone=yes
4512
else
4513
  echo "$as_me: failed program was:" >&5
4514
sed 's/^/| /' conftest.$ac_ext >&5
4515
 
4516
ac_cv_member_struct_tm_tm_zone=no
4517
fi
4518
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4519
fi
4520
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4521
fi
4522
echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
4523
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4524
if test $ac_cv_member_struct_tm_tm_zone = yes; then
4525
 
4526
cat >>confdefs.h <<_ACEOF
4527
#define HAVE_STRUCT_TM_TM_ZONE 1
4528
_ACEOF
4529
 
4530
 
4531
fi
4532
 
4533
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4534
 
4535
cat >>confdefs.h <<\_ACEOF
4536
#define HAVE_TM_ZONE 1
4537
_ACEOF
4538
 
4539
else
4540
  echo "$as_me:$LINENO: checking for tzname" >&5
4541
echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4542
if test "${ac_cv_var_tzname+set}" = set; then
4543
  echo $ECHO_N "(cached) $ECHO_C" >&6
4544
else
4545
  cat >conftest.$ac_ext <<_ACEOF
4546
/* confdefs.h.  */
4547
_ACEOF
4548
cat confdefs.h >>conftest.$ac_ext
4549
cat >>conftest.$ac_ext <<_ACEOF
4550
/* end confdefs.h.  */
4551
#include 
4552
#ifndef tzname /* For SGI.  */
4553
extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
4554
#endif
4555
 
4556
int
4557
main ()
4558
{
4559
atoi(*tzname);
4560
  ;
4561
  return 0;
4562
}
4563
_ACEOF
4564
rm -f conftest.$ac_objext conftest$ac_exeext
4565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4566
  (eval $ac_link) 2>conftest.er1
4567
  ac_status=$?
4568
  grep -v '^ *+' conftest.er1 >conftest.err
4569
  rm -f conftest.er1
4570
  cat conftest.err >&5
4571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572
  (exit $ac_status); } &&
4573
         { ac_try='test -z "$ac_c_werror_flag"
4574
                         || test ! -s conftest.err'
4575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576
  (eval $ac_try) 2>&5
4577
  ac_status=$?
4578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579
  (exit $ac_status); }; } &&
4580
         { ac_try='test -s conftest$ac_exeext'
4581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582
  (eval $ac_try) 2>&5
4583
  ac_status=$?
4584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
  (exit $ac_status); }; }; then
4586
  ac_cv_var_tzname=yes
4587
else
4588
  echo "$as_me: failed program was:" >&5
4589
sed 's/^/| /' conftest.$ac_ext >&5
4590
 
4591
ac_cv_var_tzname=no
4592
fi
4593
rm -f conftest.err conftest.$ac_objext \
4594
      conftest$ac_exeext conftest.$ac_ext
4595
fi
4596
echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
4597
echo "${ECHO_T}$ac_cv_var_tzname" >&6
4598
  if test $ac_cv_var_tzname = yes; then
4599
 
4600
cat >>confdefs.h <<\_ACEOF
4601
#define HAVE_TZNAME 1
4602
_ACEOF
4603
 
4604
  fi
4605
fi
4606
 
4607
 
4608
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4609
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4610
if test "${ac_cv_type_uid_t+set}" = set; then
4611
  echo $ECHO_N "(cached) $ECHO_C" >&6
4612
else
4613
  cat >conftest.$ac_ext <<_ACEOF
4614
/* confdefs.h.  */
4615
_ACEOF
4616
cat confdefs.h >>conftest.$ac_ext
4617
cat >>conftest.$ac_ext <<_ACEOF
4618
/* end confdefs.h.  */
4619
#include 
4620
 
4621
_ACEOF
4622
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623
  $EGREP "uid_t" >/dev/null 2>&1; then
4624
  ac_cv_type_uid_t=yes
4625
else
4626
  ac_cv_type_uid_t=no
4627
fi
4628
rm -f conftest*
4629
 
4630
fi
4631
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4632
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4633
if test $ac_cv_type_uid_t = no; then
4634
 
4635
cat >>confdefs.h <<\_ACEOF
4636
#define uid_t int
4637
_ACEOF
4638
 
4639
 
4640
cat >>confdefs.h <<\_ACEOF
4641
#define gid_t int
4642
_ACEOF
4643
 
4644
fi
4645
 
4646
echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
4647
echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
4648
if test "${ac_cv_type_getgroups+set}" = set; then
4649
  echo $ECHO_N "(cached) $ECHO_C" >&6
4650
else
4651
  if test "$cross_compiling" = yes; then
4652
  ac_cv_type_getgroups=cross
4653
else
4654
  cat >conftest.$ac_ext <<_ACEOF
4655
/* confdefs.h.  */
4656
_ACEOF
4657
cat confdefs.h >>conftest.$ac_ext
4658
cat >>conftest.$ac_ext <<_ACEOF
4659
/* end confdefs.h.  */
4660
/* Thanks to Mike Rendell for this test.  */
4661
#include 
4662
#define NGID 256
4663
#undef MAX
4664
#define MAX(x, y) ((x) > (y) ? (x) : (y))
4665
 
4666
int
4667
main ()
4668
{
4669
  gid_t gidset[NGID];
4670
  int i, n;
4671
  union { gid_t gval; long lval; }  val;
4672
 
4673
  val.lval = -1;
4674
  for (i = 0; i < NGID; i++)
4675
    gidset[i] = val.gval;
4676
  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4677
                 gidset);
4678
  /* Exit non-zero if getgroups seems to require an array of ints.  This
4679
     happens when gid_t is short but getgroups modifies an array of ints.  */
4680
  exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4681
}
4682
_ACEOF
4683
rm -f conftest$ac_exeext
4684
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685
  (eval $ac_link) 2>&5
4686
  ac_status=$?
4687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690
  (eval $ac_try) 2>&5
4691
  ac_status=$?
4692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693
  (exit $ac_status); }; }; then
4694
  ac_cv_type_getgroups=gid_t
4695
else
4696
  echo "$as_me: program exited with status $ac_status" >&5
4697
echo "$as_me: failed program was:" >&5
4698
sed 's/^/| /' conftest.$ac_ext >&5
4699
 
4700
( exit $ac_status )
4701
ac_cv_type_getgroups=int
4702
fi
4703
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4704
fi
4705
if test $ac_cv_type_getgroups = cross; then
4706
        cat >conftest.$ac_ext <<_ACEOF
4707
/* confdefs.h.  */
4708
_ACEOF
4709
cat confdefs.h >>conftest.$ac_ext
4710
cat >>conftest.$ac_ext <<_ACEOF
4711
/* end confdefs.h.  */
4712
#include 
4713
 
4714
_ACEOF
4715
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4716
  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
4717
  ac_cv_type_getgroups=gid_t
4718
else
4719
  ac_cv_type_getgroups=int
4720
fi
4721
rm -f conftest*
4722
 
4723
fi
4724
fi
4725
echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
4726
echo "${ECHO_T}$ac_cv_type_getgroups" >&6
4727
 
4728
cat >>confdefs.h <<_ACEOF
4729
#define GETGROUPS_T $ac_cv_type_getgroups
4730
_ACEOF
4731
 
4732
 
4733
echo "$as_me:$LINENO: checking for mode_t" >&5
4734
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4735
if test "${ac_cv_type_mode_t+set}" = set; then
4736
  echo $ECHO_N "(cached) $ECHO_C" >&6
4737
else
4738
  cat >conftest.$ac_ext <<_ACEOF
4739
/* confdefs.h.  */
4740
_ACEOF
4741
cat confdefs.h >>conftest.$ac_ext
4742
cat >>conftest.$ac_ext <<_ACEOF
4743
/* end confdefs.h.  */
4744
$ac_includes_default
4745
int
4746
main ()
4747
{
4748
if ((mode_t *) 0)
4749
  return 0;
4750
if (sizeof (mode_t))
4751
  return 0;
4752
  ;
4753
  return 0;
4754
}
4755
_ACEOF
4756
rm -f conftest.$ac_objext
4757
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758
  (eval $ac_compile) 2>conftest.er1
4759
  ac_status=$?
4760
  grep -v '^ *+' conftest.er1 >conftest.err
4761
  rm -f conftest.er1
4762
  cat conftest.err >&5
4763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764
  (exit $ac_status); } &&
4765
         { ac_try='test -z "$ac_c_werror_flag"
4766
                         || test ! -s conftest.err'
4767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768
  (eval $ac_try) 2>&5
4769
  ac_status=$?
4770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771
  (exit $ac_status); }; } &&
4772
         { ac_try='test -s conftest.$ac_objext'
4773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774
  (eval $ac_try) 2>&5
4775
  ac_status=$?
4776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777
  (exit $ac_status); }; }; then
4778
  ac_cv_type_mode_t=yes
4779
else
4780
  echo "$as_me: failed program was:" >&5
4781
sed 's/^/| /' conftest.$ac_ext >&5
4782
 
4783
ac_cv_type_mode_t=no
4784
fi
4785
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786
fi
4787
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4788
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4789
if test $ac_cv_type_mode_t = yes; then
4790
  :
4791
else
4792
 
4793
cat >>confdefs.h <<_ACEOF
4794
#define mode_t int
4795
_ACEOF
4796
 
4797
fi
4798
 
4799
echo "$as_me:$LINENO: checking for off_t" >&5
4800
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4801
if test "${ac_cv_type_off_t+set}" = set; then
4802
  echo $ECHO_N "(cached) $ECHO_C" >&6
4803
else
4804
  cat >conftest.$ac_ext <<_ACEOF
4805
/* confdefs.h.  */
4806
_ACEOF
4807
cat confdefs.h >>conftest.$ac_ext
4808
cat >>conftest.$ac_ext <<_ACEOF
4809
/* end confdefs.h.  */
4810
$ac_includes_default
4811
int
4812
main ()
4813
{
4814
if ((off_t *) 0)
4815
  return 0;
4816
if (sizeof (off_t))
4817
  return 0;
4818
  ;
4819
  return 0;
4820
}
4821
_ACEOF
4822
rm -f conftest.$ac_objext
4823
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824
  (eval $ac_compile) 2>conftest.er1
4825
  ac_status=$?
4826
  grep -v '^ *+' conftest.er1 >conftest.err
4827
  rm -f conftest.er1
4828
  cat conftest.err >&5
4829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830
  (exit $ac_status); } &&
4831
         { ac_try='test -z "$ac_c_werror_flag"
4832
                         || test ! -s conftest.err'
4833
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834
  (eval $ac_try) 2>&5
4835
  ac_status=$?
4836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837
  (exit $ac_status); }; } &&
4838
         { ac_try='test -s conftest.$ac_objext'
4839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840
  (eval $ac_try) 2>&5
4841
  ac_status=$?
4842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843
  (exit $ac_status); }; }; then
4844
  ac_cv_type_off_t=yes
4845
else
4846
  echo "$as_me: failed program was:" >&5
4847
sed 's/^/| /' conftest.$ac_ext >&5
4848
 
4849
ac_cv_type_off_t=no
4850
fi
4851
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4852
fi
4853
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4854
echo "${ECHO_T}$ac_cv_type_off_t" >&6
4855
if test $ac_cv_type_off_t = yes; then
4856
  :
4857
else
4858
 
4859
cat >>confdefs.h <<_ACEOF
4860
#define off_t long
4861
_ACEOF
4862
 
4863
fi
4864
 
4865
echo "$as_me:$LINENO: checking for pid_t" >&5
4866
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4867
if test "${ac_cv_type_pid_t+set}" = set; then
4868
  echo $ECHO_N "(cached) $ECHO_C" >&6
4869
else
4870
  cat >conftest.$ac_ext <<_ACEOF
4871
/* confdefs.h.  */
4872
_ACEOF
4873
cat confdefs.h >>conftest.$ac_ext
4874
cat >>conftest.$ac_ext <<_ACEOF
4875
/* end confdefs.h.  */
4876
$ac_includes_default
4877
int
4878
main ()
4879
{
4880
if ((pid_t *) 0)
4881
  return 0;
4882
if (sizeof (pid_t))
4883
  return 0;
4884
  ;
4885
  return 0;
4886
}
4887
_ACEOF
4888
rm -f conftest.$ac_objext
4889
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890
  (eval $ac_compile) 2>conftest.er1
4891
  ac_status=$?
4892
  grep -v '^ *+' conftest.er1 >conftest.err
4893
  rm -f conftest.er1
4894
  cat conftest.err >&5
4895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896
  (exit $ac_status); } &&
4897
         { ac_try='test -z "$ac_c_werror_flag"
4898
                         || test ! -s conftest.err'
4899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900
  (eval $ac_try) 2>&5
4901
  ac_status=$?
4902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903
  (exit $ac_status); }; } &&
4904
         { ac_try='test -s conftest.$ac_objext'
4905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906
  (eval $ac_try) 2>&5
4907
  ac_status=$?
4908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909
  (exit $ac_status); }; }; then
4910
  ac_cv_type_pid_t=yes
4911
else
4912
  echo "$as_me: failed program was:" >&5
4913
sed 's/^/| /' conftest.$ac_ext >&5
4914
 
4915
ac_cv_type_pid_t=no
4916
fi
4917
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4918
fi
4919
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4920
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4921
if test $ac_cv_type_pid_t = yes; then
4922
  :
4923
else
4924
 
4925
cat >>confdefs.h <<_ACEOF
4926
#define pid_t int
4927
_ACEOF
4928
 
4929
fi
4930
 
4931
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4932
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4933
if test "${ac_cv_type_signal+set}" = set; then
4934
  echo $ECHO_N "(cached) $ECHO_C" >&6
4935
else
4936
  cat >conftest.$ac_ext <<_ACEOF
4937
/* confdefs.h.  */
4938
_ACEOF
4939
cat confdefs.h >>conftest.$ac_ext
4940
cat >>conftest.$ac_ext <<_ACEOF
4941
/* end confdefs.h.  */
4942
#include 
4943
#include 
4944
#ifdef signal
4945
# undef signal
4946
#endif
4947
#ifdef __cplusplus
4948
extern "C" void (*signal (int, void (*)(int)))(int);
4949
#else
4950
void (*signal ()) ();
4951
#endif
4952
 
4953
int
4954
main ()
4955
{
4956
int i;
4957
  ;
4958
  return 0;
4959
}
4960
_ACEOF
4961
rm -f conftest.$ac_objext
4962
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963
  (eval $ac_compile) 2>conftest.er1
4964
  ac_status=$?
4965
  grep -v '^ *+' conftest.er1 >conftest.err
4966
  rm -f conftest.er1
4967
  cat conftest.err >&5
4968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969
  (exit $ac_status); } &&
4970
         { ac_try='test -z "$ac_c_werror_flag"
4971
                         || test ! -s conftest.err'
4972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973
  (eval $ac_try) 2>&5
4974
  ac_status=$?
4975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976
  (exit $ac_status); }; } &&
4977
         { ac_try='test -s conftest.$ac_objext'
4978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979
  (eval $ac_try) 2>&5
4980
  ac_status=$?
4981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982
  (exit $ac_status); }; }; then
4983
  ac_cv_type_signal=void
4984
else
4985
  echo "$as_me: failed program was:" >&5
4986
sed 's/^/| /' conftest.$ac_ext >&5
4987
 
4988
ac_cv_type_signal=int
4989
fi
4990
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4991
fi
4992
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4993
echo "${ECHO_T}$ac_cv_type_signal" >&6
4994
 
4995
cat >>confdefs.h <<_ACEOF
4996
#define RETSIGTYPE $ac_cv_type_signal
4997
_ACEOF
4998
 
4999
 
5000
echo "$as_me:$LINENO: checking for size_t" >&5
5001
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5002
if test "${ac_cv_type_size_t+set}" = set; then
5003
  echo $ECHO_N "(cached) $ECHO_C" >&6
5004
else
5005
  cat >conftest.$ac_ext <<_ACEOF
5006
/* confdefs.h.  */
5007
_ACEOF
5008
cat confdefs.h >>conftest.$ac_ext
5009
cat >>conftest.$ac_ext <<_ACEOF
5010
/* end confdefs.h.  */
5011
$ac_includes_default
5012
int
5013
main ()
5014
{
5015
if ((size_t *) 0)
5016
  return 0;
5017
if (sizeof (size_t))
5018
  return 0;
5019
  ;
5020
  return 0;
5021
}
5022
_ACEOF
5023
rm -f conftest.$ac_objext
5024
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025
  (eval $ac_compile) 2>conftest.er1
5026
  ac_status=$?
5027
  grep -v '^ *+' conftest.er1 >conftest.err
5028
  rm -f conftest.er1
5029
  cat conftest.err >&5
5030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031
  (exit $ac_status); } &&
5032
         { ac_try='test -z "$ac_c_werror_flag"
5033
                         || test ! -s conftest.err'
5034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035
  (eval $ac_try) 2>&5
5036
  ac_status=$?
5037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038
  (exit $ac_status); }; } &&
5039
         { ac_try='test -s conftest.$ac_objext'
5040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041
  (eval $ac_try) 2>&5
5042
  ac_status=$?
5043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044
  (exit $ac_status); }; }; then
5045
  ac_cv_type_size_t=yes
5046
else
5047
  echo "$as_me: failed program was:" >&5
5048
sed 's/^/| /' conftest.$ac_ext >&5
5049
 
5050
ac_cv_type_size_t=no
5051
fi
5052
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5053
fi
5054
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5055
echo "${ECHO_T}$ac_cv_type_size_t" >&6
5056
if test $ac_cv_type_size_t = yes; then
5057
  :
5058
else
5059
 
5060
cat >>confdefs.h <<_ACEOF
5061
#define size_t unsigned
5062
_ACEOF
5063
 
5064
fi
5065
 
5066
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5067
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5068
if test "${ac_cv_type_uid_t+set}" = set; then
5069
  echo $ECHO_N "(cached) $ECHO_C" >&6
5070
else
5071
  cat >conftest.$ac_ext <<_ACEOF
5072
/* confdefs.h.  */
5073
_ACEOF
5074
cat confdefs.h >>conftest.$ac_ext
5075
cat >>conftest.$ac_ext <<_ACEOF
5076
/* end confdefs.h.  */
5077
#include 
5078
 
5079
_ACEOF
5080
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081
  $EGREP "uid_t" >/dev/null 2>&1; then
5082
  ac_cv_type_uid_t=yes
5083
else
5084
  ac_cv_type_uid_t=no
5085
fi
5086
rm -f conftest*
5087
 
5088
fi
5089
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5090
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5091
if test $ac_cv_type_uid_t = no; then
5092
 
5093
cat >>confdefs.h <<\_ACEOF
5094
#define uid_t int
5095
_ACEOF
5096
 
5097
 
5098
cat >>confdefs.h <<\_ACEOF
5099
#define gid_t int
5100
_ACEOF
5101
 
5102
fi
5103
 
5104
 
5105
 
5106
 
5107
 
5108
 
5109
 
5110
 
5111
 
5112
 
5113
 
5114
 
5115
 
5116
 
5117
 
5118
 
5119
 
5120
 
5121
 
5122
 
5123
 
5124
 
5125
 
5126
 
5127
 
5128
 
5129
 
5130
 
5131
 
5132
 
5133
 
5134
 
5135
 
5136
 
5137
 
5138
 
5139
 
5140
 
5141
 
5142
 
5143
 
5144
 
5145
 
5146
 
5147
 
5148
 
5149
 
5150
 
5151
 
5152
 
5153
 
5154
 
5155
for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
5156
do
5157
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5158
echo "$as_me:$LINENO: checking for $ac_func" >&5
5159
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5160
if eval "test \"\${$as_ac_var+set}\" = set"; then
5161
  echo $ECHO_N "(cached) $ECHO_C" >&6
5162
else
5163
  cat >conftest.$ac_ext <<_ACEOF
5164
/* confdefs.h.  */
5165
_ACEOF
5166
cat confdefs.h >>conftest.$ac_ext
5167
cat >>conftest.$ac_ext <<_ACEOF
5168
/* end confdefs.h.  */
5169
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
5170
   For example, HP-UX 11i  declares gettimeofday.  */
5171
#define $ac_func innocuous_$ac_func
5172
 
5173
/* System header to define __stub macros and hopefully few prototypes,
5174
    which can conflict with char $ac_func (); below.
5175
    Prefer  to  if __STDC__ is defined, since
5176
     exists even on freestanding compilers.  */
5177
 
5178
#ifdef __STDC__
5179
# include 
5180
#else
5181
# include 
5182
#endif
5183
 
5184
#undef $ac_func
5185
 
5186
/* Override any gcc2 internal prototype to avoid an error.  */
5187
#ifdef __cplusplus
5188
extern "C"
5189
{
5190
#endif
5191
/* We use char because int might match the return type of a gcc2
5192
   builtin and then its argument prototype would still apply.  */
5193
char $ac_func ();
5194
/* The GNU C library defines this for functions which it implements
5195
    to always fail with ENOSYS.  Some functions are actually named
5196
    something starting with __ and the normal name is an alias.  */
5197
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5198
choke me
5199
#else
5200
char (*f) () = $ac_func;
5201
#endif
5202
#ifdef __cplusplus
5203
}
5204
#endif
5205
 
5206
int
5207
main ()
5208
{
5209
return f != $ac_func;
5210
  ;
5211
  return 0;
5212
}
5213
_ACEOF
5214
rm -f conftest.$ac_objext conftest$ac_exeext
5215
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216
  (eval $ac_link) 2>conftest.er1
5217
  ac_status=$?
5218
  grep -v '^ *+' conftest.er1 >conftest.err
5219
  rm -f conftest.er1
5220
  cat conftest.err >&5
5221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222
  (exit $ac_status); } &&
5223
         { ac_try='test -z "$ac_c_werror_flag"
5224
                         || test ! -s conftest.err'
5225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226
  (eval $ac_try) 2>&5
5227
  ac_status=$?
5228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229
  (exit $ac_status); }; } &&
5230
         { ac_try='test -s conftest$ac_exeext'
5231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232
  (eval $ac_try) 2>&5
5233
  ac_status=$?
5234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235
  (exit $ac_status); }; }; then
5236
  eval "$as_ac_var=yes"
5237
else
5238
  echo "$as_me: failed program was:" >&5
5239
sed 's/^/| /' conftest.$ac_ext >&5
5240
 
5241
eval "$as_ac_var=no"
5242
fi
5243
rm -f conftest.err conftest.$ac_objext \
5244
      conftest$ac_exeext conftest.$ac_ext
5245
fi
5246
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5247
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5248
if test `eval echo '${'$as_ac_var'}'` = yes; then
5249
  cat >>confdefs.h <<_ACEOF
5250
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5251
_ACEOF
5252
 
5253
fi
5254
done
5255
 
5256
 
5257
 
5258
 
5259
 
5260
 
5261
 
5262
 
5263
 
5264
 
5265
 
5266
 
5267
 
5268
 
5269
 
5270
 
5271
 
5272
 
5273
 
5274
 
5275
for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h
5276
do
5277
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5278
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5279
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5280
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5281
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5282
  echo $ECHO_N "(cached) $ECHO_C" >&6
5283
fi
5284
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5285
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5286
else
5287
  # Is the header compilable?
5288
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5289
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5290
cat >conftest.$ac_ext <<_ACEOF
5291
/* confdefs.h.  */
5292
_ACEOF
5293
cat confdefs.h >>conftest.$ac_ext
5294
cat >>conftest.$ac_ext <<_ACEOF
5295
/* end confdefs.h.  */
5296
$ac_includes_default
5297
#include <$ac_header>
5298
_ACEOF
5299
rm -f conftest.$ac_objext
5300
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301
  (eval $ac_compile) 2>conftest.er1
5302
  ac_status=$?
5303
  grep -v '^ *+' conftest.er1 >conftest.err
5304
  rm -f conftest.er1
5305
  cat conftest.err >&5
5306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307
  (exit $ac_status); } &&
5308
         { ac_try='test -z "$ac_c_werror_flag"
5309
                         || test ! -s conftest.err'
5310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311
  (eval $ac_try) 2>&5
5312
  ac_status=$?
5313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314
  (exit $ac_status); }; } &&
5315
         { ac_try='test -s conftest.$ac_objext'
5316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317
  (eval $ac_try) 2>&5
5318
  ac_status=$?
5319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320
  (exit $ac_status); }; }; then
5321
  ac_header_compiler=yes
5322
else
5323
  echo "$as_me: failed program was:" >&5
5324
sed 's/^/| /' conftest.$ac_ext >&5
5325
 
5326
ac_header_compiler=no
5327
fi
5328
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5330
echo "${ECHO_T}$ac_header_compiler" >&6
5331
 
5332
# Is the header present?
5333
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5334
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5335
cat >conftest.$ac_ext <<_ACEOF
5336
/* confdefs.h.  */
5337
_ACEOF
5338
cat confdefs.h >>conftest.$ac_ext
5339
cat >>conftest.$ac_ext <<_ACEOF
5340
/* end confdefs.h.  */
5341
#include <$ac_header>
5342
_ACEOF
5343
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5344
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5345
  ac_status=$?
5346
  grep -v '^ *+' conftest.er1 >conftest.err
5347
  rm -f conftest.er1
5348
  cat conftest.err >&5
5349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350
  (exit $ac_status); } >/dev/null; then
5351
  if test -s conftest.err; then
5352
    ac_cpp_err=$ac_c_preproc_warn_flag
5353
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5354
  else
5355
    ac_cpp_err=
5356
  fi
5357
else
5358
  ac_cpp_err=yes
5359
fi
5360
if test -z "$ac_cpp_err"; then
5361
  ac_header_preproc=yes
5362
else
5363
  echo "$as_me: failed program was:" >&5
5364
sed 's/^/| /' conftest.$ac_ext >&5
5365
 
5366
  ac_header_preproc=no
5367
fi
5368
rm -f conftest.err conftest.$ac_ext
5369
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5370
echo "${ECHO_T}$ac_header_preproc" >&6
5371
 
5372
# So?  What about this header?
5373
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5374
  yes:no: )
5375
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5376
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5377
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5378
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5379
    ac_header_preproc=yes
5380
    ;;
5381
  no:yes:* )
5382
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5383
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5384
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5385
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5386
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5387
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5388
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5389
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5390
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5391
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5392
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5393
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5394
    (
5395
      cat <<\_ASBOX
5396
## ------------------------------------------ ##
5397
## Report this to the AC_PACKAGE_NAME lists.  ##
5398
## ------------------------------------------ ##
5399
_ASBOX
5400
    ) |
5401
      sed "s/^/$as_me: WARNING:     /" >&2
5402
    ;;
5403
esac
5404
echo "$as_me:$LINENO: checking for $ac_header" >&5
5405
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407
  echo $ECHO_N "(cached) $ECHO_C" >&6
5408
else
5409
  eval "$as_ac_Header=\$ac_header_preproc"
5410
fi
5411
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5412
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5413
 
5414
fi
5415
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5416
  cat >>confdefs.h <<_ACEOF
5417
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5418
_ACEOF
5419
 
5420
fi
5421
 
5422
done
5423
 
5424
 
5425
 
5426
 
5427
 
5428
 
5429
ac_header_dirent=no
5430
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5431
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5432
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5433
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5434
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5435
  echo $ECHO_N "(cached) $ECHO_C" >&6
5436
else
5437
  cat >conftest.$ac_ext <<_ACEOF
5438
/* confdefs.h.  */
5439
_ACEOF
5440
cat confdefs.h >>conftest.$ac_ext
5441
cat >>conftest.$ac_ext <<_ACEOF
5442
/* end confdefs.h.  */
5443
#include 
5444
#include <$ac_hdr>
5445
 
5446
int
5447
main ()
5448
{
5449
if ((DIR *) 0)
5450
return 0;
5451
  ;
5452
  return 0;
5453
}
5454
_ACEOF
5455
rm -f conftest.$ac_objext
5456
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457
  (eval $ac_compile) 2>conftest.er1
5458
  ac_status=$?
5459
  grep -v '^ *+' conftest.er1 >conftest.err
5460
  rm -f conftest.er1
5461
  cat conftest.err >&5
5462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463
  (exit $ac_status); } &&
5464
         { ac_try='test -z "$ac_c_werror_flag"
5465
                         || test ! -s conftest.err'
5466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467
  (eval $ac_try) 2>&5
5468
  ac_status=$?
5469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470
  (exit $ac_status); }; } &&
5471
         { ac_try='test -s conftest.$ac_objext'
5472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473
  (eval $ac_try) 2>&5
5474
  ac_status=$?
5475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476
  (exit $ac_status); }; }; then
5477
  eval "$as_ac_Header=yes"
5478
else
5479
  echo "$as_me: failed program was:" >&5
5480
sed 's/^/| /' conftest.$ac_ext >&5
5481
 
5482
eval "$as_ac_Header=no"
5483
fi
5484
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5485
fi
5486
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5487
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5488
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5489
  cat >>confdefs.h <<_ACEOF
5490
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5491
_ACEOF
5492
 
5493
ac_header_dirent=$ac_hdr; break
5494
fi
5495
 
5496
done
5497
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5498
if test $ac_header_dirent = dirent.h; then
5499
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
5500
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5501
if test "${ac_cv_search_opendir+set}" = set; then
5502
  echo $ECHO_N "(cached) $ECHO_C" >&6
5503
else
5504
  ac_func_search_save_LIBS=$LIBS
5505
ac_cv_search_opendir=no
5506
cat >conftest.$ac_ext <<_ACEOF
5507
/* confdefs.h.  */
5508
_ACEOF
5509
cat confdefs.h >>conftest.$ac_ext
5510
cat >>conftest.$ac_ext <<_ACEOF
5511
/* end confdefs.h.  */
5512
 
5513
/* Override any gcc2 internal prototype to avoid an error.  */
5514
#ifdef __cplusplus
5515
extern "C"
5516
#endif
5517
/* We use char because int might match the return type of a gcc2
5518
   builtin and then its argument prototype would still apply.  */
5519
char opendir ();
5520
int
5521
main ()
5522
{
5523
opendir ();
5524
  ;
5525
  return 0;
5526
}
5527
_ACEOF
5528
rm -f conftest.$ac_objext conftest$ac_exeext
5529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5530
  (eval $ac_link) 2>conftest.er1
5531
  ac_status=$?
5532
  grep -v '^ *+' conftest.er1 >conftest.err
5533
  rm -f conftest.er1
5534
  cat conftest.err >&5
5535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536
  (exit $ac_status); } &&
5537
         { ac_try='test -z "$ac_c_werror_flag"
5538
                         || test ! -s conftest.err'
5539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540
  (eval $ac_try) 2>&5
5541
  ac_status=$?
5542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543
  (exit $ac_status); }; } &&
5544
         { ac_try='test -s conftest$ac_exeext'
5545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546
  (eval $ac_try) 2>&5
5547
  ac_status=$?
5548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549
  (exit $ac_status); }; }; then
5550
  ac_cv_search_opendir="none required"
5551
else
5552
  echo "$as_me: failed program was:" >&5
5553
sed 's/^/| /' conftest.$ac_ext >&5
5554
 
5555
fi
5556
rm -f conftest.err conftest.$ac_objext \
5557
      conftest$ac_exeext conftest.$ac_ext
5558
if test "$ac_cv_search_opendir" = no; then
5559
  for ac_lib in dir; do
5560
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5561
    cat >conftest.$ac_ext <<_ACEOF
5562
/* confdefs.h.  */
5563
_ACEOF
5564
cat confdefs.h >>conftest.$ac_ext
5565
cat >>conftest.$ac_ext <<_ACEOF
5566
/* end confdefs.h.  */
5567
 
5568
/* Override any gcc2 internal prototype to avoid an error.  */
5569
#ifdef __cplusplus
5570
extern "C"
5571
#endif
5572
/* We use char because int might match the return type of a gcc2
5573
   builtin and then its argument prototype would still apply.  */
5574
char opendir ();
5575
int
5576
main ()
5577
{
5578
opendir ();
5579
  ;
5580
  return 0;
5581
}
5582
_ACEOF
5583
rm -f conftest.$ac_objext conftest$ac_exeext
5584
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5585
  (eval $ac_link) 2>conftest.er1
5586
  ac_status=$?
5587
  grep -v '^ *+' conftest.er1 >conftest.err
5588
  rm -f conftest.er1
5589
  cat conftest.err >&5
5590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591
  (exit $ac_status); } &&
5592
         { ac_try='test -z "$ac_c_werror_flag"
5593
                         || test ! -s conftest.err'
5594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595
  (eval $ac_try) 2>&5
5596
  ac_status=$?
5597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598
  (exit $ac_status); }; } &&
5599
         { ac_try='test -s conftest$ac_exeext'
5600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601
  (eval $ac_try) 2>&5
5602
  ac_status=$?
5603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604
  (exit $ac_status); }; }; then
5605
  ac_cv_search_opendir="-l$ac_lib"
5606
break
5607
else
5608
  echo "$as_me: failed program was:" >&5
5609
sed 's/^/| /' conftest.$ac_ext >&5
5610
 
5611
fi
5612
rm -f conftest.err conftest.$ac_objext \
5613
      conftest$ac_exeext conftest.$ac_ext
5614
  done
5615
fi
5616
LIBS=$ac_func_search_save_LIBS
5617
fi
5618
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5619
echo "${ECHO_T}$ac_cv_search_opendir" >&6
5620
if test "$ac_cv_search_opendir" != no; then
5621
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5622
 
5623
fi
5624
 
5625
else
5626
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
5627
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5628
if test "${ac_cv_search_opendir+set}" = set; then
5629
  echo $ECHO_N "(cached) $ECHO_C" >&6
5630
else
5631
  ac_func_search_save_LIBS=$LIBS
5632
ac_cv_search_opendir=no
5633
cat >conftest.$ac_ext <<_ACEOF
5634
/* confdefs.h.  */
5635
_ACEOF
5636
cat confdefs.h >>conftest.$ac_ext
5637
cat >>conftest.$ac_ext <<_ACEOF
5638
/* end confdefs.h.  */
5639
 
5640
/* Override any gcc2 internal prototype to avoid an error.  */
5641
#ifdef __cplusplus
5642
extern "C"
5643
#endif
5644
/* We use char because int might match the return type of a gcc2
5645
   builtin and then its argument prototype would still apply.  */
5646
char opendir ();
5647
int
5648
main ()
5649
{
5650
opendir ();
5651
  ;
5652
  return 0;
5653
}
5654
_ACEOF
5655
rm -f conftest.$ac_objext conftest$ac_exeext
5656
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657
  (eval $ac_link) 2>conftest.er1
5658
  ac_status=$?
5659
  grep -v '^ *+' conftest.er1 >conftest.err
5660
  rm -f conftest.er1
5661
  cat conftest.err >&5
5662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663
  (exit $ac_status); } &&
5664
         { ac_try='test -z "$ac_c_werror_flag"
5665
                         || test ! -s conftest.err'
5666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667
  (eval $ac_try) 2>&5
5668
  ac_status=$?
5669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670
  (exit $ac_status); }; } &&
5671
         { ac_try='test -s conftest$ac_exeext'
5672
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673
  (eval $ac_try) 2>&5
5674
  ac_status=$?
5675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676
  (exit $ac_status); }; }; then
5677
  ac_cv_search_opendir="none required"
5678
else
5679
  echo "$as_me: failed program was:" >&5
5680
sed 's/^/| /' conftest.$ac_ext >&5
5681
 
5682
fi
5683
rm -f conftest.err conftest.$ac_objext \
5684
      conftest$ac_exeext conftest.$ac_ext
5685
if test "$ac_cv_search_opendir" = no; then
5686
  for ac_lib in x; do
5687
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5688
    cat >conftest.$ac_ext <<_ACEOF
5689
/* confdefs.h.  */
5690
_ACEOF
5691
cat confdefs.h >>conftest.$ac_ext
5692
cat >>conftest.$ac_ext <<_ACEOF
5693
/* end confdefs.h.  */
5694
 
5695
/* Override any gcc2 internal prototype to avoid an error.  */
5696
#ifdef __cplusplus
5697
extern "C"
5698
#endif
5699
/* We use char because int might match the return type of a gcc2
5700
   builtin and then its argument prototype would still apply.  */
5701
char opendir ();
5702
int
5703
main ()
5704
{
5705
opendir ();
5706
  ;
5707
  return 0;
5708
}
5709
_ACEOF
5710
rm -f conftest.$ac_objext conftest$ac_exeext
5711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5712
  (eval $ac_link) 2>conftest.er1
5713
  ac_status=$?
5714
  grep -v '^ *+' conftest.er1 >conftest.err
5715
  rm -f conftest.er1
5716
  cat conftest.err >&5
5717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718
  (exit $ac_status); } &&
5719
         { ac_try='test -z "$ac_c_werror_flag"
5720
                         || test ! -s conftest.err'
5721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722
  (eval $ac_try) 2>&5
5723
  ac_status=$?
5724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725
  (exit $ac_status); }; } &&
5726
         { ac_try='test -s conftest$ac_exeext'
5727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728
  (eval $ac_try) 2>&5
5729
  ac_status=$?
5730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731
  (exit $ac_status); }; }; then
5732
  ac_cv_search_opendir="-l$ac_lib"
5733
break
5734
else
5735
  echo "$as_me: failed program was:" >&5
5736
sed 's/^/| /' conftest.$ac_ext >&5
5737
 
5738
fi
5739
rm -f conftest.err conftest.$ac_objext \
5740
      conftest$ac_exeext conftest.$ac_ext
5741
  done
5742
fi
5743
LIBS=$ac_func_search_save_LIBS
5744
fi
5745
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5746
echo "${ECHO_T}$ac_cv_search_opendir" >&6
5747
if test "$ac_cv_search_opendir" != no; then
5748
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5749
 
5750
fi
5751
 
5752
fi
5753
 
5754
 
5755
sim_termio=""
5756
echo "$as_me:$LINENO: checking for struct termios" >&5
5757
echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
5758
if test "${ac_cv_termios_struct+set}" = set; then
5759
  echo $ECHO_N "(cached) $ECHO_C" >&6
5760
else
5761
  cat >conftest.$ac_ext <<_ACEOF
5762
/* confdefs.h.  */
5763
_ACEOF
5764
cat confdefs.h >>conftest.$ac_ext
5765
cat >>conftest.$ac_ext <<_ACEOF
5766
/* end confdefs.h.  */
5767
#include 
5768
#include 
5769
int
5770
main ()
5771
{
5772
static struct termios x;
5773
 x.c_iflag = 0;
5774
 x.c_oflag = 0;
5775
 x.c_cflag = 0;
5776
 x.c_lflag = 0;
5777
 x.c_cc[NCCS] = 0;
5778
  ;
5779
  return 0;
5780
}
5781
_ACEOF
5782
rm -f conftest.$ac_objext
5783
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784
  (eval $ac_compile) 2>conftest.er1
5785
  ac_status=$?
5786
  grep -v '^ *+' conftest.er1 >conftest.err
5787
  rm -f conftest.er1
5788
  cat conftest.err >&5
5789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790
  (exit $ac_status); } &&
5791
         { ac_try='test -z "$ac_c_werror_flag"
5792
                         || test ! -s conftest.err'
5793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794
  (eval $ac_try) 2>&5
5795
  ac_status=$?
5796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797
  (exit $ac_status); }; } &&
5798
         { ac_try='test -s conftest.$ac_objext'
5799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800
  (eval $ac_try) 2>&5
5801
  ac_status=$?
5802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803
  (exit $ac_status); }; }; then
5804
  ac_cv_termios_struct=yes
5805
else
5806
  echo "$as_me: failed program was:" >&5
5807
sed 's/^/| /' conftest.$ac_ext >&5
5808
 
5809
ac_cv_termios_struct=no
5810
fi
5811
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812
fi
5813
 
5814
echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
5815
echo "${ECHO_T}$ac_cv_termios_struct" >&6
5816
if test $ac_cv_termios_struct = yes; then
5817
  sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5818
fi
5819
 
5820
if test "$ac_cv_termios_struct" = "yes"; then
5821
  echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
5822
echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
5823
  if test "${ac_cv_termios_cline+set}" = set; then
5824
  echo $ECHO_N "(cached) $ECHO_C" >&6
5825
else
5826
  cat >conftest.$ac_ext <<_ACEOF
5827
/* confdefs.h.  */
5828
_ACEOF
5829
cat confdefs.h >>conftest.$ac_ext
5830
cat >>conftest.$ac_ext <<_ACEOF
5831
/* end confdefs.h.  */
5832
#include 
5833
#include 
5834
int
5835
main ()
5836
{
5837
static struct termios x; x.c_line = 0;
5838
  ;
5839
  return 0;
5840
}
5841
_ACEOF
5842
rm -f conftest.$ac_objext
5843
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5844
  (eval $ac_compile) 2>conftest.er1
5845
  ac_status=$?
5846
  grep -v '^ *+' conftest.er1 >conftest.err
5847
  rm -f conftest.er1
5848
  cat conftest.err >&5
5849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850
  (exit $ac_status); } &&
5851
         { ac_try='test -z "$ac_c_werror_flag"
5852
                         || test ! -s conftest.err'
5853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854
  (eval $ac_try) 2>&5
5855
  ac_status=$?
5856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857
  (exit $ac_status); }; } &&
5858
         { ac_try='test -s conftest.$ac_objext'
5859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860
  (eval $ac_try) 2>&5
5861
  ac_status=$?
5862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863
  (exit $ac_status); }; }; then
5864
  ac_cv_termios_cline=yes
5865
else
5866
  echo "$as_me: failed program was:" >&5
5867
sed 's/^/| /' conftest.$ac_ext >&5
5868
 
5869
ac_cv_termios_cline=no
5870
fi
5871
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5872
fi
5873
 
5874
 
5875
  echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
5876
echo "${ECHO_T}$ac_cv_termios_cline" >&6
5877
  if test $ac_cv_termios_cline = yes; then
5878
    sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
5879
  fi
5880
else
5881
  ac_cv_termios_cline=no
5882
fi
5883
 
5884
if test "$ac_cv_termios_struct" != "yes"; then
5885
  echo "$as_me:$LINENO: checking for struct termio" >&5
5886
echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
5887
  if test "${ac_cv_termio_struct+set}" = set; then
5888
  echo $ECHO_N "(cached) $ECHO_C" >&6
5889
else
5890
  cat >conftest.$ac_ext <<_ACEOF
5891
/* confdefs.h.  */
5892
_ACEOF
5893
cat confdefs.h >>conftest.$ac_ext
5894
cat >>conftest.$ac_ext <<_ACEOF
5895
/* end confdefs.h.  */
5896
#include 
5897
#include 
5898
int
5899
main ()
5900
{
5901
static struct termio x;
5902
 x.c_iflag = 0;
5903
 x.c_oflag = 0;
5904
 x.c_cflag = 0;
5905
 x.c_lflag = 0;
5906
 x.c_cc[NCC] = 0;
5907
  ;
5908
  return 0;
5909
}
5910
_ACEOF
5911
rm -f conftest.$ac_objext
5912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913
  (eval $ac_compile) 2>conftest.er1
5914
  ac_status=$?
5915
  grep -v '^ *+' conftest.er1 >conftest.err
5916
  rm -f conftest.er1
5917
  cat conftest.err >&5
5918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919
  (exit $ac_status); } &&
5920
         { ac_try='test -z "$ac_c_werror_flag"
5921
                         || test ! -s conftest.err'
5922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923
  (eval $ac_try) 2>&5
5924
  ac_status=$?
5925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926
  (exit $ac_status); }; } &&
5927
         { ac_try='test -s conftest.$ac_objext'
5928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929
  (eval $ac_try) 2>&5
5930
  ac_status=$?
5931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932
  (exit $ac_status); }; }; then
5933
  ac_cv_termio_struct=yes
5934
else
5935
  echo "$as_me: failed program was:" >&5
5936
sed 's/^/| /' conftest.$ac_ext >&5
5937
 
5938
ac_cv_termio_struct=no
5939
fi
5940
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941
fi
5942
 
5943
  echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
5944
echo "${ECHO_T}$ac_cv_termio_struct" >&6
5945
  if test $ac_cv_termio_struct = yes; then
5946
    sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
5947
  fi
5948
else
5949
  ac_cv_termio_struct=no
5950
fi
5951
 
5952
if test "$ac_cv_termio_struct" = "yes"; then
5953
  echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
5954
echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
5955
  if test "${ac_cv_termio_cline+set}" = set; then
5956
  echo $ECHO_N "(cached) $ECHO_C" >&6
5957
else
5958
  cat >conftest.$ac_ext <<_ACEOF
5959
/* confdefs.h.  */
5960
_ACEOF
5961
cat confdefs.h >>conftest.$ac_ext
5962
cat >>conftest.$ac_ext <<_ACEOF
5963
/* end confdefs.h.  */
5964
#include 
5965
#include 
5966
int
5967
main ()
5968
{
5969
static struct termio x; x.c_line = 0;
5970
  ;
5971
  return 0;
5972
}
5973
_ACEOF
5974
rm -f conftest.$ac_objext
5975
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976
  (eval $ac_compile) 2>conftest.er1
5977
  ac_status=$?
5978
  grep -v '^ *+' conftest.er1 >conftest.err
5979
  rm -f conftest.er1
5980
  cat conftest.err >&5
5981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982
  (exit $ac_status); } &&
5983
         { ac_try='test -z "$ac_c_werror_flag"
5984
                         || test ! -s conftest.err'
5985
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986
  (eval $ac_try) 2>&5
5987
  ac_status=$?
5988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989
  (exit $ac_status); }; } &&
5990
         { ac_try='test -s conftest.$ac_objext'
5991
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992
  (eval $ac_try) 2>&5
5993
  ac_status=$?
5994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995
  (exit $ac_status); }; }; then
5996
  ac_cv_termio_cline=yes
5997
else
5998
  echo "$as_me: failed program was:" >&5
5999
sed 's/^/| /' conftest.$ac_ext >&5
6000
 
6001
ac_cv_termio_cline=no
6002
fi
6003
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004
fi
6005
 
6006
 
6007
  echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
6008
echo "${ECHO_T}$ac_cv_termio_cline" >&6
6009
  if test $ac_cv_termio_cline = yes; then
6010
    sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
6011
  fi
6012
else
6013
  ac_cv_termio_cline=no
6014
fi
6015
 
6016
echo "$as_me:$LINENO: checking for struct statfs" >&5
6017
echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
6018
if test "${ac_cv_struct_statfs+set}" = set; then
6019
  echo $ECHO_N "(cached) $ECHO_C" >&6
6020
else
6021
  cat >conftest.$ac_ext <<_ACEOF
6022
/* confdefs.h.  */
6023
_ACEOF
6024
cat confdefs.h >>conftest.$ac_ext
6025
cat >>conftest.$ac_ext <<_ACEOF
6026
/* end confdefs.h.  */
6027
#include 
6028
#ifdef HAVE_SYS_PARAM_H
6029
#include 
6030
#endif
6031
#ifdef HAVE_SYS_MOUNT_H
6032
#include 
6033
#endif
6034
#ifdef HAVE_SYS_VFS_H
6035
#include 
6036
#endif
6037
#ifdef HAVE_SYS_STATFS_H
6038
#include 
6039
#endif
6040
int
6041
main ()
6042
{
6043
static struct statfs s;
6044
  ;
6045
  return 0;
6046
}
6047
_ACEOF
6048
rm -f conftest.$ac_objext
6049
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6050
  (eval $ac_compile) 2>conftest.er1
6051
  ac_status=$?
6052
  grep -v '^ *+' conftest.er1 >conftest.err
6053
  rm -f conftest.er1
6054
  cat conftest.err >&5
6055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056
  (exit $ac_status); } &&
6057
         { ac_try='test -z "$ac_c_werror_flag"
6058
                         || test ! -s conftest.err'
6059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060
  (eval $ac_try) 2>&5
6061
  ac_status=$?
6062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063
  (exit $ac_status); }; } &&
6064
         { ac_try='test -s conftest.$ac_objext'
6065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066
  (eval $ac_try) 2>&5
6067
  ac_status=$?
6068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069
  (exit $ac_status); }; }; then
6070
  ac_cv_struct_statfs=yes
6071
else
6072
  echo "$as_me: failed program was:" >&5
6073
sed 's/^/| /' conftest.$ac_ext >&5
6074
 
6075
ac_cv_struct_statfs=no
6076
fi
6077
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6078
fi
6079
 
6080
echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
6081
echo "${ECHO_T}$ac_cv_struct_statfs" >&6
6082
if test $ac_cv_struct_statfs = yes; then
6083
 
6084
cat >>confdefs.h <<\_ACEOF
6085
#define HAVE_STRUCT_STATFS 1
6086
_ACEOF
6087
 
6088
fi
6089
 
6090
echo "$as_me:$LINENO: checking for long long" >&5
6091
echo $ECHO_N "checking for long long... $ECHO_C" >&6
6092
if test "${ac_cv_type_long_long+set}" = set; then
6093
  echo $ECHO_N "(cached) $ECHO_C" >&6
6094
else
6095
  cat >conftest.$ac_ext <<_ACEOF
6096
/* confdefs.h.  */
6097
_ACEOF
6098
cat confdefs.h >>conftest.$ac_ext
6099
cat >>conftest.$ac_ext <<_ACEOF
6100
/* end confdefs.h.  */
6101
$ac_includes_default
6102
int
6103
main ()
6104
{
6105
if ((long long *) 0)
6106
  return 0;
6107
if (sizeof (long long))
6108
  return 0;
6109
  ;
6110
  return 0;
6111
}
6112
_ACEOF
6113
rm -f conftest.$ac_objext
6114
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6115
  (eval $ac_compile) 2>conftest.er1
6116
  ac_status=$?
6117
  grep -v '^ *+' conftest.er1 >conftest.err
6118
  rm -f conftest.er1
6119
  cat conftest.err >&5
6120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121
  (exit $ac_status); } &&
6122
         { ac_try='test -z "$ac_c_werror_flag"
6123
                         || test ! -s conftest.err'
6124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125
  (eval $ac_try) 2>&5
6126
  ac_status=$?
6127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128
  (exit $ac_status); }; } &&
6129
         { ac_try='test -s conftest.$ac_objext'
6130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131
  (eval $ac_try) 2>&5
6132
  ac_status=$?
6133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134
  (exit $ac_status); }; }; then
6135
  ac_cv_type_long_long=yes
6136
else
6137
  echo "$as_me: failed program was:" >&5
6138
sed 's/^/| /' conftest.$ac_ext >&5
6139
 
6140
ac_cv_type_long_long=no
6141
fi
6142
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6143
fi
6144
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6145
echo "${ECHO_T}$ac_cv_type_long_long" >&6
6146
if test $ac_cv_type_long_long = yes; then
6147
 
6148
cat >>confdefs.h <<_ACEOF
6149
#define HAVE_LONG_LONG 1
6150
_ACEOF
6151
 
6152
 
6153
fi
6154
 
6155
 
6156
sim_devzero=""
6157
echo "$as_me:$LINENO: checking for /dev/zero" >&5
6158
echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
6159
if test "${ac_cv_devzero+set}" = set; then
6160
  echo $ECHO_N "(cached) $ECHO_C" >&6
6161
else
6162
  if test "$cross_compiling" = yes; then
6163
  ac_cv_devzero=no
6164
else
6165
  cat >conftest.$ac_ext <<_ACEOF
6166
/* confdefs.h.  */
6167
_ACEOF
6168
cat confdefs.h >>conftest.$ac_ext
6169
cat >>conftest.$ac_ext <<_ACEOF
6170
/* end confdefs.h.  */
6171
#include 
6172
main () {
6173
  char buf[2048];
6174
  int i;
6175
  int fd = open ("/dev/zero", O_RDONLY);
6176
  if (fd < 0)
6177
    return 1;
6178
  for (i = 0; i < sizeof (buf); i++)
6179
    buf[i] = 1;
6180
  if (read (fd, buf, sizeof (buf)) != sizeof (buf))
6181
    return 1;
6182
  for (i = 0; i < sizeof (buf); i++)
6183
    if (buf[i])
6184
      return 1;
6185
  return 0;
6186
}
6187
_ACEOF
6188
rm -f conftest$ac_exeext
6189
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6190
  (eval $ac_link) 2>&5
6191
  ac_status=$?
6192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195
  (eval $ac_try) 2>&5
6196
  ac_status=$?
6197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198
  (exit $ac_status); }; }; then
6199
  ac_cv_devzero=yes
6200
else
6201
  echo "$as_me: program exited with status $ac_status" >&5
6202
echo "$as_me: failed program was:" >&5
6203
sed 's/^/| /' conftest.$ac_ext >&5
6204
 
6205
( exit $ac_status )
6206
ac_cv_devzero=no
6207
fi
6208
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6209
fi
6210
fi
6211
 
6212
echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
6213
echo "${ECHO_T}$ac_cv_devzero" >&6
6214
if test $ac_cv_devzero = yes; then
6215
  sim_devzero="-DHAVE_DEVZERO"
6216
else
6217
  sim_devzero=""
6218
fi
6219
 
6220
echo "$as_me:$LINENO: checking for common simulator directory" >&5
6221
echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
6222
if test -f "${srcdir}/../common/callback.c"; then
6223
  echo "$as_me:$LINENO: result: yes" >&5
6224
echo "${ECHO_T}yes" >&6
6225
  sim_callback="callback.o targ-map.o"
6226
  sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
6227
else
6228
  echo "$as_me:$LINENO: result: no" >&5
6229
echo "${ECHO_T}no" >&6
6230
  sim_callback=""
6231
  sim_targ_vals=""
6232
fi
6233
 
6234
echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
6235
echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
6236
if test -f "${srcdir}/../common/sim-fpu.c"; then
6237
  echo "$as_me:$LINENO: result: yes" >&5
6238
echo "${ECHO_T}yes" >&6
6239
  sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
6240
  sim_fpu="sim-fpu.o"
6241
else
6242
  echo "$as_me:$LINENO: result: no" >&5
6243
echo "${ECHO_T}no" >&6
6244
  sim_fpu_cflags=
6245
  sim_fpu=
6246
fi
6247
 
6248
 
6249
 
6250
 
6251
 
6252
 
6253
 
6254
AR=${AR-ar}
6255
 
6256
if test -n "$ac_tool_prefix"; then
6257
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6258
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6259
echo "$as_me:$LINENO: checking for $ac_word" >&5
6260
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6261
if test "${ac_cv_prog_RANLIB+set}" = set; then
6262
  echo $ECHO_N "(cached) $ECHO_C" >&6
6263
else
6264
  if test -n "$RANLIB"; then
6265
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6266
else
6267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268
for as_dir in $PATH
6269
do
6270
  IFS=$as_save_IFS
6271
  test -z "$as_dir" && as_dir=.
6272
  for ac_exec_ext in '' $ac_executable_extensions; do
6273
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6275
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276
    break 2
6277
  fi
6278
done
6279
done
6280
 
6281
fi
6282
fi
6283
RANLIB=$ac_cv_prog_RANLIB
6284
if test -n "$RANLIB"; then
6285
  echo "$as_me:$LINENO: result: $RANLIB" >&5
6286
echo "${ECHO_T}$RANLIB" >&6
6287
else
6288
  echo "$as_me:$LINENO: result: no" >&5
6289
echo "${ECHO_T}no" >&6
6290
fi
6291
 
6292
fi
6293
if test -z "$ac_cv_prog_RANLIB"; then
6294
  ac_ct_RANLIB=$RANLIB
6295
  # Extract the first word of "ranlib", so it can be a program name with args.
6296
set dummy ranlib; ac_word=$2
6297
echo "$as_me:$LINENO: checking for $ac_word" >&5
6298
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6299
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6300
  echo $ECHO_N "(cached) $ECHO_C" >&6
6301
else
6302
  if test -n "$ac_ct_RANLIB"; then
6303
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6304
else
6305
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306
for as_dir in $PATH
6307
do
6308
  IFS=$as_save_IFS
6309
  test -z "$as_dir" && as_dir=.
6310
  for ac_exec_ext in '' $ac_executable_extensions; do
6311
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6313
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314
    break 2
6315
  fi
6316
done
6317
done
6318
 
6319
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6320
fi
6321
fi
6322
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6323
if test -n "$ac_ct_RANLIB"; then
6324
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6325
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6326
else
6327
  echo "$as_me:$LINENO: result: no" >&5
6328
echo "${ECHO_T}no" >&6
6329
fi
6330
 
6331
  RANLIB=$ac_ct_RANLIB
6332
else
6333
  RANLIB="$ac_cv_prog_RANLIB"
6334
fi
6335
 
6336
 
6337
 
6338
 
6339
 
6340
 
6341
 
6342
 
6343
 
6344
 
6345
 
6346
 
6347
 
6348
 
6349
 
6350
 
6351
 
6352
 
6353
 
6354
 
6355
 
6356
 
6357
 
6358
 
6359
 
6360
 
6361
 
6362
 
6363
 
6364
 
6365
 
6366
 
6367
 
6368
 
6369
 
6370
 
6371
 
6372
 
6373
 
6374
 
6375
 
6376
 
6377
 
6378
 
6379
 
6380
 
6381
          ac_config_files="$ac_config_files Makefile"
6382
          ac_config_commands="$ac_config_commands default"
6383
cat >confcache <<\_ACEOF
6384
# This file is a shell script that caches the results of configure
6385
# tests run on this system so they can be shared between configure
6386
# scripts and configure runs, see configure's option --config-cache.
6387
# It is not useful on other systems.  If it contains results you don't
6388
# want to keep, you may remove or edit it.
6389
#
6390
# config.status only pays attention to the cache file if you give it
6391
# the --recheck option to rerun configure.
6392
#
6393
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6394
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6395
# following values.
6396
 
6397
_ACEOF
6398
 
6399
# The following way of writing the cache mishandles newlines in values,
6400
# but we know of no workaround that is simple, portable, and efficient.
6401
# So, don't put newlines in cache variables' values.
6402
# Ultrix sh set writes to stderr and can't be redirected directly,
6403
# and sets the high bit in the cache file unless we assign to the vars.
6404
{
6405
  (set) 2>&1 |
6406
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6407
    *ac_space=\ *)
6408
      # `set' does not quote correctly, so add quotes (double-quote
6409
      # substitution turns \\\\ into \\, and sed turns \\ into \).
6410
      sed -n \
6411
        "s/'/'\\\\''/g;
6412
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6413
      ;;
6414
    *)
6415
      # `set' quotes correctly as required by POSIX, so do not add quotes.
6416
      sed -n \
6417
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6418
      ;;
6419
    esac;
6420
} |
6421
  sed '
6422
     t clear
6423
     : clear
6424
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6425
     t end
6426
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6427
     : end' >>confcache
6428
if diff $cache_file confcache >/dev/null 2>&1; then :; else
6429
  if test -w $cache_file; then
6430
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6431
    cat confcache >$cache_file
6432
  else
6433
    echo "not updating unwritable cache $cache_file"
6434
  fi
6435
fi
6436
rm -f confcache
6437
 
6438
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6439
# Let make expand exec_prefix.
6440
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6441
 
6442
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6443
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6444
# trailing colons and then remove the whole line if VPATH becomes empty
6445
# (actually we leave an empty line to preserve line numbers).
6446
if test "x$srcdir" = x.; then
6447
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
6448
s/:*\$(srcdir):*/:/;
6449
s/:*\${srcdir}:*/:/;
6450
s/:*@srcdir@:*/:/;
6451
s/^\([^=]*=[     ]*\):*/\1/;
6452
s/:*$//;
6453
s/^[^=]*=[       ]*$//;
6454
}'
6455
fi
6456
 
6457
DEFS=-DHAVE_CONFIG_H
6458
 
6459
ac_libobjs=
6460
ac_ltlibobjs=
6461
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6462
  # 1. Remove the extension, and $U if already installed.
6463
  ac_i=`echo "$ac_i" |
6464
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6465
  # 2. Add them.
6466
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6467
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6468
done
6469
LIBOBJS=$ac_libobjs
6470
 
6471
LTLIBOBJS=$ac_ltlibobjs
6472
 
6473
 
6474
 
6475
: ${CONFIG_STATUS=./config.status}
6476
ac_clean_files_save=$ac_clean_files
6477
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6478
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6479
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6480
cat >$CONFIG_STATUS <<_ACEOF
6481
#! $SHELL
6482
# Generated by $as_me.
6483
# Run this file to recreate the current configuration.
6484
# Compiler output produced by configure, useful for debugging
6485
# configure, is in config.log if it exists.
6486
 
6487
debug=false
6488
ac_cs_recheck=false
6489
ac_cs_silent=false
6490
SHELL=\${CONFIG_SHELL-$SHELL}
6491
_ACEOF
6492
 
6493
cat >>$CONFIG_STATUS <<\_ACEOF
6494
## --------------------- ##
6495
## M4sh Initialization.  ##
6496
## --------------------- ##
6497
 
6498
# Be Bourne compatible
6499
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6500
  emulate sh
6501
  NULLCMD=:
6502
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6503
  # is contrary to our usage.  Disable this feature.
6504
  alias -g '${1+"$@"}'='"$@"'
6505
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6506
  set -o posix
6507
fi
6508
DUALCASE=1; export DUALCASE # for MKS sh
6509
 
6510
# Support unset when possible.
6511
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6512
  as_unset=unset
6513
else
6514
  as_unset=false
6515
fi
6516
 
6517
 
6518
# Work around bugs in pre-3.0 UWIN ksh.
6519
$as_unset ENV MAIL MAILPATH
6520
PS1='$ '
6521
PS2='> '
6522
PS4='+ '
6523
 
6524
# NLS nuisances.
6525
for as_var in \
6526
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6527
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6528
  LC_TELEPHONE LC_TIME
6529
do
6530
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6531
    eval $as_var=C; export $as_var
6532
  else
6533
    $as_unset $as_var
6534
  fi
6535
done
6536
 
6537
# Required to use basename.
6538
if expr a : '\(a\)' >/dev/null 2>&1; then
6539
  as_expr=expr
6540
else
6541
  as_expr=false
6542
fi
6543
 
6544
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6545
  as_basename=basename
6546
else
6547
  as_basename=false
6548
fi
6549
 
6550
 
6551
# Name of the executable.
6552
as_me=`$as_basename "$0" ||
6553
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6554
         X"$0" : 'X\(//\)$' \| \
6555
         X"$0" : 'X\(/\)$' \| \
6556
         .     : '\(.\)' 2>/dev/null ||
6557
echo X/"$0" |
6558
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6559
          /^X\/\(\/\/\)$/{ s//\1/; q; }
6560
          /^X\/\(\/\).*/{ s//\1/; q; }
6561
          s/.*/./; q'`
6562
 
6563
 
6564
# PATH needs CR, and LINENO needs CR and PATH.
6565
# Avoid depending upon Character Ranges.
6566
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6567
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6568
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6569
as_cr_digits='0123456789'
6570
as_cr_alnum=$as_cr_Letters$as_cr_digits
6571
 
6572
# The user is always right.
6573
if test "${PATH_SEPARATOR+set}" != set; then
6574
  echo "#! /bin/sh" >conf$$.sh
6575
  echo  "exit 0"   >>conf$$.sh
6576
  chmod +x conf$$.sh
6577
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6578
    PATH_SEPARATOR=';'
6579
  else
6580
    PATH_SEPARATOR=:
6581
  fi
6582
  rm -f conf$$.sh
6583
fi
6584
 
6585
 
6586
  as_lineno_1=$LINENO
6587
  as_lineno_2=$LINENO
6588
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6589
  test "x$as_lineno_1" != "x$as_lineno_2" &&
6590
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6591
  # Find who we are.  Look in the path if we contain no path at all
6592
  # relative or not.
6593
  case $0 in
6594
    *[\\/]* ) as_myself=$0 ;;
6595
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596
for as_dir in $PATH
6597
do
6598
  IFS=$as_save_IFS
6599
  test -z "$as_dir" && as_dir=.
6600
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6601
done
6602
 
6603
       ;;
6604
  esac
6605
  # We did not find ourselves, most probably we were run as `sh COMMAND'
6606
  # in which case we are not to be found in the path.
6607
  if test "x$as_myself" = x; then
6608
    as_myself=$0
6609
  fi
6610
  if test ! -f "$as_myself"; then
6611
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6612
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6613
   { (exit 1); exit 1; }; }
6614
  fi
6615
  case $CONFIG_SHELL in
6616
  '')
6617
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6619
do
6620
  IFS=$as_save_IFS
6621
  test -z "$as_dir" && as_dir=.
6622
  for as_base in sh bash ksh sh5; do
6623
         case $as_dir in
6624
         /*)
6625
           if ("$as_dir/$as_base" -c '
6626
  as_lineno_1=$LINENO
6627
  as_lineno_2=$LINENO
6628
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6629
  test "x$as_lineno_1" != "x$as_lineno_2" &&
6630
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6631
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6632
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6633
             CONFIG_SHELL=$as_dir/$as_base
6634
             export CONFIG_SHELL
6635
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6636
           fi;;
6637
         esac
6638
       done
6639
done
6640
;;
6641
  esac
6642
 
6643
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6644
  # uniformly replaced by the line number.  The first 'sed' inserts a
6645
  # line-number line before each line; the second 'sed' does the real
6646
  # work.  The second script uses 'N' to pair each line-number line
6647
  # with the numbered line, and appends trailing '-' during
6648
  # substitution so that $LINENO is not a special case at line end.
6649
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6650
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6651
  sed '=' <$as_myself |
6652
    sed '
6653
      N
6654
      s,$,-,
6655
      : loop
6656
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6657
      t loop
6658
      s,-$,,
6659
      s,^['$as_cr_digits']*\n,,
6660
    ' >$as_me.lineno &&
6661
  chmod +x $as_me.lineno ||
6662
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6663
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6664
   { (exit 1); exit 1; }; }
6665
 
6666
  # Don't try to exec as it changes $[0], causing all sort of problems
6667
  # (the dirname of $[0] is not the place where we might find the
6668
  # original and so on.  Autoconf is especially sensible to this).
6669
  . ./$as_me.lineno
6670
  # Exit status is that of the last command.
6671
  exit
6672
}
6673
 
6674
 
6675
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6676
  *c*,-n*) ECHO_N= ECHO_C='
6677
' ECHO_T='      ' ;;
6678
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6679
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6680
esac
6681
 
6682
if expr a : '\(a\)' >/dev/null 2>&1; then
6683
  as_expr=expr
6684
else
6685
  as_expr=false
6686
fi
6687
 
6688
rm -f conf$$ conf$$.exe conf$$.file
6689
echo >conf$$.file
6690
if ln -s conf$$.file conf$$ 2>/dev/null; then
6691
  # We could just check for DJGPP; but this test a) works b) is more generic
6692
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6693
  if test -f conf$$.exe; then
6694
    # Don't use ln at all; we don't have any links
6695
    as_ln_s='cp -p'
6696
  else
6697
    as_ln_s='ln -s'
6698
  fi
6699
elif ln conf$$.file conf$$ 2>/dev/null; then
6700
  as_ln_s=ln
6701
else
6702
  as_ln_s='cp -p'
6703
fi
6704
rm -f conf$$ conf$$.exe conf$$.file
6705
 
6706
if mkdir -p . 2>/dev/null; then
6707
  as_mkdir_p=:
6708
else
6709
  test -d ./-p && rmdir ./-p
6710
  as_mkdir_p=false
6711
fi
6712
 
6713
as_executable_p="test -f"
6714
 
6715
# Sed expression to map a string onto a valid CPP name.
6716
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6717
 
6718
# Sed expression to map a string onto a valid variable name.
6719
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6720
 
6721
 
6722
# IFS
6723
# We need space, tab and new line, in precisely that order.
6724
as_nl='
6725
'
6726
IFS="   $as_nl"
6727
 
6728
# CDPATH.
6729
$as_unset CDPATH
6730
 
6731
exec 6>&1
6732
 
6733
# Open the log real soon, to keep \$[0] and so on meaningful, and to
6734
# report actual input values of CONFIG_FILES etc. instead of their
6735
# values after options handling.  Logging --version etc. is OK.
6736
exec 5>>config.log
6737
{
6738
  echo
6739
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6740
## Running $as_me. ##
6741
_ASBOX
6742
} >&5
6743
cat >&5 <<_CSEOF
6744
 
6745
This file was extended by $as_me, which was
6746
generated by GNU Autoconf 2.59.  Invocation command line was
6747
 
6748
  CONFIG_FILES    = $CONFIG_FILES
6749
  CONFIG_HEADERS  = $CONFIG_HEADERS
6750
  CONFIG_LINKS    = $CONFIG_LINKS
6751
  CONFIG_COMMANDS = $CONFIG_COMMANDS
6752
  $ $0 $@
6753
 
6754
_CSEOF
6755
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6756
echo >&5
6757
_ACEOF
6758
 
6759
# Files that config.status was made for.
6760
if test -n "$ac_config_files"; then
6761
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6762
fi
6763
 
6764
if test -n "$ac_config_headers"; then
6765
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6766
fi
6767
 
6768
if test -n "$ac_config_links"; then
6769
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6770
fi
6771
 
6772
if test -n "$ac_config_commands"; then
6773
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6774
fi
6775
 
6776
cat >>$CONFIG_STATUS <<\_ACEOF
6777
 
6778
ac_cs_usage="\
6779
\`$as_me' instantiates files from templates according to the
6780
current configuration.
6781
 
6782
Usage: $0 [OPTIONS] [FILE]...
6783
 
6784
  -h, --help       print this help, then exit
6785
  -V, --version    print version number, then exit
6786
  -q, --quiet      do not print progress messages
6787
  -d, --debug      don't remove temporary files
6788
      --recheck    update $as_me by reconfiguring in the same conditions
6789
  --file=FILE[:TEMPLATE]
6790
                   instantiate the configuration file FILE
6791
  --header=FILE[:TEMPLATE]
6792
                   instantiate the configuration header FILE
6793
 
6794
Configuration files:
6795
$config_files
6796
 
6797
Configuration headers:
6798
$config_headers
6799
 
6800
Configuration commands:
6801
$config_commands
6802
 
6803
Report bugs to ."
6804
_ACEOF
6805
 
6806
cat >>$CONFIG_STATUS <<_ACEOF
6807
ac_cs_version="\\
6808
config.status
6809
configured by $0, generated by GNU Autoconf 2.59,
6810
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6811
 
6812
Copyright (C) 2003 Free Software Foundation, Inc.
6813
This config.status script is free software; the Free Software Foundation
6814
gives unlimited permission to copy, distribute and modify it."
6815
srcdir=$srcdir
6816
INSTALL="$INSTALL"
6817
_ACEOF
6818
 
6819
cat >>$CONFIG_STATUS <<\_ACEOF
6820
# If no file are specified by the user, then we need to provide default
6821
# value.  By we need to know if files were specified by the user.
6822
ac_need_defaults=:
6823
while test $# != 0
6824
do
6825
  case $1 in
6826
  --*=*)
6827
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6828
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6829
    ac_shift=:
6830
    ;;
6831
  -*)
6832
    ac_option=$1
6833
    ac_optarg=$2
6834
    ac_shift=shift
6835
    ;;
6836
  *) # This is not an option, so the user has probably given explicit
6837
     # arguments.
6838
     ac_option=$1
6839
     ac_need_defaults=false;;
6840
  esac
6841
 
6842
  case $ac_option in
6843
  # Handling of the options.
6844
_ACEOF
6845
cat >>$CONFIG_STATUS <<\_ACEOF
6846
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6847
    ac_cs_recheck=: ;;
6848
  --version | --vers* | -V )
6849
    echo "$ac_cs_version"; exit 0 ;;
6850
  --he | --h)
6851
    # Conflict between --help and --header
6852
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
6853
Try \`$0 --help' for more information." >&5
6854
echo "$as_me: error: ambiguous option: $1
6855
Try \`$0 --help' for more information." >&2;}
6856
   { (exit 1); exit 1; }; };;
6857
  --help | --hel | -h )
6858
    echo "$ac_cs_usage"; exit 0 ;;
6859
  --debug | --d* | -d )
6860
    debug=: ;;
6861
  --file | --fil | --fi | --f )
6862
    $ac_shift
6863
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6864
    ac_need_defaults=false;;
6865
  --header | --heade | --head | --hea )
6866
    $ac_shift
6867
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6868
    ac_need_defaults=false;;
6869
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6870
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6871
    ac_cs_silent=: ;;
6872
 
6873
  # This is an error.
6874
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6875
Try \`$0 --help' for more information." >&5
6876
echo "$as_me: error: unrecognized option: $1
6877
Try \`$0 --help' for more information." >&2;}
6878
   { (exit 1); exit 1; }; } ;;
6879
 
6880
  *) ac_config_targets="$ac_config_targets $1" ;;
6881
 
6882
  esac
6883
  shift
6884
done
6885
 
6886
ac_configure_extra_args=
6887
 
6888
if $ac_cs_silent; then
6889
  exec 6>/dev/null
6890
  ac_configure_extra_args="$ac_configure_extra_args --silent"
6891
fi
6892
 
6893
_ACEOF
6894
cat >>$CONFIG_STATUS <<_ACEOF
6895
if \$ac_cs_recheck; then
6896
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6897
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6898
fi
6899
 
6900
_ACEOF
6901
 
6902
 
6903
 
6904
 
6905
 
6906
cat >>$CONFIG_STATUS <<\_ACEOF
6907
for ac_config_target in $ac_config_targets
6908
do
6909
  case "$ac_config_target" in
6910
  # Handling of arguments.
6911
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6912
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6913
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6914
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6915
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6916
   { (exit 1); exit 1; }; };;
6917
  esac
6918
done
6919
 
6920
# If the user did not use the arguments to specify the items to instantiate,
6921
# then the envvar interface is used.  Set only those that are not.
6922
# We use the long form for the default assignment because of an extremely
6923
# bizarre bug on SunOS 4.1.3.
6924
if $ac_need_defaults; then
6925
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6926
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6927
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6928
fi
6929
 
6930
# Have a temporary directory for convenience.  Make it in the build tree
6931
# simply because there is no reason to put it here, and in addition,
6932
# creating and moving files from /tmp can sometimes cause problems.
6933
# Create a temporary directory, and hook for its removal unless debugging.
6934
$debug ||
6935
{
6936
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6937
  trap '{ (exit 1); exit 1; }' 1 2 13 15
6938
}
6939
 
6940
# Create a (secure) tmp directory for tmp files.
6941
 
6942
{
6943
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6944
  test -n "$tmp" && test -d "$tmp"
6945
}  ||
6946
{
6947
  tmp=./confstat$$-$RANDOM
6948
  (umask 077 && mkdir $tmp)
6949
} ||
6950
{
6951
   echo "$me: cannot create a temporary directory in ." >&2
6952
   { (exit 1); exit 1; }
6953
}
6954
 
6955
_ACEOF
6956
 
6957
cat >>$CONFIG_STATUS <<_ACEOF
6958
 
6959
#
6960
# CONFIG_FILES section.
6961
#
6962
 
6963
# No need to generate the scripts if there are no CONFIG_FILES.
6964
# This happens for instance when ./config.status config.h
6965
if test -n "\$CONFIG_FILES"; then
6966
  # Protect against being on the right side of a sed subst in config.status.
6967
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6968
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6969
s,@sim_environment@,$sim_environment,;t t
6970
s,@sim_alignment@,$sim_alignment,;t t
6971
s,@sim_assert@,$sim_assert,;t t
6972
s,@sim_bitsize@,$sim_bitsize,;t t
6973
s,@sim_endian@,$sim_endian,;t t
6974
s,@sim_hostendian@,$sim_hostendian,;t t
6975
s,@sim_float@,$sim_float,;t t
6976
s,@sim_scache@,$sim_scache,;t t
6977
s,@sim_default_model@,$sim_default_model,;t t
6978
s,@sim_hw_cflags@,$sim_hw_cflags,;t t
6979
s,@sim_hw_objs@,$sim_hw_objs,;t t
6980
s,@sim_hw@,$sim_hw,;t t
6981
s,@sim_inline@,$sim_inline,;t t
6982
s,@sim_packages@,$sim_packages,;t t
6983
s,@sim_regparm@,$sim_regparm,;t t
6984
s,@sim_reserved_bits@,$sim_reserved_bits,;t t
6985
s,@sim_smp@,$sim_smp,;t t
6986
s,@sim_stdcall@,$sim_stdcall,;t t
6987
s,@sim_xor_endian@,$sim_xor_endian,;t t
6988
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6989
s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
6990
s,@SHELL@,$SHELL,;t t
6991
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6992
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6993
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6994
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6995
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6996
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6997
s,@exec_prefix@,$exec_prefix,;t t
6998
s,@prefix@,$prefix,;t t
6999
s,@program_transform_name@,$program_transform_name,;t t
7000
s,@bindir@,$bindir,;t t
7001
s,@sbindir@,$sbindir,;t t
7002
s,@libexecdir@,$libexecdir,;t t
7003
s,@datadir@,$datadir,;t t
7004
s,@sysconfdir@,$sysconfdir,;t t
7005
s,@sharedstatedir@,$sharedstatedir,;t t
7006
s,@localstatedir@,$localstatedir,;t t
7007
s,@libdir@,$libdir,;t t
7008
s,@includedir@,$includedir,;t t
7009
s,@oldincludedir@,$oldincludedir,;t t
7010
s,@infodir@,$infodir,;t t
7011
s,@mandir@,$mandir,;t t
7012
s,@build_alias@,$build_alias,;t t
7013
s,@host_alias@,$host_alias,;t t
7014
s,@target_alias@,$target_alias,;t t
7015
s,@DEFS@,$DEFS,;t t
7016
s,@ECHO_C@,$ECHO_C,;t t
7017
s,@ECHO_N@,$ECHO_N,;t t
7018
s,@ECHO_T@,$ECHO_T,;t t
7019
s,@LIBS@,$LIBS,;t t
7020
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7021
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7022
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7023
s,@CC@,$CC,;t t
7024
s,@CFLAGS@,$CFLAGS,;t t
7025
s,@LDFLAGS@,$LDFLAGS,;t t
7026
s,@CPPFLAGS@,$CPPFLAGS,;t t
7027
s,@ac_ct_CC@,$ac_ct_CC,;t t
7028
s,@EXEEXT@,$EXEEXT,;t t
7029
s,@OBJEXT@,$OBJEXT,;t t
7030
s,@USE_NLS@,$USE_NLS,;t t
7031
s,@LIBINTL@,$LIBINTL,;t t
7032
s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7033
s,@INCINTL@,$INCINTL,;t t
7034
s,@XGETTEXT@,$XGETTEXT,;t t
7035
s,@GMSGFMT@,$GMSGFMT,;t t
7036
s,@POSUB@,$POSUB,;t t
7037
s,@CATALOGS@,$CATALOGS,;t t
7038
s,@DATADIRNAME@,$DATADIRNAME,;t t
7039
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7040
s,@GENCAT@,$GENCAT,;t t
7041
s,@CATOBJEXT@,$CATOBJEXT,;t t
7042
s,@build@,$build,;t t
7043
s,@build_cpu@,$build_cpu,;t t
7044
s,@build_vendor@,$build_vendor,;t t
7045
s,@build_os@,$build_os,;t t
7046
s,@host@,$host,;t t
7047
s,@host_cpu@,$host_cpu,;t t
7048
s,@host_vendor@,$host_vendor,;t t
7049
s,@host_os@,$host_os,;t t
7050
s,@target@,$target,;t t
7051
s,@target_cpu@,$target_cpu,;t t
7052
s,@target_vendor@,$target_vendor,;t t
7053
s,@target_os@,$target_os,;t t
7054
s,@CPP@,$CPP,;t t
7055
s,@EGREP@,$EGREP,;t t
7056
s,@LIBOBJS@,$LIBOBJS,;t t
7057
s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7058
s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
7059
s,@HDEFINES@,$HDEFINES,;t t
7060
s,@AR@,$AR,;t t
7061
s,@RANLIB@,$RANLIB,;t t
7062
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7063
s,@sim_cflags@,$sim_cflags,;t t
7064
s,@sim_warnings@,$sim_warnings,;t t
7065
s,@sim_line_nr@,$sim_line_nr,;t t
7066
s,@sim_config@,$sim_config,;t t
7067
s,@sim_opcode@,$sim_opcode,;t t
7068
s,@sim_switch@,$sim_switch,;t t
7069
s,@sim_dup@,$sim_dup,;t t
7070
s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
7071
s,@sim_jump@,$sim_jump,;t t
7072
s,@sim_filter@,$sim_filter,;t t
7073
s,@sim_icache@,$sim_icache,;t t
7074
s,@sim_hw_src@,$sim_hw_src,;t t
7075
s,@sim_hw_obj@,$sim_hw_obj,;t t
7076
s,@sim_pk_src@,$sim_pk_src,;t t
7077
s,@sim_pk_obj@,$sim_pk_obj,;t t
7078
s,@sim_bswap@,$sim_bswap,;t t
7079
s,@sim_igen_smp@,$sim_igen_smp,;t t
7080
s,@sim_hostbitsize@,$sim_hostbitsize,;t t
7081
s,@sim_env@,$sim_env,;t t
7082
s,@sim_timebase@,$sim_timebase,;t t
7083
s,@sim_trace@,$sim_trace,;t t
7084
s,@sim_reserved@,$sim_reserved,;t t
7085
s,@sim_monitor@,$sim_monitor,;t t
7086
s,@sim_model@,$sim_model,;t t
7087
s,@sim_model_issue@,$sim_model_issue,;t t
7088
s,@sim_stdio@,$sim_stdio,;t t
7089
s,@sim_termio@,$sim_termio,;t t
7090
s,@sim_devzero@,$sim_devzero,;t t
7091
s,@sim_callback@,$sim_callback,;t t
7092
s,@sim_targ_vals@,$sim_targ_vals,;t t
7093
s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
7094
s,@sim_fpu@,$sim_fpu,;t t
7095
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7096
CEOF
7097
 
7098
_ACEOF
7099
 
7100
  cat >>$CONFIG_STATUS <<\_ACEOF
7101
  # Split the substitutions into bite-sized pieces for seds with
7102
  # small command number limits, like on Digital OSF/1 and HP-UX.
7103
  ac_max_sed_lines=48
7104
  ac_sed_frag=1 # Number of current file.
7105
  ac_beg=1 # First line for current file.
7106
  ac_end=$ac_max_sed_lines # Line after last line for current file.
7107
  ac_more_lines=:
7108
  ac_sed_cmds=
7109
  while $ac_more_lines; do
7110
    if test $ac_beg -gt 1; then
7111
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7112
    else
7113
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7114
    fi
7115
    if test ! -s $tmp/subs.frag; then
7116
      ac_more_lines=false
7117
    else
7118
      # The purpose of the label and of the branching condition is to
7119
      # speed up the sed processing (if there are no `@' at all, there
7120
      # is no need to browse any of the substitutions).
7121
      # These are the two extra sed commands mentioned above.
7122
      (echo ':t
7123
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7124
      if test -z "$ac_sed_cmds"; then
7125
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7126
      else
7127
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7128
      fi
7129
      ac_sed_frag=`expr $ac_sed_frag + 1`
7130
      ac_beg=$ac_end
7131
      ac_end=`expr $ac_end + $ac_max_sed_lines`
7132
    fi
7133
  done
7134
  if test -z "$ac_sed_cmds"; then
7135
    ac_sed_cmds=cat
7136
  fi
7137
fi # test -n "$CONFIG_FILES"
7138
 
7139
_ACEOF
7140
cat >>$CONFIG_STATUS <<\_ACEOF
7141
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7142
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7143
  case $ac_file in
7144
  - | *:- | *:-:* ) # input from stdin
7145
        cat >$tmp/stdin
7146
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7147
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7148
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7149
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7150
  * )   ac_file_in=$ac_file.in ;;
7151
  esac
7152
 
7153
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7154
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7155
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7156
         X"$ac_file" : 'X\(//\)[^/]' \| \
7157
         X"$ac_file" : 'X\(//\)$' \| \
7158
         X"$ac_file" : 'X\(/\)' \| \
7159
         .     : '\(.\)' 2>/dev/null ||
7160
echo X"$ac_file" |
7161
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7162
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7163
          /^X\(\/\/\)$/{ s//\1/; q; }
7164
          /^X\(\/\).*/{ s//\1/; q; }
7165
          s/.*/./; q'`
7166
  { if $as_mkdir_p; then
7167
    mkdir -p "$ac_dir"
7168
  else
7169
    as_dir="$ac_dir"
7170
    as_dirs=
7171
    while test ! -d "$as_dir"; do
7172
      as_dirs="$as_dir $as_dirs"
7173
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7174
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7175
         X"$as_dir" : 'X\(//\)[^/]' \| \
7176
         X"$as_dir" : 'X\(//\)$' \| \
7177
         X"$as_dir" : 'X\(/\)' \| \
7178
         .     : '\(.\)' 2>/dev/null ||
7179
echo X"$as_dir" |
7180
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7181
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7182
          /^X\(\/\/\)$/{ s//\1/; q; }
7183
          /^X\(\/\).*/{ s//\1/; q; }
7184
          s/.*/./; q'`
7185
    done
7186
    test ! -n "$as_dirs" || mkdir $as_dirs
7187
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7188
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7189
   { (exit 1); exit 1; }; }; }
7190
 
7191
  ac_builddir=.
7192
 
7193
if test "$ac_dir" != .; then
7194
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7195
  # A "../" for each directory in $ac_dir_suffix.
7196
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7197
else
7198
  ac_dir_suffix= ac_top_builddir=
7199
fi
7200
 
7201
case $srcdir in
7202
  .)  # No --srcdir option.  We are building in place.
7203
    ac_srcdir=.
7204
    if test -z "$ac_top_builddir"; then
7205
       ac_top_srcdir=.
7206
    else
7207
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7208
    fi ;;
7209
  [\\/]* | ?:[\\/]* )  # Absolute path.
7210
    ac_srcdir=$srcdir$ac_dir_suffix;
7211
    ac_top_srcdir=$srcdir ;;
7212
  *) # Relative path.
7213
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7214
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7215
esac
7216
 
7217
# Do not use `cd foo && pwd` to compute absolute paths, because
7218
# the directories may not exist.
7219
case `pwd` in
7220
.) ac_abs_builddir="$ac_dir";;
7221
*)
7222
  case "$ac_dir" in
7223
  .) ac_abs_builddir=`pwd`;;
7224
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7225
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7226
  esac;;
7227
esac
7228
case $ac_abs_builddir in
7229
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7230
*)
7231
  case ${ac_top_builddir}. in
7232
  .) ac_abs_top_builddir=$ac_abs_builddir;;
7233
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7234
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7235
  esac;;
7236
esac
7237
case $ac_abs_builddir in
7238
.) ac_abs_srcdir=$ac_srcdir;;
7239
*)
7240
  case $ac_srcdir in
7241
  .) ac_abs_srcdir=$ac_abs_builddir;;
7242
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7243
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7244
  esac;;
7245
esac
7246
case $ac_abs_builddir in
7247
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7248
*)
7249
  case $ac_top_srcdir in
7250
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7251
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7252
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7253
  esac;;
7254
esac
7255
 
7256
 
7257
  case $INSTALL in
7258
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7259
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7260
  esac
7261
 
7262
  if test x"$ac_file" != x-; then
7263
    { echo "$as_me:$LINENO: creating $ac_file" >&5
7264
echo "$as_me: creating $ac_file" >&6;}
7265
    rm -f "$ac_file"
7266
  fi
7267
  # Let's still pretend it is `configure' which instantiates (i.e., don't
7268
  # use $as_me), people would be surprised to read:
7269
  #    /* config.h.  Generated by config.status.  */
7270
  if test x"$ac_file" = x-; then
7271
    configure_input=
7272
  else
7273
    configure_input="$ac_file.  "
7274
  fi
7275
  configure_input=$configure_input"Generated from `echo $ac_file_in |
7276
                                     sed 's,.*/,,'` by configure."
7277
 
7278
  # First look for the input files in the build tree, otherwise in the
7279
  # src tree.
7280
  ac_file_inputs=`IFS=:
7281
    for f in $ac_file_in; do
7282
      case $f in
7283
      -) echo $tmp/stdin ;;
7284
      [\\/$]*)
7285
         # Absolute (can't be DOS-style, as IFS=:)
7286
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7287
echo "$as_me: error: cannot find input file: $f" >&2;}
7288
   { (exit 1); exit 1; }; }
7289
         echo "$f";;
7290
      *) # Relative
7291
         if test -f "$f"; then
7292
           # Build tree
7293
           echo "$f"
7294
         elif test -f "$srcdir/$f"; then
7295
           # Source tree
7296
           echo "$srcdir/$f"
7297
         else
7298
           # /dev/null tree
7299
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7300
echo "$as_me: error: cannot find input file: $f" >&2;}
7301
   { (exit 1); exit 1; }; }
7302
         fi;;
7303
      esac
7304
    done` || { (exit 1); exit 1; }
7305
_ACEOF
7306
cat >>$CONFIG_STATUS <<_ACEOF
7307
  sed "$ac_vpsub
7308
$extrasub
7309
_ACEOF
7310
cat >>$CONFIG_STATUS <<\_ACEOF
7311
:t
7312
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7313
s,@configure_input@,$configure_input,;t t
7314
s,@srcdir@,$ac_srcdir,;t t
7315
s,@abs_srcdir@,$ac_abs_srcdir,;t t
7316
s,@top_srcdir@,$ac_top_srcdir,;t t
7317
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7318
s,@builddir@,$ac_builddir,;t t
7319
s,@abs_builddir@,$ac_abs_builddir,;t t
7320
s,@top_builddir@,$ac_top_builddir,;t t
7321
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7322
s,@INSTALL@,$ac_INSTALL,;t t
7323
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7324
  rm -f $tmp/stdin
7325
  if test x"$ac_file" != x-; then
7326
    mv $tmp/out $ac_file
7327
  else
7328
    cat $tmp/out
7329
    rm -f $tmp/out
7330
  fi
7331
 
7332
done
7333
_ACEOF
7334
cat >>$CONFIG_STATUS <<\_ACEOF
7335
 
7336
#
7337
# CONFIG_HEADER section.
7338
#
7339
 
7340
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7341
# NAME is the cpp macro being defined and VALUE is the value it is being given.
7342
#
7343
# ac_d sets the value in "#define NAME VALUE" lines.
7344
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7345
ac_dB='[         ].*$,\1#\2'
7346
ac_dC=' '
7347
ac_dD=',;t'
7348
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7349
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7350
ac_uB='$,\1#\2define\3'
7351
ac_uC=' '
7352
ac_uD=',;t'
7353
 
7354
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7355
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7356
  case $ac_file in
7357
  - | *:- | *:-:* ) # input from stdin
7358
        cat >$tmp/stdin
7359
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7360
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7361
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7362
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7363
  * )   ac_file_in=$ac_file.in ;;
7364
  esac
7365
 
7366
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7367
echo "$as_me: creating $ac_file" >&6;}
7368
 
7369
  # First look for the input files in the build tree, otherwise in the
7370
  # src tree.
7371
  ac_file_inputs=`IFS=:
7372
    for f in $ac_file_in; do
7373
      case $f in
7374
      -) echo $tmp/stdin ;;
7375
      [\\/$]*)
7376
         # Absolute (can't be DOS-style, as IFS=:)
7377
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7378
echo "$as_me: error: cannot find input file: $f" >&2;}
7379
   { (exit 1); exit 1; }; }
7380
         # Do quote $f, to prevent DOS paths from being IFS'd.
7381
         echo "$f";;
7382
      *) # Relative
7383
         if test -f "$f"; then
7384
           # Build tree
7385
           echo "$f"
7386
         elif test -f "$srcdir/$f"; then
7387
           # Source tree
7388
           echo "$srcdir/$f"
7389
         else
7390
           # /dev/null tree
7391
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7392
echo "$as_me: error: cannot find input file: $f" >&2;}
7393
   { (exit 1); exit 1; }; }
7394
         fi;;
7395
      esac
7396
    done` || { (exit 1); exit 1; }
7397
  # Remove the trailing spaces.
7398
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7399
 
7400
_ACEOF
7401
 
7402
# Transform confdefs.h into two sed scripts, `conftest.defines' and
7403
# `conftest.undefs', that substitutes the proper values into
7404
# config.h.in to produce config.h.  The first handles `#define'
7405
# templates, and the second `#undef' templates.
7406
# And first: Protect against being on the right side of a sed subst in
7407
# config.status.  Protect against being in an unquoted here document
7408
# in config.status.
7409
rm -f conftest.defines conftest.undefs
7410
# Using a here document instead of a string reduces the quoting nightmare.
7411
# Putting comments in sed scripts is not portable.
7412
#
7413
# `end' is used to avoid that the second main sed command (meant for
7414
# 0-ary CPP macros) applies to n-ary macro definitions.
7415
# See the Autoconf documentation for `clear'.
7416
cat >confdef2sed.sed <<\_ACEOF
7417
s/[\\&,]/\\&/g
7418
s,[\\$`],\\&,g
7419
t clear
7420
: clear
7421
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7422
t end
7423
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7424
: end
7425
_ACEOF
7426
# If some macros were called several times there might be several times
7427
# the same #defines, which is useless.  Nevertheless, we may not want to
7428
# sort them, since we want the *last* AC-DEFINE to be honored.
7429
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7430
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7431
rm -f confdef2sed.sed
7432
 
7433
# This sed command replaces #undef with comments.  This is necessary, for
7434
# example, in the case of _POSIX_SOURCE, which is predefined and required
7435
# on some systems where configure will not decide to define it.
7436
cat >>conftest.undefs <<\_ACEOF
7437
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7438
_ACEOF
7439
 
7440
# Break up conftest.defines because some shells have a limit on the size
7441
# of here documents, and old seds have small limits too (100 cmds).
7442
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7443
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7444
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7445
echo '  :' >>$CONFIG_STATUS
7446
rm -f conftest.tail
7447
while grep . conftest.defines >/dev/null
7448
do
7449
  # Write a limited-size here document to $tmp/defines.sed.
7450
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
7451
  # Speed up: don't consider the non `#define' lines.
7452
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
7453
  # Work around the forget-to-reset-the-flag bug.
7454
  echo 't clr' >>$CONFIG_STATUS
7455
  echo ': clr' >>$CONFIG_STATUS
7456
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7457
  echo 'CEOF
7458
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7459
  rm -f $tmp/in
7460
  mv $tmp/out $tmp/in
7461
' >>$CONFIG_STATUS
7462
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7463
  rm -f conftest.defines
7464
  mv conftest.tail conftest.defines
7465
done
7466
rm -f conftest.defines
7467
echo '  fi # grep' >>$CONFIG_STATUS
7468
echo >>$CONFIG_STATUS
7469
 
7470
# Break up conftest.undefs because some shells have a limit on the size
7471
# of here documents, and old seds have small limits too (100 cmds).
7472
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7473
rm -f conftest.tail
7474
while grep . conftest.undefs >/dev/null
7475
do
7476
  # Write a limited-size here document to $tmp/undefs.sed.
7477
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
7478
  # Speed up: don't consider the non `#undef'
7479
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7480
  # Work around the forget-to-reset-the-flag bug.
7481
  echo 't clr' >>$CONFIG_STATUS
7482
  echo ': clr' >>$CONFIG_STATUS
7483
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7484
  echo 'CEOF
7485
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7486
  rm -f $tmp/in
7487
  mv $tmp/out $tmp/in
7488
' >>$CONFIG_STATUS
7489
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7490
  rm -f conftest.undefs
7491
  mv conftest.tail conftest.undefs
7492
done
7493
rm -f conftest.undefs
7494
 
7495
cat >>$CONFIG_STATUS <<\_ACEOF
7496
  # Let's still pretend it is `configure' which instantiates (i.e., don't
7497
  # use $as_me), people would be surprised to read:
7498
  #    /* config.h.  Generated by config.status.  */
7499
  if test x"$ac_file" = x-; then
7500
    echo "/* Generated by configure.  */" >$tmp/config.h
7501
  else
7502
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7503
  fi
7504
  cat $tmp/in >>$tmp/config.h
7505
  rm -f $tmp/in
7506
  if test x"$ac_file" != x-; then
7507
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7508
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7509
echo "$as_me: $ac_file is unchanged" >&6;}
7510
    else
7511
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7512
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7513
         X"$ac_file" : 'X\(//\)[^/]' \| \
7514
         X"$ac_file" : 'X\(//\)$' \| \
7515
         X"$ac_file" : 'X\(/\)' \| \
7516
         .     : '\(.\)' 2>/dev/null ||
7517
echo X"$ac_file" |
7518
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7519
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7520
          /^X\(\/\/\)$/{ s//\1/; q; }
7521
          /^X\(\/\).*/{ s//\1/; q; }
7522
          s/.*/./; q'`
7523
      { if $as_mkdir_p; then
7524
    mkdir -p "$ac_dir"
7525
  else
7526
    as_dir="$ac_dir"
7527
    as_dirs=
7528
    while test ! -d "$as_dir"; do
7529
      as_dirs="$as_dir $as_dirs"
7530
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7531
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7532
         X"$as_dir" : 'X\(//\)[^/]' \| \
7533
         X"$as_dir" : 'X\(//\)$' \| \
7534
         X"$as_dir" : 'X\(/\)' \| \
7535
         .     : '\(.\)' 2>/dev/null ||
7536
echo X"$as_dir" |
7537
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7538
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7539
          /^X\(\/\/\)$/{ s//\1/; q; }
7540
          /^X\(\/\).*/{ s//\1/; q; }
7541
          s/.*/./; q'`
7542
    done
7543
    test ! -n "$as_dirs" || mkdir $as_dirs
7544
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7545
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7546
   { (exit 1); exit 1; }; }; }
7547
 
7548
      rm -f $ac_file
7549
      mv $tmp/config.h $ac_file
7550
    fi
7551
  else
7552
    cat $tmp/config.h
7553
    rm -f $tmp/config.h
7554
  fi
7555
done
7556
_ACEOF
7557
cat >>$CONFIG_STATUS <<\_ACEOF
7558
 
7559
#
7560
# CONFIG_COMMANDS section.
7561
#
7562
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7563
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7564
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7565
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7566
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7567
         X"$ac_dest" : 'X\(//\)[^/]' \| \
7568
         X"$ac_dest" : 'X\(//\)$' \| \
7569
         X"$ac_dest" : 'X\(/\)' \| \
7570
         .     : '\(.\)' 2>/dev/null ||
7571
echo X"$ac_dest" |
7572
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7573
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7574
          /^X\(\/\/\)$/{ s//\1/; q; }
7575
          /^X\(\/\).*/{ s//\1/; q; }
7576
          s/.*/./; q'`
7577
  { if $as_mkdir_p; then
7578
    mkdir -p "$ac_dir"
7579
  else
7580
    as_dir="$ac_dir"
7581
    as_dirs=
7582
    while test ! -d "$as_dir"; do
7583
      as_dirs="$as_dir $as_dirs"
7584
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7585
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7586
         X"$as_dir" : 'X\(//\)[^/]' \| \
7587
         X"$as_dir" : 'X\(//\)$' \| \
7588
         X"$as_dir" : 'X\(/\)' \| \
7589
         .     : '\(.\)' 2>/dev/null ||
7590
echo X"$as_dir" |
7591
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7592
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7593
          /^X\(\/\/\)$/{ s//\1/; q; }
7594
          /^X\(\/\).*/{ s//\1/; q; }
7595
          s/.*/./; q'`
7596
    done
7597
    test ! -n "$as_dirs" || mkdir $as_dirs
7598
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7599
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7600
   { (exit 1); exit 1; }; }; }
7601
 
7602
  ac_builddir=.
7603
 
7604
if test "$ac_dir" != .; then
7605
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7606
  # A "../" for each directory in $ac_dir_suffix.
7607
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7608
else
7609
  ac_dir_suffix= ac_top_builddir=
7610
fi
7611
 
7612
case $srcdir in
7613
  .)  # No --srcdir option.  We are building in place.
7614
    ac_srcdir=.
7615
    if test -z "$ac_top_builddir"; then
7616
       ac_top_srcdir=.
7617
    else
7618
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7619
    fi ;;
7620
  [\\/]* | ?:[\\/]* )  # Absolute path.
7621
    ac_srcdir=$srcdir$ac_dir_suffix;
7622
    ac_top_srcdir=$srcdir ;;
7623
  *) # Relative path.
7624
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7625
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7626
esac
7627
 
7628
# Do not use `cd foo && pwd` to compute absolute paths, because
7629
# the directories may not exist.
7630
case `pwd` in
7631
.) ac_abs_builddir="$ac_dir";;
7632
*)
7633
  case "$ac_dir" in
7634
  .) ac_abs_builddir=`pwd`;;
7635
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7636
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7637
  esac;;
7638
esac
7639
case $ac_abs_builddir in
7640
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7641
*)
7642
  case ${ac_top_builddir}. in
7643
  .) ac_abs_top_builddir=$ac_abs_builddir;;
7644
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7645
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7646
  esac;;
7647
esac
7648
case $ac_abs_builddir in
7649
.) ac_abs_srcdir=$ac_srcdir;;
7650
*)
7651
  case $ac_srcdir in
7652
  .) ac_abs_srcdir=$ac_abs_builddir;;
7653
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7654
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7655
  esac;;
7656
esac
7657
case $ac_abs_builddir in
7658
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7659
*)
7660
  case $ac_top_srcdir in
7661
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7662
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7663
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7664
  esac;;
7665
esac
7666
 
7667
 
7668
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7669
echo "$as_me: executing $ac_dest commands" >&6;}
7670
  case $ac_dest in
7671
    default ) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
7672
  esac
7673
done
7674
_ACEOF
7675
 
7676
cat >>$CONFIG_STATUS <<\_ACEOF
7677
 
7678
{ (exit 0); exit 0; }
7679
_ACEOF
7680
chmod +x $CONFIG_STATUS
7681
ac_clean_files=$ac_clean_files_save
7682
 
7683
 
7684
# configure is writing to config.log, and then calls config.status.
7685
# config.status does its own redirection, appending to config.log.
7686
# Unfortunately, on DOS this fails, as config.log is still kept open
7687
# by configure, so config.status won't be able to write to it; its
7688
# output is simply discarded.  So we exec the FD to /dev/null,
7689
# effectively closing config.log, so it can be properly (re)opened and
7690
# appended to by config.status.  When coming back to configure, we
7691
# need to make the FD available again.
7692
if test "$no_create" != yes; then
7693
  ac_cs_success=:
7694
  ac_config_status_args=
7695
  test "$silent" = yes &&
7696
    ac_config_status_args="$ac_config_status_args --quiet"
7697
  exec 5>/dev/null
7698
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7699
  exec 5>>config.log
7700
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7701
  # would make configure fail if this is the last instruction.
7702
  $ac_cs_success || { (exit 1); exit 1; }
7703
fi
7704
 

powered by: WebSVN 2.1.0

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