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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [arm/] [configure] - Blame information for rev 297

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='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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile COPRO cgen_breaks LIBOBJS 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-maintainer-mode              Enable developer functionality.
854
  --enable-sim-bswap                    Use Host specific BSWAP instruction.
855
  --enable-sim-cflags=opts              Extra CFLAGS for use in building simulator
856
  --enable-sim-debug=opts               Enable debugging flags
857
  --enable-sim-stdio                    Specify whether to use stdio for console input/output.
858
  --enable-sim-trace=opts               Enable tracing flags
859
  --enable-sim-profile=opts             Enable profiling flags
860
 
861
Some influential environment variables:
862
  CC          C compiler command
863
  CFLAGS      C compiler flags
864
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
865
              nonstandard directory 
866
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
867
              headers in a nonstandard directory 
868
  CPP         C preprocessor
869
 
870
Use these variables to override the choices made by `configure' or to help
871
it to find libraries and programs with nonstandard names/locations.
872
 
873
_ACEOF
874
fi
875
 
876
if test "$ac_init_help" = "recursive"; then
877
  # If there are subdirs, report their specific --help.
878
  ac_popdir=`pwd`
879
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880
    test -d $ac_dir || continue
881
    ac_builddir=.
882
 
883
if test "$ac_dir" != .; then
884
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885
  # A "../" for each directory in $ac_dir_suffix.
886
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887
else
888
  ac_dir_suffix= ac_top_builddir=
889
fi
890
 
891
case $srcdir in
892
  .)  # No --srcdir option.  We are building in place.
893
    ac_srcdir=.
894
    if test -z "$ac_top_builddir"; then
895
       ac_top_srcdir=.
896
    else
897
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898
    fi ;;
899
  [\\/]* | ?:[\\/]* )  # Absolute path.
900
    ac_srcdir=$srcdir$ac_dir_suffix;
901
    ac_top_srcdir=$srcdir ;;
902
  *) # Relative path.
903
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
905
esac
906
 
907
# Do not use `cd foo && pwd` to compute absolute paths, because
908
# the directories may not exist.
909
case `pwd` in
910
.) ac_abs_builddir="$ac_dir";;
911
*)
912
  case "$ac_dir" in
913
  .) ac_abs_builddir=`pwd`;;
914
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
916
  esac;;
917
esac
918
case $ac_abs_builddir in
919
.) ac_abs_top_builddir=${ac_top_builddir}.;;
920
*)
921
  case ${ac_top_builddir}. in
922
  .) ac_abs_top_builddir=$ac_abs_builddir;;
923
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925
  esac;;
926
esac
927
case $ac_abs_builddir in
928
.) ac_abs_srcdir=$ac_srcdir;;
929
*)
930
  case $ac_srcdir in
931
  .) ac_abs_srcdir=$ac_abs_builddir;;
932
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934
  esac;;
935
esac
936
case $ac_abs_builddir in
937
.) ac_abs_top_srcdir=$ac_top_srcdir;;
938
*)
939
  case $ac_top_srcdir in
940
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
941
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943
  esac;;
944
esac
945
 
946
    cd $ac_dir
947
    # Check for guested configure; otherwise get Cygnus style configure.
948
    if test -f $ac_srcdir/configure.gnu; then
949
      echo
950
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
951
    elif test -f $ac_srcdir/configure; then
952
      echo
953
      $SHELL $ac_srcdir/configure  --help=recursive
954
    elif test -f $ac_srcdir/configure.ac ||
955
           test -f $ac_srcdir/configure.in; then
956
      echo
957
      $ac_configure --help
958
    else
959
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960
    fi
961
    cd $ac_popdir
962
  done
963
fi
964
 
965
test -n "$ac_init_help" && exit 0
966
if $ac_init_version; then
967
  cat <<\_ACEOF
968
 
969
Copyright (C) 2003 Free Software Foundation, Inc.
970
This configure script is free software; the Free Software Foundation
971
gives unlimited permission to copy, distribute and modify it.
972
_ACEOF
973
  exit 0
974
fi
975
exec 5>config.log
976
cat >&5 <<_ACEOF
977
This file contains any messages produced by compilers while
978
running configure, to aid debugging if configure makes a mistake.
979
 
980
It was created by $as_me, which was
981
generated by GNU Autoconf 2.59.  Invocation command line was
982
 
983
  $ $0 $@
984
 
985
_ACEOF
986
{
987
cat <<_ASUNAME
988
## --------- ##
989
## Platform. ##
990
## --------- ##
991
 
992
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993
uname -m = `(uname -m) 2>/dev/null || echo unknown`
994
uname -r = `(uname -r) 2>/dev/null || echo unknown`
995
uname -s = `(uname -s) 2>/dev/null || echo unknown`
996
uname -v = `(uname -v) 2>/dev/null || echo unknown`
997
 
998
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1000
 
1001
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1002
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1003
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1005
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1006
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1007
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1008
 
1009
_ASUNAME
1010
 
1011
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012
for as_dir in $PATH
1013
do
1014
  IFS=$as_save_IFS
1015
  test -z "$as_dir" && as_dir=.
1016
  echo "PATH: $as_dir"
1017
done
1018
 
1019
} >&5
1020
 
1021
cat >&5 <<_ACEOF
1022
 
1023
 
1024
## ----------- ##
1025
## Core tests. ##
1026
## ----------- ##
1027
 
1028
_ACEOF
1029
 
1030
 
1031
# Keep a trace of the command line.
1032
# Strip out --no-create and --no-recursion so they do not pile up.
1033
# Strip out --silent because we don't want to record it for future runs.
1034
# Also quote any args containing shell meta-characters.
1035
# Make two passes to allow for proper duplicate-argument suppression.
1036
ac_configure_args=
1037
ac_configure_args0=
1038
ac_configure_args1=
1039
ac_sep=
1040
ac_must_keep_next=false
1041
for ac_pass in 1 2
1042
do
1043
  for ac_arg
1044
  do
1045
    case $ac_arg in
1046
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048
    | -silent | --silent | --silen | --sile | --sil)
1049
      continue ;;
1050
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052
    esac
1053
    case $ac_pass in
1054
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055
    2)
1056
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057
      if test $ac_must_keep_next = true; then
1058
        ac_must_keep_next=false # Got value, back to normal.
1059
      else
1060
        case $ac_arg in
1061
          *=* | --config-cache | -C | -disable-* | --disable-* \
1062
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064
          | -with-* | --with-* | -without-* | --without-* | --x)
1065
            case "$ac_configure_args0 " in
1066
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067
            esac
1068
            ;;
1069
          -* ) ac_must_keep_next=true ;;
1070
        esac
1071
      fi
1072
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073
      # Get rid of the leading space.
1074
      ac_sep=" "
1075
      ;;
1076
    esac
1077
  done
1078
done
1079
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081
 
1082
# When interrupted or exit'd, cleanup temporary files, and complete
1083
# config.log.  We remove comments because anyway the quotes in there
1084
# would cause problems or look ugly.
1085
# WARNING: Be sure not to use single quotes in there, as some shells,
1086
# such as our DU 5.0 friend, will then `close' the trap.
1087
trap 'exit_status=$?
1088
  # Save into config.log some information that might help in debugging.
1089
  {
1090
    echo
1091
 
1092
    cat <<\_ASBOX
1093
## ---------------- ##
1094
## Cache variables. ##
1095
## ---------------- ##
1096
_ASBOX
1097
    echo
1098
    # The following way of writing the cache mishandles newlines in values,
1099
{
1100
  (set) 2>&1 |
1101
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102
    *ac_space=\ *)
1103
      sed -n \
1104
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106
      ;;
1107
    *)
1108
      sed -n \
1109
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1110
      ;;
1111
    esac;
1112
}
1113
    echo
1114
 
1115
    cat <<\_ASBOX
1116
## ----------------- ##
1117
## Output variables. ##
1118
## ----------------- ##
1119
_ASBOX
1120
    echo
1121
    for ac_var in $ac_subst_vars
1122
    do
1123
      eval ac_val=$`echo $ac_var`
1124
      echo "$ac_var='"'"'$ac_val'"'"'"
1125
    done | sort
1126
    echo
1127
 
1128
    if test -n "$ac_subst_files"; then
1129
      cat <<\_ASBOX
1130
## ------------- ##
1131
## Output files. ##
1132
## ------------- ##
1133
_ASBOX
1134
      echo
1135
      for ac_var in $ac_subst_files
1136
      do
1137
        eval ac_val=$`echo $ac_var`
1138
        echo "$ac_var='"'"'$ac_val'"'"'"
1139
      done | sort
1140
      echo
1141
    fi
1142
 
1143
    if test -s confdefs.h; then
1144
      cat <<\_ASBOX
1145
## ----------- ##
1146
## confdefs.h. ##
1147
## ----------- ##
1148
_ASBOX
1149
      echo
1150
      sed "/^$/d" confdefs.h | sort
1151
      echo
1152
    fi
1153
    test "$ac_signal" != 0 &&
1154
      echo "$as_me: caught signal $ac_signal"
1155
    echo "$as_me: exit $exit_status"
1156
  } >&5
1157
  rm -f core *.core &&
1158
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159
    exit $exit_status
1160
     ' 0
1161
for ac_signal in 1 2 13 15; do
1162
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163
done
1164
ac_signal=0
1165
 
1166
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1167
rm -rf conftest* confdefs.h
1168
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169
echo >confdefs.h
1170
 
1171
# Predefined preprocessor variables.
1172
 
1173
cat >>confdefs.h <<_ACEOF
1174
#define PACKAGE_NAME "$PACKAGE_NAME"
1175
_ACEOF
1176
 
1177
 
1178
cat >>confdefs.h <<_ACEOF
1179
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180
_ACEOF
1181
 
1182
 
1183
cat >>confdefs.h <<_ACEOF
1184
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1185
_ACEOF
1186
 
1187
 
1188
cat >>confdefs.h <<_ACEOF
1189
#define PACKAGE_STRING "$PACKAGE_STRING"
1190
_ACEOF
1191
 
1192
 
1193
cat >>confdefs.h <<_ACEOF
1194
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195
_ACEOF
1196
 
1197
 
1198
# Let the site file select an alternate cache file if it wants to.
1199
# Prefer explicitly selected file to automatically selected ones.
1200
if test -z "$CONFIG_SITE"; then
1201
  if test "x$prefix" != xNONE; then
1202
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203
  else
1204
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1205
  fi
1206
fi
1207
for ac_site_file in $CONFIG_SITE; do
1208
  if test -r "$ac_site_file"; then
1209
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210
echo "$as_me: loading site script $ac_site_file" >&6;}
1211
    sed 's/^/| /' "$ac_site_file" >&5
1212
    . "$ac_site_file"
1213
  fi
1214
done
1215
 
1216
if test -r "$cache_file"; then
1217
  # Some versions of bash will fail to source /dev/null (special
1218
  # files actually), so we avoid doing that.
1219
  if test -f "$cache_file"; then
1220
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221
echo "$as_me: loading cache $cache_file" >&6;}
1222
    case $cache_file in
1223
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1224
      *)                      . ./$cache_file;;
1225
    esac
1226
  fi
1227
else
1228
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229
echo "$as_me: creating cache $cache_file" >&6;}
1230
  >$cache_file
1231
fi
1232
 
1233
# Check that the precious variables saved in the cache have kept the same
1234
# value.
1235
ac_cache_corrupted=false
1236
for ac_var in `(set) 2>&1 |
1237
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239
  eval ac_new_set=\$ac_env_${ac_var}_set
1240
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241
  eval ac_new_val="\$ac_env_${ac_var}_value"
1242
  case $ac_old_set,$ac_new_set in
1243
    set,)
1244
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246
      ac_cache_corrupted=: ;;
1247
    ,set)
1248
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250
      ac_cache_corrupted=: ;;
1251
    ,);;
1252
    *)
1253
      if test "x$ac_old_val" != "x$ac_new_val"; then
1254
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1257
echo "$as_me:   former value:  $ac_old_val" >&2;}
1258
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1259
echo "$as_me:   current value: $ac_new_val" >&2;}
1260
        ac_cache_corrupted=:
1261
      fi;;
1262
  esac
1263
  # Pass precious variables to config.status.
1264
  if test "$ac_new_set" = set; then
1265
    case $ac_new_val in
1266
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268
    *) ac_arg=$ac_var=$ac_new_val ;;
1269
    esac
1270
    case " $ac_configure_args " in
1271
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1272
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273
    esac
1274
  fi
1275
done
1276
if $ac_cache_corrupted; then
1277
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281
   { (exit 1); exit 1; }; }
1282
fi
1283
 
1284
ac_ext=c
1285
ac_cpp='$CPP $CPPFLAGS'
1286
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289
 
1290
 
1291
 
1292
 
1293
 
1294
 
1295
 
1296
 
1297
 
1298
 
1299
 
1300
 
1301
 
1302
 
1303
 
1304
 
1305
 
1306
 
1307
 
1308
          ac_config_headers="$ac_config_headers config.h:config.in"
1309
 
1310
 
1311
# This file contains common code used by all simulators.
1312
#
1313
# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1314
# directory.  It is intended to be invoked before any target specific stuff.
1315
# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1316
# It is intended to be invoked last.
1317
#
1318
# The simulator's configure.in should look like:
1319
#
1320
# dnl Process this file with autoconf to produce a configure script.
1321
# sinclude(../common/aclocal.m4)
1322
# AC_PREREQ(2.5)dnl
1323
# AC_INIT(Makefile.in)
1324
#
1325
# SIM_AC_COMMON
1326
#
1327
# ... target specific stuff ...
1328
#
1329
# SIM_AC_OUTPUT
1330
 
1331
 
1332
 
1333
 
1334
 
1335
 
1336
 
1337
 
1338
 
1339
 
1340
 
1341
 
1342
 
1343
 
1344
 
1345
 
1346
 
1347
 
1348
 
1349
 
1350
 
1351
 
1352
 
1353
 
1354
 
1355
 
1356
 
1357
 
1358
 
1359
 
1360
 
1361
 
1362
 
1363
 
1364
 
1365
 
1366
 
1367
 
1368
 
1369
 
1370
 
1371
 
1372
 
1373
 
1374
 
1375
 
1376
 
1377
 
1378
sim_inline="-DDEFAULT_INLINE=0"
1379
 
1380
 
1381
 
1382
 
1383
 
1384
 
1385
 
1386
 
1387
 
1388
 
1389
 
1390
 
1391
 
1392
 
1393
 
1394
 
1395
 
1396
 
1397
 
1398
 
1399
 
1400
 
1401
 
1402
 
1403
 
1404
 
1405
 
1406
 
1407
 
1408
 
1409
 
1410
 
1411
 
1412
 
1413
 
1414
 
1415
# intl sister-directory configuration rules.
1416
#
1417
 
1418
# The idea behind this macro is that there's no need to repeat all the
1419
# autoconf probes done by the intl directory - it's already done them
1420
# for us.  In fact, there's no need even to look at the cache for the
1421
# answers.  All we need to do is nab a few pieces of information.
1422
# The intl directory is set up to make this easy, by generating a
1423
# small file which can be sourced as a shell script; then we produce
1424
# the necessary substitutions and definitions for this directory.
1425
 
1426
 
1427
 
1428
 
1429
 
1430
 
1431
 
1432
# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1433
# it by inlining the macro's contents.
1434
# This file contains common code used by all simulators.
1435
#
1436
# common.m4 invokes AC macros used by all simulators and by the common
1437
# directory.  It is intended to be included before any target specific
1438
# stuff.  SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1439
# the Makefile.  It is intended to be invoked last.
1440
#
1441
# The simulator's configure.in should look like:
1442
#
1443
# dnl Process this file with autoconf to produce a configure script.
1444
# AC_PREREQ(2.5)dnl
1445
# AC_INIT(Makefile.in)
1446
# AC_CONFIG_HEADER(config.h:config.in)
1447
#
1448
# sinclude(../common/aclocal.m4)
1449
# sinclude(../common/common.m4)
1450
#
1451
# ... target specific stuff ...
1452
 
1453
ac_aux_dir=
1454
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1455
  if test -f $ac_dir/install-sh; then
1456
    ac_aux_dir=$ac_dir
1457
    ac_install_sh="$ac_aux_dir/install-sh -c"
1458
    break
1459
  elif test -f $ac_dir/install.sh; then
1460
    ac_aux_dir=$ac_dir
1461
    ac_install_sh="$ac_aux_dir/install.sh -c"
1462
    break
1463
  elif test -f $ac_dir/shtool; then
1464
    ac_aux_dir=$ac_dir
1465
    ac_install_sh="$ac_aux_dir/shtool install -c"
1466
    break
1467
  fi
1468
done
1469
if test -z "$ac_aux_dir"; then
1470
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1471
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1472
   { (exit 1); exit 1; }; }
1473
fi
1474
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1475
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1476
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1477
 
1478
# Make sure we can run config.sub.
1479
$ac_config_sub sun4 >/dev/null 2>&1 ||
1480
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1481
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1482
   { (exit 1); exit 1; }; }
1483
 
1484
echo "$as_me:$LINENO: checking build system type" >&5
1485
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1486
if test "${ac_cv_build+set}" = set; then
1487
  echo $ECHO_N "(cached) $ECHO_C" >&6
1488
else
1489
  ac_cv_build_alias=$build_alias
1490
test -z "$ac_cv_build_alias" &&
1491
  ac_cv_build_alias=`$ac_config_guess`
1492
test -z "$ac_cv_build_alias" &&
1493
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1494
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1495
   { (exit 1); exit 1; }; }
1496
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1497
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1498
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1499
   { (exit 1); exit 1; }; }
1500
 
1501
fi
1502
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1503
echo "${ECHO_T}$ac_cv_build" >&6
1504
build=$ac_cv_build
1505
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1506
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1507
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1508
 
1509
 
1510
echo "$as_me:$LINENO: checking host system type" >&5
1511
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1512
if test "${ac_cv_host+set}" = set; then
1513
  echo $ECHO_N "(cached) $ECHO_C" >&6
1514
else
1515
  ac_cv_host_alias=$host_alias
1516
test -z "$ac_cv_host_alias" &&
1517
  ac_cv_host_alias=$ac_cv_build_alias
1518
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1519
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1520
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1521
   { (exit 1); exit 1; }; }
1522
 
1523
fi
1524
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1525
echo "${ECHO_T}$ac_cv_host" >&6
1526
host=$ac_cv_host
1527
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1528
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1529
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1530
 
1531
 
1532
echo "$as_me:$LINENO: checking target system type" >&5
1533
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1534
if test "${ac_cv_target+set}" = set; then
1535
  echo $ECHO_N "(cached) $ECHO_C" >&6
1536
else
1537
  ac_cv_target_alias=$target_alias
1538
test "x$ac_cv_target_alias" = "x" &&
1539
  ac_cv_target_alias=$ac_cv_host_alias
1540
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1541
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1542
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1543
   { (exit 1); exit 1; }; }
1544
 
1545
fi
1546
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1547
echo "${ECHO_T}$ac_cv_target" >&6
1548
target=$ac_cv_target
1549
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1550
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1551
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552
 
1553
 
1554
# The aliases save the names the user supplied, while $host etc.
1555
# will get canonicalized.
1556
test -n "$target_alias" &&
1557
  test "$program_prefix$program_suffix$program_transform_name" = \
1558
    NONENONEs,x,x, &&
1559
  program_prefix=${target_alias}-
1560
test "$program_prefix" != NONE &&
1561
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1562
# Use a double $ so make ignores it.
1563
test "$program_suffix" != NONE &&
1564
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1565
# Double any \ or $.  echo might interpret backslashes.
1566
# By default was `s,x,x', remove it if useless.
1567
cat <<\_ACEOF >conftest.sed
1568
s/[\\$]/&&/g;s/;s,x,x,$//
1569
_ACEOF
1570
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1571
rm conftest.sed
1572
 
