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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [sim/] [ppc/] [configure] - Blame information for rev 866

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

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

powered by: WebSVN 2.1.0

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