OpenCores
URL https://opencores.org/ocsvn/hf-risc/hf-risc/trunk

Subversion Repositories hf-risc

[/] [hf-risc/] [trunk/] [tools/] [riscv-gnu-toolchain-master/] [configure] - Blame information for rev 13

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 serginhofr
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for riscv-toolchain 1.0.
4
#
5
#
6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7
#
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
as_myself=
91
case $0 in #((
92
  *[\\/]* ) as_myself=$0 ;;
93
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94
for as_dir in $PATH
95
do
96
  IFS=$as_save_IFS
97
  test -z "$as_dir" && as_dir=.
98
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99
  done
100
IFS=$as_save_IFS
101
 
102
     ;;
103
esac
104
# We did not find ourselves, most probably we were run as `sh COMMAND'
105
# in which case we are not to be found in the path.
106
if test "x$as_myself" = x; then
107
  as_myself=$0
108
fi
109
if test ! -f "$as_myself"; then
110
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111
  exit 1
112
fi
113
 
114
# Unset variables that we do not need and which cause bugs (e.g. in
115
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116
# suppresses any "Segmentation fault" message there.  '((' could
117
# trigger a bug in pdksh 5.2.14.
118
for as_var in BASH_ENV ENV MAIL MAILPATH
119
do eval test x\${$as_var+set} = xset \
120
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121
done
122
PS1='$ '
123
PS2='> '
124
PS4='+ '
125
 
126
# NLS nuisances.
127
LC_ALL=C
128
export LC_ALL
129
LANGUAGE=C
130
export LANGUAGE
131
 
132
# CDPATH.
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
 
135
# Use a proper internal environment variable to ensure we don't fall
136
  # into an infinite loop, continuously re-executing ourselves.
137
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
    _as_can_reexec=no; export _as_can_reexec;
139
    # We cannot yet assume a decent shell, so we have to provide a
140
# neutralization value for shells without unset; and this also
141
# works around shells that cannot unset nonexistent variables.
142
# Preserve -v and -x to the replacement shell.
143
BASH_ENV=/dev/null
144
ENV=/dev/null
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146
case $- in # ((((
147
  *v*x* | *x*v* ) as_opts=-vx ;;
148
  *v* ) as_opts=-v ;;
149
  *x* ) as_opts=-x ;;
150
  * ) as_opts= ;;
151
esac
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
# Admittedly, this is quite paranoid, since all the known shells bail
154
# out after a failed `exec'.
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156
as_fn_exit 255
157
  fi
158
  # We don't want this to propagate to other subprocesses.
159
          { _as_can_reexec=; unset _as_can_reexec;}
160
if test "x$CONFIG_SHELL" = x; then
161
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162
  emulate sh
163
  NULLCMD=:
164
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165
  # is contrary to our usage.  Disable this feature.
166
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167
  setopt NO_GLOB_SUBST
168
else
169
  case \`(set -o) 2>/dev/null\` in #(
170
  *posix*) :
171
    set -o posix ;; #(
172
  *) :
173
     ;;
174
esac
175
fi
176
"
177
  as_required="as_fn_return () { (exit \$1); }
178
as_fn_success () { as_fn_return 0; }
179
as_fn_failure () { as_fn_return 1; }
180
as_fn_ret_success () { return 0; }
181
as_fn_ret_failure () { return 1; }
182
 
183
exitcode=0
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
 
190
else
191
  exitcode=1; echo positional parameters were not saved.
192
fi
193
test x\$exitcode = x0 || exit 1
194
test -x / || exit 1"
195
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
test \$(( 1 + 1 )) = 2 || exit 1"
200
  if (eval "$as_required") 2>/dev/null; then :
201
  as_have_required=yes
202
else
203
  as_have_required=no
204
fi
205
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
 
207
else
208
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209
as_found=false
210
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211
do
212
  IFS=$as_save_IFS
213
  test -z "$as_dir" && as_dir=.
214
  as_found=:
215
  case $as_dir in #(
216
         /*)
217
           for as_base in sh bash ksh sh5; do
218
             # Try only shells that exist, to save several forks.
219
             as_shell=$as_dir/$as_base
220
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222
  CONFIG_SHELL=$as_shell as_have_required=yes
223
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224
  break 2
225
fi
226
fi
227
           done;;
228
       esac
229
  as_found=false
230
done
231
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233
  CONFIG_SHELL=$SHELL as_have_required=yes
234
fi; }
235
IFS=$as_save_IFS
236
 
237
 
238
      if test "x$CONFIG_SHELL" != x; then :
239
  export CONFIG_SHELL
240
             # We cannot yet assume a decent shell, so we have to provide a
241
# neutralization value for shells without unset; and this also
242
# works around shells that cannot unset nonexistent variables.
243
# Preserve -v and -x to the replacement shell.
244
BASH_ENV=/dev/null
245
ENV=/dev/null
246
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247
case $- in # ((((
248
  *v*x* | *x*v* ) as_opts=-vx ;;
249
  *v* ) as_opts=-v ;;
250
  *x* ) as_opts=-x ;;
251
  * ) as_opts= ;;
252
esac
253
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254
# Admittedly, this is quite paranoid, since all the known shells bail
255
# out after a failed `exec'.
256
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257
exit 255
258
fi
259
 
260
    if test x$as_have_required = xno; then :
261
  $as_echo "$0: This script requires a shell more modern than all"
262
  $as_echo "$0: the shells that I found on your system."
263
  if test x${ZSH_VERSION+set} = xset ; then
264
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266
  else
267
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268
$0: including any error possibly output before this
269
$0: message. Then install a modern shell, or manually run
270
$0: the script under such a shell if you do have one."
271
  fi
272
  exit 1
273
fi
274
fi
275
fi
276
SHELL=${CONFIG_SHELL-/bin/sh}
277
export SHELL
278
# Unset more variables known to interfere with behavior of common tools.
279
CLICOLOR_FORCE= GREP_OPTIONS=
280
unset CLICOLOR_FORCE GREP_OPTIONS
281
 
282
## --------------------- ##
283
## M4sh Shell Functions. ##
284
## --------------------- ##
285
# as_fn_unset VAR
286
# ---------------
287
# Portably unset VAR.
288
as_fn_unset ()
289
{
290
  { eval $1=; unset $1;}
291
}
292
as_unset=as_fn_unset
293
 
294
# as_fn_set_status STATUS
295
# -----------------------
296
# Set $? to STATUS, without forking.
297
as_fn_set_status ()
298
{
299
  return $1
300
} # as_fn_set_status
301
 
302
# as_fn_exit STATUS
303
# -----------------
304
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305
as_fn_exit ()
306
{
307
  set +e
308
  as_fn_set_status $1
309
  exit $1
310
} # as_fn_exit
311
 
312
# as_fn_mkdir_p
313
# -------------
314
# Create "$as_dir" as a directory, including parents if necessary.
315
as_fn_mkdir_p ()
316
{
317
 
318
  case $as_dir in #(
319
  -*) as_dir=./$as_dir;;
320
  esac
321
  test -d "$as_dir" || eval $as_mkdir_p || {
322
    as_dirs=
323
    while :; do
324
      case $as_dir in #(
325
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326
      *) as_qdir=$as_dir;;
327
      esac
328
      as_dirs="'$as_qdir' $as_dirs"
329
      as_dir=`$as_dirname -- "$as_dir" ||
330
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331
         X"$as_dir" : 'X\(//\)[^/]' \| \
332
         X"$as_dir" : 'X\(//\)$' \| \
333
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334
$as_echo X"$as_dir" |
335
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336
            s//\1/
337
            q
338
          }
339
          /^X\(\/\/\)[^/].*/{
340
            s//\1/
341
            q
342
          }
343
          /^X\(\/\/\)$/{
344
            s//\1/
345
            q
346
          }
347
          /^X\(\/\).*/{
348
            s//\1/
349
            q
350
          }
351
          s/.*/./; q'`
352
      test -d "$as_dir" && break
353
    done
354
    test -z "$as_dirs" || eval "mkdir $as_dirs"
355
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
 
357
 
358
} # as_fn_mkdir_p
359
 
360
# as_fn_executable_p FILE
361
# -----------------------
362
# Test if FILE is an executable regular file.
363
as_fn_executable_p ()
364
{
365
  test -f "$1" && test -x "$1"
366
} # as_fn_executable_p
367
# as_fn_append VAR VALUE
368
# ----------------------
369
# Append the text in VALUE to the end of the definition contained in VAR. Take
370
# advantage of any shell optimizations that allow amortized linear growth over
371
# repeated appends, instead of the typical quadratic growth present in naive
372
# implementations.
373
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374
  eval 'as_fn_append ()
375
  {
376
    eval $1+=\$2
377
  }'
378
else
379
  as_fn_append ()
380
  {
381
    eval $1=\$$1\$2
382
  }
383
fi # as_fn_append
384
 
385
# as_fn_arith ARG...
386
# ------------------
387
# Perform arithmetic evaluation on the ARGs, and store the result in the
388
# global $as_val. Take advantage of shells that can avoid forks. The arguments
389
# must be portable across $(()) and expr.
390
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391
  eval 'as_fn_arith ()
392
  {
393
    as_val=$(( $* ))
394
  }'
395
else
396
  as_fn_arith ()
397
  {
398
    as_val=`expr "$@" || test $? -eq 1`
399
  }
400
fi # as_fn_arith
401
 
402
 
403
# as_fn_error STATUS ERROR [LINENO LOG_FD]
404
# ----------------------------------------
405
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407
# script with STATUS, using 1 if that was 0.
408
as_fn_error ()
409
{
410
  as_status=$1; test $as_status -eq 0 && as_status=1
411
  if test "$4"; then
412
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414
  fi
415
  $as_echo "$as_me: error: $2" >&2
416
  as_fn_exit $as_status
417
} # as_fn_error
418
 
419
if expr a : '\(a\)' >/dev/null 2>&1 &&
420
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421
  as_expr=expr
422
else
423
  as_expr=false
424
fi
425
 
426
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427
  as_basename=basename
428
else
429
  as_basename=false
430
fi
431
 
432
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433
  as_dirname=dirname
434
else
435
  as_dirname=false
436
fi
437
 
438
as_me=`$as_basename -- "$0" ||
439
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440
         X"$0" : 'X\(//\)$' \| \
441
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442
$as_echo X/"$0" |
443
    sed '/^.*\/\([^/][^/]*\)\/*$/{
444
            s//\1/
445
            q
446
          }
447
          /^X\/\(\/\/\)$/{
448
            s//\1/
449
            q
450
          }
451
          /^X\/\(\/\).*/{
452
            s//\1/
453
            q
454
          }
455
          s/.*/./; q'`
456
 
457
# Avoid depending upon Character Ranges.
458
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461
as_cr_digits='0123456789'
462
as_cr_alnum=$as_cr_Letters$as_cr_digits
463
 
464
 
465
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470
  sed -n '
471
    p
472
    /[$]LINENO/=
473
  ' <$as_myself |
474
    sed '
475
      s/[$]LINENO.*/&-/
476
      t lineno
477
      b
478
      :lineno
479
      N
480
      :loop
481
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482
      t loop
483
      s/-\n.*//
484
    ' >$as_me.lineno &&
485
  chmod +x "$as_me.lineno" ||
486
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
 
488
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489
  # already done that, so ensure we don't try to do so again and fall
490
  # in an infinite loop.  This has already happened in practice.
491
  _as_can_reexec=no; export _as_can_reexec
492
  # Don't try to exec as it changes $[0], causing all sort of problems
493
  # (the dirname of $[0] is not the place where we might find the
494
  # original and so on.  Autoconf is especially sensitive to this).
495
  . "./$as_me.lineno"
496
  # Exit status is that of the last command.
497
  exit
498
}
499
 
500
ECHO_C= ECHO_N= ECHO_T=
501
case `echo -n x` in #(((((
502
-n*)
503
  case `echo 'xy\c'` in
504
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505
  xy)  ECHO_C='\c';;
506
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507
       ECHO_T=' ';;
508
  esac;;
509
*)
510
  ECHO_N='-n';;
511
esac
512
 
513
rm -f conf$$ conf$$.exe conf$$.file
514
if test -d conf$$.dir; then
515
  rm -f conf$$.dir/conf$$.file
516
else
517
  rm -f conf$$.dir
518
  mkdir conf$$.dir 2>/dev/null
519
fi
520
if (echo >conf$$.file) 2>/dev/null; then
521
  if ln -s conf$$.file conf$$ 2>/dev/null; then
522
    as_ln_s='ln -s'
523
    # ... but there are two gotchas:
524
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526
    # In both cases, we have to default to `cp -pR'.
527
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528
      as_ln_s='cp -pR'
529
  elif ln conf$$.file conf$$ 2>/dev/null; then
530
    as_ln_s=ln
531
  else
532
    as_ln_s='cp -pR'
533
  fi
534
else
535
  as_ln_s='cp -pR'
536
fi
537
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538
rmdir conf$$.dir 2>/dev/null
539
 
540
if mkdir -p . 2>/dev/null; then
541
  as_mkdir_p='mkdir -p "$as_dir"'
542
else
543
  test -d ./-p && rmdir ./-p
544
  as_mkdir_p=false
545
fi
546
 
547
as_test_x='test -x'
548
as_executable_p=as_fn_executable_p
549
 
550
# Sed expression to map a string onto a valid CPP name.
551
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
 
553
# Sed expression to map a string onto a valid variable name.
554
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
 
556
 
557
test -n "$DJDIR" || exec 7<&0 
558
exec 6>&1
559
 
560
# Name of the host.
561
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562
# so uname gets run too.
563
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
 
565
#
566
# Initializations.
567
#
568
ac_default_prefix=/usr/local
569
ac_clean_files=
570
ac_config_libobj_dir=.
571
LIBOBJS=
572
cross_compiling=no
573
subdirs=
574
MFLAGS=
575
MAKEFLAGS=
576
 
577
# Identity of this package.
578
PACKAGE_NAME='riscv-toolchain'
579
PACKAGE_TARNAME='riscv-toolchain'
580
PACKAGE_VERSION='1.0'
581
PACKAGE_STRING='riscv-toolchain 1.0'
582
PACKAGE_BUGREPORT=''
583
PACKAGE_URL=''
584
 
585
ac_subst_vars='LTLIBOBJS
586
LIBOBJS
587
multilib_flags
588
glibc_configure_flags
589
float_asflags
590
float_cflags
591
atomic_cflags
592
WITH_ARCH
593
XLEN
594
default_target
595
FETCHER
596
FTP
597
WGET
598
CURL
599
NEED_GCC_EXTERNAL_LIBRARIES
600
GSED
601
GAWK
602
BASH
603
FGREP
604
GREP
605
OBJEXT
606
EXEEXT
607
ac_ct_CC
608
CPPFLAGS
609
LDFLAGS
610
CFLAGS
611
CC
612
target_alias
613
host_alias
614
build_alias
615
LIBS
616
ECHO_T
617
ECHO_N
618
ECHO_C
619
DEFS
620
mandir
621
localedir
622
libdir
623
psdir
624
pdfdir
625
dvidir
626
htmldir
627
infodir
628
docdir
629
oldincludedir
630
includedir
631
localstatedir
632
sharedstatedir
633
sysconfdir
634
datadir
635
datarootdir
636
libexecdir
637
sbindir
638
bindir
639
program_transform_name
640
prefix
641
exec_prefix
642
PACKAGE_URL
643
PACKAGE_BUGREPORT
644
PACKAGE_STRING
645
PACKAGE_VERSION
646
PACKAGE_TARNAME
647
PACKAGE_NAME
648
PATH_SEPARATOR
649
SHELL'
650
ac_subst_files=''
651
ac_user_opts='
652
enable_option_checking
653
enable_linux
654
with_xlen
655
with_arch
656
enable_atomic
657
enable_float
658
enable_multilib
659
'
660
      ac_precious_vars='build_alias
661
host_alias
662
target_alias
663
CC
664
CFLAGS
665
LDFLAGS
666
LIBS
667
CPPFLAGS'
668
 
669
 