1573
ac_ext=c
1574
ac_cpp='$CPP $CPPFLAGS'
1575
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1576
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1577
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1578
if test -n "$ac_tool_prefix"; then
1579
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1580
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1581
echo "$as_me:$LINENO: checking for $ac_word" >&5
1582
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583
if test "${ac_cv_prog_CC+set}" = set; then
1584
  echo $ECHO_N "(cached) $ECHO_C" >&6
1585
else
1586
  if test -n "$CC"; then
1587
  ac_cv_prog_CC="$CC" # Let the user override the test.
1588
else
1589
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590
for as_dir in $PATH
1591
do
1592
  IFS=$as_save_IFS
1593
  test -z "$as_dir" && as_dir=.
1594
  for ac_exec_ext in '' $ac_executable_extensions; do
1595
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1597
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598
    break 2
1599
  fi
1600
done
1601
done
1602
 
1603
fi
1604
fi
1605
CC=$ac_cv_prog_CC
1606
if test -n "$CC"; then
1607
  echo "$as_me:$LINENO: result: $CC" >&5
1608
echo "${ECHO_T}$CC" >&6
1609
else
1610
  echo "$as_me:$LINENO: result: no" >&5
1611
echo "${ECHO_T}no" >&6
1612
fi
1613
 
1614
fi
1615
if test -z "$ac_cv_prog_CC"; then
1616
  ac_ct_CC=$CC
1617
  # Extract the first word of "gcc", so it can be a program name with args.
1618
set dummy gcc; ac_word=$2
1619
echo "$as_me:$LINENO: checking for $ac_word" >&5
1620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1622
  echo $ECHO_N "(cached) $ECHO_C" >&6
1623
else
1624
  if test -n "$ac_ct_CC"; then
1625
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1626
else
1627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628
for as_dir in $PATH
1629
do
1630
  IFS=$as_save_IFS
1631
  test -z "$as_dir" && as_dir=.
1632
  for ac_exec_ext in '' $ac_executable_extensions; do
1633
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634
    ac_cv_prog_ac_ct_CC="gcc"
1635
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636
    break 2
1637
  fi
1638
done
1639
done
1640
 
1641
fi
1642
fi
1643
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1644
if test -n "$ac_ct_CC"; then
1645
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1646
echo "${ECHO_T}$ac_ct_CC" >&6
1647
else
1648
  echo "$as_me:$LINENO: result: no" >&5
1649
echo "${ECHO_T}no" >&6
1650
fi
1651
 
1652
  CC=$ac_ct_CC
1653
else
1654
  CC="$ac_cv_prog_CC"
1655
fi
1656
 
1657
if test -z "$CC"; then
1658
  if test -n "$ac_tool_prefix"; then
1659
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1660
set dummy ${ac_tool_prefix}cc; ac_word=$2
1661
echo "$as_me:$LINENO: checking for $ac_word" >&5
1662
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663
if test "${ac_cv_prog_CC+set}" = set; then
1664
  echo $ECHO_N "(cached) $ECHO_C" >&6
1665
else
1666
  if test -n "$CC"; then
1667
  ac_cv_prog_CC="$CC" # Let the user override the test.
1668
else
1669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670
for as_dir in $PATH
1671
do
1672
  IFS=$as_save_IFS
1673
  test -z "$as_dir" && as_dir=.
1674
  for ac_exec_ext in '' $ac_executable_extensions; do
1675
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1677
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678
    break 2
1679
  fi
1680
done
1681
done
1682
 
1683
fi
1684
fi
1685
CC=$ac_cv_prog_CC
1686
if test -n "$CC"; then
1687
  echo "$as_me:$LINENO: result: $CC" >&5
1688
echo "${ECHO_T}$CC" >&6
1689
else
1690
  echo "$as_me:$LINENO: result: no" >&5
1691
echo "${ECHO_T}no" >&6
1692
fi
1693
 
1694
fi
1695
if test -z "$ac_cv_prog_CC"; then
1696
  ac_ct_CC=$CC
1697
  # Extract the first word of "cc", so it can be a program name with args.
1698
set dummy cc; ac_word=$2
1699
echo "$as_me:$LINENO: checking for $ac_word" >&5
1700
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702
  echo $ECHO_N "(cached) $ECHO_C" >&6
1703
else
1704
  if test -n "$ac_ct_CC"; then
1705
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706
else
1707
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708
for as_dir in $PATH
1709
do
1710
  IFS=$as_save_IFS
1711
  test -z "$as_dir" && as_dir=.
1712
  for ac_exec_ext in '' $ac_executable_extensions; do
1713
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714
    ac_cv_prog_ac_ct_CC="cc"
1715
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716
    break 2
1717
  fi
1718
done
1719
done
1720
 
1721
fi
1722
fi
1723
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724
if test -n "$ac_ct_CC"; then
1725
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726
echo "${ECHO_T}$ac_ct_CC" >&6
1727
else
1728
  echo "$as_me:$LINENO: result: no" >&5
1729
echo "${ECHO_T}no" >&6
1730
fi
1731
 
1732
  CC=$ac_ct_CC
1733
else
1734
  CC="$ac_cv_prog_CC"
1735
fi
1736
 
1737
fi
1738
if test -z "$CC"; then
1739
  # Extract the first word of "cc", so it can be a program name with args.
1740
set dummy cc; ac_word=$2
1741
echo "$as_me:$LINENO: checking for $ac_word" >&5
1742
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743
if test "${ac_cv_prog_CC+set}" = set; then
1744
  echo $ECHO_N "(cached) $ECHO_C" >&6
1745
else
1746
  if test -n "$CC"; then
1747
  ac_cv_prog_CC="$CC" # Let the user override the test.
1748
else
1749
  ac_prog_rejected=no
1750
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751
for as_dir in $PATH
1752
do
1753
  IFS=$as_save_IFS
1754
  test -z "$as_dir" && as_dir=.
1755
  for ac_exec_ext in '' $ac_executable_extensions; do
1756
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1758
       ac_prog_rejected=yes
1759
       continue
1760
     fi
1761
    ac_cv_prog_CC="cc"
1762
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763
    break 2
1764
  fi
1765
done
1766
done
1767
 
1768
if test $ac_prog_rejected = yes; then
1769
  # We found a bogon in the path, so make sure we never use it.
1770
  set dummy $ac_cv_prog_CC
1771
  shift
1772
  if test $# != 0; then
1773
    # We chose a different compiler from the bogus one.
1774
    # However, it has the same basename, so the bogon will be chosen
1775
    # first if we set CC to just the basename; use the full file name.
1776
    shift
1777
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1778
  fi
1779
fi
1780
fi
1781
fi
1782
CC=$ac_cv_prog_CC
1783
if test -n "$CC"; then
1784
  echo "$as_me:$LINENO: result: $CC" >&5
1785
echo "${ECHO_T}$CC" >&6
1786
else
1787
  echo "$as_me:$LINENO: result: no" >&5
1788
echo "${ECHO_T}no" >&6
1789
fi
1790
 
1791
fi
1792
if test -z "$CC"; then
1793
  if test -n "$ac_tool_prefix"; then
1794
  for ac_prog in cl
1795
  do
1796
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1797
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1798
echo "$as_me:$LINENO: checking for $ac_word" >&5
1799
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800
if test "${ac_cv_prog_CC+set}" = set; then
1801
  echo $ECHO_N "(cached) $ECHO_C" >&6
1802
else
1803
  if test -n "$CC"; then
1804
  ac_cv_prog_CC="$CC" # Let the user override the test.
1805
else
1806
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807
for as_dir in $PATH
1808
do
1809
  IFS=$as_save_IFS
1810
  test -z "$as_dir" && as_dir=.
1811
  for ac_exec_ext in '' $ac_executable_extensions; do
1812
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1814
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815
    break 2
1816
  fi
1817
done
1818
done
1819
 
1820
fi
1821
fi
1822
CC=$ac_cv_prog_CC
1823
if test -n "$CC"; then
1824
  echo "$as_me:$LINENO: result: $CC" >&5
1825
echo "${ECHO_T}$CC" >&6
1826
else
1827
  echo "$as_me:$LINENO: result: no" >&5
1828
echo "${ECHO_T}no" >&6
1829
fi
1830
 
1831
    test -n "$CC" && break
1832
  done
1833
fi
1834
if test -z "$CC"; then
1835
  ac_ct_CC=$CC
1836
  for ac_prog in cl
1837
do
1838
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1839
set dummy $ac_prog; ac_word=$2
1840
echo "$as_me:$LINENO: checking for $ac_word" >&5
1841
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1843
  echo $ECHO_N "(cached) $ECHO_C" >&6
1844
else
1845
  if test -n "$ac_ct_CC"; then
1846
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1847
else
1848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849
for as_dir in $PATH
1850
do
1851
  IFS=$as_save_IFS
1852
  test -z "$as_dir" && as_dir=.
1853
  for ac_exec_ext in '' $ac_executable_extensions; do
1854
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855
    ac_cv_prog_ac_ct_CC="$ac_prog"
1856
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857
    break 2
1858
  fi
1859
done
1860
done
1861
 
1862
fi
1863
fi
1864
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1865
if test -n "$ac_ct_CC"; then
1866
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1867
echo "${ECHO_T}$ac_ct_CC" >&6
1868
else
1869
  echo "$as_me:$LINENO: result: no" >&5
1870
echo "${ECHO_T}no" >&6
1871
fi
1872
 
1873
  test -n "$ac_ct_CC" && break
1874
done
1875
 
1876
  CC=$ac_ct_CC
1877
fi
1878
 
1879
fi
1880
 
1881
 
1882
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1883
See \`config.log' for more details." >&5
1884
echo "$as_me: error: no acceptable C compiler found in \$PATH
1885
See \`config.log' for more details." >&2;}
1886
   { (exit 1); exit 1; }; }
1887
 
1888
# Provide some information about the compiler.
1889
echo "$as_me:$LINENO:" \
1890
     "checking for C compiler version" >&5
1891
ac_compiler=`set X $ac_compile; echo $2`
1892
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1893
  (eval $ac_compiler --version &5) 2>&5
1894
  ac_status=$?
1895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896
  (exit $ac_status); }
1897
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
1898
  (eval $ac_compiler -v &5) 2>&5
1899
  ac_status=$?
1900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901
  (exit $ac_status); }
1902
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
1903
  (eval $ac_compiler -V &5) 2>&5
1904
  ac_status=$?
1905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906
  (exit $ac_status); }
1907
 
1908
cat >conftest.$ac_ext <<_ACEOF
1909
/* confdefs.h.  */
1910
_ACEOF
1911
cat confdefs.h >>conftest.$ac_ext
1912
cat >>conftest.$ac_ext <<_ACEOF
1913
/* end confdefs.h.  */
1914
 
1915
int
1916
main ()
1917
{
1918
 
1919
  ;
1920
  return 0;
1921
}
1922
_ACEOF
1923
ac_clean_files_save=$ac_clean_files
1924
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1925
# Try to create an executable without -o first, disregard a.out.
1926
# It will help us diagnose broken compilers, and finding out an intuition
1927
# of exeext.
1928
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1929
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1930
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1931
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1932
  (eval $ac_link_default) 2>&5
1933
  ac_status=$?
1934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935
  (exit $ac_status); }; then
1936
  # Find the output, starting from the most likely.  This scheme is
1937
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1938
# resort.
1939
 
1940
# Be careful to initialize this variable, since it used to be cached.
1941
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1942
ac_cv_exeext=
1943
# b.out is created by i960 compilers.
1944
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1945
do
1946
  test -f "$ac_file" || continue
1947
  case $ac_file in
1948
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1949
        ;;
1950
    conftest.$ac_ext )
1951
        # This is the source file.
1952
        ;;
1953
    [ab].out )
1954
        # We found the default executable, but exeext='' is most
1955
        # certainly right.
1956
        break;;
1957
    *.* )
1958
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1959
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1960
        # but it would be cool to find out if it's true.  Does anybody
1961
        # maintain Libtool? --akim.
1962
        export ac_cv_exeext
1963
        break;;
1964
    * )
1965
        break;;
1966
  esac
1967
done
1968
else
1969
  echo "$as_me: failed program was:" >&5
1970
sed 's/^/| /' conftest.$ac_ext >&5
1971
 
1972
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1973
See \`config.log' for more details." >&5
1974
echo "$as_me: error: C compiler cannot create executables
1975
See \`config.log' for more details." >&2;}
1976
   { (exit 77); exit 77; }; }
1977
fi
1978
 
1979
ac_exeext=$ac_cv_exeext
1980
echo "$as_me:$LINENO: result: $ac_file" >&5
1981
echo "${ECHO_T}$ac_file" >&6
1982
 
1983
# Check the compiler produces executables we can run.  If not, either
1984
# the compiler is broken, or we cross compile.
1985
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1986
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1987
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1988
# If not cross compiling, check that we can run a simple program.
1989
if test "$cross_compiling" != yes; then
1990
  if { ac_try='./$ac_file'
1991
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1992
  (eval $ac_try) 2>&5
1993
  ac_status=$?
1994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995
  (exit $ac_status); }; }; then
1996
    cross_compiling=no
1997
  else
1998
    if test "$cross_compiling" = maybe; then
1999
        cross_compiling=yes
2000
    else
2001
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2002
If you meant to cross compile, use \`--host'.
2003
See \`config.log' for more details." >&5
2004
echo "$as_me: error: cannot run C compiled programs.
2005
If you meant to cross compile, use \`--host'.
2006
See \`config.log' for more details." >&2;}
2007
   { (exit 1); exit 1; }; }
2008
    fi
2009
  fi
2010
fi
2011
echo "$as_me:$LINENO: result: yes" >&5
2012
echo "${ECHO_T}yes" >&6
2013
 
2014
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2015
ac_clean_files=$ac_clean_files_save
2016
# Check the compiler produces executables we can run.  If not, either
2017
# the compiler is broken, or we cross compile.
2018
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2019
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2020
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2021
echo "${ECHO_T}$cross_compiling" >&6
2022
 
2023
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2024
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2025
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2026
  (eval $ac_link) 2>&5
2027
  ac_status=$?
2028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029
  (exit $ac_status); }; then
2030
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2031
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2032
# work properly (i.e., refer to `conftest.exe'), while it won't with
2033
# `rm'.
2034
for ac_file in conftest.exe conftest conftest.*; do
2035
  test -f "$ac_file" || continue
2036
  case $ac_file in
2037
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2038
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2039
          export ac_cv_exeext
2040
          break;;
2041
    * ) break;;
2042
  esac
2043
done
2044
else
2045
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2046
See \`config.log' for more details." >&5
2047
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2048
See \`config.log' for more details." >&2;}
2049
   { (exit 1); exit 1; }; }
2050
fi
2051
 
2052
rm -f conftest$ac_cv_exeext
2053
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2054
echo "${ECHO_T}$ac_cv_exeext" >&6
2055
 
2056
rm -f conftest.$ac_ext
2057
EXEEXT=$ac_cv_exeext
2058
ac_exeext=$EXEEXT
2059
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2060
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2061
if test "${ac_cv_objext+set}" = set; then
2062
  echo $ECHO_N "(cached) $ECHO_C" >&6
2063
else
2064
  cat >conftest.$ac_ext <<_ACEOF
2065
/* confdefs.h.  */
2066
_ACEOF
2067
cat confdefs.h >>conftest.$ac_ext
2068
cat >>conftest.$ac_ext <<_ACEOF
2069
/* end confdefs.h.  */
2070
 
2071
int
2072
main ()
2073
{
2074
 
2075
  ;
2076
  return 0;
2077
}
2078
_ACEOF
2079
rm -f conftest.o conftest.obj
2080
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081
  (eval $ac_compile) 2>&5
2082
  ac_status=$?
2083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084
  (exit $ac_status); }; then
2085
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2086
  case $ac_file in
2087
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2088
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2089
       break;;
2090
  esac
2091
done
2092
else
2093
  echo "$as_me: failed program was:" >&5
2094
sed 's/^/| /' conftest.$ac_ext >&5
2095
 
2096
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2097
See \`config.log' for more details." >&5
2098
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2099
See \`config.log' for more details." >&2;}
2100
   { (exit 1); exit 1; }; }
2101
fi
2102
 
2103
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2104
fi
2105
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2106
echo "${ECHO_T}$ac_cv_objext" >&6
2107
OBJEXT=$ac_cv_objext
2108
ac_objext=$OBJEXT
2109
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2110
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2111
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2112
  echo $ECHO_N "(cached) $ECHO_C" >&6
2113
else
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
 
2121
int
2122
main ()
2123
{
2124
#ifndef __GNUC__
2125
       choke me
2126
#endif
2127
 
2128
  ;
2129
  return 0;
2130
}
2131
_ACEOF
2132
rm -f conftest.$ac_objext
2133
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2134
  (eval $ac_compile) 2>conftest.er1
2135
  ac_status=$?
2136
  grep -v '^ *+' conftest.er1 >conftest.err
2137
  rm -f conftest.er1
2138
  cat conftest.err >&5
2139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140
  (exit $ac_status); } &&
2141
         { ac_try='test -z "$ac_c_werror_flag"
2142
                         || test ! -s conftest.err'
2143
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144
  (eval $ac_try) 2>&5
2145
  ac_status=$?
2146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147
  (exit $ac_status); }; } &&
2148
         { ac_try='test -s conftest.$ac_objext'
2149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150
  (eval $ac_try) 2>&5
2151
  ac_status=$?
2152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153
  (exit $ac_status); }; }; then
2154
  ac_compiler_gnu=yes
2155
else
2156
  echo "$as_me: failed program was:" >&5
2157
sed 's/^/| /' conftest.$ac_ext >&5
2158
 
2159
ac_compiler_gnu=no
2160
fi
2161
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2162
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2163
 
2164
fi
2165
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2166
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2167
GCC=`test $ac_compiler_gnu = yes && echo yes`
2168
ac_test_CFLAGS=${CFLAGS+set}
2169
ac_save_CFLAGS=$CFLAGS
2170
CFLAGS="-g"
2171
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2172
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2173
if test "${ac_cv_prog_cc_g+set}" = set; then
2174
  echo $ECHO_N "(cached) $ECHO_C" >&6
2175
else
2176
  cat >conftest.$ac_ext <<_ACEOF
2177
/* confdefs.h.  */
2178
_ACEOF
2179
cat confdefs.h >>conftest.$ac_ext
2180
cat >>conftest.$ac_ext <<_ACEOF
2181
/* end confdefs.h.  */
2182
 
2183
int
2184
main ()
2185
{
2186
 
2187
  ;
2188
  return 0;
2189
}
2190
_ACEOF
2191
rm -f conftest.$ac_objext
2192
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193
  (eval $ac_compile) 2>conftest.er1
2194
  ac_status=$?
2195
  grep -v '^ *+' conftest.er1 >conftest.err
2196
  rm -f conftest.er1
2197
  cat conftest.err >&5
2198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199
  (exit $ac_status); } &&
2200
         { ac_try='test -z "$ac_c_werror_flag"
2201
                         || test ! -s conftest.err'
2202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203
  (eval $ac_try) 2>&5
2204
  ac_status=$?
2205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206
  (exit $ac_status); }; } &&
2207
         { ac_try='test -s conftest.$ac_objext'
2208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209
  (eval $ac_try) 2>&5
2210
  ac_status=$?
2211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212
  (exit $ac_status); }; }; then
2213
  ac_cv_prog_cc_g=yes
2214
else
2215
  echo "$as_me: failed program was:" >&5
2216
sed 's/^/| /' conftest.$ac_ext >&5
2217
 
2218
ac_cv_prog_cc_g=no
2219
fi
2220
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2221
fi
2222
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2223
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2224
if test "$ac_test_CFLAGS" = set; then
2225
  CFLAGS=$ac_save_CFLAGS
2226
elif test $ac_cv_prog_cc_g = yes; then
2227
  if test "$GCC" = yes; then
2228
    CFLAGS="-g -O2"
2229
  else
2230
    CFLAGS="-g"
2231
  fi
2232
else
2233
  if test "$GCC" = yes; then
2234
    CFLAGS="-O2"
2235
  else
2236
    CFLAGS=
2237
  fi
2238
fi
2239
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2240
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2241
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2242
  echo $ECHO_N "(cached) $ECHO_C" >&6
2243
else
2244
  ac_cv_prog_cc_stdc=no
2245
ac_save_CC=$CC
2246
cat >conftest.$ac_ext <<_ACEOF
2247
/* confdefs.h.  */
2248
_ACEOF
2249
cat confdefs.h >>conftest.$ac_ext
2250
cat >>conftest.$ac_ext <<_ACEOF
2251
/* end confdefs.h.  */
2252
#include 
2253
#include 
2254
#include 
2255
#include 
2256
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2257
struct buf { int x; };
2258
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2259
static char *e (p, i)
2260
     char **p;
2261
     int i;
2262
{
2263
  return p[i];
2264
}
2265
static char *f (char * (*g) (char **, int), char **p, ...)
2266
{
2267
  char *s;
2268
  va_list v;
2269
  va_start (v,p);
2270
  s = g (p, va_arg (v,int));
2271
  va_end (v);
2272
  return s;
2273
}
2274
 
2275
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2276
   function prototypes and stuff, but not '\xHH' hex character constants.
2277
   These don't provoke an error unfortunately, instead are silently treated
2278
   as 'x'.  The following induces an error, until -std1 is added to get
2279
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2280
   array size at least.  It's necessary to write '\x00'==0 to get something
2281
   that's true only with -std1.  */
2282
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2283
 
2284
int test (int i, double x);
2285
struct s1 {int (*f) (int a);};
2286
struct s2 {int (*f) (double a);};
2287
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2288
int argc;
2289
char **argv;
2290
int
2291
main ()
2292
{
2293
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2294
  ;
2295
  return 0;
2296
}
2297
_ACEOF
2298
# Don't try gcc -ansi; that turns off useful extensions and
2299
# breaks some systems' header files.
2300
# AIX                   -qlanglvl=ansi
2301
# Ultrix and OSF/1      -std1
2302
# HP-UX 10.20 and later -Ae
2303
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2304
# SVR4                  -Xc -D__EXTENSIONS__
2305
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2306
do
2307
  CC="$ac_save_CC $ac_arg"
2308
  rm -f conftest.$ac_objext
2309
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310
  (eval $ac_compile) 2>conftest.er1
2311
  ac_status=$?
2312
  grep -v '^ *+' conftest.er1 >conftest.err
2313
  rm -f conftest.er1
2314
  cat conftest.err >&5
2315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316
  (exit $ac_status); } &&
2317
         { ac_try='test -z "$ac_c_werror_flag"
2318
                         || test ! -s conftest.err'
2319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320
  (eval $ac_try) 2>&5
2321
  ac_status=$?
2322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323
  (exit $ac_status); }; } &&
2324
         { ac_try='test -s conftest.$ac_objext'
2325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326
  (eval $ac_try) 2>&5
2327
  ac_status=$?
2328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329
  (exit $ac_status); }; }; then
2330
  ac_cv_prog_cc_stdc=$ac_arg
2331
break
2332
else
2333
  echo "$as_me: failed program was:" >&5
2334
sed 's/^/| /' conftest.$ac_ext >&5
2335
 
2336
fi
2337
rm -f conftest.err conftest.$ac_objext
2338
done
2339
rm -f conftest.$ac_ext conftest.$ac_objext
2340
CC=$ac_save_CC
2341
 
2342
fi
2343
 
2344
case "x$ac_cv_prog_cc_stdc" in
2345
  x|xno)
2346
    echo "$as_me:$LINENO: result: none needed" >&5
2347
echo "${ECHO_T}none needed" >&6 ;;
2348
  *)
2349
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2350
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2351
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2352
esac
2353
 
2354
# Some people use a C++ compiler to compile C.  Since we use `exit',
2355
# in C++ we need to declare it.  In case someone uses the same compiler
2356
# for both compiling C and C++ we need to have the C++ compiler decide
2357
# the declaration of exit, since it's the most demanding environment.
2358
cat >conftest.$ac_ext <<_ACEOF
2359
#ifndef __cplusplus
2360
  choke me