670
# Initialize some variables set by options.
671
ac_init_help=
672
ac_init_version=false
673
ac_unrecognized_opts=
674
ac_unrecognized_sep=
675
# The variables have the same names as the options, with
676
# dashes changed to underlines.
677
cache_file=/dev/null
678
exec_prefix=NONE
679
no_create=
680
no_recursion=
681
prefix=NONE
682
program_prefix=NONE
683
program_suffix=NONE
684
program_transform_name=s,x,x,
685
silent=
686
site=
687
srcdir=
688
verbose=
689
x_includes=NONE
690
x_libraries=NONE
691
 
692
# Installation directory options.
693
# These are left unexpanded so users can "make install exec_prefix=/foo"
694
# and all the variables that are supposed to be based on exec_prefix
695
# by default will actually change.
696
# Use braces instead of parens because sh, perl, etc. also accept them.
697
# (The list follows the same order as the GNU Coding Standards.)
698
bindir='${exec_prefix}/bin'
699
sbindir='${exec_prefix}/sbin'
700
libexecdir='${exec_prefix}/libexec'
701
datarootdir='${prefix}/share'
702
datadir='${datarootdir}'
703
sysconfdir='${prefix}/etc'
704
sharedstatedir='${prefix}/com'
705
localstatedir='${prefix}/var'
706
includedir='${prefix}/include'
707
oldincludedir='/usr/include'
708
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
709
infodir='${datarootdir}/info'
710
htmldir='${docdir}'
711
dvidir='${docdir}'
712
pdfdir='${docdir}'
713
psdir='${docdir}'
714
libdir='${exec_prefix}/lib'
715
localedir='${datarootdir}/locale'
716
mandir='${datarootdir}/man'
717
 
718
ac_prev=
719
ac_dashdash=
720
for ac_option
721
do
722
  # If the previous option needs an argument, assign it.
723
  if test -n "$ac_prev"; then
724
    eval $ac_prev=\$ac_option
725
    ac_prev=
726
    continue
727
  fi
728
 
729
  case $ac_option in
730
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
731
  *=)   ac_optarg= ;;
732
  *)    ac_optarg=yes ;;
733
  esac
734
 
735
  # Accept the important Cygnus configure options, so we can diagnose typos.
736
 
737
  case $ac_dashdash$ac_option in
738
  --)
739
    ac_dashdash=yes ;;
740
 
741
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
742
    ac_prev=bindir ;;
743
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
744
    bindir=$ac_optarg ;;
745
 
746
  -build | --build | --buil | --bui | --bu)
747
    ac_prev=build_alias ;;
748
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
749
    build_alias=$ac_optarg ;;
750
 
751
  -cache-file | --cache-file | --cache-fil | --cache-fi \
752
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
753
    ac_prev=cache_file ;;
754
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
755
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
756
    cache_file=$ac_optarg ;;
757
 
758
  --config-cache | -C)
759
    cache_file=config.cache ;;
760
 
761
  -datadir | --datadir | --datadi | --datad)
762
    ac_prev=datadir ;;
763
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
764
    datadir=$ac_optarg ;;
765
 
766
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
767
  | --dataroo | --dataro | --datar)
768
    ac_prev=datarootdir ;;
769
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
770
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
771
    datarootdir=$ac_optarg ;;
772
 
773
  -disable-* | --disable-*)
774
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
775
    # Reject names that are not valid shell variable names.
776
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
777
      as_fn_error $? "invalid feature name: $ac_useropt"
778
    ac_useropt_orig=$ac_useropt
779
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
780
    case $ac_user_opts in
781
      *"
782
"enable_$ac_useropt"
783
"*) ;;
784
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
785
         ac_unrecognized_sep=', ';;
786
    esac
787
    eval enable_$ac_useropt=no ;;
788
 
789
  -docdir | --docdir | --docdi | --doc | --do)
790
    ac_prev=docdir ;;
791
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
792
    docdir=$ac_optarg ;;
793
 
794
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
795
    ac_prev=dvidir ;;
796
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
797
    dvidir=$ac_optarg ;;
798
 
799
  -enable-* | --enable-*)
800
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
801
    # Reject names that are not valid shell variable names.
802
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
803
      as_fn_error $? "invalid feature name: $ac_useropt"
804
    ac_useropt_orig=$ac_useropt
805
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
806
    case $ac_user_opts in
807
      *"
808
"enable_$ac_useropt"
809
"*) ;;
810
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
811
         ac_unrecognized_sep=', ';;
812
    esac
813
    eval enable_$ac_useropt=\$ac_optarg ;;
814
 
815
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
816
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
817
  | --exec | --exe | --ex)
818
    ac_prev=exec_prefix ;;
819
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
820
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
821
  | --exec=* | --exe=* | --ex=*)
822
    exec_prefix=$ac_optarg ;;
823
 
824
  -gas | --gas | --ga | --g)
825
    # Obsolete; use --with-gas.
826
    with_gas=yes ;;
827
 
828
  -help | --help | --hel | --he | -h)
829
    ac_init_help=long ;;
830
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
831
    ac_init_help=recursive ;;
832
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
833
    ac_init_help=short ;;
834
 
835
  -host | --host | --hos | --ho)
836
    ac_prev=host_alias ;;
837
  -host=* | --host=* | --hos=* | --ho=*)
838
    host_alias=$ac_optarg ;;
839
 
840
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
841
    ac_prev=htmldir ;;
842
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
843
  | --ht=*)
844
    htmldir=$ac_optarg ;;
845
 
846
  -includedir | --includedir | --includedi | --included | --include \
847
  | --includ | --inclu | --incl | --inc)
848
    ac_prev=includedir ;;
849
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
850
  | --includ=* | --inclu=* | --incl=* | --inc=*)
851
    includedir=$ac_optarg ;;
852
 
853
  -infodir | --infodir | --infodi | --infod | --info | --inf)
854
    ac_prev=infodir ;;
855
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
856
    infodir=$ac_optarg ;;
857
 
858
  -libdir | --libdir | --libdi | --libd)
859
    ac_prev=libdir ;;
860
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
861
    libdir=$ac_optarg ;;
862
 
863
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
864
  | --libexe | --libex | --libe)
865
    ac_prev=libexecdir ;;
866
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
867
  | --libexe=* | --libex=* | --libe=*)
868
    libexecdir=$ac_optarg ;;
869
 
870
  -localedir | --localedir | --localedi | --localed | --locale)
871
    ac_prev=localedir ;;
872
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
873
    localedir=$ac_optarg ;;
874
 
875
  -localstatedir | --localstatedir | --localstatedi | --localstated \
876
  | --localstate | --localstat | --localsta | --localst | --locals)
877
    ac_prev=localstatedir ;;
878
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
879
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
880
    localstatedir=$ac_optarg ;;
881
 
882
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
883
    ac_prev=mandir ;;
884
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
885
    mandir=$ac_optarg ;;
886
 
887
  -nfp | --nfp | --nf)
888
    # Obsolete; use --without-fp.
889
    with_fp=no ;;
890
 
891
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
892
  | --no-cr | --no-c | -n)
893
    no_create=yes ;;
894
 
895
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
896
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
897
    no_recursion=yes ;;
898
 
899
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
900
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
901
  | --oldin | --oldi | --old | --ol | --o)
902
    ac_prev=oldincludedir ;;
903
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
904
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
905
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
906
    oldincludedir=$ac_optarg ;;
907
 
908
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
909
    ac_prev=prefix ;;
910
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
911
    prefix=$ac_optarg ;;
912
 
913
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
914
  | --program-pre | --program-pr | --program-p)
915
    ac_prev=program_prefix ;;
916
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
917
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
918
    program_prefix=$ac_optarg ;;
919
 
920
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
921
  | --program-suf | --program-su | --program-s)
922
    ac_prev=program_suffix ;;
923
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
924
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
925
    program_suffix=$ac_optarg ;;
926
 
927
  -program-transform-name | --program-transform-name \
928
  | --program-transform-nam | --program-transform-na \
929
  | --program-transform-n | --program-transform- \
930
  | --program-transform | --program-transfor \
931
  | --program-transfo | --program-transf \
932
  | --program-trans | --program-tran \
933
  | --progr-tra | --program-tr | --program-t)
934
    ac_prev=program_transform_name ;;
935
  -program-transform-name=* | --program-transform-name=* \
936
  | --program-transform-nam=* | --program-transform-na=* \
937
  | --program-transform-n=* | --program-transform-=* \
938
  | --program-transform=* | --program-transfor=* \
939
  | --program-transfo=* | --program-transf=* \
940
  | --program-trans=* | --program-tran=* \
941
  | --progr-tra=* | --program-tr=* | --program-t=*)
942
    program_transform_name=$ac_optarg ;;
943
 
944
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
945
    ac_prev=pdfdir ;;
946
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
947
    pdfdir=$ac_optarg ;;
948
 
949
  -psdir | --psdir | --psdi | --psd | --ps)
950
    ac_prev=psdir ;;
951
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
952
    psdir=$ac_optarg ;;
953
 
954
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
955
  | -silent | --silent | --silen | --sile | --sil)
956
    silent=yes ;;
957
 
958
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
959
    ac_prev=sbindir ;;
960
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
961
  | --sbi=* | --sb=*)
962
    sbindir=$ac_optarg ;;
963
 
964
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
965
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
966
  | --sharedst | --shareds | --shared | --share | --shar \
967
  | --sha | --sh)
968
    ac_prev=sharedstatedir ;;
969
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
970
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
971
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
972
  | --sha=* | --sh=*)
973
    sharedstatedir=$ac_optarg ;;
974
 
975
  -site | --site | --sit)
976
    ac_prev=site ;;
977
  -site=* | --site=* | --sit=*)
978
    site=$ac_optarg ;;
979
 
980
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
981
    ac_prev=srcdir ;;
982
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
983
    srcdir=$ac_optarg ;;
984
 
985
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
986
  | --syscon | --sysco | --sysc | --sys | --sy)
987
    ac_prev=sysconfdir ;;
988
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
989
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
990
    sysconfdir=$ac_optarg ;;
991
 
992
  -target | --target | --targe | --targ | --tar | --ta | --t)
993
    ac_prev=target_alias ;;
994
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
995
    target_alias=$ac_optarg ;;
996
 
997
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
998
    verbose=yes ;;
999
 
1000
  -version | --version | --versio | --versi | --vers | -V)
1001
    ac_init_version=: ;;
1002
 
1003
  -with-* | --with-*)
1004
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1005
    # Reject names that are not valid shell variable names.
1006
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007
      as_fn_error $? "invalid package name: $ac_useropt"
1008
    ac_useropt_orig=$ac_useropt
1009
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010
    case $ac_user_opts in
1011
      *"
1012
"with_$ac_useropt"
1013
"*) ;;
1014
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1015
         ac_unrecognized_sep=', ';;
1016
    esac
1017
    eval with_$ac_useropt=\$ac_optarg ;;
1018
 
1019
  -without-* | --without-*)
1020
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1021
    # Reject names that are not valid shell variable names.
1022
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023
      as_fn_error $? "invalid package name: $ac_useropt"
1024
    ac_useropt_orig=$ac_useropt
1025
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026
    case $ac_user_opts in
1027
      *"
1028
"with_$ac_useropt"
1029
"*) ;;
1030
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1031
         ac_unrecognized_sep=', ';;
1032
    esac
1033
    eval with_$ac_useropt=no ;;
1034
 
1035
  --x)
1036
    # Obsolete; use --with-x.
1037
    with_x=yes ;;
1038
 
1039
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1040
  | --x-incl | --x-inc | --x-in | --x-i)
1041
    ac_prev=x_includes ;;
1042
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1043
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1044
    x_includes=$ac_optarg ;;
1045
 
1046
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1047
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1048
    ac_prev=x_libraries ;;
1049
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1050
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1051
    x_libraries=$ac_optarg ;;
1052
 
1053
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1054
Try \`$0 --help' for more information"
1055
    ;;
1056
 
1057
  *=*)
1058
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1059
    # Reject names that are not valid shell variable names.
1060
    case $ac_envvar in #(
1061
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1062
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1063
    esac
1064
    eval $ac_envvar=\$ac_optarg
1065
    export $ac_envvar ;;
1066
 
1067
  *)
1068
    # FIXME: should be removed in autoconf 3.0.
1069
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1070
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1072
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1073
    ;;
1074
 
1075
  esac
1076
done
1077
 
1078
if test -n "$ac_prev"; then
1079
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1080
  as_fn_error $? "missing argument to $ac_option"
1081
fi
1082
 
1083
if test -n "$ac_unrecognized_opts"; then
1084
  case $enable_option_checking in
1085
    no) ;;
1086
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1087
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1088
  esac
1089
fi
1090
 
1091
# Check all directory arguments for consistency.
1092
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1093
                datadir sysconfdir sharedstatedir localstatedir includedir \
1094
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1095
                libdir localedir mandir
1096
do
1097
  eval ac_val=\$$ac_var
1098
  # Remove trailing slashes.
1099
  case $ac_val in
1100
    */ )
1101
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1102
      eval $ac_var=\$ac_val;;
1103
  esac
1104
  # Be sure to have absolute directory names.
1105
  case $ac_val in
1106
    [\\/$]* | ?:[\\/]* )  continue;;
1107
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1108
  esac
1109
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1110
done
1111
 
1112
# There might be people who depend on the old broken behavior: `$host'
1113
# used to hold the argument of --host etc.
1114
# FIXME: To remove some day.
1115
build=$build_alias
1116
host=$host_alias
1117
target=$target_alias
1118
 
1119
# FIXME: To remove some day.
1120
if test "x$host_alias" != x; then
1121
  if test "x$build_alias" = x; then
1122
    cross_compiling=maybe
1123
  elif test "x$build_alias" != "x$host_alias"; then
1124
    cross_compiling=yes
1125
  fi
1126
fi
1127
 
1128
ac_tool_prefix=
1129
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1130
 
1131
test "$silent" = yes && exec 6>/dev/null
1132
 
1133
 
1134
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1135
ac_ls_di=`ls -di .` &&
1136
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1137
  as_fn_error $? "working directory cannot be determined"
1138
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1139
  as_fn_error $? "pwd does not report name of working directory"
1140
 
1141
 
1142
# Find the source files, if location was not specified.
1143
if test -z "$srcdir"; then
1144
  ac_srcdir_defaulted=yes
1145
  # Try the directory containing this script, then the parent directory.
1146
  ac_confdir=`$as_dirname -- "$as_myself" ||
1147
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1148
         X"$as_myself" : 'X\(//\)[^/]' \| \
1149
         X"$as_myself" : 'X\(//\)$' \| \
1150
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1151
$as_echo X"$as_myself" |
1152
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1153
            s//\1/
1154
            q
1155
          }
1156
          /^X\(\/\/\)[^/].*/{
1157
            s//\1/
1158
            q
1159
          }
1160
          /^X\(\/\/\)$/{
1161
            s//\1/
1162
            q
1163
          }
1164
          /^X\(\/\).*/{
1165
            s//\1/
1166
            q
1167
          }
1168
          s/.*/./; q'`
1169
  srcdir=$ac_confdir
1170
  if test ! -r "$srcdir/$ac_unique_file"; then
1171
    srcdir=..
1172
  fi
1173
else
1174
  ac_srcdir_defaulted=no
1175
fi
1176
if test ! -r "$srcdir/$ac_unique_file"; then
1177
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1178
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1179
fi
1180
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1181
ac_abs_confdir=`(
1182
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1183
        pwd)`
1184
# When building in place, set srcdir=.
1185
if test "$ac_abs_confdir" = "$ac_pwd"; then
1186
  srcdir=.
1187
fi
1188
# Remove unnecessary trailing slashes from srcdir.
1189
# Double slashes in file names in object file debugging info
1190
# mess up M-x gdb in Emacs.
1191
case $srcdir in
1192
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1193
esac
1194
for ac_var in $ac_precious_vars; do
1195
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1196
  eval ac_env_${ac_var}_value=\$${ac_var}
1197
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1198
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1199
done
1200
 
1201
#
1202
# Report the --help message.
1203
#
1204
if test "$ac_init_help" = "long"; then
1205
  # Omit some internal or obsolete options to make the list less imposing.
1206
  # This message is too long to be a string in the A/UX 3.1 sh.