2361
#endif
2362
_ACEOF
2363
rm -f conftest.$ac_objext
2364
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365
  (eval $ac_compile) 2>conftest.er1
2366
  ac_status=$?
2367
  grep -v '^ *+' conftest.er1 >conftest.err
2368
  rm -f conftest.er1
2369
  cat conftest.err >&5
2370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371
  (exit $ac_status); } &&
2372
         { ac_try='test -z "$ac_c_werror_flag"
2373
                         || test ! -s conftest.err'
2374
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375
  (eval $ac_try) 2>&5
2376
  ac_status=$?
2377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378
  (exit $ac_status); }; } &&
2379
         { ac_try='test -s conftest.$ac_objext'
2380
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381
  (eval $ac_try) 2>&5
2382
  ac_status=$?
2383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384
  (exit $ac_status); }; }; then
2385
  for ac_declaration in \
2386
   '' \
2387
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2388
   'extern "C" void std::exit (int); using std::exit;' \
2389
   'extern "C" void exit (int) throw ();' \
2390
   'extern "C" void exit (int);' \
2391
   'void exit (int);'
2392
do
2393
  cat >conftest.$ac_ext <<_ACEOF
2394
/* confdefs.h.  */
2395
_ACEOF
2396
cat confdefs.h >>conftest.$ac_ext
2397
cat >>conftest.$ac_ext <<_ACEOF
2398
/* end confdefs.h.  */
2399
$ac_declaration
2400
#include 
2401
int
2402
main ()
2403
{
2404
exit (42);
2405
  ;
2406
  return 0;
2407
}
2408
_ACEOF
2409
rm -f conftest.$ac_objext
2410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411
  (eval $ac_compile) 2>conftest.er1
2412
  ac_status=$?
2413
  grep -v '^ *+' conftest.er1 >conftest.err
2414
  rm -f conftest.er1
2415
  cat conftest.err >&5
2416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417
  (exit $ac_status); } &&
2418
         { ac_try='test -z "$ac_c_werror_flag"
2419
                         || test ! -s conftest.err'
2420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421
  (eval $ac_try) 2>&5
2422
  ac_status=$?
2423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424
  (exit $ac_status); }; } &&
2425
         { ac_try='test -s conftest.$ac_objext'
2426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427
  (eval $ac_try) 2>&5
2428
  ac_status=$?
2429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430
  (exit $ac_status); }; }; then
2431
  :
2432
else
2433
  echo "$as_me: failed program was:" >&5
2434
sed 's/^/| /' conftest.$ac_ext >&5
2435
 
2436
continue
2437
fi
2438
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439
  cat >conftest.$ac_ext <<_ACEOF
2440
/* confdefs.h.  */
2441
_ACEOF
2442
cat confdefs.h >>conftest.$ac_ext
2443
cat >>conftest.$ac_ext <<_ACEOF
2444
/* end confdefs.h.  */
2445
$ac_declaration
2446
int
2447
main ()
2448
{
2449
exit (42);
2450
  ;
2451
  return 0;
2452
}
2453
_ACEOF
2454
rm -f conftest.$ac_objext
2455
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456
  (eval $ac_compile) 2>conftest.er1
2457
  ac_status=$?
2458
  grep -v '^ *+' conftest.er1 >conftest.err
2459
  rm -f conftest.er1
2460
  cat conftest.err >&5
2461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462
  (exit $ac_status); } &&
2463
         { ac_try='test -z "$ac_c_werror_flag"
2464
                         || test ! -s conftest.err'
2465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466
  (eval $ac_try) 2>&5
2467
  ac_status=$?
2468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469
  (exit $ac_status); }; } &&
2470
         { ac_try='test -s conftest.$ac_objext'
2471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472
  (eval $ac_try) 2>&5
2473
  ac_status=$?
2474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475
  (exit $ac_status); }; }; then
2476
  break
2477
else
2478
  echo "$as_me: failed program was:" >&5
2479
sed 's/^/| /' conftest.$ac_ext >&5
2480
 
2481
fi
2482
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2483
done
2484
rm -f conftest*
2485
if test -n "$ac_declaration"; then
2486
  echo '#ifdef __cplusplus' >>confdefs.h
2487
  echo $ac_declaration      >>confdefs.h
2488
  echo '#endif'             >>confdefs.h
2489
fi
2490
 
2491
else
2492
  echo "$as_me: failed program was:" >&5
2493
sed 's/^/| /' conftest.$ac_ext >&5
2494
 
2495
fi
2496
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497
ac_ext=c
2498
ac_cpp='$CPP $CPPFLAGS'
2499
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502
 
2503
# Find a good install program.  We prefer a C program (faster),
2504
# so one script is as good as another.  But avoid the broken or
2505
# incompatible versions:
2506
# SysV /etc/install, /usr/sbin/install
2507
# SunOS /usr/etc/install
2508
# IRIX /sbin/install
2509
# AIX /bin/install
2510
# AmigaOS /C/install, which installs bootblocks on floppy discs
2511
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2512
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2513
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2514
# OS/2's system install, which has a completely different semantic
2515
# ./install, which can be erroneously created by make from ./install.sh.
2516
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2517
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2518
if test -z "$INSTALL"; then
2519
if test "${ac_cv_path_install+set}" = set; then
2520
  echo $ECHO_N "(cached) $ECHO_C" >&6
2521
else
2522
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523
for as_dir in $PATH
2524
do
2525
  IFS=$as_save_IFS
2526
  test -z "$as_dir" && as_dir=.
2527
  # Account for people who put trailing slashes in PATH elements.
2528
case $as_dir/ in
2529
  ./ | .// | /cC/* | \
2530
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2531
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2532
  /usr/ucb/* ) ;;
2533
  *)
2534
    # OSF1 and SCO ODT 3.0 have their own names for install.
2535
    # Don't use installbsd from OSF since it installs stuff as root
2536
    # by default.
2537
    for ac_prog in ginstall scoinst install; do
2538
      for ac_exec_ext in '' $ac_executable_extensions; do
2539
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2540
          if test $ac_prog = install &&
2541
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2542
            # AIX install.  It has an incompatible calling convention.
2543
            :
2544
          elif test $ac_prog = install &&
2545
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2546
            # program-specific install script used by HP pwplus--don't use.
2547
            :
2548
          else
2549
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2550
            break 3
2551
          fi
2552
        fi
2553
      done
2554
    done
2555
    ;;
2556
esac
2557
done
2558
 
2559
 
2560
fi
2561
  if test "${ac_cv_path_install+set}" = set; then
2562
    INSTALL=$ac_cv_path_install
2563
  else
2564
    # As a last resort, use the slow shell script.  We don't cache a
2565
    # path for INSTALL within a source directory, because that will
2566
    # break other packages using the cache if that directory is
2567
    # removed, or if the path is relative.
2568
    INSTALL=$ac_install_sh
2569
  fi
2570
fi
2571
echo "$as_me:$LINENO: result: $INSTALL" >&5
2572
echo "${ECHO_T}$INSTALL" >&6
2573
 
2574
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2575
# It thinks the first close brace ends the variable substitution.
2576
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2577
 
2578
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2579
 
2580
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2581
 
2582
 
2583
# Put a plausible default for CC_FOR_BUILD in Makefile.
2584
if test "x$cross_compiling" = "xno"; then
2585
  CC_FOR_BUILD='$(CC)'
2586
else
2587
  CC_FOR_BUILD=gcc
2588
fi
2589
 
2590
 
2591
 
2592
 
2593
AR=${AR-ar}
2594
 
2595
if test -n "$ac_tool_prefix"; then
2596
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2597
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2598
echo "$as_me:$LINENO: checking for $ac_word" >&5
2599
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2600
if test "${ac_cv_prog_RANLIB+set}" = set; then
2601
  echo $ECHO_N "(cached) $ECHO_C" >&6
2602
else
2603
  if test -n "$RANLIB"; then
2604
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2605
else
2606
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607
for as_dir in $PATH
2608
do
2609
  IFS=$as_save_IFS
2610
  test -z "$as_dir" && as_dir=.
2611
  for ac_exec_ext in '' $ac_executable_extensions; do
2612
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2614
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615
    break 2
2616
  fi
2617
done
2618
done
2619
 
2620
fi
2621
fi
2622
RANLIB=$ac_cv_prog_RANLIB
2623
if test -n "$RANLIB"; then
2624
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2625
echo "${ECHO_T}$RANLIB" >&6
2626
else
2627
  echo "$as_me:$LINENO: result: no" >&5
2628
echo "${ECHO_T}no" >&6
2629
fi
2630
 
2631
fi
2632
if test -z "$ac_cv_prog_RANLIB"; then
2633
  ac_ct_RANLIB=$RANLIB
2634
  # Extract the first word of "ranlib", so it can be a program name with args.
2635
set dummy ranlib; ac_word=$2
2636
echo "$as_me:$LINENO: checking for $ac_word" >&5
2637
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2638
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2639
  echo $ECHO_N "(cached) $ECHO_C" >&6
2640
else
2641
  if test -n "$ac_ct_RANLIB"; then
2642
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2643
else
2644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645
for as_dir in $PATH
2646
do
2647
  IFS=$as_save_IFS
2648
  test -z "$as_dir" && as_dir=.
2649
  for ac_exec_ext in '' $ac_executable_extensions; do
2650
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2652
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653
    break 2
2654
  fi
2655
done
2656
done
2657
 
2658
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2659
fi
2660
fi
2661
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2662
if test -n "$ac_ct_RANLIB"; then
2663
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2664
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2665
else
2666
  echo "$as_me:$LINENO: result: no" >&5
2667
echo "${ECHO_T}no" >&6
2668
fi
2669
 
2670
  RANLIB=$ac_ct_RANLIB
2671
else
2672
  RANLIB="$ac_cv_prog_RANLIB"
2673
fi
2674
 
2675
 
2676
ALL_LINGUAS=
2677
# If we haven't got the data from the intl directory,
2678
# assume NLS is disabled.
2679
USE_NLS=no
2680
LIBINTL=
2681
LIBINTL_DEP=
2682
INCINTL=
2683
XGETTEXT=
2684
GMSGFMT=
2685
POSUB=
2686
 
2687
if test -f  ../../intl/config.intl; then
2688
  .  ../../intl/config.intl
2689
fi
2690
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2691
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2692
if test x"$USE_NLS" != xyes; then
2693
  echo "$as_me:$LINENO: result: no" >&5
2694
echo "${ECHO_T}no" >&6
2695
else
2696
  echo "$as_me:$LINENO: result: yes" >&5
2697
echo "${ECHO_T}yes" >&6
2698
 
2699
cat >>confdefs.h <<\_ACEOF
2700
#define ENABLE_NLS 1
2701
_ACEOF
2702
 
2703
 
2704
  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2705
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2706
  # Look for .po and .gmo files in the source directory.
2707
  CATALOGS=
2708
  XLINGUAS=
2709
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2710
    # If there aren't any .gmo files the shell will give us the
2711
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
2712
    # weeded out.
2713
    case "$cat" in *\**)
2714
      continue;;
2715
    esac
2716
    # The quadruple backslash is collapsed to a double backslash
2717
    # by the backticks, then collapsed again by the double quotes,
2718
    # leaving us with one backslash in the sed expression (right
2719
    # before the dot that mustn't act as a wildcard).
2720
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2721
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2722
    # The user is allowed to set LINGUAS to a list of languages to
2723
    # install catalogs for.  If it's empty that means "all of them."
2724
    if test "x$LINGUAS" = x; then
2725
      CATALOGS="$CATALOGS $cat"
2726
      XLINGUAS="$XLINGUAS $lang"
2727
    else
2728
      case "$LINGUAS" in *$lang*)
2729
        CATALOGS="$CATALOGS $cat"
2730
        XLINGUAS="$XLINGUAS $lang"
2731
        ;;
2732
      esac
2733
    fi
2734
  done
2735
  LINGUAS="$XLINGUAS"
2736
  echo "$as_me:$LINENO: result: $LINGUAS" >&5
2737
echo "${ECHO_T}$LINGUAS" >&6
2738
 
2739
 
2740
    DATADIRNAME=share
2741
 
2742
  INSTOBJEXT=.mo
2743
 
2744
  GENCAT=gencat
2745
 
2746
  CATOBJEXT=.gmo
2747
 
2748
fi
2749
 
2750
# Check for common headers.
2751
# FIXME: Seems to me this can cause problems for i386-windows hosts.
2752
# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2753
 
2754
ac_ext=c
2755
ac_cpp='$CPP $CPPFLAGS'
2756
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2760
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2761
# On Suns, sometimes $CPP names a directory.
2762
if test -n "$CPP" && test -d "$CPP"; then
2763
  CPP=
2764
fi
2765
if test -z "$CPP"; then
2766
  if test "${ac_cv_prog_CPP+set}" = set; then
2767
  echo $ECHO_N "(cached) $ECHO_C" >&6
2768
else
2769
      # Double quotes because CPP needs to be expanded
2770
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2771
    do
2772
      ac_preproc_ok=false
2773
for ac_c_preproc_warn_flag in '' yes
2774
do
2775
  # Use a header file that comes with gcc, so configuring glibc
2776
  # with a fresh cross-compiler works.
2777
  # Prefer  to  if __STDC__ is defined, since
2778
  #  exists even on freestanding compilers.
2779
  # On the NeXT, cc -E runs the code through the compiler's parser,
2780
  # not just through cpp. "Syntax error" is here to catch this case.
2781
  cat >conftest.$ac_ext <<_ACEOF
2782
/* confdefs.h.  */
2783
_ACEOF
2784
cat confdefs.h >>conftest.$ac_ext
2785
cat >>conftest.$ac_ext <<_ACEOF
2786
/* end confdefs.h.  */
2787
#ifdef __STDC__
2788
# include 
2789
#else
2790
# include 
2791
#endif
2792
                     Syntax error
2793
_ACEOF
2794
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2795
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2796
  ac_status=$?
2797
  grep -v '^ *+' conftest.er1 >conftest.err
2798
  rm -f conftest.er1
2799
  cat conftest.err >&5
2800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801
  (exit $ac_status); } >/dev/null; then
2802
  if test -s conftest.err; then
2803
    ac_cpp_err=$ac_c_preproc_warn_flag
2804
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2805
  else
2806
    ac_cpp_err=
2807
  fi
2808
else
2809
  ac_cpp_err=yes
2810
fi
2811
if test -z "$ac_cpp_err"; then
2812
  :
2813
else
2814
  echo "$as_me: failed program was:" >&5
2815
sed 's/^/| /' conftest.$ac_ext >&5
2816
 
2817
  # Broken: fails on valid input.
2818
continue
2819
fi
2820
rm -f conftest.err conftest.$ac_ext
2821
 
2822
  # OK, works on sane cases.  Now check whether non-existent headers
2823
  # can be detected and how.
2824
  cat >conftest.$ac_ext <<_ACEOF
2825
/* confdefs.h.  */
2826
_ACEOF
2827
cat confdefs.h >>conftest.$ac_ext
2828
cat >>conftest.$ac_ext <<_ACEOF
2829
/* end confdefs.h.  */
2830
#include 
2831
_ACEOF
2832
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834
  ac_status=$?
2835
  grep -v '^ *+' conftest.er1 >conftest.err
2836
  rm -f conftest.er1
2837
  cat conftest.err >&5
2838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839
  (exit $ac_status); } >/dev/null; then
2840
  if test -s conftest.err; then
2841
    ac_cpp_err=$ac_c_preproc_warn_flag
2842
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2843
  else
2844
    ac_cpp_err=
2845
  fi
2846
else
2847
  ac_cpp_err=yes