1207
  cat <<_ACEOF
1208
\`configure' configures riscv-toolchain 1.0 to adapt to many kinds of systems.
1209
 
1210
Usage: $0 [OPTION]... [VAR=VALUE]...
1211
 
1212
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1213
VAR=VALUE.  See below for descriptions of some of the useful variables.
1214
 
1215
Defaults for the options are specified in brackets.
1216
 
1217
Configuration:
1218
  -h, --help              display this help and exit
1219
      --help=short        display options specific to this package
1220
      --help=recursive    display the short help of all the included packages
1221
  -V, --version           display version information and exit
1222
  -q, --quiet, --silent   do not print \`checking ...' messages
1223
      --cache-file=FILE   cache test results in FILE [disabled]
1224
  -C, --config-cache      alias for \`--cache-file=config.cache'
1225
  -n, --no-create         do not create output files
1226
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1227
 
1228
Installation directories:
1229
  --prefix=PREFIX         install architecture-independent files in PREFIX
1230
                          [$ac_default_prefix]
1231
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1232
                          [PREFIX]
1233
 
1234
By default, \`make install' will install all the files in
1235
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1236
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1237
for instance \`--prefix=\$HOME'.
1238
 
1239
For better control, use the options below.
1240
 
1241
Fine tuning of the installation directories:
1242
  --bindir=DIR            user executables [EPREFIX/bin]
1243
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1244
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1245
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1246
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1247
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1248
  --libdir=DIR            object code libraries [EPREFIX/lib]
1249
  --includedir=DIR        C header files [PREFIX/include]
1250
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1251
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1252
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1253
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1254
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1255
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1256
  --docdir=DIR            documentation root [DATAROOTDIR/doc/riscv-toolchain]
1257
  --htmldir=DIR           html documentation [DOCDIR]
1258
  --dvidir=DIR            dvi documentation [DOCDIR]
1259
  --pdfdir=DIR            pdf documentation [DOCDIR]
1260
  --psdir=DIR             ps documentation [DOCDIR]
1261
_ACEOF
1262
 
1263
  cat <<\_ACEOF
1264
_ACEOF
1265
fi
1266
 
1267
if test -n "$ac_init_help"; then
1268
  case $ac_init_help in
1269
     short | recursive ) echo "Configuration of riscv-toolchain 1.0:";;
1270
   esac
1271
  cat <<\_ACEOF
1272
 
1273
Optional Features:
1274
  --disable-option-checking  ignore unrecognized --enable/--with options
1275
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1276
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1277
  --enable-linux          set linux as the default make target
1278
                          [--disable-linux]
1279
  --disable-atomic        disable use of atomic memory instructions in glibc
1280
                          [--enable-atomic]
1281
  --disable-float         use software floating point in glibc
1282
                          [--enable-float]
1283
  --enable-multilib       build both RV32 and RV64 runtime libraries
1284
                          [--disable-multilib]
1285
 
1286
Optional Packages:
1287
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1288
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1289
  --with-xlen=XLEN        Set XLEN, the X-register bit width (default is 64)
1290
  --with-arch=IMAFD       Sets the base RISC-V ISA, defaults to IMAFD
1291
 
1292
Some influential environment variables:
1293
  CC          C compiler command
1294
  CFLAGS      C compiler flags
1295
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1296
              nonstandard directory 
1297
  LIBS        libraries to pass to the linker, e.g. -l
1298
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I if
1299
              you have headers in a nonstandard directory 
1300
 
1301
Use these variables to override the choices made by `configure' or to help
1302
it to find libraries and programs with nonstandard names/locations.
1303
 
1304
Report bugs to the package provider.
1305
_ACEOF
1306
ac_status=$?
1307
fi
1308
 
1309
if test "$ac_init_help" = "recursive"; then
1310
  # If there are subdirs, report their specific --help.
1311
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1312
    test -d "$ac_dir" ||
1313
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1314
      continue
1315
    ac_builddir=.
1316
 
1317
case "$ac_dir" in
1318
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1319
*)
1320
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1321
  # A ".." for each directory in $ac_dir_suffix.
1322
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1323
  case $ac_top_builddir_sub in
1324
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1325
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1326
  esac ;;
1327
esac
1328
ac_abs_top_builddir=$ac_pwd
1329
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1330
# for backward compatibility:
1331
ac_top_builddir=$ac_top_build_prefix
1332
 
1333
case $srcdir in
1334
  .)  # We are building in place.
1335
    ac_srcdir=.
1336
    ac_top_srcdir=$ac_top_builddir_sub
1337
    ac_abs_top_srcdir=$ac_pwd ;;
1338
  [\\/]* | ?:[\\/]* )  # Absolute name.
1339
    ac_srcdir=$srcdir$ac_dir_suffix;
1340
    ac_top_srcdir=$srcdir
1341
    ac_abs_top_srcdir=$srcdir ;;
1342
  *) # Relative name.
1343
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1344
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1345
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1346
esac
1347
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1348
 
1349
    cd "$ac_dir" || { ac_status=$?; continue; }
1350
    # Check for guested configure.
1351
    if test -f "$ac_srcdir/configure.gnu"; then
1352
      echo &&
1353
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1354
    elif test -f "$ac_srcdir/configure"; then
1355
      echo &&
1356
      $SHELL "$ac_srcdir/configure" --help=recursive
1357
    else
1358
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1359
    fi || ac_status=$?
1360
    cd "$ac_pwd" || { ac_status=$?; break; }
1361
  done
1362
fi
1363
 
1364
test -n "$ac_init_help" && exit $ac_status
1365
if $ac_init_version; then
1366
  cat <<\_ACEOF
1367
riscv-toolchain configure 1.0
1368
generated by GNU Autoconf 2.69
1369
 
1370
Copyright (C) 2012 Free Software Foundation, Inc.
1371
This configure script is free software; the Free Software Foundation
1372
gives unlimited permission to copy, distribute and modify it.
1373
_ACEOF
1374
  exit
1375
fi
1376
 
1377
## ------------------------ ##
1378
## Autoconf initialization. ##
1379
## ------------------------ ##
1380
 
1381
# ac_fn_c_try_compile LINENO
1382
# --------------------------
1383
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1384
ac_fn_c_try_compile ()
1385
{
1386
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1387
  rm -f conftest.$ac_objext
1388
  if { { ac_try="$ac_compile"
1389
case "(($ac_try" in
1390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1391
  *) ac_try_echo=$ac_try;;
1392
esac
1393
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1394
$as_echo "$ac_try_echo"; } >&5
1395
  (eval "$ac_compile") 2>conftest.err
1396
  ac_status=$?
1397
  if test -s conftest.err; then
1398
    grep -v '^ *+' conftest.err >conftest.er1
1399
    cat conftest.er1 >&5
1400
    mv -f conftest.er1 conftest.err
1401
  fi
1402
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1403
  test $ac_status = 0; } && {
1404
         test -z "$ac_c_werror_flag" ||
1405
         test ! -s conftest.err
1406
       } && test -s conftest.$ac_objext; then :
1407
  ac_retval=0
1408
else
1409
  $as_echo "$as_me: failed program was:" >&5
1410
sed 's/^/| /' conftest.$ac_ext >&5
1411
 
1412
        ac_retval=1
1413
fi
1414
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1415
  as_fn_set_status $ac_retval
1416
 
1417
} # ac_fn_c_try_compile
1418
 
1419
# ac_fn_c_try_link LINENO
1420
# -----------------------
1421
# Try to link conftest.$ac_ext, and return whether this succeeded.
1422
ac_fn_c_try_link ()
1423
{
1424
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1425
  rm -f conftest.$ac_objext conftest$ac_exeext
1426
  if { { ac_try="$ac_link"
1427
case "(($ac_try" in
1428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1429
  *) ac_try_echo=$ac_try;;
1430
esac
1431
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1432
$as_echo "$ac_try_echo"; } >&5
1433
  (eval "$ac_link") 2>conftest.err
1434
  ac_status=$?
1435
  if test -s conftest.err; then
1436
    grep -v '^ *+' conftest.err >conftest.er1
1437
    cat conftest.er1 >&5
1438
    mv -f conftest.er1 conftest.err
1439
  fi
1440
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1441
  test $ac_status = 0; } && {
1442
         test -z "$ac_c_werror_flag" ||
1443
         test ! -s conftest.err
1444
       } && test -s conftest$ac_exeext && {
1445
         test "$cross_compiling" = yes ||
1446
         test -x conftest$ac_exeext
1447
       }; then :
1448
  ac_retval=0
1449
else
1450
  $as_echo "$as_me: failed program was:" >&5
1451
sed 's/^/| /' conftest.$ac_ext >&5
1452
 
1453
        ac_retval=1
1454
fi
1455
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1456
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1457
  # interfere with the next link command; also delete a directory that is
1458
  # left behind by Apple's compiler.  We do this before executing the actions.
1459
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1460
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1461
  as_fn_set_status $ac_retval
1462
 
1463
} # ac_fn_c_try_link
1464
cat >config.log <<_ACEOF
1465
This file contains any messages produced by compilers while
1466
running configure, to aid debugging if configure makes a mistake.
1467
 
1468
It was created by riscv-toolchain $as_me 1.0, which was
1469
generated by GNU Autoconf 2.69.  Invocation command line was
1470
 
1471
  $ $0 $@
1472
 
1473
_ACEOF
1474
exec 5>>config.log
1475
{
1476
cat <<_ASUNAME
1477
## --------- ##
1478
## Platform. ##
1479
## --------- ##
1480
 
1481
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486
 
1487
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1489
 
1490
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1491
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1492
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1493
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1494
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1495
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1496
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1497
 
1498
_ASUNAME
1499
 
1500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501
for as_dir in $PATH
1502
do
1503
  IFS=$as_save_IFS
1504
  test -z "$as_dir" && as_dir=.
1505
    $as_echo "PATH: $as_dir"
1506
  done
1507
IFS=$as_save_IFS
1508
 
1509
} >&5
1510
 
1511
cat >&5 <<_ACEOF
1512
 
1513
 
1514
## ----------- ##
1515
## Core tests. ##
1516
## ----------- ##
1517
 
1518
_ACEOF
1519
 
1520
 
1521
# Keep a trace of the command line.
1522
# Strip out --no-create and --no-recursion so they do not pile up.
1523
# Strip out --silent because we don't want to record it for future runs.
1524
# Also quote any args containing shell meta-characters.
1525
# Make two passes to allow for proper duplicate-argument suppression.
1526
ac_configure_args=
1527
ac_configure_args0=
1528
ac_configure_args1=
1529
ac_must_keep_next=false
1530
for ac_pass in 1 2
1531
do
1532
  for ac_arg
1533
  do
1534
    case $ac_arg in
1535
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1536
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537
    | -silent | --silent | --silen | --sile | --sil)
1538
      continue ;;
1539
    *\'*)
1540
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541
    esac
1542
    case $ac_pass in
1543
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1544
    2)
1545
      as_fn_append ac_configure_args1 " '$ac_arg'"
1546
      if test $ac_must_keep_next = true; then
1547
        ac_must_keep_next=false # Got value, back to normal.
1548
      else
1549
        case $ac_arg in
1550
          *=* | --config-cache | -C | -disable-* | --disable-* \
1551
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1552
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1553
          | -with-* | --with-* | -without-* | --without-* | --x)
1554
            case "$ac_configure_args0 " in
1555
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556
            esac
1557
            ;;
1558
          -* ) ac_must_keep_next=true ;;
1559
        esac
1560
      fi
1561
      as_fn_append ac_configure_args " '$ac_arg'"
1562
      ;;
1563
    esac
1564
  done
1565
done
1566
{ ac_configure_args0=; unset ac_configure_args0;}
1567
{ ac_configure_args1=; unset ac_configure_args1;}
1568
 
1569
# When interrupted or exit'd, cleanup temporary files, and complete
1570
# config.log.  We remove comments because anyway the quotes in there
1571
# would cause problems or look ugly.
1572
# WARNING: Use '\'' to represent an apostrophe within the trap.
1573
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1574
trap 'exit_status=$?
1575
  # Save into config.log some information that might help in debugging.
1576
  {
1577
    echo
1578
 
1579
    $as_echo "## ---------------- ##
1580
## Cache variables. ##
1581
## ---------------- ##"
1582
    echo
1583
    # The following way of writing the cache mishandles newlines in values,
1584
(
1585
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1586
    eval ac_val=\$$ac_var
1587
    case $ac_val in #(
1588
    *${as_nl}*)
1589
      case $ac_var in #(
1590
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1591
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1592
      esac
1593
      case $ac_var in #(
1594
      _ | IFS | as_nl) ;; #(
1595
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1596
      *) { eval $ac_var=; unset $ac_var;} ;;
1597
      esac ;;
1598
    esac
1599
  done
1600
  (set) 2>&1 |
1601
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602
    *${as_nl}ac_space=\ *)
1603
      sed -n \
1604
        "s/'\''/'\''\\\\'\'''\''/g;
1605
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606
      ;; #(
1607
    *)
1608
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609
      ;;
1610
    esac |
1611
    sort
1612
)
1613
    echo
1614
 
1615
    $as_echo "## ----------------- ##
1616
## Output variables. ##
1617
## ----------------- ##"
1618
    echo
1619
    for ac_var in $ac_subst_vars
1620
    do
1621
      eval ac_val=\$$ac_var
1622
      case $ac_val in
1623
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1624
      esac
1625
      $as_echo "$ac_var='\''$ac_val'\''"
1626
    done | sort
1627
    echo
1628
 
1629
    if test -n "$ac_subst_files"; then
1630
      $as_echo "## ------------------- ##
1631
## File substitutions. ##
1632
## ------------------- ##"
1633
      echo
1634
      for ac_var in $ac_subst_files
1635
      do
1636
        eval ac_val=\$$ac_var
1637
        case $ac_val in
1638
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1639
        esac
1640
        $as_echo "$ac_var='\''$ac_val'\''"
1641
      done | sort
1642
      echo
1643
    fi
1644
 
1645
    if test -s confdefs.h; then
1646
      $as_echo "## ----------- ##
1647
## confdefs.h. ##
1648
## ----------- ##"
1649
      echo
1650
      cat confdefs.h
1651
      echo
1652
    fi
1653
    test "$ac_signal" != 0 &&
1654
      $as_echo "$as_me: caught signal $ac_signal"
1655
    $as_echo "$as_me: exit $exit_status"
1656
  } >&5
1657
  rm -f core *.core core.conftest.* &&
1658
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1659
    exit $exit_status
1660
' 0
1661
for ac_signal in 1 2 13 15; do
1662
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1663
done
1664
ac_signal=0
1665
 
1666
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1667
rm -f -r conftest* confdefs.h
1668
 
1669
$as_echo "/* confdefs.h */" > confdefs.h
1670
 
1671
# Predefined preprocessor variables.
1672
 
1673
cat >>confdefs.h <<_ACEOF
1674
#define PACKAGE_NAME "$PACKAGE_NAME"
1675
_ACEOF
1676
 
1677
cat >>confdefs.h <<_ACEOF
1678
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1679
_ACEOF
1680
 
1681
cat >>confdefs.h <<_ACEOF
1682
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1683
_ACEOF
1684
 
1685
cat >>confdefs.h <<_ACEOF
1686
#define PACKAGE_STRING "$PACKAGE_STRING"
1687
_ACEOF
1688
 
1689
cat >>confdefs.h <<_ACEOF
1690
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1691
_ACEOF
1692
 
1693
cat >>confdefs.h <<_ACEOF
1694
#define PACKAGE_URL "$PACKAGE_URL"
1695
_ACEOF
1696
 
1697
 
1698
# Let the site file select an alternate cache file if it wants to.
1699
# Prefer an explicitly selected file to automatically selected ones.
1700
ac_site_file1=NONE
1701
ac_site_file2=NONE
1702
if test -n "$CONFIG_SITE"; then
1703
  # We do not want a PATH search for config.site.
1704
  case $CONFIG_SITE in #((
1705
    -*)  ac_site_file1=./$CONFIG_SITE;;