2848
fi
2849
if test -z "$ac_cpp_err"; then
2850
  # Broken: success on invalid input.
2851
continue
2852
else
2853
  echo "$as_me: failed program was:" >&5
2854
sed 's/^/| /' conftest.$ac_ext >&5
2855
 
2856
  # Passes both tests.
2857
ac_preproc_ok=:
2858
break
2859
fi
2860
rm -f conftest.err conftest.$ac_ext
2861
 
2862
done
2863
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2864
rm -f conftest.err conftest.$ac_ext
2865
if $ac_preproc_ok; then
2866
  break
2867
fi
2868
 
2869
    done
2870
    ac_cv_prog_CPP=$CPP
2871
 
2872
fi
2873
  CPP=$ac_cv_prog_CPP
2874
else
2875
  ac_cv_prog_CPP=$CPP
2876
fi
2877
echo "$as_me:$LINENO: result: $CPP" >&5
2878
echo "${ECHO_T}$CPP" >&6
2879
ac_preproc_ok=false
2880
for ac_c_preproc_warn_flag in '' yes
2881
do
2882
  # Use a header file that comes with gcc, so configuring glibc
2883
  # with a fresh cross-compiler works.
2884
  # Prefer  to  if __STDC__ is defined, since
2885
  #  exists even on freestanding compilers.
2886
  # On the NeXT, cc -E runs the code through the compiler's parser,
2887
  # not just through cpp. "Syntax error" is here to catch this case.
2888
  cat >conftest.$ac_ext <<_ACEOF
2889
/* confdefs.h.  */
2890
_ACEOF
2891
cat confdefs.h >>conftest.$ac_ext
2892
cat >>conftest.$ac_ext <<_ACEOF
2893
/* end confdefs.h.  */
2894
#ifdef __STDC__
2895
# include 
2896
#else
2897
# include 
2898
#endif
2899
                     Syntax error
2900
_ACEOF
2901
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2902
  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
2909
  if test -s conftest.err; then
2910
    ac_cpp_err=$ac_c_preproc_warn_flag
2911
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2912
  else
2913
    ac_cpp_err=
2914
  fi
2915
else
2916
  ac_cpp_err=yes
2917
fi
2918
if test -z "$ac_cpp_err"; then
2919
  :
2920
else
2921
  echo "$as_me: failed program was:" >&5
2922
sed 's/^/| /' conftest.$ac_ext >&5
2923
 
2924
  # Broken: fails on valid input.
2925
continue
2926
fi
2927
rm -f conftest.err conftest.$ac_ext
2928
 
2929
  # OK, works on sane cases.  Now check whether non-existent headers
2930
  # can be detected and how.
2931
  cat >conftest.$ac_ext <<_ACEOF
2932
/* confdefs.h.  */
2933
_ACEOF
2934
cat confdefs.h >>conftest.$ac_ext
2935
cat >>conftest.$ac_ext <<_ACEOF
2936
/* end confdefs.h.  */
2937
#include 
2938
_ACEOF
2939
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2941
  ac_status=$?
2942
  grep -v '^ *+' conftest.er1 >conftest.err
2943
  rm -f conftest.er1
2944
  cat conftest.err >&5
2945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946
  (exit $ac_status); } >/dev/null; then
2947
  if test -s conftest.err; then
2948
    ac_cpp_err=$ac_c_preproc_warn_flag
2949
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2950
  else
2951
    ac_cpp_err=
2952
  fi
2953
else
2954
  ac_cpp_err=yes
2955
fi
2956
if test -z "$ac_cpp_err"; then
2957
  # Broken: success on invalid input.
2958
continue
2959
else
2960
  echo "$as_me: failed program was:" >&5
2961
sed 's/^/| /' conftest.$ac_ext >&5
2962
 
2963
  # Passes both tests.
2964
ac_preproc_ok=:
2965
break
2966
fi
2967
rm -f conftest.err conftest.$ac_ext
2968
 
2969
done
2970
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2971
rm -f conftest.err conftest.$ac_ext
2972
if $ac_preproc_ok; then
2973
  :