1706
    */*) ac_site_file1=$CONFIG_SITE;;
1707
    *)   ac_site_file1=./$CONFIG_SITE;;
1708
  esac
1709
elif test "x$prefix" != xNONE; then
1710
  ac_site_file1=$prefix/share/config.site
1711
  ac_site_file2=$prefix/etc/config.site
1712
else
1713
  ac_site_file1=$ac_default_prefix/share/config.site
1714
  ac_site_file2=$ac_default_prefix/etc/config.site
1715
fi
1716
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1717
do
1718
  test "x$ac_site_file" = xNONE && continue
1719
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1720
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1721
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1722
    sed 's/^/| /' "$ac_site_file" >&5
1723
    . "$ac_site_file" \
1724
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1725
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1726
as_fn_error $? "failed to load site script $ac_site_file
1727
See \`config.log' for more details" "$LINENO" 5; }
1728
  fi
1729
done
1730
 
1731
if test -r "$cache_file"; then
1732
  # Some versions of bash will fail to source /dev/null (special files
1733
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1734
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1735
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1736
$as_echo "$as_me: loading cache $cache_file" >&6;}
1737
    case $cache_file in
1738
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1739
      *)                      . "./$cache_file";;
1740
    esac
1741
  fi
1742
else
1743
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1744
$as_echo "$as_me: creating cache $cache_file" >&6;}
1745
  >$cache_file
1746
fi
1747
 
1748
# Check that the precious variables saved in the cache have kept the same
1749
# value.
1750
ac_cache_corrupted=false
1751
for ac_var in $ac_precious_vars; do
1752
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1753
  eval ac_new_set=\$ac_env_${ac_var}_set
1754
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1755
  eval ac_new_val=\$ac_env_${ac_var}_value
1756
  case $ac_old_set,$ac_new_set in
1757
    set,)
1758
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1759
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1760
      ac_cache_corrupted=: ;;
1761
    ,set)
1762
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1763
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1764
      ac_cache_corrupted=: ;;
1765
    ,);;
1766
    *)
1767
      if test "x$ac_old_val" != "x$ac_new_val"; then
1768
        # differences in whitespace do not lead to failure.
1769
        ac_old_val_w=`echo x $ac_old_val`
1770
        ac_new_val_w=`echo x $ac_new_val`
1771
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1772
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1773
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1774
          ac_cache_corrupted=:
1775
        else
1776
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1777
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1778
          eval $ac_var=\$ac_old_val
1779
        fi
1780
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1781
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1782
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1783
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1784
      fi;;
1785
  esac
1786
  # Pass precious variables to config.status.
1787
  if test "$ac_new_set" = set; then
1788
    case $ac_new_val in
1789
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1790
    *) ac_arg=$ac_var=$ac_new_val ;;
1791
    esac
1792
    case " $ac_configure_args " in
1793
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1794
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1795
    esac
1796
  fi
1797
done
1798
if $ac_cache_corrupted; then
1799
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1800
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1801
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1802
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1803
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1804
fi
1805
## -------------------- ##
1806
## Main body of script. ##
1807
## -------------------- ##
1808
 
1809
ac_ext=c
1810
ac_cpp='$CPP $CPPFLAGS'
1811
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814
 
1815
 
1816
 
1817
ac_ext=c
1818
ac_cpp='$CPP $CPPFLAGS'
1819
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1820
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1821
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822
if test -n "$ac_tool_prefix"; then
1823
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1824
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1826
$as_echo_n "checking for $ac_word... " >&6; }
1827
if ${ac_cv_prog_CC+:} false; then :
1828
  $as_echo_n "(cached) " >&6
1829
else
1830
  if test -n "$CC"; then
1831
  ac_cv_prog_CC="$CC" # Let the user override the test.
1832
else
1833
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834
for as_dir in $PATH
1835
do
1836
  IFS=$as_save_IFS
1837
  test -z "$as_dir" && as_dir=.
1838
    for ac_exec_ext in '' $ac_executable_extensions; do
1839
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1841
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1842
    break 2
1843
  fi
1844
done
1845
  done
1846
IFS=$as_save_IFS
1847
 
1848
fi
1849
fi
1850
CC=$ac_cv_prog_CC
1851
if test -n "$CC"; then
1852
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1853
$as_echo "$CC" >&6; }
1854
else
1855
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1856
$as_echo "no" >&6; }
1857
fi
1858
 
1859
 
1860
fi
1861
if test -z "$ac_cv_prog_CC"; then
1862
  ac_ct_CC=$CC
1863
  # Extract the first word of "gcc", so it can be a program name with args.
1864
set dummy gcc; ac_word=$2
1865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1866
$as_echo_n "checking for $ac_word... " >&6; }
1867
if ${ac_cv_prog_ac_ct_CC+:} false; then :
1868
  $as_echo_n "(cached) " >&6
1869
else
1870
  if test -n "$ac_ct_CC"; then
1871
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872
else
1873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874
for as_dir in $PATH
1875
do
1876
  IFS=$as_save_IFS
1877
  test -z "$as_dir" && as_dir=.
1878
    for ac_exec_ext in '' $ac_executable_extensions; do
1879
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880
    ac_cv_prog_ac_ct_CC="gcc"
1881
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1882
    break 2
1883
  fi
1884
done
1885
  done
1886
IFS=$as_save_IFS
1887
 
1888
fi
1889
fi
1890
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891
if test -n "$ac_ct_CC"; then
1892
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1893
$as_echo "$ac_ct_CC" >&6; }
1894
else
1895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1896
$as_echo "no" >&6; }
1897
fi
1898
 
1899
  if test "x$ac_ct_CC" = x; then
1900
    CC=""
1901
  else
1902
    case $cross_compiling:$ac_tool_warned in
1903
yes:)
1904
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1905
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1906
ac_tool_warned=yes ;;
1907
esac
1908
    CC=$ac_ct_CC
1909
  fi
1910
else
1911
  CC="$ac_cv_prog_CC"
1912
fi
1913
 
1914
if test -z "$CC"; then
1915
          if test -n "$ac_tool_prefix"; then
1916
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1917
set dummy ${ac_tool_prefix}cc; ac_word=$2
1918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1919
$as_echo_n "checking for $ac_word... " >&6; }
1920
if ${ac_cv_prog_CC+:} false; then :
1921
  $as_echo_n "(cached) " >&6
1922
else
1923
  if test -n "$CC"; then
1924
  ac_cv_prog_CC="$CC" # Let the user override the test.
1925
else
1926
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927
for as_dir in $PATH
1928
do
1929
  IFS=$as_save_IFS
1930
  test -z "$as_dir" && as_dir=.
1931
    for ac_exec_ext in '' $ac_executable_extensions; do
1932
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1934
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1935
    break 2
1936
  fi
1937
done
1938
  done
1939
IFS=$as_save_IFS
1940
 
1941
fi
1942
fi
1943
CC=$ac_cv_prog_CC
1944
if test -n "$CC"; then
1945
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1946
$as_echo "$CC" >&6; }
1947
else
1948
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1949
$as_echo "no" >&6; }
1950
fi
1951
 
1952
 
1953
  fi
1954
fi
1955
if test -z "$CC"; then
1956
  # Extract the first word of "cc", so it can be a program name with args.
1957
set dummy cc; ac_word=$2
1958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1959
$as_echo_n "checking for $ac_word... " >&6; }
1960
if ${ac_cv_prog_CC+:} false; then :
1961
  $as_echo_n "(cached) " >&6
1962
else
1963
  if test -n "$CC"; then
1964
  ac_cv_prog_CC="$CC" # Let the user override the test.
1965
else
1966
  ac_prog_rejected=no
1967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968
for as_dir in $PATH
1969
do
1970
  IFS=$as_save_IFS
1971
  test -z "$as_dir" && as_dir=.
1972
    for ac_exec_ext in '' $ac_executable_extensions; do
1973
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1975
       ac_prog_rejected=yes
1976
       continue
1977
     fi
1978
    ac_cv_prog_CC="cc"
1979
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1980
    break 2
1981
  fi
1982
done
1983
  done
1984
IFS=$as_save_IFS
1985
 
1986
if test $ac_prog_rejected = yes; then
1987
  # We found a bogon in the path, so make sure we never use it.
1988
  set dummy $ac_cv_prog_CC
1989
  shift
1990
  if test $# != 0; then
1991
    # We chose a different compiler from the bogus one.
1992
    # However, it has the same basename, so the bogon will be chosen
1993
    # first if we set CC to just the basename; use the full file name.
1994
    shift
1995
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1996
  fi
1997
fi
1998
fi
1999
fi
2000
CC=$ac_cv_prog_CC
2001
if test -n "$CC"; then
2002
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2003
$as_echo "$CC" >&6; }
2004
else
2005
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2006
$as_echo "no" >&6; }
2007
fi
2008
 
2009
 
2010
fi
2011
if test -z "$CC"; then
2012
  if test -n "$ac_tool_prefix"; then
2013
  for ac_prog in cl.exe
2014
  do
2015
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2016
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2018
$as_echo_n "checking for $ac_word... " >&6; }
2019
if ${ac_cv_prog_CC+:} false; then :
2020
  $as_echo_n "(cached) " >&6
2021
else
2022
  if test -n "$CC"; then
2023
  ac_cv_prog_CC="$CC" # Let the user override the test.
2024
else
2025
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026
for as_dir in $PATH
2027
do
2028
  IFS=$as_save_IFS
2029
  test -z "$as_dir" && as_dir=.
2030
    for ac_exec_ext in '' $ac_executable_extensions; do
2031
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2033
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2034
    break 2
2035
  fi
2036
done
2037
  done
2038
IFS=$as_save_IFS
2039
 
2040
fi
2041
fi
2042
CC=$ac_cv_prog_CC
2043
if test -n "$CC"; then
2044
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2045
$as_echo "$CC" >&6; }
2046
else
2047
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2048
$as_echo "no" >&6; }
2049
fi
2050
 
2051
 
2052
    test -n "$CC" && break
2053
  done
2054
fi
2055
if test -z "$CC"; then
2056
  ac_ct_CC=$CC
2057
  for ac_prog in cl.exe
2058
do
2059
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2060
set dummy $ac_prog; ac_word=$2
2061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2062
$as_echo_n "checking for $ac_word... " >&6; }
2063
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2064
  $as_echo_n "(cached) " >&6
2065
else
2066
  if test -n "$ac_ct_CC"; then
2067
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2068
else
2069
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070
for as_dir in $PATH
2071
do
2072
  IFS=$as_save_IFS
2073
  test -z "$as_dir" && as_dir=.
2074
    for ac_exec_ext in '' $ac_executable_extensions; do
2075
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076
    ac_cv_prog_ac_ct_CC="$ac_prog"
2077
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2078
    break 2
2079
  fi
2080
done
2081
  done
2082
IFS=$as_save_IFS
2083
 
2084
fi
2085
fi
2086
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2087
if test -n "$ac_ct_CC"; then
2088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2089
$as_echo "$ac_ct_CC" >&6; }
2090
else
2091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2092
$as_echo "no" >&6; }
2093
fi
2094
 
2095
 
2096
  test -n "$ac_ct_CC" && break
2097
done
2098
 
2099
  if test "x$ac_ct_CC" = x; then
2100
    CC=""
2101
  else
2102
    case $cross_compiling:$ac_tool_warned in
2103
yes:)
2104
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2105
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2106
ac_tool_warned=yes ;;
2107
esac
2108
    CC=$ac_ct_CC
2109
  fi
2110
fi
2111
 
2112
fi
2113
 
2114
 
2115
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2116
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2117
as_fn_error $? "no acceptable C compiler found in \$PATH
2118
See \`config.log' for more details" "$LINENO" 5; }
2119
 
2120
# Provide some information about the compiler.
2121
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2122
set X $ac_compile
2123
ac_compiler=$2
2124
for ac_option in --version -v -V -qversion; do
2125
  { { ac_try="$ac_compiler $ac_option >&5"
2126
case "(($ac_try" in
2127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128
  *) ac_try_echo=$ac_try;;
2129
esac
2130
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2131
$as_echo "$ac_try_echo"; } >&5
2132
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2133
  ac_status=$?
2134
  if test -s conftest.err; then
2135
    sed '10a\
2136
... rest of stderr output deleted ...
2137
         10q' conftest.err >conftest.er1
2138
    cat conftest.er1 >&5
2139
  fi
2140
  rm -f conftest.er1 conftest.err
2141
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142
  test $ac_status = 0; }
2143
done
2144
 
2145
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146
/* end confdefs.h.  */
2147
 
2148
int
2149
main ()
2150
{
2151
 
2152
  ;
2153
  return 0;
2154
}
2155
_ACEOF
2156
ac_clean_files_save=$ac_clean_files
2157
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2158
# Try to create an executable without -o first, disregard a.out.
2159
# It will help us diagnose broken compilers, and finding out an intuition
2160
# of exeext.
2161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2162
$as_echo_n "checking whether the C compiler works... " >&6; }
2163
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164
 
2165
# The possible output files:
2166
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2167
 
2168
ac_rmfiles=
2169
for ac_file in $ac_files
2170
do
2171
  case $ac_file in
2172
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2173
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2174
  esac
2175
done
2176
rm -f $ac_rmfiles
2177
 
2178
if { { ac_try="$ac_link_default"
2179
case "(($ac_try" in
2180
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181
  *) ac_try_echo=$ac_try;;
2182
esac
2183
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184
$as_echo "$ac_try_echo"; } >&5
2185
  (eval "$ac_link_default") 2>&5
2186
  ac_status=$?
2187
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2188
  test $ac_status = 0; }; then :
2189
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2190
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2191
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2192
# so that the user can short-circuit this test for compilers unknown to
2193
# Autoconf.
2194
for ac_file in $ac_files ''
2195
do
2196
  test -f "$ac_file" || continue
2197
  case $ac_file in
2198
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2199
        ;;
2200
    [ab].out )
2201
        # We found the default executable, but exeext='' is most
2202
        # certainly right.
2203
        break;;
2204
    *.* )
2205
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2206
        then :; else
2207
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208
        fi
2209
        # We set ac_cv_exeext here because the later test for it is not
2210
        # safe: cross compilers may not add the suffix if given an `-o'
2211
        # argument, so we may need to know it at that point already.
2212
        # Even if this section looks crufty: it has the advantage of
2213
        # actually working.
2214
        break;;
2215
    * )
2216
        break;;
2217
  esac
2218
done
2219
test "$ac_cv_exeext" = no && ac_cv_exeext=
2220
 
2221
else
2222
  ac_file=''
2223
fi
2224
if test -z "$ac_file"; then :
2225
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2226
$as_echo "no" >&6; }
2227
$as_echo "$as_me: failed program was:" >&5
2228
sed 's/^/| /' conftest.$ac_ext >&5
2229
 
2230
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232
as_fn_error 77 "C compiler cannot create executables
2233
See \`config.log' for more details" "$LINENO" 5; }
2234
else
2235
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2236
$as_echo "yes" >&6; }
2237
fi
2238
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2239
$as_echo_n "checking for C compiler default output file name... " >&6; }
2240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2241
$as_echo "$ac_file" >&6; }
2242
ac_exeext=$ac_cv_exeext
2243
 
2244
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2245
ac_clean_files=$ac_clean_files_save
2246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2247
$as_echo_n "checking for suffix of executables... " >&6; }
2248
if { { ac_try="$ac_link"
2249
case "(($ac_try" in
2250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251
  *) ac_try_echo=$ac_try;;
2252
esac
2253
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254
$as_echo "$ac_try_echo"; } >&5
2255
  (eval "$ac_link") 2>&5
2256
  ac_status=$?
2257
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2258
  test $ac_status = 0; }; then :
2259
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2261
# work properly (i.e., refer to `conftest.exe'), while it won't with
2262
# `rm'.
2263
for ac_file in conftest.exe conftest conftest.*; do
2264
  test -f "$ac_file" || continue
2265
  case $ac_file in
2266
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2267
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268
          break;;
2269
    * ) break;;
2270
  esac