2974
else
2975
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2976
See \`config.log' for more details." >&5
2977
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2978
See \`config.log' for more details." >&2;}
2979
   { (exit 1); exit 1; }; }
2980
fi
2981
 
2982
ac_ext=c
2983
ac_cpp='$CPP $CPPFLAGS'
2984
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987
 
2988
 
2989
echo "$as_me:$LINENO: checking for egrep" >&5
2990
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2991
if test "${ac_cv_prog_egrep+set}" = set; then
2992
  echo $ECHO_N "(cached) $ECHO_C" >&6
2993
else
2994
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2995
    then ac_cv_prog_egrep='grep -E'
2996
    else ac_cv_prog_egrep='egrep'
2997
    fi
2998
fi
2999
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3000
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3001
 EGREP=$ac_cv_prog_egrep
3002
 
3003
 
3004
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3005
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3006
if test "${ac_cv_header_stdc+set}" = set; then
3007
  echo $ECHO_N "(cached) $ECHO_C" >&6
3008
else
3009
  cat >conftest.$ac_ext <<_ACEOF
3010
/* confdefs.h.  */
3011
_ACEOF
3012
cat confdefs.h >>conftest.$ac_ext
3013
cat >>conftest.$ac_ext <<_ACEOF
3014
/* end confdefs.h.  */
3015
#include 
3016
#include 
3017
#include 
3018
#include 
3019
 
3020
int
3021
main ()
3022
{
3023
 
3024
  ;
3025
  return 0;
3026
}
3027
_ACEOF
3028
rm -f conftest.$ac_objext
3029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030
  (eval $ac_compile) 2>conftest.er1
3031
  ac_status=$?
3032
  grep -v '^ *+' conftest.er1 >conftest.err
3033
  rm -f conftest.er1
3034
  cat conftest.err >&5
3035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036
  (exit $ac_status); } &&
3037
         { ac_try='test -z "$ac_c_werror_flag"
3038
                         || test ! -s conftest.err'
3039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040
  (eval $ac_try) 2>&5
3041
  ac_status=$?
3042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043
  (exit $ac_status); }; } &&
3044
         { ac_try='test -s conftest.$ac_objext'
3045
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046
  (eval $ac_try) 2>&5
3047
  ac_status=$?
3048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049
  (exit $ac_status); }; }; then
3050
  ac_cv_header_stdc=yes
3051
else
3052
  echo "$as_me: failed program was:" >&5
3053
sed 's/^/| /' conftest.$ac_ext >&5
3054
 
3055
ac_cv_header_stdc=no
3056
fi
3057
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058
 
3059
if test $ac_cv_header_stdc = yes; then
3060
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3061
  cat >conftest.$ac_ext <<_ACEOF
3062
/* confdefs.h.  */
3063
_ACEOF
3064
cat confdefs.h >>conftest.$ac_ext
3065
cat >>conftest.$ac_ext <<_ACEOF
3066
/* end confdefs.h.  */
3067
#include 
3068
 
3069
_ACEOF
3070
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3071
  $EGREP "memchr" >/dev/null 2>&1; then
3072
  :
3073
else
3074
  ac_cv_header_stdc=no
3075
fi
3076
rm -f conftest*
3077
 
3078
fi
3079
 
3080
if test $ac_cv_header_stdc = yes; then
3081
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3082
  cat >conftest.$ac_ext <<_ACEOF
3083
/* confdefs.h.  */
3084
_ACEOF
3085
cat confdefs.h >>conftest.$ac_ext
3086
cat >>conftest.$ac_ext <<_ACEOF
3087
/* end confdefs.h.  */
3088
#include 
3089
 
3090
_ACEOF
3091
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3092
  $EGREP "free" >/dev/null 2>&1; then
3093
  :
3094
else
3095
  ac_cv_header_stdc=no
3096
fi
3097
rm -f conftest*
3098
 
3099
fi
3100
 
3101
if test $ac_cv_header_stdc = yes; then
3102
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3103
  if test "$cross_compiling" = yes; then
3104
  :
3105
else
3106
  cat >conftest.$ac_ext <<_ACEOF
3107
/* confdefs.h.  */
3108
_ACEOF
3109
cat confdefs.h >>conftest.$ac_ext
3110
cat >>conftest.$ac_ext <<_ACEOF
3111
/* end confdefs.h.  */
3112
#include 
3113
#if ((' ' & 0x0FF) == 0x020)
3114
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3115
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3116
#else
3117
# define ISLOWER(c) \
3118
                   (('a' <= (c) && (c) <= 'i') \
3119
                     || ('j' <= (c) && (c) <= 'r') \
3120
                     || ('s' <= (c) && (c) <= 'z'))
3121
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3122
#endif
3123
 
3124
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3125
int
3126
main ()
3127
{
3128
  int i;
3129
  for (i = 0; i < 256; i++)
3130
    if (XOR (islower (i), ISLOWER (i))
3131
        || toupper (i) != TOUPPER (i))
3132
      exit(2);
3133
  exit (0);
3134
}
3135
_ACEOF
3136
rm -f conftest$ac_exeext
3137
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138
  (eval $ac_link) 2>&5
3139
  ac_status=$?
3140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143
  (eval $ac_try) 2>&5
3144
  ac_status=$?
3145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146
  (exit $ac_status); }; }; then
3147
  :
3148
else
3149
  echo "$as_me: program exited with status $ac_status" >&5
3150
echo "$as_me: failed program was:" >&5
3151
sed 's/^/| /' conftest.$ac_ext >&5
3152
 
3153
( exit $ac_status )
3154
ac_cv_header_stdc=no
3155
fi
3156
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3157
fi
3158
fi
3159
fi
3160
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3161
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3162
if test $ac_cv_header_stdc = yes; then
3163
 
3164
cat >>confdefs.h <<\_ACEOF
3165
#define STDC_HEADERS 1
3166
_ACEOF
3167
 
3168
fi
3169
 
3170
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3171
 
3172
 
3173
 
3174
 
3175
 
3176
 
3177
 
3178
 
3179
 
3180
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3181
                  inttypes.h stdint.h unistd.h
3182
do
3183
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3184
echo "$as_me:$LINENO: checking for $ac_header" >&5
3185
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3186
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3187
  echo $ECHO_N "(cached) $ECHO_C" >&6
3188
else
3189
  cat >conftest.$ac_ext <<_ACEOF
3190
/* confdefs.h.  */
3191
_ACEOF
3192
cat confdefs.h >>conftest.$ac_ext
3193
cat >>conftest.$ac_ext <<_ACEOF
3194
/* end confdefs.h.  */
3195
$ac_includes_default
3196
 
3197
#include <$ac_header>
3198
_ACEOF
3199
rm -f conftest.$ac_objext
3200
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201
  (eval $ac_compile) 2>conftest.er1
3202
  ac_status=$?
3203
  grep -v '^ *+' conftest.er1 >conftest.err
3204
  rm -f conftest.er1
3205
  cat conftest.err >&5
3206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207
  (exit $ac_status); } &&
3208
         { ac_try='test -z "$ac_c_werror_flag"
3209
                         || test ! -s conftest.err'
3210
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211
  (eval $ac_try) 2>&5
3212
  ac_status=$?
3213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214
  (exit $ac_status); }; } &&
3215
         { ac_try='test -s conftest.$ac_objext'
3216
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217
  (eval $ac_try) 2>&5
3218
  ac_status=$?
3219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220
  (exit $ac_status); }; }; then
3221
  eval "$as_ac_Header=yes"
3222
else
3223
  echo "$as_me: failed program was:" >&5
3224
sed 's/^/| /' conftest.$ac_ext >&5
3225
 
3226
eval "$as_ac_Header=no"
3227
fi
3228
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229
fi
3230
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3231
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3232
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3233
  cat >>confdefs.h <<_ACEOF
3234
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3235
_ACEOF
3236
 
3237
fi
3238
 
3239
done
3240
 
3241
 
3242
 
3243
 
3244
 
3245
 
3246
 
3247
for ac_header in stdlib.h string.h strings.h unistd.h time.h
3248
do
3249
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3250
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3251
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3252
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3253
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3254
  echo $ECHO_N "(cached) $ECHO_C" >&6
3255
fi
3256
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3257
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3258
else
3259
  # Is the header compilable?
3260
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3261
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3262
cat >conftest.$ac_ext <<_ACEOF
3263
/* confdefs.h.  */
3264
_ACEOF
3265
cat confdefs.h >>conftest.$ac_ext
3266
cat >>conftest.$ac_ext <<_ACEOF
3267
/* end confdefs.h.  */
3268
$ac_includes_default
3269
#include <$ac_header>
3270
_ACEOF
3271
rm -f conftest.$ac_objext
3272
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273
  (eval $ac_compile) 2>conftest.er1
3274
  ac_status=$?
3275
  grep -v '^ *+' conftest.er1 >conftest.err
3276
  rm -f conftest.er1
3277
  cat conftest.err >&5
3278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279
  (exit $ac_status); } &&
3280
         { ac_try='test -z "$ac_c_werror_flag"
3281
                         || test ! -s conftest.err'
3282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283
  (eval $ac_try) 2>&5
3284
  ac_status=$?
3285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286
  (exit $ac_status); }; } &&
3287
         { ac_try='test -s conftest.$ac_objext'
3288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289
  (eval $ac_try) 2>&5
3290
  ac_status=$?
3291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292
  (exit $ac_status); }; }; then
3293
  ac_header_compiler=yes
3294
else
3295
  echo "$as_me: failed program was:" >&5
3296
sed 's/^/| /' conftest.$ac_ext >&5
3297
 
3298
ac_header_compiler=no
3299
fi
3300
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3301
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3302
echo "${ECHO_T}$ac_header_compiler" >&6
3303
 
3304
# Is the header present?
3305
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3306
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3307
cat >conftest.$ac_ext <<_ACEOF
3308
/* confdefs.h.  */
3309
_ACEOF
3310
cat confdefs.h >>conftest.$ac_ext
3311
cat >>conftest.$ac_ext <<_ACEOF
3312
/* end confdefs.h.  */
3313
#include <$ac_header>
3314
_ACEOF
3315
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3316
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3317
  ac_status=$?
3318
  grep -v '^ *+' conftest.er1 >conftest.err
3319
  rm -f conftest.er1
3320
  cat conftest.err >&5
3321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322
  (exit $ac_status); } >/dev/null; then
3323
  if test -s conftest.err; then
3324
    ac_cpp_err=$ac_c_preproc_warn_flag
3325
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3326
  else
3327
    ac_cpp_err=
3328
  fi
3329
else
3330
  ac_cpp_err=yes
3331
fi
3332
if test -z "$ac_cpp_err"; then
3333
  ac_header_preproc=yes
3334
else
3335
  echo "$as_me: failed program was:" >&5
3336
sed 's/^/| /' conftest.$ac_ext >&5
3337
 
3338
  ac_header_preproc=no
3339
fi
3340
rm -f conftest.err conftest.$ac_ext
3341
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3342
echo "${ECHO_T}$ac_header_preproc" >&6
3343
 
3344
# So?  What about this header?
3345
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3346
  yes:no: )
3347
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3348
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3349
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3350
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3351
    ac_header_preproc=yes
3352
    ;;
3353
  no:yes:* )
3354
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3355
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3356
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3357
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3358
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3359
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3360
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3361
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3362
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3363
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3364
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3365
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3366
    (
3367
      cat <<\_ASBOX
3368
## ------------------------------------------ ##
3369
## Report this to the AC_PACKAGE_NAME lists.  ##
3370
## ------------------------------------------ ##
3371
_ASBOX
3372
    ) |
3373
      sed "s/^/$as_me: WARNING:     /" >&2
3374
    ;;
3375
esac
3376
echo "$as_me:$LINENO: checking for $ac_header" >&5
3377
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3378
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3379
  echo $ECHO_N "(cached) $ECHO_C" >&6
3380
else
3381
  eval "$as_ac_Header=\$ac_header_preproc"
3382
fi
3383
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3384
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3385
 
3386
fi
3387
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3388
  cat >>confdefs.h <<_ACEOF
3389
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3390
_ACEOF
3391
 
3392
fi
3393
 
3394
done
3395
 
3396
 
3397
 
3398
for ac_header in sys/time.h sys/resource.h
3399
do
3400
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3401
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3402
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3403
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3404
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3405
  echo $ECHO_N "(cached) $ECHO_C" >&6
3406
fi
3407
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3408
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3409
else
3410
  # Is the header compilable?
3411
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3412
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3413
cat >conftest.$ac_ext <<_ACEOF
3414
/* confdefs.h.  */
3415
_ACEOF
3416
cat confdefs.h >>conftest.$ac_ext
3417
cat >>conftest.$ac_ext <<_ACEOF
3418
/* end confdefs.h.  */
3419
$ac_includes_default
3420
#include <$ac_header>
3421
_ACEOF
3422
rm -f conftest.$ac_objext
3423
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424
  (eval $ac_compile) 2>conftest.er1
3425
  ac_status=$?
3426
  grep -v '^ *+' conftest.er1 >conftest.err
3427
  rm -f conftest.er1
3428
  cat conftest.err >&5
3429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430
  (exit $ac_status); } &&
3431
         { ac_try='test -z "$ac_c_werror_flag"
3432
                         || test ! -s conftest.err'
3433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434
  (eval $ac_try) 2>&5
3435
  ac_status=$?
3436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437
  (exit $ac_status); }; } &&
3438
         { ac_try='test -s conftest.$ac_objext'
3439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440
  (eval $ac_try) 2>&5
3441
  ac_status=$?
3442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443
  (exit $ac_status); }; }; then
3444
  ac_header_compiler=yes
3445
else
3446
  echo "$as_me: failed program was:" >&5
3447
sed 's/^/| /' conftest.$ac_ext >&5
3448
 
3449
ac_header_compiler=no
3450
fi
3451
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3452
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3453
echo "${ECHO_T}$ac_header_compiler" >&6
3454
 
3455
# Is the header present?
3456
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3457
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3458
cat >conftest.$ac_ext <<_ACEOF
3459
/* confdefs.h.  */
3460
_ACEOF
3461
cat confdefs.h >>conftest.$ac_ext
3462
cat >>conftest.$ac_ext <<_ACEOF
3463
/* end confdefs.h.  */
3464
#include <$ac_header>
3465
_ACEOF
3466
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3467
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3468
  ac_status=$?
3469
  grep -v '^ *+' conftest.er1 >conftest.err
3470
  rm -f conftest.er1
3471
  cat conftest.err >&5
3472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473
  (exit $ac_status); } >/dev/null; then
3474
  if test -s conftest.err; then
3475
    ac_cpp_err=$ac_c_preproc_warn_flag
3476
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3477
  else
3478
    ac_cpp_err=
3479
  fi
3480
else
3481
  ac_cpp_err=yes
3482
fi
3483
if test -z "$ac_cpp_err"; then
3484
  ac_header_preproc=yes
3485
else
3486
  echo "$as_me: failed program was:" >&5
3487
sed 's/^/| /' conftest.$ac_ext >&5
3488
 
3489
  ac_header_preproc=no
3490
fi
3491
rm -f conftest.err conftest.$ac_ext
3492
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3493
echo "${ECHO_T}$ac_header_preproc" >&6
3494
 
3495
# So?  What about this header?
3496
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3497
  yes:no: )
3498
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3499
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3500
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3501
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3502
    ac_header_preproc=yes
3503
    ;;
3504
  no:yes:* )
3505
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3506
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3507
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3508
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3509
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3510
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3511
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3512
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3513
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3514
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3515
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3516
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3517
    (
3518
      cat <<\_ASBOX
3519
## ------------------------------------------ ##
3520
## Report this to the AC_PACKAGE_NAME lists.  ##
3521
## ------------------------------------------ ##
3522
_ASBOX
3523
    ) |
3524
      sed "s/^/$as_me: WARNING:     /" >&2
3525
    ;;
3526
esac
3527
echo "$as_me:$LINENO: checking for $ac_header" >&5
3528
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3529
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3530
  echo $ECHO_N "(cached) $ECHO_C" >&6
3531
else
3532
  eval "$as_ac_Header=\$ac_header_preproc"
3533
fi
3534
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3535
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3536
 
3537
fi
3538
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3539
  cat >>confdefs.h <<_ACEOF
3540
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3541
_ACEOF
3542
 
3543
fi
3544
 
3545
done
3546
 
3547
 
3548
 
3549
for ac_header in fcntl.h fpu_control.h
3550
do
3551
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3552
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3553
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3554
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3555
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3556
  echo $ECHO_N "(cached) $ECHO_C" >&6
3557
fi
3558
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3559
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3560
else
3561
  # Is the header compilable?
3562
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3563
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3564
cat >conftest.$ac_ext <<_ACEOF
3565
/* confdefs.h.  */
3566
_ACEOF
3567
cat confdefs.h >>conftest.$ac_ext
3568
cat >>conftest.$ac_ext <<_ACEOF
3569
/* end confdefs.h.  */
3570
$ac_includes_default
3571
#include <$ac_header>
3572
_ACEOF
3573
rm -f conftest.$ac_objext
3574
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575
  (eval $ac_compile) 2>conftest.er1
3576
  ac_status=$?
3577
  grep -v '^ *+' conftest.er1 >conftest.err
3578
  rm -f conftest.er1
3579
  cat conftest.err >&5
3580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581
  (exit $ac_status); } &&
3582
         { ac_try='test -z "$ac_c_werror_flag"
3583
                         || test ! -s conftest.err'
3584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585
  (eval $ac_try) 2>&5
3586
  ac_status=$?
3587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588
  (exit $ac_status); }; } &&
3589
         { ac_try='test -s conftest.$ac_objext'
3590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591
  (eval $ac_try) 2>&5
3592
  ac_status=$?
3593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594
  (exit $ac_status); }; }; then
3595
  ac_header_compiler=yes
3596
else
3597
  echo "$as_me: failed program was:" >&5
3598
sed 's/^/| /' conftest.$ac_ext >&5
3599
 
3600
ac_header_compiler=no
3601
fi
3602
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3604
echo "${ECHO_T}$ac_header_compiler" >&6
3605
 
3606
# Is the header present?
3607
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3608
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3609
cat >conftest.$ac_ext <<_ACEOF
3610
/* confdefs.h.  */
3611
_ACEOF
3612
cat confdefs.h >>conftest.$ac_ext
3613
cat >>conftest.$ac_ext <<_ACEOF
3614
/* end confdefs.h.  */
3615
#include <$ac_header>
3616
_ACEOF
3617
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3618
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3619
  ac_status=$?
3620
  grep -v '^ *+' conftest.er1 >conftest.err
3621
  rm -f conftest.er1
3622
  cat conftest.err >&5
3623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624
  (exit $ac_status); } >/dev/null; then
3625
  if test -s conftest.err; then
3626
    ac_cpp_err=$ac_c_preproc_warn_flag
3627
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3628
  else
3629
    ac_cpp_err=
3630
  fi
3631
else
3632
  ac_cpp_err=yes
3633
fi
3634
if test -z "$ac_cpp_err"; then
3635
  ac_header_preproc=yes
3636
else
3637
  echo "$as_me: failed program was:" >&5
3638
sed 's/^/| /' conftest.$ac_ext >&5
3639
 
3640
  ac_header_preproc=no
3641
fi
3642
rm -f conftest.err conftest.$ac_ext
3643
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3644
echo "${ECHO_T}$ac_header_preproc" >&6
3645
 
3646
# So?  What about this header?
3647
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3648
  yes:no: )
3649
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3650
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3651
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3652
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3653
    ac_header_preproc=yes
3654
    ;;
3655
  no:yes:* )
3656
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3657
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3658
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3659
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3660
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3661
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3662
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3663
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3664
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3665
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3666
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3667
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3668
    (
3669
      cat <<\_ASBOX
3670
## ------------------------------------------ ##
3671
## Report this to the AC_PACKAGE_NAME lists.  ##
3672
## ------------------------------------------ ##
3673
_ASBOX
3674
    ) |
3675
      sed "s/^/$as_me: WARNING:     /" >&2
3676
    ;;
3677
esac
3678
echo "$as_me:$LINENO: checking for $ac_header" >&5
3679
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3680
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3681
  echo $ECHO_N "(cached) $ECHO_C" >&6
3682
else
3683
  eval "$as_ac_Header=\$ac_header_preproc"
3684
fi
3685
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3686
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3687
 
3688
fi
3689
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3690
  cat >>confdefs.h <<_ACEOF
3691
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3692
_ACEOF
3693
 
3694
fi
3695
 
3696
done
3697
 
3698
 
3699
 
3700
 
3701
for ac_header in dlfcn.h errno.h sys/stat.h
3702
do
3703
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3704
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3705
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3706
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3707
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3708
  echo $ECHO_N "(cached) $ECHO_C" >&6
3709
fi
3710
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3711
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3712
else
3713
  # Is the header compilable?
3714
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3715
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3716
cat >conftest.$ac_ext <<_ACEOF
3717
/* confdefs.h.  */
3718
_ACEOF
3719
cat confdefs.h >>conftest.$ac_ext
3720
cat >>conftest.$ac_ext <<_ACEOF
3721
/* end confdefs.h.  */
3722
$ac_includes_default
3723
#include <$ac_header>
3724
_ACEOF
3725
rm -f conftest.$ac_objext
3726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3727
  (eval $ac_compile) 2>conftest.er1
3728
  ac_status=$?
3729
  grep -v '^ *+' conftest.er1 >conftest.err
3730
  rm -f conftest.er1
3731
  cat conftest.err >&5
3732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733
  (exit $ac_status); } &&
3734
         { ac_try='test -z "$ac_c_werror_flag"
3735
                         || test ! -s conftest.err'
3736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737
  (eval $ac_try) 2>&5
3738
  ac_status=$?
3739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740
  (exit $ac_status); }; } &&
3741
         { ac_try='test -s conftest.$ac_objext'
3742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743
  (eval $ac_try) 2>&5
3744
  ac_status=$?
3745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746
  (exit $ac_status); }; }; then
3747
  ac_header_compiler=yes
3748
else
3749
  echo "$as_me: failed program was:" >&5
3750
sed 's/^/| /' conftest.$ac_ext >&5
3751
 
3752
ac_header_compiler=no
3753
fi
3754
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3755
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3756
echo "${ECHO_T}$ac_header_compiler" >&6
3757
 
3758
# Is the header present?
3759
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3760
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3761
cat >conftest.$ac_ext <<_ACEOF
3762
/* confdefs.h.  */
3763
_ACEOF
3764
cat confdefs.h >>conftest.$ac_ext
3765
cat >>conftest.$ac_ext <<_ACEOF
3766
/* end confdefs.h.  */
3767
#include <$ac_header>
3768
_ACEOF
3769
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3770
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3771
  ac_status=$?
3772
  grep -v '^ *+' conftest.er1 >conftest.err
3773
  rm -f conftest.er1
3774
  cat conftest.err >&5
3775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776
  (exit $ac_status); } >/dev/null; then
3777
  if test -s conftest.err; then
3778
    ac_cpp_err=$ac_c_preproc_warn_flag
3779
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3780
  else
3781
    ac_cpp_err=
3782
  fi
3783
else
3784
  ac_cpp_err=yes
3785
fi
3786
if test -z "$ac_cpp_err"; then
3787
  ac_header_preproc=yes
3788
else
3789
  echo "$as_me: failed program was:" >&5
3790
sed 's/^/| /' conftest.$ac_ext >&5
3791
 
3792
  ac_header_preproc=no
3793
fi
3794
rm -f conftest.err conftest.$ac_ext
3795
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3796
echo "${ECHO_T}$ac_header_preproc" >&6
3797
 
3798
# So?  What about this header?
3799
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3800
  yes:no: )
3801
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3802
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3803
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3804
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3805
    ac_header_preproc=yes
3806
    ;;
3807
  no:yes:* )
3808
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3809
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3810
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3811
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3812
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3813
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3814
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3815
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3816
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3817
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3818
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3819
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3820
    (
3821
      cat <<\_ASBOX
3822
## ------------------------------------------ ##
3823
## Report this to the AC_PACKAGE_NAME lists.  ##
3824
## ------------------------------------------ ##
3825
_ASBOX
3826
    ) |
3827
      sed "s/^/$as_me: WARNING:     /" >&2
3828
    ;;
3829
esac
3830
echo "$as_me:$LINENO: checking for $ac_header" >&5
3831
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3832
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3833
  echo $ECHO_N "(cached) $ECHO_C" >&6
3834
else
3835
  eval "$as_ac_Header=\$ac_header_preproc"
3836
fi
3837
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3838
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3839
 
3840
fi
3841
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3842
  cat >>confdefs.h <<_ACEOF
3843
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3844
_ACEOF
3845
 
3846
fi
3847
 
3848
done
3849
 
3850
 
3851
 
3852
 
3853
 
3854
for ac_func in getrusage time sigaction __setfpucw
3855
do
3856
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3857
echo "$as_me:$LINENO: checking for $ac_func" >&5
3858
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3859
if eval "test \"\${$as_ac_var+set}\" = set"; then
3860
  echo $ECHO_N "(cached) $ECHO_C" >&6
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
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
3869
   For example, HP-UX 11i  declares gettimeofday.  */
3870
#define $ac_func innocuous_$ac_func
3871
 
3872
/* System header to define __stub macros and hopefully few prototypes,
3873
    which can conflict with char $ac_func (); below.
3874
    Prefer  to  if __STDC__ is defined, since
3875
     exists even on freestanding compilers.  */
3876
 
3877
#ifdef __STDC__
3878
# include 
3879
#else
3880
# include 
3881
#endif
3882
 
3883
#undef $ac_func
3884
 
3885
/* Override any gcc2 internal prototype to avoid an error.  */
3886
#ifdef __cplusplus
3887
extern "C"
3888
{
3889
#endif
3890
/* We use char because int might match the return type of a gcc2
3891
   builtin and then its argument prototype would still apply.  */
3892
char $ac_func ();
3893
/* The GNU C library defines this for functions which it implements
3894
    to always fail with ENOSYS.  Some functions are actually named
3895
    something starting with __ and the normal name is an alias.  */
3896
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3897
choke me
3898
#else
3899
char (*f) () = $ac_func;
3900
#endif
3901
#ifdef __cplusplus
3902
}
3903
#endif
3904
 
3905
int
3906
main ()
3907
{
3908
return f != $ac_func;
3909
  ;
3910
  return 0;
3911
}
3912
_ACEOF
3913
rm -f conftest.$ac_objext conftest$ac_exeext
3914
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915
  (eval $ac_link) 2>conftest.er1
3916
  ac_status=$?
3917
  grep -v '^ *+' conftest.er1 >conftest.err
3918
  rm -f conftest.er1
3919
  cat conftest.err >&5
3920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921
  (exit $ac_status); } &&
3922
         { ac_try='test -z "$ac_c_werror_flag"
3923
                         || test ! -s conftest.err'
3924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925
  (eval $ac_try) 2>&5
3926
  ac_status=$?
3927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928
  (exit $ac_status); }; } &&
3929
         { ac_try='test -s conftest$ac_exeext'
3930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931
  (eval $ac_try) 2>&5
3932
  ac_status=$?
3933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934
  (exit $ac_status); }; }; then
3935
  eval "$as_ac_var=yes"
3936
else
3937
  echo "$as_me: failed program was:" >&5
3938
sed 's/^/| /' conftest.$ac_ext >&5
3939
 
3940
eval "$as_ac_var=no"
3941
fi
3942
rm -f conftest.err conftest.$ac_objext \
3943
      conftest$ac_exeext conftest.$ac_ext
3944
fi
3945
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3946
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3947
if test `eval echo '${'$as_ac_var'}'` = yes; then
3948
  cat >>confdefs.h <<_ACEOF
3949
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3950
_ACEOF
3951
 
3952
fi
3953
done
3954
 
3955
 
3956
# Check for socket libraries
3957
 
3958
echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
3959
echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
3960
if test "${ac_cv_lib_socket_bind+set}" = set; then
3961
  echo $ECHO_N "(cached) $ECHO_C" >&6
3962
else
3963
  ac_check_lib_save_LIBS=$LIBS
3964
LIBS="-lsocket  $LIBS"
3965
cat >conftest.$ac_ext <<_ACEOF
3966
/* confdefs.h.  */
3967
_ACEOF
3968
cat confdefs.h >>conftest.$ac_ext
3969
cat >>conftest.$ac_ext <<_ACEOF
3970
/* end confdefs.h.  */
3971
 
3972
/* Override any gcc2 internal prototype to avoid an error.  */
3973
#ifdef __cplusplus
3974
extern "C"
3975
#endif
3976
/* We use char because int might match the return type of a gcc2
3977
   builtin and then its argument prototype would still apply.  */
3978
char bind ();
3979
int
3980
main ()
3981
{
3982
bind ();
3983
  ;
3984
  return 0;
3985
}
3986
_ACEOF
3987
rm -f conftest.$ac_objext conftest$ac_exeext
3988
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3989
  (eval $ac_link) 2>conftest.er1
3990
  ac_status=$?
3991
  grep -v '^ *+' conftest.er1 >conftest.err
3992
  rm -f conftest.er1
3993
  cat conftest.err >&5
3994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995
  (exit $ac_status); } &&
3996
         { ac_try='test -z "$ac_c_werror_flag"
3997
                         || test ! -s conftest.err'
3998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999
  (eval $ac_try) 2>&5
4000
  ac_status=$?
4001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002
  (exit $ac_status); }; } &&
4003
         { ac_try='test -s conftest$ac_exeext'
4004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005
  (eval $ac_try) 2>&5
4006
  ac_status=$?
4007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008
  (exit $ac_status); }; }; then
4009
  ac_cv_lib_socket_bind=yes
4010
else
4011
  echo "$as_me: failed program was:" >&5
4012
sed 's/^/| /' conftest.$ac_ext >&5
4013
 
4014
ac_cv_lib_socket_bind=no
4015
fi
4016
rm -f conftest.err conftest.$ac_objext \
4017
      conftest$ac_exeext conftest.$ac_ext
4018
LIBS=$ac_check_lib_save_LIBS
4019
fi
4020
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4021
echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
4022
if test $ac_cv_lib_socket_bind = yes; then
4023
  cat >>confdefs.h <<_ACEOF
4024
#define HAVE_LIBSOCKET 1
4025
_ACEOF
4026
 
4027
  LIBS="-lsocket $LIBS"
4028
 
4029
fi
4030
 
4031
 
4032
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4033
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4034
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4035
  echo $ECHO_N "(cached) $ECHO_C" >&6
4036
else
4037
  ac_check_lib_save_LIBS=$LIBS
4038
LIBS="-lnsl  $LIBS"
4039
cat >conftest.$ac_ext <<_ACEOF
4040
/* confdefs.h.  */
4041
_ACEOF
4042
cat confdefs.h >>conftest.$ac_ext
4043
cat >>conftest.$ac_ext <<_ACEOF
4044
/* end confdefs.h.  */
4045
 
4046
/* Override any gcc2 internal prototype to avoid an error.  */
4047
#ifdef __cplusplus
4048
extern "C"
4049
#endif
4050
/* We use char because int might match the return type of a gcc2
4051
   builtin and then its argument prototype would still apply.  */
4052
char gethostbyname ();
4053
int
4054
main ()
4055
{
4056
gethostbyname ();
4057
  ;
4058
  return 0;
4059
}
4060
_ACEOF
4061
rm -f conftest.$ac_objext conftest$ac_exeext
4062
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063
  (eval $ac_link) 2>conftest.er1
4064
  ac_status=$?
4065
  grep -v '^ *+' conftest.er1 >conftest.err
4066
  rm -f conftest.er1
4067
  cat conftest.err >&5
4068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069
  (exit $ac_status); } &&
4070
         { ac_try='test -z "$ac_c_werror_flag"
4071
                         || test ! -s conftest.err'
4072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073
  (eval $ac_try) 2>&5
4074
  ac_status=$?
4075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076
  (exit $ac_status); }; } &&
4077
         { ac_try='test -s conftest$ac_exeext'
4078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079
  (eval $ac_try) 2>&5
4080
  ac_status=$?
4081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082
  (exit $ac_status); }; }; then
4083
  ac_cv_lib_nsl_gethostbyname=yes
4084
else
4085
  echo "$as_me: failed program was:" >&5
4086
sed 's/^/| /' conftest.$ac_ext >&5
4087
 
4088
ac_cv_lib_nsl_gethostbyname=no
4089
fi
4090
rm -f conftest.err conftest.$ac_objext \
4091
      conftest$ac_exeext conftest.$ac_ext
4092
LIBS=$ac_check_lib_save_LIBS
4093
fi
4094
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4095
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4096
if test $ac_cv_lib_nsl_gethostbyname = yes; then
4097
  cat >>confdefs.h <<_ACEOF
4098
#define HAVE_LIBNSL 1
4099
_ACEOF
4100
 
4101
  LIBS="-lnsl $LIBS"
4102
 
4103
fi
4104
 
4105
 
4106
. ${srcdir}/../../bfd/configure.host
4107
 
4108
 
4109
 
4110
USE_MAINTAINER_MODE=no
4111
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4112
if test "${enable_maintainer_mode+set}" = set; then
4113
  enableval="$enable_maintainer_mode"
4114
  case "${enableval}" in
4115
  yes)  MAINT="" USE_MAINTAINER_MODE=yes ;;
4116
  no)   MAINT="#" ;;
4117
  *)    { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4118
echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4119
   { (exit 1); exit 1; }; }; MAINT="#" ;;
4120
esac
4121
if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4122
  echo "Setting maintainer mode" 6>&1
4123
fi
4124
else
4125
  MAINT="#"
4126
fi;
4127
 
4128
 
4129
# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4130
if test "${enable_sim_bswap+set}" = set; then
4131
  enableval="$enable_sim_bswap"
4132
  case "${enableval}" in
4133
  yes)  sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4134
  no)   sim_bswap="-DWITH_BSWAP=0";;
4135
  *)    { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4136
echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4137
   { (exit 1); exit 1; }; }; sim_bswap="";;
4138
esac
4139
if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4140
  echo "Setting bswap flags = $sim_bswap" 6>&1
4141
fi
4142
else
4143
  sim_bswap=""
4144
fi;
4145
 
4146
 
4147
# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4148
if test "${enable_sim_cflags+set}" = set; then
4149
  enableval="$enable_sim_cflags"
4150
  case "${enableval}" in
4151
  yes)   sim_cflags="-O2 -fomit-frame-pointer";;
4152
  trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4153
echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4154
   { (exit 1); exit 1; }; }; sim_cflags="";;
4155
  no)    sim_cflags="";;
4156
  *)     sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4157
esac
4158
if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4159
  echo "Setting sim cflags = $sim_cflags" 6>&1
4160
fi
4161
else
4162
  sim_cflags=""
4163
fi;
4164
 
4165
 
4166
# Check whether --enable-sim-debug or --disable-sim-debug was given.
4167
if test "${enable_sim_debug+set}" = set; then
4168
  enableval="$enable_sim_debug"
4169
  case "${enableval}" in
4170
  yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4171
  no)  sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4172
  *)   sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4173
esac
4174
if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4175
  echo "Setting sim debug = $sim_debug" 6>&1
4176
fi
4177
else
4178
  sim_debug=""
4179
fi;
4180
 
4181
 
4182
# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4183
if test "${enable_sim_stdio+set}" = set; then
4184
  enableval="$enable_sim_stdio"
4185
  case "${enableval}" in
4186
  yes)  sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4187
  no)   sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4188
  *)    { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4189
echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4190
   { (exit 1); exit 1; }; }; sim_stdio="";;
4191
esac
4192
if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4193
  echo "Setting stdio flags = $sim_stdio" 6>&1
4194
fi
4195
else
4196
  sim_stdio=""
4197
fi;
4198
 
4199
 
4200
# Check whether --enable-sim-trace or --disable-sim-trace was given.
4201
if test "${enable_sim_trace+set}" = set; then
4202
  enableval="$enable_sim_trace"
4203
  case "${enableval}" in
4204
  yes)  sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4205
  no)   sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4206
  [-0-9]*)
4207
        sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4208
  [a-z]*)
4209
        sim_trace=""
4210
        for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4211
          if test x"$sim_trace" = x; then
4212
            sim_trace="-DWITH_TRACE='(TRACE_$x"
4213
          else
4214
            sim_trace="${sim_trace}|TRACE_$x"
4215
          fi
4216
        done
4217
        sim_trace="$sim_trace)'" ;;
4218
esac
4219
if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4220
  echo "Setting sim trace = $sim_trace" 6>&1
4221
fi
4222
else
4223
  sim_trace=""
4224
fi;
4225
 
4226
 
4227
# Check whether --enable-sim-profile or --disable-sim-profile was given.
4228
if test "${enable_sim_profile+set}" = set; then
4229
  enableval="$enable_sim_profile"
4230
  case "${enableval}" in
4231
  yes)  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4232
  no)   sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4233
  [-0-9]*)
4234
        sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4235
  [a-z]*)
4236
        sim_profile=""
4237
        for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4238
          if test x"$sim_profile" = x; then
4239
            sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4240
          else
4241
            sim_profile="${sim_profile}|PROFILE_$x"
4242
          fi
4243
        done
4244
        sim_profile="$sim_profile)'" ;;
4245
esac
4246
if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4247
  echo "Setting sim profile = $sim_profile" 6>&1
4248
fi
4249
else
4250
  sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4251
fi;
4252
 
4253
 
4254
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4255
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4256
if test "${ac_cv_type_signal+set}" = set; then
4257
  echo $ECHO_N "(cached) $ECHO_C" >&6
4258
else
4259
  cat >conftest.$ac_ext <<_ACEOF
4260
/* confdefs.h.  */
4261
_ACEOF
4262
cat confdefs.h >>conftest.$ac_ext
4263
cat >>conftest.$ac_ext <<_ACEOF
4264
/* end confdefs.h.  */
4265
#include 
4266
#include 
4267
#ifdef signal
4268
# undef signal
4269
#endif
4270
#ifdef __cplusplus
4271
extern "C" void (*signal (int, void (*)(int)))(int);
4272
#else
4273
void (*signal ()) ();
4274
#endif
4275
 
4276
int
4277
main ()
4278
{
4279
int i;
4280
  ;
4281
  return 0;
4282
}
4283
_ACEOF
4284
rm -f conftest.$ac_objext
4285
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286
  (eval $ac_compile) 2>conftest.er1
4287
  ac_status=$?
4288
  grep -v '^ *+' conftest.er1 >conftest.err
4289
  rm -f conftest.er1
4290
  cat conftest.err >&5
4291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292
  (exit $ac_status); } &&
4293
         { ac_try='test -z "$ac_c_werror_flag"
4294
                         || test ! -s conftest.err'
4295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296
  (eval $ac_try) 2>&5
4297
  ac_status=$?
4298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299
  (exit $ac_status); }; } &&
4300
         { ac_try='test -s conftest.$ac_objext'
4301
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302
  (eval $ac_try) 2>&5
4303
  ac_status=$?
4304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305
  (exit $ac_status); }; }; then
4306
  ac_cv_type_signal=void
4307
else
4308
  echo "$as_me: failed program was:" >&5
4309
sed 's/^/| /' conftest.$ac_ext >&5
4310
 
4311
ac_cv_type_signal=int
4312
fi
4313
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4314
fi
4315
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4316
echo "${ECHO_T}$ac_cv_type_signal" >&6
4317
 
4318
cat >>confdefs.h <<_ACEOF
4319
#define RETSIGTYPE $ac_cv_type_signal
4320
_ACEOF
4321
 
4322
 
4323
 
4324
 
4325
 
4326
sim_link_files=
4327
sim_link_links=
4328
 
4329
sim_link_links=tconfig.h
4330
if test -f ${srcdir}/tconfig.in
4331
then
4332
  sim_link_files=tconfig.in
4333
else
4334
  sim_link_files=../common/tconfig.in
4335
fi
4336
 
4337
# targ-vals.def points to the libc macro description file.
4338
case "${target}" in
4339
*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4340
esac
4341
sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4342
sim_link_links="${sim_link_links} targ-vals.def"
4343
 
4344
 
4345
 
4346
 
4347
for ac_header in unistd.h stdint.h
4348
do
4349
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4351
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4352
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4353
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354
  echo $ECHO_N "(cached) $ECHO_C" >&6
4355
fi
4356
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4357
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4358
else
4359
  # Is the header compilable?
4360
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4361
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4362
cat >conftest.$ac_ext <<_ACEOF
4363
/* confdefs.h.  */
4364
_ACEOF
4365
cat confdefs.h >>conftest.$ac_ext
4366
cat >>conftest.$ac_ext <<_ACEOF
4367
/* end confdefs.h.  */
4368
$ac_includes_default
4369
#include <$ac_header>
4370
_ACEOF
4371
rm -f conftest.$ac_objext
4372
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373
  (eval $ac_compile) 2>conftest.er1
4374
  ac_status=$?
4375
  grep -v '^ *+' conftest.er1 >conftest.err
4376
  rm -f conftest.er1
4377
  cat conftest.err >&5
4378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379
  (exit $ac_status); } &&
4380
         { ac_try='test -z "$ac_c_werror_flag"
4381
                         || test ! -s conftest.err'
4382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383
  (eval $ac_try) 2>&5
4384
  ac_status=$?
4385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386
  (exit $ac_status); }; } &&
4387
         { ac_try='test -s conftest.$ac_objext'
4388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389
  (eval $ac_try) 2>&5
4390
  ac_status=$?
4391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392
  (exit $ac_status); }; }; then
4393
  ac_header_compiler=yes
4394
else
4395
  echo "$as_me: failed program was:" >&5
4396
sed 's/^/| /' conftest.$ac_ext >&5
4397
 
4398
ac_header_compiler=no
4399
fi
4400
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4402
echo "${ECHO_T}$ac_header_compiler" >&6
4403
 
4404
# Is the header present?
4405
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4406
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4407
cat >conftest.$ac_ext <<_ACEOF
4408
/* confdefs.h.  */
4409
_ACEOF
4410
cat confdefs.h >>conftest.$ac_ext
4411
cat >>conftest.$ac_ext <<_ACEOF
4412
/* end confdefs.h.  */
4413
#include <$ac_header>
4414
_ACEOF
4415
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4416
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4417
  ac_status=$?
4418
  grep -v '^ *+' conftest.er1 >conftest.err
4419
  rm -f conftest.er1
4420
  cat conftest.err >&5
4421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422
  (exit $ac_status); } >/dev/null; then
4423
  if test -s conftest.err; then
4424
    ac_cpp_err=$ac_c_preproc_warn_flag
4425
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4426
  else
4427
    ac_cpp_err=
4428
  fi
4429
else
4430
  ac_cpp_err=yes
4431
fi
4432
if test -z "$ac_cpp_err"; then
4433
  ac_header_preproc=yes
4434
else
4435
  echo "$as_me: failed program was:" >&5
4436
sed 's/^/| /' conftest.$ac_ext >&5
4437
 
4438
  ac_header_preproc=no
4439
fi
4440
rm -f conftest.err conftest.$ac_ext
4441
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4442
echo "${ECHO_T}$ac_header_preproc" >&6
4443
 
4444
# So?  What about this header?
4445
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4446
  yes:no: )
4447
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4448
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4449
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4450
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4451
    ac_header_preproc=yes
4452
    ;;
4453
  no:yes:* )
4454
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4455
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4456
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4457
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4458
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4459
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4460
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4461
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4462
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4463
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4464
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4465
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4466
    (
4467
      cat <<\_ASBOX
4468
## ------------------------------------------ ##
4469
## Report this to the AC_PACKAGE_NAME lists.  ##
4470
## ------------------------------------------ ##
4471
_ASBOX
4472
    ) |
4473
      sed "s/^/$as_me: WARNING:     /" >&2
4474
    ;;
4475
esac
4476
echo "$as_me:$LINENO: checking for $ac_header" >&5
4477
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4478
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4479
  echo $ECHO_N "(cached) $ECHO_C" >&6
4480
else
4481
  eval "$as_ac_Header=\$ac_header_preproc"
4482
fi
4483
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4484
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4485
 
4486
fi
4487
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488
  cat >>confdefs.h <<_ACEOF
4489
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490
_ACEOF
4491
 
4492
fi
4493
 
4494
done
4495
 
4496
 
4497
COPRO="armcopro.o maverick.o iwmmxt.o"
4498
 
4499
 
4500
 
4501
 
4502
ac_sources="$sim_link_files"
4503
ac_dests="$sim_link_links"
4504
while test -n "$ac_sources"; do
4505
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4506
  set $ac_sources; ac_source=$1; shift; ac_sources=$*
4507
  ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
4508
done
4509
          ac_config_links="$ac_config_links $ac_config_links_1"
4510
 
4511
cgen_breaks=""
4512
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
4513
cgen_breaks="break cgen_rtx_error";
4514
fi
4515
 
4516
          ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
4517
 
4518
          ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
4519
 
4520
          ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
4521
 
4522
          ac_config_commands="$ac_config_commands Makefile"
4523
 
4524
          ac_config_commands="$ac_config_commands stamp-h"
4525
 
4526
cat >confcache <<\_ACEOF
4527
# This file is a shell script that caches the results of configure
4528
# tests run on this system so they can be shared between configure
4529
# scripts and configure runs, see configure's option --config-cache.
4530
# It is not useful on other systems.  If it contains results you don't
4531
# want to keep, you may remove or edit it.
4532
#
4533
# config.status only pays attention to the cache file if you give it
4534
# the --recheck option to rerun configure.
4535
#
4536
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4537
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4538
# following values.
4539
 
4540
_ACEOF
4541
 
4542
# The following way of writing the cache mishandles newlines in values,
4543
# but we know of no workaround that is simple, portable, and efficient.
4544
# So, don't put newlines in cache variables' values.
4545
# Ultrix sh set writes to stderr and can't be redirected directly,
4546
# and sets the high bit in the cache file unless we assign to the vars.
4547
{
4548
  (set) 2>&1 |
4549
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4550
    *ac_space=\ *)
4551
      # `set' does not quote correctly, so add quotes (double-quote