2271
done
2272
else
2273
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2276
See \`config.log' for more details" "$LINENO" 5; }
2277
fi
2278
rm -f conftest conftest$ac_cv_exeext
2279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2280
$as_echo "$ac_cv_exeext" >&6; }
2281
 
2282
rm -f conftest.$ac_ext
2283
EXEEXT=$ac_cv_exeext
2284
ac_exeext=$EXEEXT
2285
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286
/* end confdefs.h.  */
2287
#include 
2288
int
2289
main ()
2290
{
2291
FILE *f = fopen ("conftest.out", "w");
2292
 return ferror (f) || fclose (f) != 0;
2293
 
2294
  ;
2295
  return 0;
2296
}
2297
_ACEOF
2298
ac_clean_files="$ac_clean_files conftest.out"
2299
# Check that the compiler produces executables we can run.  If not, either
2300
# the compiler is broken, or we cross compile.
2301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2302
$as_echo_n "checking whether we are cross compiling... " >&6; }
2303
if test "$cross_compiling" != yes; then
2304
  { { ac_try="$ac_link"
2305
case "(($ac_try" in
2306
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307
  *) ac_try_echo=$ac_try;;
2308
esac
2309
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2310
$as_echo "$ac_try_echo"; } >&5
2311
  (eval "$ac_link") 2>&5
2312
  ac_status=$?
2313
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2314
  test $ac_status = 0; }
2315
  if { ac_try='./conftest$ac_cv_exeext'
2316
  { { case "(($ac_try" in
2317
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318
  *) ac_try_echo=$ac_try;;
2319
esac
2320
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2321
$as_echo "$ac_try_echo"; } >&5
2322
  (eval "$ac_try") 2>&5
2323
  ac_status=$?
2324
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2325
  test $ac_status = 0; }; }; then
2326
    cross_compiling=no
2327
  else
2328
    if test "$cross_compiling" = maybe; then
2329
        cross_compiling=yes
2330
    else
2331
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2332
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2333
as_fn_error $? "cannot run C compiled programs.
2334
If you meant to cross compile, use \`--host'.
2335
See \`config.log' for more details" "$LINENO" 5; }
2336
    fi
2337
  fi
2338
fi
2339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2340
$as_echo "$cross_compiling" >&6; }
2341
 
2342
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2343
ac_clean_files=$ac_clean_files_save
2344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2345
$as_echo_n "checking for suffix of object files... " >&6; }
2346
if ${ac_cv_objext+:} false; then :
2347
  $as_echo_n "(cached) " >&6
2348
else
2349
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350
/* end confdefs.h.  */
2351
 
2352
int
2353
main ()
2354
{
2355
 
2356
  ;
2357
  return 0;
2358
}
2359
_ACEOF
2360
rm -f conftest.o conftest.obj
2361
if { { ac_try="$ac_compile"
2362
case "(($ac_try" in
2363
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364
  *) ac_try_echo=$ac_try;;
2365
esac
2366
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367
$as_echo "$ac_try_echo"; } >&5
2368
  (eval "$ac_compile") 2>&5
2369
  ac_status=$?
2370
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371
  test $ac_status = 0; }; then :
2372
  for ac_file in conftest.o conftest.obj conftest.*; do
2373
  test -f "$ac_file" || continue;
2374
  case $ac_file in
2375
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2376
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2377
       break;;
2378
  esac
2379
done
2380
else
2381
  $as_echo "$as_me: failed program was:" >&5
2382
sed 's/^/| /' conftest.$ac_ext >&5
2383
 
2384
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2385
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2386
as_fn_error $? "cannot compute suffix of object files: cannot compile
2387
See \`config.log' for more details" "$LINENO" 5; }
2388
fi
2389
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2390
fi
2391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2392
$as_echo "$ac_cv_objext" >&6; }
2393
OBJEXT=$ac_cv_objext
2394
ac_objext=$OBJEXT
2395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2396
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2397
if ${ac_cv_c_compiler_gnu+:} false; then :
2398
  $as_echo_n "(cached) " >&6
2399
else
2400
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401
/* end confdefs.h.  */
2402
 
2403
int
2404
main ()
2405
{
2406
#ifndef __GNUC__
2407
       choke me
2408
#endif
2409
 
2410
  ;
2411
  return 0;
2412
}
2413
_ACEOF
2414
if ac_fn_c_try_compile "$LINENO"; then :
2415
  ac_compiler_gnu=yes
2416
else
2417
  ac_compiler_gnu=no
2418
fi
2419
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2421
 
2422
fi
2423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2424
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2425
if test $ac_compiler_gnu = yes; then
2426
  GCC=yes
2427
else
2428
  GCC=
2429
fi
2430
ac_test_CFLAGS=${CFLAGS+set}
2431
ac_save_CFLAGS=$CFLAGS
2432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2433
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2434
if ${ac_cv_prog_cc_g+:} false; then :
2435
  $as_echo_n "(cached) " >&6
2436
else
2437
  ac_save_c_werror_flag=$ac_c_werror_flag
2438
   ac_c_werror_flag=yes
2439
   ac_cv_prog_cc_g=no
2440
   CFLAGS="-g"
2441
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442
/* end confdefs.h.  */
2443
 
2444
int
2445
main ()
2446
{
2447
 
2448
  ;
2449
  return 0;
2450
}
2451
_ACEOF
2452
if ac_fn_c_try_compile "$LINENO"; then :
2453
  ac_cv_prog_cc_g=yes
2454
else
2455
  CFLAGS=""
2456
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457
/* end confdefs.h.  */
2458
 
2459
int
2460
main ()
2461
{
2462
 
2463
  ;
2464
  return 0;
2465
}
2466
_ACEOF
2467
if ac_fn_c_try_compile "$LINENO"; then :
2468
 
2469
else
2470
  ac_c_werror_flag=$ac_save_c_werror_flag
2471
         CFLAGS="-g"
2472
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473
/* end confdefs.h.  */
2474
 
2475
int
2476
main ()
2477
{
2478
 
2479
  ;
2480
  return 0;
2481
}
2482
_ACEOF
2483
if ac_fn_c_try_compile "$LINENO"; then :
2484
  ac_cv_prog_cc_g=yes
2485
fi
2486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487
fi
2488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489
fi
2490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491
   ac_c_werror_flag=$ac_save_c_werror_flag
2492
fi
2493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2494
$as_echo "$ac_cv_prog_cc_g" >&6; }
2495
if test "$ac_test_CFLAGS" = set; then
2496
  CFLAGS=$ac_save_CFLAGS
2497
elif test $ac_cv_prog_cc_g = yes; then
2498
  if test "$GCC" = yes; then
2499
    CFLAGS="-g -O2"
2500
  else
2501
    CFLAGS="-g"
2502
  fi
2503
else
2504
  if test "$GCC" = yes; then
2505
    CFLAGS="-O2"
2506
  else
2507
    CFLAGS=
2508
  fi
2509
fi
2510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2511
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2512
if ${ac_cv_prog_cc_c89+:} false; then :
2513
  $as_echo_n "(cached) " >&6
2514
else
2515
  ac_cv_prog_cc_c89=no
2516
ac_save_CC=$CC
2517
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518
/* end confdefs.h.  */
2519
#include 
2520
#include 
2521
struct stat;
2522
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2523
struct buf { int x; };
2524
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2525
static char *e (p, i)
2526
     char **p;
2527
     int i;
2528
{
2529
  return p[i];
2530
}
2531
static char *f (char * (*g) (char **, int), char **p, ...)
2532
{
2533
  char *s;
2534
  va_list v;
2535
  va_start (v,p);
2536
  s = g (p, va_arg (v,int));
2537
  va_end (v);
2538
  return s;
2539
}
2540
 
2541
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2542
   function prototypes and stuff, but not '\xHH' hex character constants.
2543
   These don't provoke an error unfortunately, instead are silently treated
2544
   as 'x'.  The following induces an error, until -std is added to get
2545
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2546
   array size at least.  It's necessary to write '\x00'==0 to get something
2547
   that's true only with -std.  */
2548
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2549
 
2550
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2551
   inside strings and character constants.  */
2552
#define FOO(x) 'x'
2553
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2554
 
2555
int test (int i, double x);
2556
struct s1 {int (*f) (int a);};
2557
struct s2 {int (*f) (double a);};
2558
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2559
int argc;
2560
char **argv;
2561
int
2562
main ()
2563
{
2564
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2565
  ;
2566
  return 0;
2567
}
2568
_ACEOF
2569
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2570
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2571
do
2572
  CC="$ac_save_CC $ac_arg"
2573
  if ac_fn_c_try_compile "$LINENO"; then :
2574
  ac_cv_prog_cc_c89=$ac_arg
2575
fi
2576
rm -f core conftest.err conftest.$ac_objext
2577
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2578
done
2579
rm -f conftest.$ac_ext
2580
CC=$ac_save_CC
2581
 
2582
fi
2583
# AC_CACHE_VAL
2584
case "x$ac_cv_prog_cc_c89" in
2585
  x)
2586
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2587
$as_echo "none needed" >&6; } ;;
2588
  xno)
2589
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2590
$as_echo "unsupported" >&6; } ;;
2591
  *)
2592
    CC="$CC $ac_cv_prog_cc_c89"
2593
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2594
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2595
esac
2596
if test "x$ac_cv_prog_cc_c89" != xno; then :
2597
 
2598
fi
2599
 
2600
ac_ext=c
2601
ac_cpp='$CPP $CPPFLAGS'
2602
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605
 
2606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2607
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2608
if ${ac_cv_path_GREP+:} false; then :
2609
  $as_echo_n "(cached) " >&6
2610
else
2611
  if test -z "$GREP"; then
2612
  ac_path_GREP_found=false
2613
  # Loop through the user's path and test for each of PROGNAME-LIST
2614
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2616
do
2617
  IFS=$as_save_IFS
2618
  test -z "$as_dir" && as_dir=.
2619
    for ac_prog in grep ggrep; do
2620
    for ac_exec_ext in '' $ac_executable_extensions; do
2621
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2622
      as_fn_executable_p "$ac_path_GREP" || continue
2623
# Check for GNU ac_path_GREP and select it if it is found.
2624
  # Check for GNU $ac_path_GREP
2625
case `"$ac_path_GREP" --version 2>&1` in
2626
*GNU*)
2627
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2628
*)
2629
  ac_count=0
2630
  $as_echo_n 0123456789 >"conftest.in"
2631
  while :
2632
  do
2633
    cat "conftest.in" "conftest.in" >"conftest.tmp"
2634
    mv "conftest.tmp" "conftest.in"
2635
    cp "conftest.in" "conftest.nl"
2636
    $as_echo 'GREP' >> "conftest.nl"
2637
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2638
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2639
    as_fn_arith $ac_count + 1 && ac_count=$as_val
2640
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
2641
      # Best one so far, save it but keep looking for a better one
2642
      ac_cv_path_GREP="$ac_path_GREP"
2643
      ac_path_GREP_max=$ac_count
2644
    fi
2645
    # 10*(2^10) chars as input seems more than enough
2646
    test $ac_count -gt 10 && break
2647
  done
2648
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2649
esac
2650
 
2651
      $ac_path_GREP_found && break 3
2652
    done
2653
  done
2654
  done
2655
IFS=$as_save_IFS
2656
  if test -z "$ac_cv_path_GREP"; then
2657
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2658
  fi
2659
else
2660
  ac_cv_path_GREP=$GREP
2661
fi
2662
 
2663
fi
2664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
2665
$as_echo "$ac_cv_path_GREP" >&6; }
2666
 GREP="$ac_cv_path_GREP"
2667
 
2668
 
2669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
2670
$as_echo_n "checking for fgrep... " >&6; }
2671
if ${ac_cv_path_FGREP+:} false; then :
2672
  $as_echo_n "(cached) " >&6
2673
else
2674
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
2675
   then ac_cv_path_FGREP="$GREP -F"
2676
   else
2677
     if test -z "$FGREP"; then
2678
  ac_path_FGREP_found=false
2679
  # Loop through the user's path and test for each of PROGNAME-LIST
2680
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2682
do
2683
  IFS=$as_save_IFS
2684
  test -z "$as_dir" && as_dir=.
2685
    for ac_prog in fgrep; do
2686
    for ac_exec_ext in '' $ac_executable_extensions; do
2687
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
2688
      as_fn_executable_p "$ac_path_FGREP" || continue
2689
# Check for GNU ac_path_FGREP and select it if it is found.
2690
  # Check for GNU $ac_path_FGREP
2691
case `"$ac_path_FGREP" --version 2>&1` in
2692
*GNU*)
2693
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
2694
*)
2695
  ac_count=0
2696
  $as_echo_n 0123456789 >"conftest.in"
2697
  while :
2698
  do
2699
    cat "conftest.in" "conftest.in" >"conftest.tmp"
2700
    mv "conftest.tmp" "conftest.in"
2701
    cp "conftest.in" "conftest.nl"
2702
    $as_echo 'FGREP' >> "conftest.nl"
2703
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
2704
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2705
    as_fn_arith $ac_count + 1 && ac_count=$as_val
2706
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
2707
      # Best one so far, save it but keep looking for a better one
2708
      ac_cv_path_FGREP="$ac_path_FGREP"
2709
      ac_path_FGREP_max=$ac_count
2710
    fi
2711
    # 10*(2^10) chars as input seems more than enough
2712
    test $ac_count -gt 10 && break
2713
  done
2714
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2715
esac
2716
 
2717
      $ac_path_FGREP_found && break 3
2718
    done
2719
  done
2720
  done
2721
IFS=$as_save_IFS
2722
  if test -z "$ac_cv_path_FGREP"; then
2723
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2724
  fi
2725
else
2726
  ac_cv_path_FGREP=$FGREP
2727
fi
2728
 
2729
   fi
2730
fi
2731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
2732
$as_echo "$ac_cv_path_FGREP" >&6; }
2733
 FGREP="$ac_cv_path_FGREP"
2734
 
2735
 
2736
 
2737
# Extract the first word of "bash", so it can be a program name with args.
2738
set dummy bash; ac_word=$2
2739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740
$as_echo_n "checking for $ac_word... " >&6; }
2741
if ${ac_cv_path_BASH+:} false; then :
2742
  $as_echo_n "(cached) " >&6
2743
else
2744
  case $BASH in
2745
  [\\/]* | ?:[\\/]*)
2746
  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2747
  ;;
2748
  *)
2749
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750
for as_dir in $PATH
2751
do
2752
  IFS=$as_save_IFS
2753
  test -z "$as_dir" && as_dir=.
2754
    for ac_exec_ext in '' $ac_executable_extensions; do
2755
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756
    ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2757
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758
    break 2
2759
  fi
2760
done
2761
  done
2762
IFS=$as_save_IFS
2763
 
2764
  test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="as_fn_error $? "bash not found" "$LINENO" 5"
2765
  ;;
2766
esac
2767
fi
2768
BASH=$ac_cv_path_BASH
2769
if test -n "$BASH"; then
2770
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
2771
$as_echo "$BASH" >&6; }
2772
else
2773
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774
$as_echo "no" >&6; }
2775
fi
2776
 
2777
 
2778
 
2779
if test -z "$GAWK"; then
2780
  ac_path_GAWK_found=false
2781
  # Loop through the user's path and test for each of PROGNAME-LIST
2782
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783
for as_dir in $PATH
2784
do
2785
  IFS=$as_save_IFS
2786
  test -z "$as_dir" && as_dir=.
2787
    for ac_prog in gawk awk; do
2788
    for ac_exec_ext in '' $ac_executable_extensions; do
2789
      ac_path_GAWK="$as_dir/$ac_prog$ac_exec_ext"
2790
      as_fn_executable_p "$ac_path_GAWK" || continue
2791
if $ac_path_GAWK --version 2>&1 | $FGREP GNU >/dev/null; then :
2792
  ac_cv_path_GAWK=$ac_path_GAWK ac_path_GAWK_found=:
2793
fi
2794
      $ac_path_GAWK_found && break 3
2795
    done
2796
  done
2797
  done
2798
IFS=$as_save_IFS
2799
  if test -z "$ac_cv_path_GAWK"; then
2800
    as_fn_error $? "GNU Awk not found" "$LINENO" 5
2801
  fi
2802
else
2803
  ac_cv_path_GAWK=$GAWK
2804
fi
2805
 
2806
GAWK=$ac_cv_path_GAWK
2807
 
2808
 
2809
if test -z "$GSED"; then
2810
  ac_path_GSED_found=false
2811
  # Loop through the user's path and test for each of PROGNAME-LIST
2812
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813
for as_dir in $PATH
2814
do
2815
  IFS=$as_save_IFS
2816
  test -z "$as_dir" && as_dir=.
2817
    for ac_prog in gsed sed; do
2818
    for ac_exec_ext in '' $ac_executable_extensions; do
2819
      ac_path_GSED="$as_dir/$ac_prog$ac_exec_ext"
2820
      as_fn_executable_p "$ac_path_GSED" || continue
2821
if $ac_path_GSED --version 2>&1 | $FGREP GNU >/dev/null; then :
2822
  ac_cv_path_GSED=$ac_path_GSED ac_path_GSED_found=:
2823
fi
2824
      $ac_path_GSED_found && break 3
2825
    done
2826
  done
2827
  done
2828
IFS=$as_save_IFS
2829
  if test -z "$ac_cv_path_GSED"; then
2830
    as_fn_error $? "GNU sed not found" "$LINENO" 5
2831
  fi
2832
else
2833
  ac_cv_path_GSED=$GSED
2834
fi
2835
 
2836
GSED=$ac_cv_path_GSED
2837
 
2838
 
2839
need_gcc_external_libraries="no"
2840
 
2841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
2842
$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
2843
if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
2844
  $as_echo_n "(cached) " >&6
2845
else
2846
  ac_check_lib_save_LIBS=$LIBS
2847
LIBS="-lgmp  $LIBS"
2848
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849
/* end confdefs.h.  */
2850
 
2851
/* Override any GCC internal prototype to avoid an error.
2852
   Use char because int might match the return type of a GCC
2853
   builtin and then its argument prototype would still apply.  */
2854
#ifdef __cplusplus
2855
extern "C"
2856
#endif
2857
char __gmpz_init ();
2858
int
2859
main ()
2860
{
2861
return __gmpz_init ();
2862
  ;
2863
  return 0;
2864
}
2865
_ACEOF
2866
if ac_fn_c_try_link "$LINENO"; then :
2867
  ac_cv_lib_gmp___gmpz_init=yes
2868
else
2869
  ac_cv_lib_gmp___gmpz_init=no
2870
fi
2871
rm -f core conftest.err conftest.$ac_objext \
2872
    conftest$ac_exeext conftest.$ac_ext
2873
LIBS=$ac_check_lib_save_LIBS
2874
fi
2875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
2876
$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
2877
if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
2878
  cat >>confdefs.h <<_ACEOF
2879
#define HAVE_LIBGMP 1
2880
_ACEOF
2881
 
2882
  LIBS="-lgmp $LIBS"
2883
 
2884
else
2885
  need_gcc_external_libraries="yes"
2886
fi
2887
 
2888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_init in -lmpfr" >&5
2889
$as_echo_n "checking for mpfr_init in -lmpfr... " >&6; }
2890
if ${ac_cv_lib_mpfr_mpfr_init+:} false; then :
2891
  $as_echo_n "(cached) " >&6
2892
else
2893
  ac_check_lib_save_LIBS=$LIBS
2894
LIBS="-lmpfr  $LIBS"
2895
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896
/* end confdefs.h.  */
2897
 
2898
/* Override any GCC internal prototype to avoid an error.
2899
   Use char because int might match the return type of a GCC
2900
   builtin and then its argument prototype would still apply.  */
2901
#ifdef __cplusplus
2902
extern "C"
2903
#endif
2904
char mpfr_init ();
2905
int
2906
main ()
2907
{
2908
return mpfr_init ();
2909
  ;
2910
  return 0;
2911
}
2912
_ACEOF
2913
if ac_fn_c_try_link "$LINENO"; then :
2914
  ac_cv_lib_mpfr_mpfr_init=yes
2915
else
2916
  ac_cv_lib_mpfr_mpfr_init=no
2917
fi
2918
rm -f core conftest.err conftest.$ac_objext \
2919
    conftest$ac_exeext conftest.$ac_ext
2920
LIBS=$ac_check_lib_save_LIBS
2921
fi
2922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_init" >&5
2923
$as_echo "$ac_cv_lib_mpfr_mpfr_init" >&6; }
2924
if test "x$ac_cv_lib_mpfr_mpfr_init" = xyes; then :
2925
  cat >>confdefs.h <<_ACEOF
2926
#define HAVE_LIBMPFR 1
2927
_ACEOF
2928
 
2929
  LIBS="-lmpfr $LIBS"
2930
 
2931
else
2932
  need_gcc_external_libraries="yes"
2933
fi
2934
 
2935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpc_init2 in -lmpc" >&5
2936
$as_echo_n "checking for mpc_init2 in -lmpc... " >&6; }
2937
if ${ac_cv_lib_mpc_mpc_init2+:} false; then :
2938
  $as_echo_n "(cached) " >&6
2939
else
2940
  ac_check_lib_save_LIBS=$LIBS
2941
LIBS="-lmpc  $LIBS"
2942
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943
/* end confdefs.h.  */
2944
 
2945
/* Override any GCC internal prototype to avoid an error.
2946
   Use char because int might match the return type of a GCC
2947
   builtin and then its argument prototype would still apply.  */
2948
#ifdef __cplusplus
2949
extern "C"
2950
#endif
2951
char mpc_init2 ();
2952
int
2953
main ()
2954
{
2955
return mpc_init2 ();
2956
  ;
2957
  return 0;
2958
}
2959
_ACEOF
2960
if ac_fn_c_try_link "$LINENO"; then :
2961
  ac_cv_lib_mpc_mpc_init2=yes
2962
else
2963
  ac_cv_lib_mpc_mpc_init2=no
2964
fi
2965
rm -f core conftest.err conftest.$ac_objext \
2966
    conftest$ac_exeext conftest.$ac_ext
2967
LIBS=$ac_check_lib_save_LIBS
2968
fi
2969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_mpc_init2" >&5
2970
$as_echo "$ac_cv_lib_mpc_mpc_init2" >&6; }
2971
if test "x$ac_cv_lib_mpc_mpc_init2" = xyes; then :
2972
  cat >>confdefs.h <<_ACEOF
2973
#define HAVE_LIBMPC 1
2974
_ACEOF
2975
 
2976
  LIBS="-lmpc $LIBS"
2977
 
2978
else
2979
  need_gcc_external_libraries="yes"
2980
fi
2981
 
2982
if test x"$need_gcc_external_libraries" != xno; then :
2983
  NEED_GCC_EXTERNAL_LIBRARIES=true
2984
 
2985
else
2986
  NEED_GCC_EXTERNAL_LIBRARIES=false
2987
 
2988
fi
2989
 
2990
# Extract the first word of "curl", so it can be a program name with args.
2991
set dummy curl; ac_word=$2
2992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993
$as_echo_n "checking for $ac_word... " >&6; }
2994
if ${ac_cv_path_CURL+:} false; then :
2995
  $as_echo_n "(cached) " >&6
2996
else
2997
  case $CURL in
2998
  [\\/]* | ?:[\\/]*)
2999
  ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
3000
  ;;
3001
  *)
3002
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003
for as_dir in $PATH
3004
do
3005
  IFS=$as_save_IFS
3006
  test -z "$as_dir" && as_dir=.
3007
    for ac_exec_ext in '' $ac_executable_extensions; do
3008
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3009
    ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
3010
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011
    break 2
3012
  fi
3013
done
3014
  done
3015
IFS=$as_save_IFS
3016
 
3017
  test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="no"
3018
  ;;
3019
esac
3020
fi
3021
CURL=$ac_cv_path_CURL
3022
if test -n "$CURL"; then
3023
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
3024
$as_echo "$CURL" >&6; }
3025
else
3026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027
$as_echo "no" >&6; }
3028
fi
3029
 
3030
 
3031
# Extract the first word of "wget", so it can be a program name with args.
3032
set dummy wget; ac_word=$2
3033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034
$as_echo_n "checking for $ac_word... " >&6; }
3035
if ${ac_cv_path_WGET+:} false; then :
3036
  $as_echo_n "(cached) " >&6
3037
else
3038
  case $WGET in
3039
  [\\/]* | ?:[\\/]*)
3040
  ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
3041
  ;;
3042
  *)
3043
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044
for as_dir in $PATH
3045
do
3046
  IFS=$as_save_IFS
3047
  test -z "$as_dir" && as_dir=.
3048
    for ac_exec_ext in '' $ac_executable_extensions; do
3049
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050
    ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
3051
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052
    break 2
3053
  fi
3054
done
3055
  done
3056
IFS=$as_save_IFS
3057
 
3058
  test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="no"
3059
  ;;
3060
esac
3061
fi
3062
WGET=$ac_cv_path_WGET
3063
if test -n "$WGET"; then
3064
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
3065
$as_echo "$WGET" >&6; }
3066
else
3067
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068
$as_echo "no" >&6; }
3069
fi
3070
 
3071
 
3072
# Extract the first word of "ftp", so it can be a program name with args.
3073
set dummy ftp; ac_word=$2
3074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075
$as_echo_n "checking for $ac_word... " >&6; }
3076
if ${ac_cv_path_FTP+:} false; then :
3077
  $as_echo_n "(cached) " >&6
3078
else
3079
  case $FTP in
3080
  [\\/]* | ?:[\\/]*)
3081
  ac_cv_path_FTP="$FTP" # Let the user override the test with a path.
3082
  ;;
3083
  *)
3084
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085
for as_dir in $PATH
3086
do
3087
  IFS=$as_save_IFS
3088
  test -z "$as_dir" && as_dir=.
3089
    for ac_exec_ext in '' $ac_executable_extensions; do
3090
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091
    ac_cv_path_FTP="$as_dir/$ac_word$ac_exec_ext"
3092
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093
    break 2
3094
  fi
3095
done
3096
  done
3097
IFS=$as_save_IFS
3098
 
3099
  test -z "$ac_cv_path_FTP" && ac_cv_path_FTP="no"
3100
  ;;
3101
esac
3102
fi
3103
FTP=$ac_cv_path_FTP
3104
if test -n "$FTP"; then
3105
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FTP" >&5
3106
$as_echo "$FTP" >&6; }
3107
else
3108
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109
$as_echo "no" >&6; }
3110
fi
3111
 
3112
 
3113
if test x"$CURL" != xno; then :
3114
  FETCHER="$CURL -o - --ftp-pasv"
3115
elif test x"$WGET" != xno; then :
3116
  FETCHER="$WGET -O -"
3117
elif test x"$FTP" != xno; then :
3118
  FETCHER="$FTP -o - -p"
3119
else
3120
  as_fn_error $? "no file transfer utility found" "$LINENO" 5
3121
fi
3122
 
3123
 
3124
# Check whether --enable-linux was given.
3125
if test "${enable_linux+set}" = set; then :
3126
  enableval=$enable_linux;
3127
else
3128
  enable_linux=no
3129
 
3130
fi
3131
 
3132
 
3133
if test "x$enable_linux" != xno; then :
3134
  default_target=linux
3135
 
3136
else
3137
  default_target=newlib
3138
 
3139
fi
3140
 
3141
 
3142
# Check whether --with-xlen was given.
3143
if test "${with_xlen+set}" = set; then :
3144
  withval=$with_xlen; XLEN=$withval
3145
 
3146
else
3147
  XLEN=64
3148
 
3149
 
3150
fi
3151
 
3152
 
3153
 
3154
# Check whether --with-arch was given.
3155
if test "${with_arch+set}" = set; then :
3156
  withval=$with_arch; WITH_ARCH=--with-arch=$withval
3157
 
3158
fi
3159
 
3160
 
3161
# Check whether --enable-atomic was given.
3162
if test "${enable_atomic+set}" = set; then :
3163
  enableval=$enable_atomic;
3164
else
3165
  enable_atomic=yes
3166
 
3167
fi
3168
 
3169
 
3170
if test "x$enable_atomic" != xno; then :
3171
 
3172
else
3173
  atomic_cflags=-mno-atomic
3174
 
3175
fi
3176
 
3177
# Check whether --enable-float was given.
3178
if test "${enable_float+set}" = set; then :
3179
  enableval=$enable_float;
3180
else
3181
  enable_float=yes
3182
 
3183
fi
3184
 
3185
 
3186
if test "x$enable_float" != xno; then :
3187
 
3188
else
3189
  float_cflags=-msoft-float
3190
float_asflags=-msoft-float
3191
glibc_configure_flags=--without-fp
3192
 
3193
fi
3194
 
3195
# Check whether --enable-multilib was given.
3196
if test "${enable_multilib+set}" = set; then :
3197
  enableval=$enable_multilib;
3198
else
3199
  enable_multilib=no
3200
 
3201
fi
3202
 
3203
 
3204
if test "x$enable_multilib" != xno; then :
3205
 
3206
else
3207
  multilib_flags=--disable-multilib
3208
 
3209
fi
3210
 
3211
ac_config_files="$ac_config_files Makefile"
3212
 
3213
ac_config_files="$ac_config_files scripts/wrapper/awk/awk"
3214
 
3215
ac_config_files="$ac_config_files scripts/wrapper/sed/sed"
3216
 
3217
 
3218
cat >confcache <<\_ACEOF
3219
# This file is a shell script that caches the results of configure
3220
# tests run on this system so they can be shared between configure
3221
# scripts and configure runs, see configure's option --config-cache.
3222
# It is not useful on other systems.  If it contains results you don't
3223
# want to keep, you may remove or edit it.
3224
#
3225
# config.status only pays attention to the cache file if you give it
3226
# the --recheck option to rerun configure.
3227
#
3228
# `ac_cv_env_foo' variables (set or unset) will be overridden when
3229
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3230
# following values.
3231
 
3232
_ACEOF
3233
 
3234
# The following way of writing the cache mishandles newlines in values,
3235
# but we know of no workaround that is simple, portable, and efficient.
3236
# So, we kill variables containing newlines.
3237
# Ultrix sh set writes to stderr and can't be redirected directly,
3238
# and sets the high bit in the cache file unless we assign to the vars.
3239
(
3240
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3241
    eval ac_val=\$$ac_var
3242
    case $ac_val in #(
3243
    *${as_nl}*)
3244
      case $ac_var in #(
3245
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3246
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3247
      esac
3248
      case $ac_var in #(
3249
      _ | IFS | as_nl) ;; #(
3250
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3251
      *) { eval $ac_var=; unset $ac_var;} ;;
3252
      esac ;;
3253
    esac
3254
  done
3255
 
3256
  (set) 2>&1 |
3257
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3258
    *${as_nl}ac_space=\ *)
3259
      # `set' does not quote correctly, so add quotes: double-quote
3260
      # substitution turns \\\\ into \\, and sed turns \\ into \.
3261
      sed -n \
3262
        "s/'/'\\\\''/g;
3263
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3264
      ;; #(
3265
    *)
3266
      # `set' quotes correctly as required by POSIX, so do not add quotes.
3267
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3268
      ;;
3269
    esac |
3270
    sort
3271
) |
3272
  sed '
3273
     /^ac_cv_env_/b end
3274
     t clear
3275
     :clear
3276
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3277
     t end
3278
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3279
     :end' >>confcache
3280
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3281
  if test -w "$cache_file"; then
3282
    if test "x$cache_file" != "x/dev/null"; then
3283
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3284
$as_echo "$as_me: updating cache $cache_file" >&6;}
3285
      if test ! -f "$cache_file" || test -h "$cache_file"; then
3286
        cat confcache >"$cache_file"
3287
      else
3288
        case $cache_file in #(