4552
      # substitution turns \\\\ into \\, and sed turns \\ into \).
4553
      sed -n \
4554
        "s/'/'\\\\''/g;
4555
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4556
      ;;
4557
    *)
4558
      # `set' quotes correctly as required by POSIX, so do not add quotes.
4559
      sed -n \
4560
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4561
      ;;
4562
    esac;
4563
} |
4564
  sed '
4565
     t clear
4566
     : clear
4567
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4568
     t end
4569
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4570
     : end' >>confcache
4571
if diff $cache_file confcache >/dev/null 2>&1; then :; else
4572
  if test -w $cache_file; then
4573
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4574
    cat confcache >$cache_file
4575
  else
4576
    echo "not updating unwritable cache $cache_file"
4577
  fi
4578
fi
4579
rm -f confcache
4580
 
4581
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4582
# Let make expand exec_prefix.
4583
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4584
 
4585
# VPATH may cause trouble with some makes, so we remove $(srcdir),
4586
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4587
# trailing colons and then remove the whole line if VPATH becomes empty
4588
# (actually we leave an empty line to preserve line numbers).
4589
if test "x$srcdir" = x.; then
4590
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
4591
s/:*\$(srcdir):*/:/;
4592
s/:*\${srcdir}:*/:/;
4593
s/:*@srcdir@:*/:/;
4594
s/^\([^=]*=[     ]*\):*/\1/;
4595
s/:*$//;
4596
s/^[^=]*=[       ]*$//;
4597
}'
4598
fi
4599
 
4600
DEFS=-DHAVE_CONFIG_H
4601
 
4602
ac_libobjs=
4603
ac_ltlibobjs=
4604
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4605
  # 1. Remove the extension, and $U if already installed.
4606
  ac_i=`echo "$ac_i" |
4607
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4608
  # 2. Add them.
4609
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4610
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4611
done
4612
LIBOBJS=$ac_libobjs
4613
 
4614
LTLIBOBJS=$ac_ltlibobjs
4615
 
4616
 
4617
 
4618
: ${CONFIG_STATUS=./config.status}
4619
ac_clean_files_save=$ac_clean_files
4620
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4621
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4622
echo "$as_me: creating $CONFIG_STATUS" >&6;}
4623
cat >$CONFIG_STATUS <<_ACEOF
4624
#! $SHELL
4625
# Generated by $as_me.
4626
# Run this file to recreate the current configuration.
4627
# Compiler output produced by configure, useful for debugging
4628
# configure, is in config.log if it exists.
4629
 
4630
debug=false
4631
ac_cs_recheck=false
4632
ac_cs_silent=false
4633
SHELL=\${CONFIG_SHELL-$SHELL}
4634
_ACEOF
4635
 
4636
cat >>$CONFIG_STATUS <<\_ACEOF
4637
## --------------------- ##
4638
## M4sh Initialization.  ##
4639
## --------------------- ##
4640
 
4641
# Be Bourne compatible
4642
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4643
  emulate sh
4644
  NULLCMD=:
4645
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4646
  # is contrary to our usage.  Disable this feature.
4647
  alias -g '${1+"$@"}'='"$@"'
4648
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4649
  set -o posix
4650
fi
4651
DUALCASE=1; export DUALCASE # for MKS sh
4652
 
4653
# Support unset when possible.
4654
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4655
  as_unset=unset
4656
else
4657
  as_unset=false
4658
fi
4659
 
4660
 
4661
# Work around bugs in pre-3.0 UWIN ksh.
4662
$as_unset ENV MAIL MAILPATH
4663
PS1='$ '
4664
PS2='> '
4665
PS4='+ '
4666
 
4667
# NLS nuisances.
4668
for as_var in \
4669
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4670
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4671
  LC_TELEPHONE LC_TIME
4672
do
4673
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4674
    eval $as_var=C; export $as_var
4675
  else
4676
    $as_unset $as_var
4677
  fi
4678
done
4679
 
4680
# Required to use basename.
4681
if expr a : '\(a\)' >/dev/null 2>&1; then
4682
  as_expr=expr
4683
else
4684
  as_expr=false
4685
fi
4686
 
4687
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4688
  as_basename=basename
4689
else
4690
  as_basename=false
4691
fi
4692
 
4693
 
4694
# Name of the executable.
4695
as_me=`$as_basename "$0" ||
4696
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4697
         X"$0" : 'X\(//\)$' \| \
4698
         X"$0" : 'X\(/\)$' \| \
4699
         .     : '\(.\)' 2>/dev/null ||
4700
echo X/"$0" |
4701
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4702
          /^X\/\(\/\/\)$/{ s//\1/; q; }
4703
          /^X\/\(\/\).*/{ s//\1/; q; }
4704
          s/.*/./; q'`
4705
 
4706
 
4707
# PATH needs CR, and LINENO needs CR and PATH.
4708
# Avoid depending upon Character Ranges.
4709
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4710
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4711
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4712
as_cr_digits='0123456789'
4713
as_cr_alnum=$as_cr_Letters$as_cr_digits
4714
 
4715
# The user is always right.
4716
if test "${PATH_SEPARATOR+set}" != set; then
4717
  echo "#! /bin/sh" >conf$$.sh
4718
  echo  "exit 0"   >>conf$$.sh
4719
  chmod +x conf$$.sh
4720
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4721
    PATH_SEPARATOR=';'
4722
  else
4723
    PATH_SEPARATOR=:
4724
  fi
4725
  rm -f conf$$.sh
4726
fi
4727
 
4728
 
4729
  as_lineno_1=$LINENO
4730
  as_lineno_2=$LINENO
4731
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4732
  test "x$as_lineno_1" != "x$as_lineno_2" &&
4733
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4734
  # Find who we are.  Look in the path if we contain no path at all
4735
  # relative or not.
4736
  case $0 in
4737
    *[\\/]* ) as_myself=$0 ;;
4738
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739
for as_dir in $PATH
4740
do
4741
  IFS=$as_save_IFS
4742
  test -z "$as_dir" && as_dir=.
4743
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4744
done
4745
 
4746
       ;;
4747
  esac
4748
  # We did not find ourselves, most probably we were run as `sh COMMAND'
4749
  # in which case we are not to be found in the path.
4750
  if test "x$as_myself" = x; then
4751
    as_myself=$0
4752
  fi
4753
  if test ! -f "$as_myself"; then
4754
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4755
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4756
   { (exit 1); exit 1; }; }
4757
  fi
4758
  case $CONFIG_SHELL in
4759
  '')
4760
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4762
do
4763
  IFS=$as_save_IFS
4764
  test -z "$as_dir" && as_dir=.
4765
  for as_base in sh bash ksh sh5; do
4766
         case $as_dir in