3289
        */* | ?:*)
3290
          mv -f confcache "$cache_file"$$ &&
3291
          mv -f "$cache_file"$$ "$cache_file" ;; #(
3292
        *)
3293
          mv -f confcache "$cache_file" ;;
3294
        esac
3295
      fi
3296
    fi
3297
  else
3298
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3299
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3300
  fi
3301
fi
3302
rm -f confcache
3303
 
3304
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3305
# Let make expand exec_prefix.
3306
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3307
 
3308
# Transform confdefs.h into DEFS.
3309
# Protect against shell expansion while executing Makefile rules.
3310
# Protect against Makefile macro expansion.
3311
#
3312
# If the first sed substitution is executed (which looks for macros that
3313
# take arguments), then branch to the quote section.  Otherwise,
3314
# look for a macro that doesn't take arguments.
3315
ac_script='
3316
:mline
3317
/\\$/{
3318
 N
3319
 s,\\\n,,
3320
 b mline
3321
}
3322
t clear
3323
:clear
3324
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
3325
t quote
3326
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
3327
t quote
3328
b any
3329
:quote
3330
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3331
s/\[/\\&/g
3332
s/\]/\\&/g
3333
s/\$/$$/g
3334
H
3335
:any
3336
${
3337
        g
3338
        s/^\n//
3339
        s/\n/ /g
3340
        p
3341
}
3342
'
3343
DEFS=`sed -n "$ac_script" confdefs.h`
3344
 
3345
 
3346
ac_libobjs=
3347
ac_ltlibobjs=
3348
U=
3349
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3350
  # 1. Remove the extension, and $U if already installed.
3351
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3352
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3353
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3354
  #    will be set to the directory where LIBOBJS objects are built.
3355
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3356
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3357
done
3358
LIBOBJS=$ac_libobjs
3359
 
3360
LTLIBOBJS=$ac_ltlibobjs
3361
 
3362
 
3363
 
3364
: "${CONFIG_STATUS=./config.status}"
3365
ac_write_fail=0
3366
ac_clean_files_save=$ac_clean_files
3367
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3368
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3369
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3370
as_write_fail=0
3371
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3372
#! $SHELL
3373
# Generated by $as_me.
3374
# Run this file to recreate the current configuration.
3375
# Compiler output produced by configure, useful for debugging
3376
# configure, is in config.log if it exists.
3377
 
3378
debug=false
3379
ac_cs_recheck=false
3380
ac_cs_silent=false
3381
 
3382
SHELL=\${CONFIG_SHELL-$SHELL}
3383
export SHELL
3384
_ASEOF
3385
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3386
## -------------------- ##
3387
## M4sh Initialization. ##
3388
## -------------------- ##
3389
 
3390
# Be more Bourne compatible
3391
DUALCASE=1; export DUALCASE # for MKS sh
3392
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3393
  emulate sh
3394
  NULLCMD=:
3395
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3396
  # is contrary to our usage.  Disable this feature.
3397
  alias -g '${1+"$@"}'='"$@"'
3398
  setopt NO_GLOB_SUBST
3399
else
3400
  case `(set -o) 2>/dev/null` in #(
3401
  *posix*) :
3402
    set -o posix ;; #(
3403
  *) :
3404
     ;;
3405
esac
3406
fi
3407
 
3408
 
3409
as_nl='
3410
'
3411
export as_nl
3412
# Printing a long string crashes Solaris 7 /usr/bin/printf.
3413
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3414
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3415
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3416
# Prefer a ksh shell builtin over an external printf program on Solaris,
3417
# but without wasting forks for bash or zsh.
3418
if test -z "$BASH_VERSION$ZSH_VERSION" \
3419
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3420
  as_echo='print -r --'
3421
  as_echo_n='print -rn --'
3422
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3423
  as_echo='printf %s\n'
3424
  as_echo_n='printf %s'
3425
else
3426
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3427
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3428
    as_echo_n='/usr/ucb/echo -n'
3429
  else
3430
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3431
    as_echo_n_body='eval
3432
      arg=$1;
3433
      case $arg in #(
3434
      *"$as_nl"*)
3435
        expr "X$arg" : "X\\(.*\\)$as_nl";
3436
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3437
      esac;
3438
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3439
    '
3440
    export as_echo_n_body
3441
    as_echo_n='sh -c $as_echo_n_body as_echo'
3442
  fi
3443
  export as_echo_body
3444
  as_echo='sh -c $as_echo_body as_echo'
3445
fi
3446
 
3447
# The user is always right.
3448
if test "${PATH_SEPARATOR+set}" != set; then
3449
  PATH_SEPARATOR=:
3450
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3451
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3452
      PATH_SEPARATOR=';'
3453
  }
3454
fi
3455
 
3456
 
3457
# IFS
3458
# We need space, tab and new line, in precisely that order.  Quoting is
3459
# there to prevent editors from complaining about space-tab.
3460
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3461
# splitting by setting IFS to empty value.)
3462
IFS=" ""        $as_nl"
3463
 
3464
# Find who we are.  Look in the path if we contain no directory separator.
3465
as_myself=
3466
case $0 in #((
3467
  *[\\/]* ) as_myself=$0 ;;
3468
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469
for as_dir in $PATH
3470
do
3471
  IFS=$as_save_IFS
3472
  test -z "$as_dir" && as_dir=.
3473
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3474
  done
3475
IFS=$as_save_IFS
3476
 
3477
     ;;
3478
esac
3479
# We did not find ourselves, most probably we were run as `sh COMMAND'
3480
# in which case we are not to be found in the path.
3481
if test "x$as_myself" = x; then
3482
  as_myself=$0
3483
fi
3484
if test ! -f "$as_myself"; then
3485
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3486
  exit 1
3487
fi
3488
 
3489
# Unset variables that we do not need and which cause bugs (e.g. in
3490
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3491
# suppresses any "Segmentation fault" message there.  '((' could
3492
# trigger a bug in pdksh 5.2.14.
3493
for as_var in BASH_ENV ENV MAIL MAILPATH
3494
do eval test x\${$as_var+set} = xset \
3495
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3496
done
3497
PS1='$ '
3498
PS2='> '
3499
PS4='+ '
3500
 
3501
# NLS nuisances.
3502
LC_ALL=C
3503
export LC_ALL
3504
LANGUAGE=C
3505
export LANGUAGE
3506
 
3507
# CDPATH.
3508
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3509
 
3510
 
3511
# as_fn_error STATUS ERROR [LINENO LOG_FD]
3512
# ----------------------------------------
3513
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3514
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3515
# script with STATUS, using 1 if that was 0.
3516
as_fn_error ()
3517
{
3518
  as_status=$1; test $as_status -eq 0 && as_status=1
3519
  if test "$4"; then
3520
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3521
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3522
  fi
3523
  $as_echo "$as_me: error: $2" >&2
3524
  as_fn_exit $as_status
3525
} # as_fn_error
3526
 
3527
 
3528
# as_fn_set_status STATUS
3529
# -----------------------
3530
# Set $? to STATUS, without forking.
3531
as_fn_set_status ()
3532
{
3533
  return $1
3534
} # as_fn_set_status
3535
 
3536
# as_fn_exit STATUS
3537
# -----------------
3538
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3539
as_fn_exit ()
3540
{
3541
  set +e
3542
  as_fn_set_status $1
3543
  exit $1
3544
} # as_fn_exit
3545
 
3546
# as_fn_unset VAR
3547
# ---------------
3548
# Portably unset VAR.
3549
as_fn_unset ()
3550
{
3551
  { eval $1=; unset $1;}
3552
}
3553
as_unset=as_fn_unset
3554
# as_fn_append VAR VALUE
3555
# ----------------------
3556
# Append the text in VALUE to the end of the definition contained in VAR. Take
3557
# advantage of any shell optimizations that allow amortized linear growth over
3558
# repeated appends, instead of the typical quadratic growth present in naive
3559
# implementations.
3560
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3561
  eval 'as_fn_append ()
3562
  {
3563
    eval $1+=\$2
3564
  }'
3565
else
3566
  as_fn_append ()
3567
  {
3568
    eval $1=\$$1\$2
3569
  }
3570
fi # as_fn_append
3571
 
3572
# as_fn_arith ARG...
3573
# ------------------
3574
# Perform arithmetic evaluation on the ARGs, and store the result in the
3575
# global $as_val. Take advantage of shells that can avoid forks. The arguments
3576
# must be portable across $(()) and expr.
3577
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3578
  eval 'as_fn_arith ()
3579
  {
3580
    as_val=$(( $* ))
3581
  }'
3582
else
3583
  as_fn_arith ()
3584
  {
3585
    as_val=`expr "$@" || test $? -eq 1`
3586
  }
3587
fi # as_fn_arith
3588
 
3589
 
3590
if expr a : '\(a\)' >/dev/null 2>&1 &&
3591
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3592
  as_expr=expr
3593
else
3594
  as_expr=false
3595
fi
3596
 
3597
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3598
  as_basename=basename
3599
else
3600
  as_basename=false
3601
fi
3602
 
3603
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3604
  as_dirname=dirname
3605
else
3606
  as_dirname=false
3607
fi
3608
 
3609
as_me=`$as_basename -- "$0" ||
3610
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3611
         X"$0" : 'X\(//\)$' \| \
3612
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3613
$as_echo X/"$0" |
3614
    sed '/^.*\/\([^/][^/]*\)\/*$/{
3615
            s//\1/
3616
            q
3617
          }
3618
          /^X\/\(\/\/\)$/{
3619
            s//\1/
3620
            q
3621
          }
3622
          /^X\/\(\/\).*/{
3623
            s//\1/
3624
            q
3625
          }
3626
          s/.*/./; q'`
3627
 
3628
# Avoid depending upon Character Ranges.
3629
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3630
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3631
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3632
as_cr_digits='0123456789'
3633
as_cr_alnum=$as_cr_Letters$as_cr_digits
3634
 
3635
ECHO_C= ECHO_N= ECHO_T=
3636
case `echo -n x` in #(((((
3637
-n*)
3638
  case `echo 'xy\c'` in
3639
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3640
  xy)  ECHO_C='\c';;
3641
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3642
       ECHO_T=' ';;
3643
  esac;;
3644
*)
3645
  ECHO_N='-n';;
3646
esac
3647
 
3648
rm -f conf$$ conf$$.exe conf$$.file
3649
if test -d conf$$.dir; then
3650
  rm -f conf$$.dir/conf$$.file
3651
else
3652
  rm -f conf$$.dir
3653
  mkdir conf$$.dir 2>/dev/null
3654
fi
3655
if (echo >conf$$.file) 2>/dev/null; then
3656
  if ln -s conf$$.file conf$$ 2>/dev/null; then
3657
    as_ln_s='ln -s'
3658
    # ... but there are two gotchas:
3659
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3660
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3661
    # In both cases, we have to default to `cp -pR'.
3662
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3663
      as_ln_s='cp -pR'
3664
  elif ln conf$$.file conf$$ 2>/dev/null; then
3665
    as_ln_s=ln
3666
  else
3667
    as_ln_s='cp -pR'
3668
  fi
3669
else
3670
  as_ln_s='cp -pR'
3671
fi
3672
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3673
rmdir conf$$.dir 2>/dev/null
3674
 
3675
 
3676
# as_fn_mkdir_p
3677
# -------------
3678
# Create "$as_dir" as a directory, including parents if necessary.
3679
as_fn_mkdir_p ()
3680
{
3681
 
3682
  case $as_dir in #(
3683
  -*) as_dir=./$as_dir;;
3684
  esac
3685
  test -d "$as_dir" || eval $as_mkdir_p || {
3686
    as_dirs=
3687
    while :; do
3688
      case $as_dir in #(
3689
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3690
      *) as_qdir=$as_dir;;
3691
      esac
3692
      as_dirs="'$as_qdir' $as_dirs"
3693
      as_dir=`$as_dirname -- "$as_dir" ||
3694
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3695
         X"$as_dir" : 'X\(//\)[^/]' \| \
3696
         X"$as_dir" : 'X\(//\)$' \| \
3697
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3698
$as_echo X"$as_dir" |
3699
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3700
            s//\1/
3701
            q
3702
          }
3703
          /^X\(\/\/\)[^/].*/{
3704
            s//\1/
3705
            q
3706
          }
3707
          /^X\(\/\/\)$/{
3708
            s//\1/
3709
            q
3710
          }
3711
          /^X\(\/\).*/{
3712
            s//\1/
3713
            q
3714
          }
3715
          s/.*/./; q'`
3716
      test -d "$as_dir" && break
3717
    done
3718
    test -z "$as_dirs" || eval "mkdir $as_dirs"
3719
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3720
 
3721
 
3722
} # as_fn_mkdir_p
3723
if mkdir -p . 2>/dev/null; then
3724
  as_mkdir_p='mkdir -p "$as_dir"'
3725
else
3726
  test -d ./-p && rmdir ./-p
3727
  as_mkdir_p=false
3728
fi
3729
 
3730
 
3731
# as_fn_executable_p FILE
3732
# -----------------------
3733
# Test if FILE is an executable regular file.
3734
as_fn_executable_p ()
3735
{
3736
  test -f "$1" && test -x "$1"
3737
} # as_fn_executable_p
3738
as_test_x='test -x'
3739
as_executable_p=as_fn_executable_p
3740
 
3741
# Sed expression to map a string onto a valid CPP name.
3742
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3743
 
3744
# Sed expression to map a string onto a valid variable name.
3745
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3746
 
3747
 
3748
exec 6>&1
3749
## ----------------------------------- ##
3750
## Main body of $CONFIG_STATUS script. ##
3751
## ----------------------------------- ##
3752
_ASEOF
3753
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3754
 
3755
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3756
# Save the log message, to keep $0 and so on meaningful, and to
3757
# report actual input values of CONFIG_FILES etc. instead of their
3758
# values after options handling.
3759
ac_log="
3760
This file was extended by riscv-toolchain $as_me 1.0, which was
3761
generated by GNU Autoconf 2.69.  Invocation command line was
3762
 
3763
  CONFIG_FILES    = $CONFIG_FILES
3764
  CONFIG_HEADERS  = $CONFIG_HEADERS
3765
  CONFIG_LINKS    = $CONFIG_LINKS
3766
  CONFIG_COMMANDS = $CONFIG_COMMANDS
3767
  $ $0 $@
3768
 
3769
on `(hostname || uname -n) 2>/dev/null | sed 1q`
3770
"
3771
 
3772
_ACEOF
3773
 
3774
case $ac_config_files in *"
3775
"*) set x $ac_config_files; shift; ac_config_files=$*;;
3776
esac
3777
 
3778
 
3779
 
3780
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3781
# Files that config.status was made for.
3782
config_files="$ac_config_files"
3783
 
3784
_ACEOF
3785
 
3786
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3787
ac_cs_usage="\
3788
\`$as_me' instantiates files and other configuration actions
3789
from templates according to the current configuration.  Unless the files
3790
and actions are specified as TAGs, all are instantiated by default.
3791
 
3792
Usage: $0 [OPTION]... [TAG]...
3793
 
3794
  -h, --help       print this help, then exit
3795
  -V, --version    print version number and configuration settings, then exit
3796
      --config     print configuration, then exit
3797
  -q, --quiet, --silent
3798
                   do not print progress messages
3799
  -d, --debug      don't remove temporary files
3800
      --recheck    update $as_me by reconfiguring in the same conditions
3801
      --file=FILE[:TEMPLATE]
3802
                   instantiate the configuration file FILE
3803
 
3804
Configuration files:
3805
$config_files
3806
 
3807
Report bugs to the package provider."
3808
 
3809
_ACEOF
3810
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3811
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3812
ac_cs_version="\\
3813
riscv-toolchain config.status 1.0
3814
configured by $0, generated by GNU Autoconf 2.69,
3815
  with options \\"\$ac_cs_config\\"
3816
 
3817
Copyright (C) 2012 Free Software Foundation, Inc.
3818
This config.status script is free software; the Free Software Foundation
3819
gives unlimited permission to copy, distribute and modify it."
3820
 
3821
ac_pwd='$ac_pwd'
3822
srcdir='$srcdir'
3823
test -n "\$AWK" || AWK=awk
3824
_ACEOF
3825
 
3826
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3827
# The default lists apply if the user does not specify any file.
3828
ac_need_defaults=:
3829
while test $# != 0
3830
do
3831
  case $1 in
3832
  --*=?*)
3833
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3834
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3835
    ac_shift=:
3836
    ;;
3837
  --*=)
3838
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3839
    ac_optarg=
3840
    ac_shift=:
3841
    ;;
3842
  *)
3843
    ac_option=$1
3844
    ac_optarg=$2
3845
    ac_shift=shift
3846
    ;;
3847
  esac
3848
 
3849
  case $ac_option in
3850
  # Handling of the options.
3851
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3852
    ac_cs_recheck=: ;;
3853
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3854
    $as_echo "$ac_cs_version"; exit ;;
3855
  --config | --confi | --conf | --con | --co | --c )
3856
    $as_echo "$ac_cs_config"; exit ;;
3857
  --debug | --debu | --deb | --de | --d | -d )
3858
    debug=: ;;
3859
  --file | --fil | --fi | --f )
3860
    $ac_shift
3861
    case $ac_optarg in
3862
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3863
    '') as_fn_error $? "missing file argument" ;;
3864
    esac
3865
    as_fn_append CONFIG_FILES " '$ac_optarg'"
3866
    ac_need_defaults=false;;
3867
  --he | --h |  --help | --hel | -h )
3868
    $as_echo "$ac_cs_usage"; exit ;;
3869
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3870
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3871
    ac_cs_silent=: ;;
3872
 
3873
  # This is an error.
3874
  -*) as_fn_error $? "unrecognized option: \`$1'
3875
Try \`$0 --help' for more information." ;;
3876
 
3877
  *) as_fn_append ac_config_targets " $1"
3878
     ac_need_defaults=false ;;
3879
 
3880
  esac
3881
  shift
3882
done
3883
 
3884
ac_configure_extra_args=
3885
 
3886
if $ac_cs_silent; then
3887
  exec 6>/dev/null
3888
  ac_configure_extra_args="$ac_configure_extra_args --silent"
3889
fi
3890
 
3891
_ACEOF
3892
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3893
if \$ac_cs_recheck; then
3894
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3895
  shift
3896
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3897
  CONFIG_SHELL='$SHELL'
3898
  export CONFIG_SHELL
3899
  exec "\$@"
3900
fi
3901
 
3902
_ACEOF
3903
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3904
exec 5>>config.log
3905
{
3906
  echo
3907
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3908
## Running $as_me. ##
3909
_ASBOX
3910
  $as_echo "$ac_log"
3911
} >&5
3912
 
3913
_ACEOF
3914
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3915
_ACEOF
3916
 
3917
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3918
 
3919
# Handling of arguments.
3920
for ac_config_target in $ac_config_targets
3921
do
3922
  case $ac_config_target in
3923
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3924
    "scripts/wrapper/awk/awk") CONFIG_FILES="$CONFIG_FILES scripts/wrapper/awk/awk" ;;
3925
    "scripts/wrapper/sed/sed") CONFIG_FILES="$CONFIG_FILES scripts/wrapper/sed/sed" ;;
3926
 
3927
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3928
  esac
3929
done
3930
 
3931
 
3932
# If the user did not use the arguments to specify the items to instantiate,
3933
# then the envvar interface is used.  Set only those that are not.
3934
# We use the long form for the default assignment because of an extremely
3935
# bizarre bug on SunOS 4.1.3.
3936
if $ac_need_defaults; then
3937
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3938
fi
3939
 
3940
# Have a temporary directory for convenience.  Make it in the build tree
3941
# simply because there is no reason against having it here, and in addition,
3942
# creating and moving files from /tmp can sometimes cause problems.
3943
# Hook for its removal unless debugging.
3944
# Note that there is a small window in which the directory will not be cleaned:
3945
# after its creation but before its name has been assigned to `$tmp'.
3946
$debug ||
3947
{
3948
  tmp= ac_tmp=
3949
  trap 'exit_status=$?
3950
  : "${ac_tmp:=$tmp}"
3951
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3952
' 0
3953
  trap 'as_fn_exit 1' 1 2 13 15
3954
}
3955
# Create a (secure) tmp directory for tmp files.
3956
 
3957
{
3958
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3959
  test -d "$tmp"
3960
}  ||
3961
{
3962
  tmp=./conf$$-$RANDOM
3963
  (umask 077 && mkdir "$tmp")
3964
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3965
ac_tmp=$tmp
3966
 
3967
# Set up the scripts for CONFIG_FILES section.
3968
# No need to generate them if there are no CONFIG_FILES.
3969
# This happens for instance with `./config.status config.h'.
3970
if test -n "$CONFIG_FILES"; then
3971
 
3972
 
3973
ac_cr=`echo X | tr X '\015'`
3974
# On cygwin, bash can eat \r inside `` if the user requested igncr.
3975
# But we know of no other shell where ac_cr would be empty at this
3976
# point, so we can use a bashism as a fallback.
3977
if test "x$ac_cr" = x; then
3978
  eval ac_cr=\$\'\\r\'
3979
fi
3980
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
3981
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3982
  ac_cs_awk_cr='\\r'
3983
else
3984
  ac_cs_awk_cr=$ac_cr
3985
fi
3986
 
3987
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3988
_ACEOF
3989
 
3990
 
3991
{
3992
  echo "cat >conf$$subs.awk <<_ACEOF" &&
3993
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3994
  echo "_ACEOF"
3995
} >conf$$subs.sh ||
3996
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3997
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3998
ac_delim='%!_!# '
3999
for ac_last_try in false false false false false :; do
4000
  . ./conf$$subs.sh ||
4001
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4002
 
4003
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4004
  if test $ac_delim_n = $ac_delim_num; then
4005
    break
4006
  elif $ac_last_try; then
4007
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4008
  else
4009
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4010
  fi
4011
done
4012
rm -f conf$$subs.sh
4013
 
4014
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4015
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4016
_ACEOF
4017
sed -n '
4018
h
4019
s/^/S["/; s/!.*/"]=/
4020
p
4021
g
4022
s/^[^!]*!//
4023
:repl
4024
t repl
4025
s/'"$ac_delim"'$//
4026
t delim
4027
:nl
4028
h
4029
s/\(.\{148\}\)..*/\1/
4030
t more1
4031
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4032
p
4033
n
4034
b repl
4035
:more1
4036
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4037
p
4038
g
4039
s/.\{148\}//
4040
t nl
4041
:delim
4042
h
4043
s/\(.\{148\}\)..*/\1/
4044
t more2
4045
s/["\\]/\\&/g; s/^/"/; s/$/"/
4046
p
4047
b
4048
:more2
4049
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4050
p
4051
g
4052
s/.\{148\}//
4053
t delim
4054
' 
4055
/^[^""]/{
4056
  N
4057
  s/\n//
4058
}
4059
' >>$CONFIG_STATUS || ac_write_fail=1
4060
rm -f conf$$subs.awk
4061
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4062
_ACAWK
4063
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4064
  for (key in S) S_is_set[key] = 1
4065
  FS = ""
4066
 
4067
}
4068
{
4069
  line = $ 0
4070
  nfields = split(line, field, "@")
4071
  substed = 0
4072
  len = length(field[1])
4073
  for (i = 2; i < nfields; i++) {
4074
    key = field[i]
4075
    keylen = length(key)
4076
    if (S_is_set[key]) {
4077
      value = S[key]
4078
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4079
      len += length(value) + length(field[++i])
4080
      substed = 1
4081
    } else
4082
      len += 1 + keylen
4083
  }
4084
 
4085
  print line
4086
}
4087
 
4088
_ACAWK
4089
_ACEOF
4090
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4091
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4092
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4093
else
4094
  cat
4095
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4096
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4097
_ACEOF
4098
 
4099
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4100
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4101
# trailing colons and then remove the whole line if VPATH becomes empty
4102
# (actually we leave an empty line to preserve line numbers).
4103
if test "x$srcdir" = x.; then
4104
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
4105
h
4106
s///
4107
s/^/:/
4108
s/[      ]*$/:/
4109
s/:\$(srcdir):/:/g
4110
s/:\${srcdir}:/:/g
4111
s/:@srcdir@:/:/g
4112
s/^:*//
4113
s/:*$//
4114
x
4115
s/\(=[   ]*\).*/\1/
4116
G
4117
s/\n//
4118
s/^[^=]*=[       ]*$//
4119
}'
4120
fi
4121
 
4122
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4123
fi # test -n "$CONFIG_FILES"
4124
 
4125
 
4126
eval set X "  :F $CONFIG_FILES      "
4127
shift
4128
for ac_tag
4129
do
4130
  case $ac_tag in
4131
  :[FHLC]) ac_mode=$ac_tag; continue;;
4132
  esac
4133
  case $ac_mode$ac_tag in
4134
  :[FHL]*:*);;
4135
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4136
  :[FH]-) ac_tag=-:-;;
4137
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4138
  esac
4139
  ac_save_IFS=$IFS
4140
  IFS=:
4141
  set x $ac_tag
4142
  IFS=$ac_save_IFS
4143
  shift
4144
  ac_file=$1
4145
  shift
4146
 
4147
  case $ac_mode in
4148
  :L) ac_source=$1;;
4149
  :[FH])
4150
    ac_file_inputs=
4151
    for ac_f
4152
    do
4153
      case $ac_f in
4154
      -) ac_f="$ac_tmp/stdin";;
4155
      *) # Look for the file first in the build tree, then in the source tree
4156
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
4157
         # because $ac_f cannot contain `:'.
4158
         test -f "$ac_f" ||
4159
           case $ac_f in
4160
           [\\/$]*) false;;
4161
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4162
           esac ||
4163
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4164
      esac
4165
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4166
      as_fn_append ac_file_inputs " '$ac_f'"
4167
    done
4168
 
4169
    # Let's still pretend it is `configure' which instantiates (i.e., don't
4170
    # use $as_me), people would be surprised to read:
4171
    #    /* config.h.  Generated by config.status.  */
4172
    configure_input='Generated from '`
4173
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4174
        `' by configure.'
4175
    if test x"$ac_file" != x-; then
4176
      configure_input="$ac_file.  $configure_input"
4177
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4178
$as_echo "$as_me: creating $ac_file" >&6;}
4179
    fi
4180
    # Neutralize special characters interpreted by sed in replacement strings.
4181
    case $configure_input in #(
4182
    *\&* | *\|* | *\\* )
4183
       ac_sed_conf_input=`$as_echo "$configure_input" |
4184
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
4185
    *) ac_sed_conf_input=$configure_input;;
4186
    esac
4187
 
4188
    case $ac_tag in
4189
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
4190
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4191
    esac
4192
    ;;
4193
  esac
4194
 
4195
  ac_dir=`$as_dirname -- "$ac_file" ||
4196
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4197
         X"$ac_file" : 'X\(//\)[^/]' \| \
4198
         X"$ac_file" : 'X\(//\)$' \| \
4199
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4200
$as_echo X"$ac_file" |
4201
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4202
            s//\1/
4203
            q
4204
          }
4205
          /^X\(\/\/\)[^/].*/{
4206
            s//\1/
4207
            q
4208
          }
4209
          /^X\(\/\/\)$/{
4210
            s//\1/
4211
            q
4212
          }
4213
          /^X\(\/\).*/{
4214
            s//\1/
4215
            q
4216
          }
4217
          s/.*/./; q'`
4218
  as_dir="$ac_dir"; as_fn_mkdir_p
4219
  ac_builddir=.
4220
 
4221
case "$ac_dir" in
4222
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4223
*)
4224
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4225
  # A ".." for each directory in $ac_dir_suffix.
4226
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4227
  case $ac_top_builddir_sub in
4228
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4229
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4230
  esac ;;
4231
esac
4232
ac_abs_top_builddir=$ac_pwd
4233
ac_abs_builddir=$ac_pwd$ac_dir_suffix
4234
# for backward compatibility:
4235
ac_top_builddir=$ac_top_build_prefix
4236
 
4237
case $srcdir in
4238
  .)  # We are building in place.
4239
    ac_srcdir=.
4240
    ac_top_srcdir=$ac_top_builddir_sub
4241
    ac_abs_top_srcdir=$ac_pwd ;;
4242
  [\\/]* | ?:[\\/]* )  # Absolute name.
4243
    ac_srcdir=$srcdir$ac_dir_suffix;
4244
    ac_top_srcdir=$srcdir
4245
    ac_abs_top_srcdir=$srcdir ;;
4246
  *) # Relative name.
4247
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4248
    ac_top_srcdir=$ac_top_build_prefix$srcdir
4249
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4250
esac
4251
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4252
 
4253
 
4254
  case $ac_mode in
4255
  :F)
4256
  #
4257
  # CONFIG_FILE
4258
  #
4259
 
4260
_ACEOF
4261
 
4262
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4263
# If the template does not know about datarootdir, expand it.
4264
# FIXME: This hack should be removed a few years after 2.60.
4265
ac_datarootdir_hack=; ac_datarootdir_seen=
4266
ac_sed_dataroot='
4267
/datarootdir/ {
4268
  p
4269
  q
4270
}
4271
/@datadir@/p
4272
/@docdir@/p
4273
/@infodir@/p
4274
/@localedir@/p
4275
/@mandir@/p'
4276
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4277
*datarootdir*) ac_datarootdir_seen=yes;;
4278
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4279
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4280
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4281
_ACEOF
4282
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4283
  ac_datarootdir_hack='
4284
  s&@datadir@&$datadir&g
4285
  s&@docdir@&$docdir&g
4286
  s&@infodir@&$infodir&g
4287
  s&@localedir@&$localedir&g
4288
  s&@mandir@&$mandir&g
4289
  s&\\\${datarootdir}&$datarootdir&g' ;;
4290
esac
4291
_ACEOF
4292
 
4293
# Neutralize VPATH when `$srcdir' = `.'.
4294
# Shell code in configure.ac might set extrasub.
4295
# FIXME: do we really want to maintain this feature?
4296
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4297
ac_sed_extra="$ac_vpsub
4298
$extrasub
4299
_ACEOF
4300
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4301
:t
4302
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4303
s|@configure_input@|$ac_sed_conf_input|;t t
4304
s&@top_builddir@&$ac_top_builddir_sub&;t t
4305
s&@top_build_prefix@&$ac_top_build_prefix&;t t
4306
s&@srcdir@&$ac_srcdir&;t t
4307
s&@abs_srcdir@&$ac_abs_srcdir&;t t
4308
s&@top_srcdir@&$ac_top_srcdir&;t t
4309
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4310
s&@builddir@&$ac_builddir&;t t
4311
s&@abs_builddir@&$ac_abs_builddir&;t t
4312
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4313
$ac_datarootdir_hack
4314
"
4315
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4316
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4317
 
4318
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4319
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4320
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
4321
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
4322
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4323
which seems to be undefined.  Please make sure it is defined" >&5
4324
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4325
which seems to be undefined.  Please make sure it is defined" >&2;}
4326
 
4327
  rm -f "$ac_tmp/stdin"
4328
  case $ac_file in
4329
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4330
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4331
  esac \
4332
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4333
 ;;
4334
 
4335
 
4336
 
4337
  esac
4338
 
4339
 
4340
  case $ac_file$ac_mode in
4341
    "scripts/wrapper/awk/awk":F) chmod +x scripts/wrapper/awk ;;
4342
    "scripts/wrapper/sed/sed":F) chmod +x scripts/wrapper/sed ;;
4343
 
4344
  esac
4345
done # for ac_tag
4346
 
4347
 
4348
as_fn_exit 0
4349
_ACEOF
4350
ac_clean_files=$ac_clean_files_save
4351
 
4352
test $ac_write_fail = 0 ||
4353
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4354
 
4355
 
4356
# configure is writing to config.log, and then calls config.status.
4357
# config.status does its own redirection, appending to config.log.
4358
# Unfortunately, on DOS this fails, as config.log is still kept open
4359
# by configure, so config.status won't be able to write to it; its
4360
# output is simply discarded.  So we exec the FD to /dev/null,
4361
# effectively closing config.log, so it can be properly (re)opened and
4362
# appended to by config.status.  When coming back to configure, we
4363
# need to make the FD available again.
4364
if test "$no_create" != yes; then
4365
  ac_cs_success=:
4366
  ac_config_status_args=
4367
  test "$silent" = yes &&
4368
    ac_config_status_args="$ac_config_status_args --quiet"
4369
  exec 5>/dev/null
4370
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4371
  exec 5>>config.log
4372
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4373
  # would make configure fail if this is the last instruction.
4374
  $ac_cs_success || as_fn_exit 1
4375
fi
4376
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4377
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4378
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4379
fi
4380
 

powered by: WebSVN 2.1.0

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