4767
         /*)
4768
           if ("$as_dir/$as_base" -c '
4769
  as_lineno_1=$LINENO
4770
  as_lineno_2=$LINENO
4771
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4772
  test "x$as_lineno_1" != "x$as_lineno_2" &&
4773
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4774
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4775
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4776
             CONFIG_SHELL=$as_dir/$as_base
4777
             export CONFIG_SHELL
4778
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4779
           fi;;
4780
         esac
4781
       done
4782
done
4783
;;
4784
  esac
4785
 
4786
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4787
  # uniformly replaced by the line number.  The first 'sed' inserts a
4788
  # line-number line before each line; the second 'sed' does the real
4789
  # work.  The second script uses 'N' to pair each line-number line
4790
  # with the numbered line, and appends trailing '-' during
4791
  # substitution so that $LINENO is not a special case at line end.
4792
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4793
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4794
  sed '=' <$as_myself |
4795
    sed '
4796
      N
4797
      s,$,-,
4798
      : loop
4799
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4800
      t loop
4801
      s,-$,,
4802
      s,^['$as_cr_digits']*\n,,
4803
    ' >$as_me.lineno &&
4804
  chmod +x $as_me.lineno ||
4805
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4806
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4807
   { (exit 1); exit 1; }; }
4808
 
4809
  # Don't try to exec as it changes $[0], causing all sort of problems
4810
  # (the dirname of $[0] is not the place where we might find the
4811
  # original and so on.  Autoconf is especially sensible to this).
4812
  . ./$as_me.lineno
4813
  # Exit status is that of the last command.
4814
  exit
4815
}
4816
 
4817
 
4818
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4819
  *c*,-n*) ECHO_N= ECHO_C='
4820
' ECHO_T='      ' ;;
4821
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4822
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4823
esac
4824
 
4825
if expr a : '\(a\)' >/dev/null 2>&1; then
4826
  as_expr=expr
4827
else
4828
  as_expr=false
4829
fi
4830
 
4831
rm -f conf$$ conf$$.exe conf$$.file
4832
echo >conf$$.file
4833
if ln -s conf$$.file conf$$ 2>/dev/null; then
4834
  # We could just check for DJGPP; but this test a) works b) is more generic
4835
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4836
  if test -f conf$$.exe; then
4837
    # Don't use ln at all; we don't have any links
4838
    as_ln_s='cp -p'
4839
  else
4840
    as_ln_s='ln -s'
4841
  fi
4842
elif ln conf$$.file conf$$ 2>/dev/null; then
4843
  as_ln_s=ln
4844
else
4845
  as_ln_s='cp -p'
4846
fi
4847
rm -f conf$$ conf$$.exe conf$$.file
4848
 
4849
if mkdir -p . 2>/dev/null; then
4850
  as_mkdir_p=:
4851
else
4852
  test -d ./-p && rmdir ./-p
4853
  as_mkdir_p=false
4854
fi
4855
 
4856
as_executable_p="test -f"
4857
 
4858
# Sed expression to map a string onto a valid CPP name.
4859
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4860
 
4861
# Sed expression to map a string onto a valid variable name.
4862
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4863
 
4864
 
4865
# IFS
4866
# We need space, tab and new line, in precisely that order.
4867
as_nl='
4868
'
4869
IFS="   $as_nl"
4870
 
4871
# CDPATH.
4872
$as_unset CDPATH
4873
 
4874
exec 6>&1
4875
 
4876
# Open the log real soon, to keep \$[0] and so on meaningful, and to
4877
# report actual input values of CONFIG_FILES etc. instead of their
4878
# values after options handling.  Logging --version etc. is OK.
4879
exec 5>>config.log
4880
{
4881
  echo
4882
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4883
## Running $as_me. ##
4884
_ASBOX
4885
} >&5
4886
cat >&5 <<_CSEOF
4887
 
4888
This file was extended by $as_me, which was
4889
generated by GNU Autoconf 2.59.  Invocation command line was
4890
 
4891
  CONFIG_FILES    = $CONFIG_FILES
4892
  CONFIG_HEADERS  = $CONFIG_HEADERS
4893
  CONFIG_LINKS    = $CONFIG_LINKS
4894
  CONFIG_COMMANDS = $CONFIG_COMMANDS
4895
  $ $0 $@
4896
 
4897
_CSEOF
4898
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4899
echo >&5
4900
_ACEOF
4901
 
4902
# Files that config.status was made for.
4903
if test -n "$ac_config_files"; then
4904
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4905
fi
4906
 
4907
if test -n "$ac_config_headers"; then
4908
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4909
fi
4910
 
4911
if test -n "$ac_config_links"; then
4912
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4913
fi
4914
 
4915
if test -n "$ac_config_commands"; then
4916
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4917
fi
4918
 
4919
cat >>$CONFIG_STATUS <<\_ACEOF
4920
 
4921
ac_cs_usage="\
4922
\`$as_me' instantiates files from templates according to the
4923
current configuration.
4924
 
4925
Usage: $0 [OPTIONS] [FILE]...
4926
 
4927
  -h, --help       print this help, then exit
4928
  -V, --version    print version number, then exit
4929
  -q, --quiet      do not print progress messages
4930
  -d, --debug      don't remove temporary files
4931
      --recheck    update $as_me by reconfiguring in the same conditions
4932
  --file=FILE[:TEMPLATE]
4933
                   instantiate the configuration file FILE
4934
  --header=FILE[:TEMPLATE]
4935
                   instantiate the configuration header FILE
4936
 
4937
Configuration files:
4938
$config_files
4939
 
4940
Configuration headers:
4941
$config_headers
4942
 
4943
Configuration links:
4944
$config_links
4945
 
4946
Configuration commands:
4947
$config_commands
4948
 
4949
Report bugs to ."
4950
_ACEOF
4951
 
4952
cat >>$CONFIG_STATUS <<_ACEOF
4953
ac_cs_version="\\
4954
config.status
4955
configured by $0, generated by GNU Autoconf 2.59,
4956
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4957
 
4958
Copyright (C) 2003 Free Software Foundation, Inc.
4959
This config.status script is free software; the Free Software Foundation
4960
gives unlimited permission to copy, distribute and modify it."
4961
srcdir=$srcdir
4962
INSTALL="$INSTALL"
4963
_ACEOF
4964
 
4965
cat >>$CONFIG_STATUS <<\_ACEOF
4966
# If no file are specified by the user, then we need to provide default
4967
# value.  By we need to know if files were specified by the user.
4968
ac_need_defaults=:
4969
while test $# != 0
4970
do
4971
  case $1 in
4972
  --*=*)
4973
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4974
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4975
    ac_shift=:
4976
    ;;
4977
  -*)
4978
    ac_option=$1
4979
    ac_optarg=$2
4980
    ac_shift=shift
4981
    ;;
4982
  *) # This is not an option, so the user has probably given explicit
4983
     # arguments.
4984
     ac_option=$1
4985
     ac_need_defaults=false;;
4986
  esac
4987
 
4988
  case $ac_option in
4989
  # Handling of the options.
4990
_ACEOF
4991
cat >>$CONFIG_STATUS <<\_ACEOF
4992
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4993
    ac_cs_recheck=: ;;
4994
  --version | --vers* | -V )
4995
    echo "$ac_cs_version"; exit 0 ;;
4996
  --he | --h)
4997
    # Conflict between --help and --header
4998
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4999
Try \`$0 --help' for more information." >&5
5000
echo "$as_me: error: ambiguous option: $1
5001
Try \`$0 --help' for more information." >&2;}
5002
   { (exit 1); exit 1; }; };;
5003
  --help | --hel | -h )
5004
    echo "$ac_cs_usage"; exit 0 ;;
5005
  --debug | --d* | -d )
5006
    debug=: ;;
5007
  --file | --fil | --fi | --f )
5008
    $ac_shift
5009
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5010
    ac_need_defaults=false;;
5011
  --header | --heade | --head | --hea )
5012
    $ac_shift
5013
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5014
    ac_need_defaults=false;;
5015
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5016
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5017
    ac_cs_silent=: ;;
5018
 
5019
  # This is an error.
5020
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5021
Try \`$0 --help' for more information." >&5
5022
echo "$as_me: error: unrecognized option: $1
5023
Try \`$0 --help' for more information." >&2;}
5024
   { (exit 1); exit 1; }; } ;;
5025
 
5026
  *) ac_config_targets="$ac_config_targets $1" ;;
5027
 
5028
  esac
5029
  shift
5030
done
5031
 
5032
ac_configure_extra_args=
5033
 
5034
if $ac_cs_silent; then
5035
  exec 6>/dev/null
5036
  ac_configure_extra_args="$ac_configure_extra_args --silent"
5037
fi
5038
 
5039
_ACEOF
5040
cat >>$CONFIG_STATUS <<_ACEOF
5041
if \$ac_cs_recheck; then
5042
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5043
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5044
fi
5045
 
5046
_ACEOF
5047
 
5048
 
5049
 
5050
 
5051
 
5052
cat >>$CONFIG_STATUS <<\_ACEOF
5053
for ac_config_target in $ac_config_targets
5054
do
5055
  case "$ac_config_target" in
5056
  # Handling of arguments.
5057
  "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5058
  "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5059
  ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5060
  "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
5061
  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5062
  "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
5063
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5064
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5065
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5066
   { (exit 1); exit 1; }; };;
5067
  esac
5068
done
5069
 
5070
# If the user did not use the arguments to specify the items to instantiate,
5071
# then the envvar interface is used.  Set only those that are not.
5072
# We use the long form for the default assignment because of an extremely
5073
# bizarre bug on SunOS 4.1.3.
5074
if $ac_need_defaults; then
5075
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5076
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5077
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5078
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5079
fi
5080
 
5081
# Have a temporary directory for convenience.  Make it in the build tree
5082
# simply because there is no reason to put it here, and in addition,
5083
# creating and moving files from /tmp can sometimes cause problems.
5084
# Create a temporary directory, and hook for its removal unless debugging.
5085
$debug ||
5086
{
5087
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5088
  trap '{ (exit 1); exit 1; }' 1 2 13 15
5089
}
5090
 
5091
# Create a (secure) tmp directory for tmp files.
5092
 
5093
{
5094
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5095
  test -n "$tmp" && test -d "$tmp"
5096
}  ||
5097
{
5098
  tmp=./confstat$$-$RANDOM
5099
  (umask 077 && mkdir $tmp)
5100
} ||
5101
{
5102
   echo "$me: cannot create a temporary directory in ." >&2
5103
   { (exit 1); exit 1; }
5104
}
5105
 
5106
_ACEOF
5107
 
5108
cat >>$CONFIG_STATUS <<_ACEOF
5109
 
5110
#
5111
# CONFIG_FILES section.
5112
#
5113
 
5114
# No need to generate the scripts if there are no CONFIG_FILES.
5115
# This happens for instance when ./config.status config.h
5116
if test -n "\$CONFIG_FILES"; then
5117
  # Protect against being on the right side of a sed subst in config.status.
5118
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5119
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5120
s,@SHELL@,$SHELL,;t t
5121
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5122
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5123
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5124
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5125
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5126
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5127
s,@exec_prefix@,$exec_prefix,;t t
5128
s,@prefix@,$prefix,;t t
5129
s,@program_transform_name@,$program_transform_name,;t t
5130
s,@bindir@,$bindir,;t t
5131
s,@sbindir@,$sbindir,;t t
5132
s,@libexecdir@,$libexecdir,;t t
5133
s,@datadir@,$datadir,;t t
5134
s,@sysconfdir@,$sysconfdir,;t t
5135
s,@sharedstatedir@,$sharedstatedir,;t t
5136
s,@localstatedir@,$localstatedir,;t t
5137
s,@libdir@,$libdir,;t t
5138
s,@includedir@,$includedir,;t t
5139
s,@oldincludedir@,$oldincludedir,;t t
5140
s,@infodir@,$infodir,;t t
5141
s,@mandir@,$mandir,;t t
5142
s,@build_alias@,$build_alias,;t t
5143
s,@host_alias@,$host_alias,;t t
5144
s,@target_alias@,$target_alias,;t t
5145
s,@DEFS@,$DEFS,;t t
5146
s,@ECHO_C@,$ECHO_C,;t t
5147
s,@ECHO_N@,$ECHO_N,;t t
5148
s,@ECHO_T@,$ECHO_T,;t t
5149
s,@LIBS@,$LIBS,;t t
5150
s,@sim_environment@,$sim_environment,;t t
5151
s,@sim_alignment@,$sim_alignment,;t t
5152
s,@sim_assert@,$sim_assert,;t t
5153
s,@sim_bitsize@,$sim_bitsize,;t t
5154
s,@sim_endian@,$sim_endian,;t t
5155
s,@sim_hostendian@,$sim_hostendian,;t t
5156
s,@sim_float@,$sim_float,;t t
5157
s,@sim_scache@,$sim_scache,;t t
5158
s,@sim_default_model@,$sim_default_model,;t t
5159
s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5160
s,@sim_hw_objs@,$sim_hw_objs,;t t
5161
s,@sim_hw@,$sim_hw,;t t
5162
s,@sim_inline@,$sim_inline,;t t
5163
s,@sim_packages@,$sim_packages,;t t
5164
s,@sim_regparm@,$sim_regparm,;t t
5165
s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5166
s,@sim_smp@,$sim_smp,;t t
5167
s,@sim_stdcall@,$sim_stdcall,;t t
5168
s,@sim_xor_endian@,$sim_xor_endian,;t t
5169
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
5170
s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
5171
s,@build@,$build,;t t
5172
s,@build_cpu@,$build_cpu,;t t
5173
s,@build_vendor@,$build_vendor,;t t
5174
s,@build_os@,$build_os,;t t
5175
s,@host@,$host,;t t
5176
s,@host_cpu@,$host_cpu,;t t
5177
s,@host_vendor@,$host_vendor,;t t
5178
s,@host_os@,$host_os,;t t
5179
s,@target@,$target,;t t
5180
s,@target_cpu@,$target_cpu,;t t
5181
s,@target_vendor@,$target_vendor,;t t
5182
s,@target_os@,$target_os,;t t
5183
s,@CC@,$CC,;t t
5184
s,@CFLAGS@,$CFLAGS,;t t
5185
s,@LDFLAGS@,$LDFLAGS,;t t
5186
s,@CPPFLAGS@,$CPPFLAGS,;t t
5187
s,@ac_ct_CC@,$ac_ct_CC,;t t
5188
s,@EXEEXT@,$EXEEXT,;t t
5189
s,@OBJEXT@,$OBJEXT,;t t
5190
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5191
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5192
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5193
s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
5194
s,@HDEFINES@,$HDEFINES,;t t
5195
s,@AR@,$AR,;t t
5196
s,@RANLIB@,$RANLIB,;t t
5197
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5198
s,@USE_NLS@,$USE_NLS,;t t
5199
s,@LIBINTL@,$LIBINTL,;t t
5200
s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
5201
s,@INCINTL@,$INCINTL,;t t
5202
s,@XGETTEXT@,$XGETTEXT,;t t
5203
s,@GMSGFMT@,$GMSGFMT,;t t
5204
s,@POSUB@,$POSUB,;t t
5205
s,@CATALOGS@,$CATALOGS,;t t
5206
s,@DATADIRNAME@,$DATADIRNAME,;t t
5207
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
5208
s,@GENCAT@,$GENCAT,;t t
5209
s,@CATOBJEXT@,$CATOBJEXT,;t t
5210
s,@CPP@,$CPP,;t t
5211
s,@EGREP@,$EGREP,;t t
5212
s,@MAINT@,$MAINT,;t t
5213
s,@sim_bswap@,$sim_bswap,;t t
5214
s,@sim_cflags@,$sim_cflags,;t t
5215
s,@sim_debug@,$sim_debug,;t t
5216
s,@sim_stdio@,$sim_stdio,;t t
5217
s,@sim_trace@,$sim_trace,;t t
5218
s,@sim_profile@,$sim_profile,;t t
5219
s,@COPRO@,$COPRO,;t t
5220
s,@cgen_breaks@,$cgen_breaks,;t t
5221
s,@LIBOBJS@,$LIBOBJS,;t t
5222
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5223
CEOF
5224
 
5225
_ACEOF
5226
 
5227
  cat >>$CONFIG_STATUS <<\_ACEOF
5228
  # Split the substitutions into bite-sized pieces for seds with
5229
  # small command number limits, like on Digital OSF/1 and HP-UX.
5230
  ac_max_sed_lines=48
5231
  ac_sed_frag=1 # Number of current file.
5232
  ac_beg=1 # First line for current file.
5233
  ac_end=$ac_max_sed_lines # Line after last line for current file.
5234
  ac_more_lines=:
5235
  ac_sed_cmds=
5236
  while $ac_more_lines; do
5237
    if test $ac_beg -gt 1; then
5238
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5239
    else
5240
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5241
    fi
5242
    if test ! -s $tmp/subs.frag; then
5243
      ac_more_lines=false
5244
    else
5245
      # The purpose of the label and of the branching condition is to
5246
      # speed up the sed processing (if there are no `@' at all, there
5247
      # is no need to browse any of the substitutions).
5248
      # These are the two extra sed commands mentioned above.
5249
      (echo ':t
5250
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5251
      if test -z "$ac_sed_cmds"; then
5252
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5253
      else
5254
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5255
      fi
5256
      ac_sed_frag=`expr $ac_sed_frag + 1`
5257
      ac_beg=$ac_end
5258
      ac_end=`expr $ac_end + $ac_max_sed_lines`
5259
    fi
5260
  done
5261
  if test -z "$ac_sed_cmds"; then
5262
    ac_sed_cmds=cat
5263
  fi
5264
fi # test -n "$CONFIG_FILES"
5265
 
5266
_ACEOF
5267
cat >>$CONFIG_STATUS <<\_ACEOF
5268
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5269
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5270
  case $ac_file in
5271
  - | *:- | *:-:* ) # input from stdin
5272
        cat >$tmp/stdin
5273
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5274
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5275
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5276
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5277
  * )   ac_file_in=$ac_file.in ;;
5278
  esac
5279
 
5280
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5281
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5282
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5283
         X"$ac_file" : 'X\(//\)[^/]' \| \
5284
         X"$ac_file" : 'X\(//\)$' \| \
5285
         X"$ac_file" : 'X\(/\)' \| \
5286
         .     : '\(.\)' 2>/dev/null ||
5287
echo X"$ac_file" |
5288
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5289
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5290
          /^X\(\/\/\)$/{ s//\1/; q; }
5291
          /^X\(\/\).*/{ s//\1/; q; }
5292
          s/.*/./; q'`
5293
  { if $as_mkdir_p; then
5294
    mkdir -p "$ac_dir"
5295
  else
5296
    as_dir="$ac_dir"
5297
    as_dirs=
5298
    while test ! -d "$as_dir"; do
5299
      as_dirs="$as_dir $as_dirs"
5300
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5301
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5302
         X"$as_dir" : 'X\(//\)[^/]' \| \
5303
         X"$as_dir" : 'X\(//\)$' \| \
5304
         X"$as_dir" : 'X\(/\)' \| \
5305
         .     : '\(.\)' 2>/dev/null ||
5306
echo X"$as_dir" |
5307
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5308
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5309
          /^X\(\/\/\)$/{ s//\1/; q; }
5310
          /^X\(\/\).*/{ s//\1/; q; }
5311
          s/.*/./; q'`
5312
    done
5313
    test ! -n "$as_dirs" || mkdir $as_dirs
5314
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5315
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5316
   { (exit 1); exit 1; }; }; }
5317
 
5318
  ac_builddir=.
5319
 
5320
if test "$ac_dir" != .; then
5321
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5322
  # A "../" for each directory in $ac_dir_suffix.
5323
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5324
else
5325
  ac_dir_suffix= ac_top_builddir=
5326
fi
5327
 
5328
case $srcdir in
5329
  .)  # No --srcdir option.  We are building in place.
5330
    ac_srcdir=.
5331
    if test -z "$ac_top_builddir"; then
5332
       ac_top_srcdir=.
5333
    else
5334
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5335
    fi ;;
5336
  [\\/]* | ?:[\\/]* )  # Absolute path.
5337
    ac_srcdir=$srcdir$ac_dir_suffix;
5338
    ac_top_srcdir=$srcdir ;;
5339
  *) # Relative path.
5340
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5341
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5342
esac
5343
 
5344
# Do not use `cd foo && pwd` to compute absolute paths, because
5345
# the directories may not exist.
5346
case `pwd` in
5347
.) ac_abs_builddir="$ac_dir";;
5348
*)
5349
  case "$ac_dir" in
5350
  .) ac_abs_builddir=`pwd`;;
5351
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5352
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5353
  esac;;
5354
esac
5355
case $ac_abs_builddir in
5356
.) ac_abs_top_builddir=${ac_top_builddir}.;;
5357
*)
5358
  case ${ac_top_builddir}. in
5359
  .) ac_abs_top_builddir=$ac_abs_builddir;;
5360
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5361
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5362
  esac;;
5363
esac
5364
case $ac_abs_builddir in
5365
.) ac_abs_srcdir=$ac_srcdir;;
5366
*)
5367
  case $ac_srcdir in
5368
  .) ac_abs_srcdir=$ac_abs_builddir;;
5369
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5370
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5371
  esac;;
5372
esac
5373
case $ac_abs_builddir in
5374
.) ac_abs_top_srcdir=$ac_top_srcdir;;
5375
*)
5376
  case $ac_top_srcdir in
5377
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5378
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5379
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5380
  esac;;
5381
esac
5382
 
5383
 
5384
  case $INSTALL in
5385
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5386
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5387
  esac
5388
 
5389
  if test x"$ac_file" != x-; then
5390
    { echo "$as_me:$LINENO: creating $ac_file" >&5
5391
echo "$as_me: creating $ac_file" >&6;}
5392
    rm -f "$ac_file"
5393
  fi
5394
  # Let's still pretend it is `configure' which instantiates (i.e., don't
5395
  # use $as_me), people would be surprised to read:
5396
  #    /* config.h.  Generated by config.status.  */
5397
  if test x"$ac_file" = x-; then
5398
    configure_input=
5399
  else
5400
    configure_input="$ac_file.  "
5401
  fi
5402
  configure_input=$configure_input"Generated from `echo $ac_file_in |
5403
                                     sed 's,.*/,,'` by configure."
5404
 
5405
  # First look for the input files in the build tree, otherwise in the
5406
  # src tree.
5407
  ac_file_inputs=`IFS=:
5408
    for f in $ac_file_in; do
5409
      case $f in
5410
      -) echo $tmp/stdin ;;
5411
      [\\/$]*)
5412
         # Absolute (can't be DOS-style, as IFS=:)
5413
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5414
echo "$as_me: error: cannot find input file: $f" >&2;}
5415
   { (exit 1); exit 1; }; }
5416
         echo "$f";;
5417
      *) # Relative
5418
         if test -f "$f"; then
5419
           # Build tree
5420
           echo "$f"
5421
         elif test -f "$srcdir/$f"; then
5422
           # Source tree
5423
           echo "$srcdir/$f"
5424
         else
5425
           # /dev/null tree
5426
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5427
echo "$as_me: error: cannot find input file: $f" >&2;}
5428
   { (exit 1); exit 1; }; }
5429
         fi;;
5430
      esac
5431
    done` || { (exit 1); exit 1; }
5432
_ACEOF
5433
cat >>$CONFIG_STATUS <<_ACEOF
5434
  sed "$ac_vpsub
5435
$extrasub
5436
_ACEOF
5437
cat >>$CONFIG_STATUS <<\_ACEOF
5438
:t
5439
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5440
s,@configure_input@,$configure_input,;t t
5441
s,@srcdir@,$ac_srcdir,;t t
5442
s,@abs_srcdir@,$ac_abs_srcdir,;t t
5443
s,@top_srcdir@,$ac_top_srcdir,;t t
5444
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5445
s,@builddir@,$ac_builddir,;t t
5446
s,@abs_builddir@,$ac_abs_builddir,;t t
5447
s,@top_builddir@,$ac_top_builddir,;t t
5448
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5449
s,@INSTALL@,$ac_INSTALL,;t t
5450
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5451
  rm -f $tmp/stdin
5452
  if test x"$ac_file" != x-; then
5453
    mv $tmp/out $ac_file
5454
  else
5455
    cat $tmp/out
5456
    rm -f $tmp/out
5457
  fi
5458
 
5459
done
5460
_ACEOF
5461
cat >>$CONFIG_STATUS <<\_ACEOF
5462
 
5463
#
5464
# CONFIG_HEADER section.
5465
#
5466
 
5467
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5468
# NAME is the cpp macro being defined and VALUE is the value it is being given.
5469
#
5470
# ac_d sets the value in "#define NAME VALUE" lines.
5471
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
5472
ac_dB='[         ].*$,\1#\2'
5473
ac_dC=' '
5474
ac_dD=',;t'
5475
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5476
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5477
ac_uB='$,\1#\2define\3'
5478
ac_uC=' '
5479
ac_uD=',;t'
5480
 
5481
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5482
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5483
  case $ac_file in
5484
  - | *:- | *:-:* ) # input from stdin
5485
        cat >$tmp/stdin
5486
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5487
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5488
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5489
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5490
  * )   ac_file_in=$ac_file.in ;;
5491
  esac
5492
 
5493
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5494
echo "$as_me: creating $ac_file" >&6;}
5495
 
5496
  # First look for the input files in the build tree, otherwise in the
5497
  # src tree.
5498
  ac_file_inputs=`IFS=:
5499
    for f in $ac_file_in; do
5500
      case $f in
5501
      -) echo $tmp/stdin ;;
5502
      [\\/$]*)
5503
         # Absolute (can't be DOS-style, as IFS=:)
5504
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5505
echo "$as_me: error: cannot find input file: $f" >&2;}
5506
   { (exit 1); exit 1; }; }
5507
         # Do quote $f, to prevent DOS paths from being IFS'd.
5508
         echo "$f";;
5509
      *) # Relative
5510
         if test -f "$f"; then
5511
           # Build tree
5512
           echo "$f"
5513
         elif test -f "$srcdir/$f"; then
5514
           # Source tree
5515
           echo "$srcdir/$f"
5516
         else
5517
           # /dev/null tree
5518
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5519
echo "$as_me: error: cannot find input file: $f" >&2;}
5520
   { (exit 1); exit 1; }; }
5521
         fi;;
5522
      esac
5523
    done` || { (exit 1); exit 1; }
5524
  # Remove the trailing spaces.
5525
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
5526
 
5527
_ACEOF
5528
 
5529
# Transform confdefs.h into two sed scripts, `conftest.defines' and
5530
# `conftest.undefs', that substitutes the proper values into
5531
# config.h.in to produce config.h.  The first handles `#define'
5532
# templates, and the second `#undef' templates.
5533
# And first: Protect against being on the right side of a sed subst in
5534
# config.status.  Protect against being in an unquoted here document
5535
# in config.status.
5536
rm -f conftest.defines conftest.undefs
5537
# Using a here document instead of a string reduces the quoting nightmare.
5538
# Putting comments in sed scripts is not portable.
5539
#
5540
# `end' is used to avoid that the second main sed command (meant for
5541
# 0-ary CPP macros) applies to n-ary macro definitions.
5542
# See the Autoconf documentation for `clear'.
5543
cat >confdef2sed.sed <<\_ACEOF
5544
s/[\\&,]/\\&/g
5545
s,[\\$`],\\&,g
5546
t clear
5547
: clear
5548
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5549
t end
5550
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5551
: end
5552
_ACEOF
5553
# If some macros were called several times there might be several times
5554
# the same #defines, which is useless.  Nevertheless, we may not want to
5555
# sort them, since we want the *last* AC-DEFINE to be honored.
5556
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5557
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5558
rm -f confdef2sed.sed
5559
 
5560
# This sed command replaces #undef with comments.  This is necessary, for
5561
# example, in the case of _POSIX_SOURCE, which is predefined and required
5562
# on some systems where configure will not decide to define it.
5563
cat >>conftest.undefs <<\_ACEOF
5564
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5565
_ACEOF
5566
 
5567
# Break up conftest.defines because some shells have a limit on the size
5568
# of here documents, and old seds have small limits too (100 cmds).
5569
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5570
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5571
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5572
echo '  :' >>$CONFIG_STATUS
5573
rm -f conftest.tail
5574
while grep . conftest.defines >/dev/null
5575
do
5576
  # Write a limited-size here document to $tmp/defines.sed.
5577
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
5578
  # Speed up: don't consider the non `#define' lines.
5579
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
5580
  # Work around the forget-to-reset-the-flag bug.
5581
  echo 't clr' >>$CONFIG_STATUS
5582
  echo ': clr' >>$CONFIG_STATUS
5583
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5584
  echo 'CEOF
5585
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
5586
  rm -f $tmp/in
5587
  mv $tmp/out $tmp/in
5588
' >>$CONFIG_STATUS
5589
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5590
  rm -f conftest.defines
5591
  mv conftest.tail conftest.defines
5592
done
5593
rm -f conftest.defines
5594
echo '  fi # grep' >>$CONFIG_STATUS
5595
echo >>$CONFIG_STATUS
5596
 
5597
# Break up conftest.undefs because some shells have a limit on the size
5598
# of here documents, and old seds have small limits too (100 cmds).
5599
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5600
rm -f conftest.tail
5601
while grep . conftest.undefs >/dev/null
5602
do
5603
  # Write a limited-size here document to $tmp/undefs.sed.
5604
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
5605
  # Speed up: don't consider the non `#undef'
5606
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5607
  # Work around the forget-to-reset-the-flag bug.
5608
  echo 't clr' >>$CONFIG_STATUS
5609
  echo ': clr' >>$CONFIG_STATUS
5610
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5611
  echo 'CEOF
5612
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5613
  rm -f $tmp/in
5614
  mv $tmp/out $tmp/in
5615
' >>$CONFIG_STATUS
5616
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5617
  rm -f conftest.undefs
5618
  mv conftest.tail conftest.undefs
5619
done
5620
rm -f conftest.undefs
5621
 
5622
cat >>$CONFIG_STATUS <<\_ACEOF
5623
  # Let's still pretend it is `configure' which instantiates (i.e., don't
5624
  # use $as_me), people would be surprised to read:
5625
  #    /* config.h.  Generated by config.status.  */
5626
  if test x"$ac_file" = x-; then
5627
    echo "/* Generated by configure.  */" >$tmp/config.h
5628
  else
5629
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5630
  fi
5631
  cat $tmp/in >>$tmp/config.h
5632
  rm -f $tmp/in
5633
  if test x"$ac_file" != x-; then
5634
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5635
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5636
echo "$as_me: $ac_file is unchanged" >&6;}
5637
    else
5638
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5639
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5640
         X"$ac_file" : 'X\(//\)[^/]' \| \
5641
         X"$ac_file" : 'X\(//\)$' \| \
5642
         X"$ac_file" : 'X\(/\)' \| \
5643
         .     : '\(.\)' 2>/dev/null ||
5644
echo X"$ac_file" |
5645
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5646
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5647
          /^X\(\/\/\)$/{ s//\1/; q; }
5648
          /^X\(\/\).*/{ s//\1/; q; }
5649
          s/.*/./; q'`
5650
      { if $as_mkdir_p; then
5651
    mkdir -p "$ac_dir"
5652
  else
5653
    as_dir="$ac_dir"
5654
    as_dirs=
5655
    while test ! -d "$as_dir"; do
5656
      as_dirs="$as_dir $as_dirs"
5657
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5658
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5659
         X"$as_dir" : 'X\(//\)[^/]' \| \
5660
         X"$as_dir" : 'X\(//\)$' \| \
5661
         X"$as_dir" : 'X\(/\)' \| \
5662
         .     : '\(.\)' 2>/dev/null ||
5663
echo X"$as_dir" |
5664
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5665
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5666
          /^X\(\/\/\)$/{ s//\1/; q; }
5667
          /^X\(\/\).*/{ s//\1/; q; }
5668
          s/.*/./; q'`
5669
    done
5670
    test ! -n "$as_dirs" || mkdir $as_dirs
5671
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5672
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5673
   { (exit 1); exit 1; }; }; }
5674
 
5675
      rm -f $ac_file
5676
      mv $tmp/config.h $ac_file
5677
    fi
5678
  else
5679
    cat $tmp/config.h
5680
    rm -f $tmp/config.h
5681
  fi
5682
done
5683
_ACEOF
5684
cat >>$CONFIG_STATUS <<\_ACEOF
5685
 
5686
#
5687
# CONFIG_LINKS section.
5688
#
5689
 
5690
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
5691
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5692
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5693
 
5694
  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
5695
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
5696
 
5697
  if test ! -r $srcdir/$ac_source; then
5698
    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
5699
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
5700
   { (exit 1); exit 1; }; }
5701
  fi
5702
  rm -f $ac_dest
5703
 
5704
  # Make relative symlinks.
5705
  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
5706
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5707
         X"$ac_dest" : 'X\(//\)[^/]' \| \
5708
         X"$ac_dest" : 'X\(//\)$' \| \
5709
         X"$ac_dest" : 'X\(/\)' \| \
5710
         .     : '\(.\)' 2>/dev/null ||
5711
echo X"$ac_dest" |
5712
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5713
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5714
          /^X\(\/\/\)$/{ s//\1/; q; }
5715
          /^X\(\/\).*/{ s//\1/; q; }
5716
          s/.*/./; q'`
5717
  { if $as_mkdir_p; then
5718
    mkdir -p "$ac_dest_dir"
5719
  else
5720
    as_dir="$ac_dest_dir"
5721
    as_dirs=
5722
    while test ! -d "$as_dir"; do
5723
      as_dirs="$as_dir $as_dirs"
5724
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5725
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5726
         X"$as_dir" : 'X\(//\)[^/]' \| \
5727
         X"$as_dir" : 'X\(//\)$' \| \
5728
         X"$as_dir" : 'X\(/\)' \| \
5729
         .     : '\(.\)' 2>/dev/null ||
5730
echo X"$as_dir" |
5731
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5732
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5733
          /^X\(\/\/\)$/{ s//\1/; q; }
5734
          /^X\(\/\).*/{ s//\1/; q; }
5735
          s/.*/./; q'`
5736
    done
5737
    test ! -n "$as_dirs" || mkdir $as_dirs
5738
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
5739
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
5740
   { (exit 1); exit 1; }; }; }
5741
 
5742
  ac_builddir=.
5743
 
5744
if test "$ac_dest_dir" != .; then
5745
  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
5746
  # A "../" for each directory in $ac_dir_suffix.
5747
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5748
else
5749
  ac_dir_suffix= ac_top_builddir=
5750
fi
5751
 
5752
case $srcdir in
5753
  .)  # No --srcdir option.  We are building in place.
5754
    ac_srcdir=.
5755
    if test -z "$ac_top_builddir"; then
5756
       ac_top_srcdir=.
5757
    else
5758
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5759
    fi ;;
5760
  [\\/]* | ?:[\\/]* )  # Absolute path.
5761
    ac_srcdir=$srcdir$ac_dir_suffix;
5762
    ac_top_srcdir=$srcdir ;;
5763
  *) # Relative path.
5764
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5765
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5766
esac
5767
 
5768
# Do not use `cd foo && pwd` to compute absolute paths, because
5769
# the directories may not exist.
5770
case `pwd` in
5771
.) ac_abs_builddir="$ac_dest_dir";;
5772
*)
5773
  case "$ac_dest_dir" in
5774
  .) ac_abs_builddir=`pwd`;;
5775
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
5776
  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
5777
  esac;;
5778
esac
5779
case $ac_abs_builddir in
5780
.) ac_abs_top_builddir=${ac_top_builddir}.;;
5781
*)
5782
  case ${ac_top_builddir}. in
5783
  .) ac_abs_top_builddir=$ac_abs_builddir;;
5784
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5785
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5786
  esac;;
5787
esac
5788
case $ac_abs_builddir in
5789
.) ac_abs_srcdir=$ac_srcdir;;
5790
*)
5791
  case $ac_srcdir in
5792
  .) ac_abs_srcdir=$ac_abs_builddir;;
5793
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5794
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5795
  esac;;
5796
esac
5797
case $ac_abs_builddir in
5798
.) ac_abs_top_srcdir=$ac_top_srcdir;;
5799
*)
5800
  case $ac_top_srcdir in
5801
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5802
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5803
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5804
  esac;;
5805
esac
5806
 
5807
 
5808
  case $srcdir in
5809
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
5810
      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
5811
  esac
5812
 
5813
  # Try a symlink, then a hard link, then a copy.
5814
  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5815
    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
5816
    cp -p $srcdir/$ac_source $ac_dest ||
5817
    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
5818
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
5819
   { (exit 1); exit 1; }; }
5820
done
5821
_ACEOF
5822
cat >>$CONFIG_STATUS <<\_ACEOF
5823
 
5824
#
5825
# CONFIG_COMMANDS section.
5826
#
5827
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5828
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5829
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5830
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5831
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5832
         X"$ac_dest" : 'X\(//\)[^/]' \| \
5833
         X"$ac_dest" : 'X\(//\)$' \| \
5834
         X"$ac_dest" : 'X\(/\)' \| \
5835
         .     : '\(.\)' 2>/dev/null ||
5836
echo X"$ac_dest" |
5837
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5838
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5839
          /^X\(\/\/\)$/{ s//\1/; q; }
5840
          /^X\(\/\).*/{ s//\1/; q; }
5841
          s/.*/./; q'`
5842
  { if $as_mkdir_p; then
5843
    mkdir -p "$ac_dir"
5844
  else
5845
    as_dir="$ac_dir"
5846
    as_dirs=
5847
    while test ! -d "$as_dir"; do
5848
      as_dirs="$as_dir $as_dirs"
5849
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5850
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5851
         X"$as_dir" : 'X\(//\)[^/]' \| \
5852
         X"$as_dir" : 'X\(//\)$' \| \
5853
         X"$as_dir" : 'X\(/\)' \| \
5854
         .     : '\(.\)' 2>/dev/null ||
5855
echo X"$as_dir" |
5856
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5857
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5858
          /^X\(\/\/\)$/{ s//\1/; q; }
5859
          /^X\(\/\).*/{ s//\1/; q; }
5860
          s/.*/./; q'`
5861
    done
5862
    test ! -n "$as_dirs" || mkdir $as_dirs
5863
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5864
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5865
   { (exit 1); exit 1; }; }; }
5866
 
5867
  ac_builddir=.
5868
 
5869
if test "$ac_dir" != .; then
5870
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5871
  # A "../" for each directory in $ac_dir_suffix.
5872
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5873
else
5874
  ac_dir_suffix= ac_top_builddir=
5875
fi
5876
 
5877
case $srcdir in
5878
  .)  # No --srcdir option.  We are building in place.
5879
    ac_srcdir=.
5880
    if test -z "$ac_top_builddir"; then
5881
       ac_top_srcdir=.
5882
    else
5883
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5884
    fi ;;
5885
  [\\/]* | ?:[\\/]* )  # Absolute path.
5886
    ac_srcdir=$srcdir$ac_dir_suffix;
5887
    ac_top_srcdir=$srcdir ;;
5888
  *) # Relative path.
5889
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5890
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5891
esac
5892
 
5893
# Do not use `cd foo && pwd` to compute absolute paths, because
5894
# the directories may not exist.
5895
case `pwd` in
5896
.) ac_abs_builddir="$ac_dir";;
5897
*)
5898
  case "$ac_dir" in
5899
  .) ac_abs_builddir=`pwd`;;
5900
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5901
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5902
  esac;;
5903
esac
5904
case $ac_abs_builddir in
5905
.) ac_abs_top_builddir=${ac_top_builddir}.;;
5906
*)
5907
  case ${ac_top_builddir}. in
5908
  .) ac_abs_top_builddir=$ac_abs_builddir;;
5909
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5910
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5911
  esac;;
5912
esac
5913
case $ac_abs_builddir in
5914
.) ac_abs_srcdir=$ac_srcdir;;
5915
*)
5916
  case $ac_srcdir in
5917
  .) ac_abs_srcdir=$ac_abs_builddir;;
5918
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5919
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5920
  esac;;
5921
esac
5922
case $ac_abs_builddir in
5923
.) ac_abs_top_srcdir=$ac_top_srcdir;;
5924
*)
5925
  case $ac_top_srcdir in
5926
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5927
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5928
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5929
  esac;;
5930
esac
5931
 
5932
 
5933
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5934
echo "$as_me: executing $ac_dest commands" >&6;}
5935
  case $ac_dest in
5936
    Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
5937
 rm -f Makesim1.tmp Makesim2.tmp Makefile
5938
 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' Makesim1.tmp
5939
 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' Makesim2.tmp
5940
 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
5941
        -e '/^## COMMON_POST_/ r Makesim2.tmp' \
5942
        Makefile
5943
 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
5944
 ;;
5945
    stamp-h ) echo > stamp-h ;;
5946
  esac
5947
done
5948
_ACEOF
5949
 
5950
cat >>$CONFIG_STATUS <<\_ACEOF
5951
 
5952
{ (exit 0); exit 0; }
5953
_ACEOF
5954
chmod +x $CONFIG_STATUS
5955
ac_clean_files=$ac_clean_files_save
5956
 
5957
 
5958
# configure is writing to config.log, and then calls config.status.
5959
# config.status does its own redirection, appending to config.log.
5960
# Unfortunately, on DOS this fails, as config.log is still kept open
5961
# by configure, so config.status won't be able to write to it; its
5962
# output is simply discarded.  So we exec the FD to /dev/null,
5963
# effectively closing config.log, so it can be properly (re)opened and
5964
# appended to by config.status.  When coming back to configure, we
5965
# need to make the FD available again.
5966
if test "$no_create" != yes; then
5967
  ac_cs_success=:
5968
  ac_config_status_args=
5969
  test "$silent" = yes &&
5970
    ac_config_status_args="$ac_config_status_args --quiet"
5971
  exec 5>/dev/null
5972
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5973
  exec 5>>config.log
5974
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5975
  # would make configure fail if this is the last instruction.
5976
  $ac_cs_success || { (exit 1); exit 1; }
5977
fi
5978
 
5979
 

powered by: WebSVN 2.1.0

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