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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [configure] - Blame information for rev 866

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

Line No. Rev Author Line
1 24 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3 225 jeremybenn
# Generated by GNU Autoconf 2.64.
4 24 jeremybenn
#
5 225 jeremybenn
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
# Foundation, Inc.
8
#
9 24 jeremybenn
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11 225 jeremybenn
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14 24 jeremybenn
 
15 225 jeremybenn
# 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 24 jeremybenn
  emulate sh
19
  NULLCMD=:
20 225 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 24 jeremybenn
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23 225 jeremybenn
  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 24 jeremybenn
fi
32
 
33 225 jeremybenn
 
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 24 jeremybenn
else
51 225 jeremybenn
  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 24 jeremybenn
fi
71
 
72 225 jeremybenn
# 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 24 jeremybenn
 
81 225 jeremybenn
 
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""        $as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
case $0 in #((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121 24 jeremybenn
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126 225 jeremybenn
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in #(
144
  *posix*) :
145
    set -o posix ;; #(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
test \$(( 1 + 1 )) = 2 || exit 1"
173
  if (eval "$as_required") 2>/dev/null; then :
174
  as_have_required=yes
175
else
176
  as_have_required=no
177
fi
178
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
 
180
else
181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182
as_found=false
183
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 24 jeremybenn
do
185 225 jeremybenn
  IFS=$as_save_IFS
186
  test -z "$as_dir" && as_dir=.
187
  as_found=:
188
  case $as_dir in #(
189
         /*)
190
           for as_base in sh bash ksh sh5; do
191
             # Try only shells that exist, to save several forks.
192
             as_shell=$as_dir/$as_base
193
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195
  CONFIG_SHELL=$as_shell as_have_required=yes
196
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  break 2
198
fi
199
fi
200
           done;;
201
       esac
202
  as_found=false
203
done
204
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206
  CONFIG_SHELL=$SHELL as_have_required=yes
207
fi; }
208
IFS=$as_save_IFS
209
 
210
 
211
      if test "x$CONFIG_SHELL" != x; then :
212
  # We cannot yet assume a decent shell, so we have to provide a
213
        # neutralization value for shells without unset; and this also
214
        # works around shells that cannot unset nonexistent variables.
215
        BASH_ENV=/dev/null
216
        ENV=/dev/null
217
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218
        export CONFIG_SHELL
219
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220
fi
221
 
222
    if test x$as_have_required = xno; then :
223
  $as_echo "$0: This script requires a shell more modern than all"
224
  $as_echo "$0: the shells that I found on your system."
225
  if test x${ZSH_VERSION+set} = xset ; then
226
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 24 jeremybenn
  else
229 225 jeremybenn
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230
$0: including any error possibly output before this
231
$0: message. Then install a modern shell, or manually run
232
$0: the script under such a shell if you do have one."
233 24 jeremybenn
  fi
234 225 jeremybenn
  exit 1
235
fi
236
fi
237
fi
238
SHELL=${CONFIG_SHELL-/bin/sh}
239
export SHELL
240
# Unset more variables known to interfere with behavior of common tools.
241
CLICOLOR_FORCE= GREP_OPTIONS=
242
unset CLICOLOR_FORCE GREP_OPTIONS
243 24 jeremybenn
 
244 225 jeremybenn
## --------------------- ##
245
## M4sh Shell Functions. ##
246
## --------------------- ##
247
# as_fn_unset VAR
248
# ---------------
249
# Portably unset VAR.
250
as_fn_unset ()
251
{
252
  { eval $1=; unset $1;}
253
}
254
as_unset=as_fn_unset
255
 
256
# as_fn_set_status STATUS
257
# -----------------------
258
# Set $? to STATUS, without forking.
259
as_fn_set_status ()
260
{
261
  return $1
262
} # as_fn_set_status
263
 
264
# as_fn_exit STATUS
265
# -----------------
266
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267
as_fn_exit ()
268
{
269
  set +e
270
  as_fn_set_status $1
271
  exit $1
272
} # as_fn_exit
273
 
274
# as_fn_mkdir_p
275
# -------------
276
# Create "$as_dir" as a directory, including parents if necessary.
277
as_fn_mkdir_p ()
278
{
279
 
280
  case $as_dir in #(
281
  -*) as_dir=./$as_dir;;
282
  esac
283
  test -d "$as_dir" || eval $as_mkdir_p || {
284
    as_dirs=
285
    while :; do
286
      case $as_dir in #(
287
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288
      *) as_qdir=$as_dir;;
289
      esac
290
      as_dirs="'$as_qdir' $as_dirs"
291
      as_dir=`$as_dirname -- "$as_dir" ||
292
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293
         X"$as_dir" : 'X\(//\)[^/]' \| \
294
         X"$as_dir" : 'X\(//\)$' \| \
295
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296
$as_echo X"$as_dir" |
297
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298
            s//\1/
299
            q
300
          }
301
          /^X\(\/\/\)[^/].*/{
302
            s//\1/
303
            q
304
          }
305
          /^X\(\/\/\)$/{
306
            s//\1/
307
            q
308
          }
309
          /^X\(\/\).*/{
310
            s//\1/
311
            q
312
          }
313
          s/.*/./; q'`
314
      test -d "$as_dir" && break
315
    done
316
    test -z "$as_dirs" || eval "mkdir $as_dirs"
317
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
 
319
 
320
} # as_fn_mkdir_p
321
# as_fn_append VAR VALUE
322
# ----------------------
323
# Append the text in VALUE to the end of the definition contained in VAR. Take
324
# advantage of any shell optimizations that allow amortized linear growth over
325
# repeated appends, instead of the typical quadratic growth present in naive
326
# implementations.
327
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328
  eval 'as_fn_append ()
329
  {
330
    eval $1+=\$2
331
  }'
332
else
333
  as_fn_append ()
334
  {
335
    eval $1=\$$1\$2
336
  }
337
fi # as_fn_append
338
 
339
# as_fn_arith ARG...
340
# ------------------
341
# Perform arithmetic evaluation on the ARGs, and store the result in the
342
# global $as_val. Take advantage of shells that can avoid forks. The arguments
343
# must be portable across $(()) and expr.
344
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345
  eval 'as_fn_arith ()
346
  {
347
    as_val=$(( $* ))
348
  }'
349
else
350
  as_fn_arith ()
351
  {
352
    as_val=`expr "$@" || test $? -eq 1`
353
  }
354
fi # as_fn_arith
355
 
356
 
357
# as_fn_error ERROR [LINENO LOG_FD]
358
# ---------------------------------
359
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361
# script with status $?, using 1 if that was 0.
362
as_fn_error ()
363
{
364
  as_status=$?; test $as_status -eq 0 && as_status=1
365
  if test "$3"; then
366
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368
  fi
369
  $as_echo "$as_me: error: $1" >&2
370
  as_fn_exit $as_status
371
} # as_fn_error
372
 
373
if expr a : '\(a\)' >/dev/null 2>&1 &&
374
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 24 jeremybenn
  as_expr=expr
376
else
377
  as_expr=false
378
fi
379
 
380 225 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 24 jeremybenn
  as_basename=basename
382
else
383
  as_basename=false
384
fi
385
 
386 225 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387
  as_dirname=dirname
388
else
389
  as_dirname=false
390
fi
391 24 jeremybenn
 
392 225 jeremybenn
as_me=`$as_basename -- "$0" ||
393 24 jeremybenn
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394
         X"$0" : 'X\(//\)$' \| \
395 225 jeremybenn
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396
$as_echo X/"$0" |
397
    sed '/^.*\/\([^/][^/]*\)\/*$/{
398
            s//\1/
399
            q
400
          }
401
          /^X\/\(\/\/\)$/{
402
            s//\1/
403
            q
404
          }
405
          /^X\/\(\/\).*/{
406
            s//\1/
407
            q
408
          }
409
          s/.*/./; q'`
410 24 jeremybenn
 
411
# Avoid depending upon Character Ranges.
412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415
as_cr_digits='0123456789'
416
as_cr_alnum=$as_cr_Letters$as_cr_digits
417
 
418
 
419 225 jeremybenn
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424
  sed -n '
425
    p
426
    /[$]LINENO/=
427
  ' <$as_myself |
428 24 jeremybenn
    sed '
429 225 jeremybenn
      s/[$]LINENO.*/&-/
430
      t lineno
431
      b
432
      :lineno
433 24 jeremybenn
      N
434 225 jeremybenn
      :loop
435
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 24 jeremybenn
      t loop
437 225 jeremybenn
      s/-\n.*//
438 24 jeremybenn
    ' >$as_me.lineno &&
439 225 jeremybenn
  chmod +x "$as_me.lineno" ||
440
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441 24 jeremybenn
 
442
  # Don't try to exec as it changes $[0], causing all sort of problems
443
  # (the dirname of $[0] is not the place where we might find the
444 225 jeremybenn
  # original and so on.  Autoconf is especially sensitive to this).
445
  . "./$as_me.lineno"
446 24 jeremybenn
  # Exit status is that of the last command.
447
  exit
448
}
449
 
450 225 jeremybenn
ECHO_C= ECHO_N= ECHO_T=
451
case `echo -n x` in #(((((
452
-n*)
453
  case `echo 'xy\c'` in
454
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455
  xy)  ECHO_C='\c';;
456
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457
       ECHO_T=' ';;
458
  esac;;
459
*)
460
  ECHO_N='-n';;
461 24 jeremybenn
esac
462
 
463 225 jeremybenn
rm -f conf$$ conf$$.exe conf$$.file
464
if test -d conf$$.dir; then
465
  rm -f conf$$.dir/conf$$.file
466 24 jeremybenn
else
467 225 jeremybenn
  rm -f conf$$.dir
468
  mkdir conf$$.dir 2>/dev/null
469 24 jeremybenn
fi
470 225 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
471
  if ln -s conf$$.file conf$$ 2>/dev/null; then
472
    as_ln_s='ln -s'
473
    # ... but there are two gotchas:
474
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476
    # In both cases, we have to default to `cp -p'.
477
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478
      as_ln_s='cp -p'
479
  elif ln conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s=ln
481
  else
482 24 jeremybenn
    as_ln_s='cp -p'
483
  fi
484
else
485
  as_ln_s='cp -p'
486
fi
487 225 jeremybenn
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488
rmdir conf$$.dir 2>/dev/null
489 24 jeremybenn
 
490
if mkdir -p . 2>/dev/null; then
491 225 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
492 24 jeremybenn
else
493
  test -d ./-p && rmdir ./-p
494
  as_mkdir_p=false
495
fi
496
 
497 225 jeremybenn
if test -x / >/dev/null 2>&1; then
498
  as_test_x='test -x'
499
else
500
  if ls -dL / >/dev/null 2>&1; then
501
    as_ls_L_option=L
502
  else
503
    as_ls_L_option=
504
  fi
505
  as_test_x='
506
    eval sh -c '\''
507
      if test -d "$1"; then
508
        test -d "$1/.";
509
      else
510
        case $1 in #(
511
        -*)set "./$1";;
512
        esac;
513
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514
        ???[sx]*):;;*)false;;esac;fi
515
    '\'' sh
516
  '
517
fi
518
as_executable_p=$as_test_x
519 24 jeremybenn
 
520
# Sed expression to map a string onto a valid CPP name.
521
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
 
523
# Sed expression to map a string onto a valid variable name.
524
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
 
526
 
527 225 jeremybenn
exec 7<&0 &1
528 24 jeremybenn
 
529
# Name of the host.
530
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531
# so uname gets run too.
532
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
 
534
#
535
# Initializations.
536
#
537
ac_default_prefix=/usr/local
538 225 jeremybenn
ac_clean_files=
539 24 jeremybenn
ac_config_libobj_dir=.
540 225 jeremybenn
LIBOBJS=
541 24 jeremybenn
cross_compiling=no
542
subdirs=
543
MFLAGS=
544
MAKEFLAGS=
545
 
546
# Identity of this package.
547
PACKAGE_NAME=
548
PACKAGE_TARNAME=
549
PACKAGE_VERSION=
550
PACKAGE_STRING=
551
PACKAGE_BUGREPORT=
552 225 jeremybenn
PACKAGE_URL=
553 24 jeremybenn
 
554
ac_unique_file="move-if-change"
555 225 jeremybenn
enable_option_checking=no
556
ac_subst_vars='LTLIBOBJS
557
LIBOBJS
558
compare_exclusions
559
stage2_werror_flag
560
stage1_checking
561
stage1_cflags
562
MAINT
563
MAINTAINER_MODE_FALSE
564
MAINTAINER_MODE_TRUE
565
COMPILER_NM_FOR_TARGET
566
COMPILER_LD_FOR_TARGET
567
COMPILER_AS_FOR_TARGET
568
FLAGS_FOR_TARGET
569
RAW_CXX_FOR_TARGET
570
WINDMC_FOR_TARGET
571
WINDRES_FOR_TARGET
572
STRIP_FOR_TARGET
573
RANLIB_FOR_TARGET
574
OBJDUMP_FOR_TARGET
575
NM_FOR_TARGET
576
LIPO_FOR_TARGET
577
LD_FOR_TARGET
578
DLLTOOL_FOR_TARGET
579
AS_FOR_TARGET
580
AR_FOR_TARGET
581
GFORTRAN_FOR_TARGET
582
GCJ_FOR_TARGET
583
GCC_FOR_TARGET
584
CXX_FOR_TARGET
585
CC_FOR_TARGET
586
OBJDUMP
587
OBJCOPY
588
WINDMC
589
WINDRES
590
STRIP
591
RANLIB
592
NM
593
LIPO
594
LD
595
DLLTOOL
596
AS
597
AR
598
RUNTEST
599
EXPECT
600
MAKEINFO
601
FLEX
602
LEX
603
M4
604
BISON
605
YACC
606
config_shell
607
WINDRES_FOR_BUILD
608
WINDMC_FOR_BUILD
609
RANLIB_FOR_BUILD
610
NM_FOR_BUILD
611
LD_FOR_BUILD
612
LDFLAGS_FOR_BUILD
613
GFORTRAN_FOR_BUILD
614
GCJ_FOR_BUILD
615
DLLTOOL_FOR_BUILD
616
CXX_FOR_BUILD
617
CXXFLAGS_FOR_BUILD
618
CFLAGS_FOR_BUILD
619
CC_FOR_BUILD
620
AS_FOR_BUILD
621
AR_FOR_BUILD
622
target_configargs
623
configdirs
624
host_configargs
625
build_configdirs
626
build_configargs
627
INSTALL_GDB_TK
628
GDB_TK
629
CONFIGURE_GDB_TK
630
build_tooldir
631
tooldir
632
GCC_SHLIB_SUBDIR
633
RPATH_ENVVAR
634
CXXFLAGS_FOR_TARGET
635
CFLAGS_FOR_TARGET
636
DEBUG_PREFIX_CFLAGS_FOR_TARGET
637
SYSROOT_CFLAGS_FOR_TARGET
638
stage1_languages
639
clooginc
640
clooglibs
641
pplinc
642
ppllibs
643
poststage1_libs
644
poststage1_ldflags
645
stage1_libs
646
stage1_ldflags
647
extra_mpc_mpfr_configure_flags
648
extra_mpc_gmp_configure_flags
649
extra_mpfr_configure_flags
650
gmpinc
651
gmplibs
652
do_compare
653
GNATMAKE
654
GNATBIND
655
ac_ct_CXX
656
CXXFLAGS
657
CXX
658
OBJEXT
659
EXEEXT
660
ac_ct_CC
661
CPPFLAGS
662
LDFLAGS
663
CFLAGS
664
CC
665
target_subdir
666
host_subdir
667
build_subdir
668
build_libsubdir
669
AWK
670
SED
671
LN_S
672
LN
673
INSTALL_DATA
674
INSTALL_SCRIPT
675
INSTALL_PROGRAM
676
target_os
677
target_vendor
678
target_cpu
679
target
680
host_os
681
host_vendor
682
host_cpu
683
host
684
target_noncanonical
685
host_noncanonical
686
build_noncanonical
687
build_os
688
build_vendor
689
build_cpu
690
build
691
TOPLEVEL_CONFIGURE_ARGUMENTS
692
target_alias
693
host_alias
694
build_alias
695
LIBS
696
ECHO_T
697
ECHO_N
698
ECHO_C
699
DEFS
700
mandir
701
localedir
702
libdir
703
psdir
704
pdfdir
705
dvidir
706
htmldir
707
infodir
708
docdir
709
oldincludedir
710
includedir
711
localstatedir
712
sharedstatedir
713
sysconfdir
714
datadir
715
datarootdir
716
libexecdir
717
sbindir
718
bindir
719
program_transform_name
720
prefix
721
exec_prefix
722
PACKAGE_URL
723
PACKAGE_BUGREPORT
724
PACKAGE_STRING
725
PACKAGE_VERSION
726
PACKAGE_TARNAME
727
PACKAGE_NAME
728
PATH_SEPARATOR
729
SHELL'
730
ac_subst_files='serialization_dependencies
731
host_makefile_frag
732
target_makefile_frag
733
alphaieee_frag
734
ospace_frag'
735
ac_user_opts='
736
enable_option_checking
737
with_build_libsubdir
738
enable_gold
739
enable_libada
740
enable_libssp
741
enable_build_with_cxx
742
with_mpc
743
with_mpc_include
744
with_mpc_lib
745
with_mpfr_dir
746
with_mpfr
747
with_mpfr_include
748
with_mpfr_lib
749
with_gmp_dir
750
with_gmp
751
with_gmp_include
752
with_gmp_lib
753
with_host_libstdcxx
754
with_stage1_ldflags
755
with_stage1_libs
756
with_boot_ldflags
757
with_boot_libs
758
with_ppl
759
with_ppl_include
760
with_ppl_lib
761
enable_ppl_version_check
762
with_cloog
763
with_cloog_include
764
with_cloog_lib
765
enable_cloog_version_check
766
enable_stage1_languages
767
enable_objc_gc
768
with_build_sysroot
769
with_debug_prefix_map
770
enable_bootstrap
771
enable_serial_configure
772
with_build_time_tools
773
enable_maintainer_mode
774
enable_stage1_checking
775
enable_werror
776
'
777
      ac_precious_vars='build_alias
778
host_alias
779
target_alias
780
CC
781
CFLAGS
782
LDFLAGS
783
LIBS
784
CPPFLAGS
785
CXX
786
CXXFLAGS
787
CCC
788
AR
789
AS
790
DLLTOOL
791
LD
792
LIPO
793
NM
794
RANLIB
795
STRIP
796
WINDRES
797
WINDMC
798
OBJCOPY
799
OBJDUMP
800
CC_FOR_TARGET
801
CXX_FOR_TARGET
802
GCC_FOR_TARGET
803
GCJ_FOR_TARGET
804
GFORTRAN_FOR_TARGET
805
AR_FOR_TARGET
806
AS_FOR_TARGET
807
DLLTOOL_FOR_TARGET
808
LD_FOR_TARGET
809
LIPO_FOR_TARGET
810
NM_FOR_TARGET
811
OBJDUMP_FOR_TARGET
812
RANLIB_FOR_TARGET
813
STRIP_FOR_TARGET
814
WINDRES_FOR_TARGET
815
WINDMC_FOR_TARGET'
816 24 jeremybenn
 
817 225 jeremybenn
 
818 24 jeremybenn
# Initialize some variables set by options.
819
ac_init_help=
820
ac_init_version=false
821 225 jeremybenn
ac_unrecognized_opts=
822
ac_unrecognized_sep=
823 24 jeremybenn
# The variables have the same names as the options, with
824
# dashes changed to underlines.
825
cache_file=/dev/null
826
exec_prefix=NONE
827
no_create=
828
no_recursion=
829
prefix=NONE
830
program_prefix=NONE
831
program_suffix=NONE
832
program_transform_name=s,x,x,
833
silent=
834
site=
835
srcdir=
836
verbose=
837
x_includes=NONE
838
x_libraries=NONE
839
 
840
# Installation directory options.
841
# These are left unexpanded so users can "make install exec_prefix=/foo"
842
# and all the variables that are supposed to be based on exec_prefix
843
# by default will actually change.
844
# Use braces instead of parens because sh, perl, etc. also accept them.
845 225 jeremybenn
# (The list follows the same order as the GNU Coding Standards.)
846 24 jeremybenn
bindir='${exec_prefix}/bin'
847
sbindir='${exec_prefix}/sbin'
848
libexecdir='${exec_prefix}/libexec'
849 225 jeremybenn
datarootdir='${prefix}/share'
850
datadir='${datarootdir}'
851 24 jeremybenn
sysconfdir='${prefix}/etc'
852
sharedstatedir='${prefix}/com'
853
localstatedir='${prefix}/var'
854
includedir='${prefix}/include'
855
oldincludedir='/usr/include'
856 225 jeremybenn
docdir='${datarootdir}/doc/${PACKAGE}'
857
infodir='${datarootdir}/info'
858
htmldir='${docdir}'
859
dvidir='${docdir}'
860
pdfdir='${docdir}'
861
psdir='${docdir}'
862
libdir='${exec_prefix}/lib'
863
localedir='${datarootdir}/locale'
864
mandir='${datarootdir}/man'
865 24 jeremybenn
 
866
ac_prev=
867 225 jeremybenn
ac_dashdash=
868 24 jeremybenn
for ac_option
869
do
870
  # If the previous option needs an argument, assign it.
871
  if test -n "$ac_prev"; then
872 225 jeremybenn
    eval $ac_prev=\$ac_option
873 24 jeremybenn
    ac_prev=
874
    continue
875
  fi
876
 
877 225 jeremybenn
  case $ac_option in
878
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879
  *)    ac_optarg=yes ;;
880
  esac
881 24 jeremybenn
 
882
  # Accept the important Cygnus configure options, so we can diagnose typos.
883
 
884 225 jeremybenn
  case $ac_dashdash$ac_option in
885
  --)
886
    ac_dashdash=yes ;;
887 24 jeremybenn
 
888
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
889
    ac_prev=bindir ;;
890
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891
    bindir=$ac_optarg ;;
892
 
893
  -build | --build | --buil | --bui | --bu)
894
    ac_prev=build_alias ;;
895
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896
    build_alias=$ac_optarg ;;
897
 
898
  -cache-file | --cache-file | --cache-fil | --cache-fi \
899
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900
    ac_prev=cache_file ;;
901
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903
    cache_file=$ac_optarg ;;
904
 
905
  --config-cache | -C)
906
    cache_file=config.cache ;;
907
 
908 225 jeremybenn
  -datadir | --datadir | --datadi | --datad)
909 24 jeremybenn
    ac_prev=datadir ;;
910 225 jeremybenn
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 24 jeremybenn
    datadir=$ac_optarg ;;
912
 
913 225 jeremybenn
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914
  | --dataroo | --dataro | --datar)
915
    ac_prev=datarootdir ;;
916
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918
    datarootdir=$ac_optarg ;;
919
 
920 24 jeremybenn
  -disable-* | --disable-*)
921 225 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 24 jeremybenn
    # Reject names that are not valid shell variable names.
923 225 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924
      as_fn_error "invalid feature name: $ac_useropt"
925
    ac_useropt_orig=$ac_useropt
926
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927
    case $ac_user_opts in
928
      *"
929
"enable_$ac_useropt"
930
"*) ;;
931
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932
         ac_unrecognized_sep=', ';;
933
    esac
934
    eval enable_$ac_useropt=no ;;
935 24 jeremybenn
 
936 225 jeremybenn
  -docdir | --docdir | --docdi | --doc | --do)
937
    ac_prev=docdir ;;
938
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939
    docdir=$ac_optarg ;;
940
 
941
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942
    ac_prev=dvidir ;;
943
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944
    dvidir=$ac_optarg ;;
945
 
946 24 jeremybenn
  -enable-* | --enable-*)
947 225 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 24 jeremybenn
    # Reject names that are not valid shell variable names.
949 225 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950
      as_fn_error "invalid feature name: $ac_useropt"
951
    ac_useropt_orig=$ac_useropt
952
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953
    case $ac_user_opts in
954
      *"
955
"enable_$ac_useropt"
956
"*) ;;
957
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958
         ac_unrecognized_sep=', ';;
959 24 jeremybenn
    esac
960 225 jeremybenn
    eval enable_$ac_useropt=\$ac_optarg ;;
961 24 jeremybenn
 
962
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964
  | --exec | --exe | --ex)
965
    ac_prev=exec_prefix ;;
966
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968
  | --exec=* | --exe=* | --ex=*)
969
    exec_prefix=$ac_optarg ;;
970
 
971
  -gas | --gas | --ga | --g)
972
    # Obsolete; use --with-gas.
973
    with_gas=yes ;;
974
 
975
  -help | --help | --hel | --he | -h)
976
    ac_init_help=long ;;
977
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978
    ac_init_help=recursive ;;
979
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980
    ac_init_help=short ;;
981
 
982
  -host | --host | --hos | --ho)
983
    ac_prev=host_alias ;;
984
  -host=* | --host=* | --hos=* | --ho=*)
985
    host_alias=$ac_optarg ;;
986
 
987 225 jeremybenn
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988
    ac_prev=htmldir ;;
989
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990
  | --ht=*)
991
    htmldir=$ac_optarg ;;
992
 
993 24 jeremybenn
  -includedir | --includedir | --includedi | --included | --include \
994
  | --includ | --inclu | --incl | --inc)
995
    ac_prev=includedir ;;
996
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997
  | --includ=* | --inclu=* | --incl=* | --inc=*)
998
    includedir=$ac_optarg ;;
999
 
1000
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1001
    ac_prev=infodir ;;
1002
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003
    infodir=$ac_optarg ;;
1004
 
1005
  -libdir | --libdir | --libdi | --libd)
1006
    ac_prev=libdir ;;
1007
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008
    libdir=$ac_optarg ;;
1009
 
1010
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011
  | --libexe | --libex | --libe)
1012
    ac_prev=libexecdir ;;
1013
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014
  | --libexe=* | --libex=* | --libe=*)
1015
    libexecdir=$ac_optarg ;;
1016
 
1017 225 jeremybenn
  -localedir | --localedir | --localedi | --localed | --locale)
1018
    ac_prev=localedir ;;
1019
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020
    localedir=$ac_optarg ;;
1021
 
1022 24 jeremybenn
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 225 jeremybenn
  | --localstate | --localstat | --localsta | --localst | --locals)
1024 24 jeremybenn
    ac_prev=localstatedir ;;
1025
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 225 jeremybenn
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 24 jeremybenn
    localstatedir=$ac_optarg ;;
1028
 
1029
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030
    ac_prev=mandir ;;
1031
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032
    mandir=$ac_optarg ;;
1033
 
1034
  -nfp | --nfp | --nf)
1035
    # Obsolete; use --without-fp.
1036
    with_fp=no ;;
1037
 
1038
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039
  | --no-cr | --no-c | -n)
1040
    no_create=yes ;;
1041
 
1042
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044
    no_recursion=yes ;;
1045
 
1046
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048
  | --oldin | --oldi | --old | --ol | --o)
1049
    ac_prev=oldincludedir ;;
1050
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053
    oldincludedir=$ac_optarg ;;
1054
 
1055
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056
    ac_prev=prefix ;;
1057
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058
    prefix=$ac_optarg ;;
1059
 
1060
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061
  | --program-pre | --program-pr | --program-p)
1062
    ac_prev=program_prefix ;;
1063
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065
    program_prefix=$ac_optarg ;;
1066
 
1067
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068
  | --program-suf | --program-su | --program-s)
1069
    ac_prev=program_suffix ;;
1070
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072
    program_suffix=$ac_optarg ;;
1073
 
1074
  -program-transform-name | --program-transform-name \
1075
  | --program-transform-nam | --program-transform-na \
1076
  | --program-transform-n | --program-transform- \
1077
  | --program-transform | --program-transfor \
1078
  | --program-transfo | --program-transf \
1079
  | --program-trans | --program-tran \
1080
  | --progr-tra | --program-tr | --program-t)
1081
    ac_prev=program_transform_name ;;
1082
  -program-transform-name=* | --program-transform-name=* \
1083
  | --program-transform-nam=* | --program-transform-na=* \
1084
  | --program-transform-n=* | --program-transform-=* \
1085
  | --program-transform=* | --program-transfor=* \
1086
  | --program-transfo=* | --program-transf=* \
1087
  | --program-trans=* | --program-tran=* \
1088
  | --progr-tra=* | --program-tr=* | --program-t=*)
1089
    program_transform_name=$ac_optarg ;;
1090
 
1091 225 jeremybenn
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092
    ac_prev=pdfdir ;;
1093
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094
    pdfdir=$ac_optarg ;;
1095
 
1096
  -psdir | --psdir | --psdi | --psd | --ps)
1097
    ac_prev=psdir ;;
1098
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099
    psdir=$ac_optarg ;;
1100
 
1101 24 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102
  | -silent | --silent | --silen | --sile | --sil)
1103
    silent=yes ;;
1104
 
1105
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106
    ac_prev=sbindir ;;
1107
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108
  | --sbi=* | --sb=*)
1109
    sbindir=$ac_optarg ;;
1110
 
1111
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113
  | --sharedst | --shareds | --shared | --share | --shar \
1114
  | --sha | --sh)
1115
    ac_prev=sharedstatedir ;;
1116
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119
  | --sha=* | --sh=*)
1120
    sharedstatedir=$ac_optarg ;;
1121
 
1122
  -site | --site | --sit)
1123
    ac_prev=site ;;
1124
  -site=* | --site=* | --sit=*)
1125
    site=$ac_optarg ;;
1126
 
1127
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128
    ac_prev=srcdir ;;
1129
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130
    srcdir=$ac_optarg ;;
1131
 
1132
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133
  | --syscon | --sysco | --sysc | --sys | --sy)
1134
    ac_prev=sysconfdir ;;
1135
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137
    sysconfdir=$ac_optarg ;;
1138
 
1139
  -target | --target | --targe | --targ | --tar | --ta | --t)
1140
    ac_prev=target_alias ;;
1141
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142
    target_alias=$ac_optarg ;;
1143
 
1144
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145
    verbose=yes ;;
1146
 
1147
  -version | --version | --versio | --versi | --vers | -V)
1148
    ac_init_version=: ;;
1149
 
1150
  -with-* | --with-*)
1151 225 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 24 jeremybenn
    # Reject names that are not valid shell variable names.
1153 225 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154
      as_fn_error "invalid package name: $ac_useropt"
1155
    ac_useropt_orig=$ac_useropt
1156
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157
    case $ac_user_opts in
1158
      *"
1159
"with_$ac_useropt"
1160
"*) ;;
1161
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162
         ac_unrecognized_sep=', ';;
1163 24 jeremybenn
    esac
1164 225 jeremybenn
    eval with_$ac_useropt=\$ac_optarg ;;
1165 24 jeremybenn
 
1166
  -without-* | --without-*)
1167 225 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 24 jeremybenn
    # Reject names that are not valid shell variable names.
1169 225 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170
      as_fn_error "invalid package name: $ac_useropt"
1171
    ac_useropt_orig=$ac_useropt
1172
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173
    case $ac_user_opts in
1174
      *"
1175
"with_$ac_useropt"
1176
"*) ;;
1177
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178
         ac_unrecognized_sep=', ';;
1179
    esac
1180
    eval with_$ac_useropt=no ;;
1181 24 jeremybenn
 
1182
  --x)
1183
    # Obsolete; use --with-x.
1184
    with_x=yes ;;
1185
 
1186
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187
  | --x-incl | --x-inc | --x-in | --x-i)
1188
    ac_prev=x_includes ;;
1189
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191
    x_includes=$ac_optarg ;;
1192
 
1193
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195
    ac_prev=x_libraries ;;
1196
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198
    x_libraries=$ac_optarg ;;
1199
 
1200 225 jeremybenn
  -*) as_fn_error "unrecognized option: \`$ac_option'
1201
Try \`$0 --help' for more information."
1202 24 jeremybenn
    ;;
1203
 
1204
  *=*)
1205
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206
    # Reject names that are not valid shell variable names.
1207 225 jeremybenn
    case $ac_envvar in #(
1208
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1209
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1210
    esac
1211
    eval $ac_envvar=\$ac_optarg
1212 24 jeremybenn
    export $ac_envvar ;;
1213
 
1214
  *)
1215
    # FIXME: should be removed in autoconf 3.0.
1216 225 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 24 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 225 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 24 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1220
    ;;
1221
 
1222
  esac
1223
done
1224
 
1225
if test -n "$ac_prev"; then
1226
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 225 jeremybenn
  as_fn_error "missing argument to $ac_option"
1228 24 jeremybenn
fi
1229
 
1230 225 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1231
  case $enable_option_checking in
1232
    no) ;;
1233
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1234
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 24 jeremybenn
  esac
1236 225 jeremybenn
fi
1237 24 jeremybenn
 
1238 225 jeremybenn
# Check all directory arguments for consistency.
1239
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240
                datadir sysconfdir sharedstatedir localstatedir includedir \
1241
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242
                libdir localedir mandir
1243 24 jeremybenn
do
1244 225 jeremybenn
  eval ac_val=\$$ac_var
1245
  # Remove trailing slashes.
1246 24 jeremybenn
  case $ac_val in
1247 225 jeremybenn
    */ )
1248
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249
      eval $ac_var=\$ac_val;;
1250 24 jeremybenn
  esac
1251 225 jeremybenn
  # Be sure to have absolute directory names.
1252
  case $ac_val in
1253
    [\\/$]* | ?:[\\/]* )  continue;;
1254
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255
  esac
1256
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1257 24 jeremybenn
done
1258
 
1259
# There might be people who depend on the old broken behavior: `$host'
1260
# used to hold the argument of --host etc.
1261
# FIXME: To remove some day.
1262
build=$build_alias
1263
host=$host_alias
1264
target=$target_alias
1265
 
1266
# FIXME: To remove some day.
1267
if test "x$host_alias" != x; then
1268
  if test "x$build_alias" = x; then
1269
    cross_compiling=maybe
1270 225 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1271 24 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1272
  elif test "x$build_alias" != "x$host_alias"; then
1273
    cross_compiling=yes
1274
  fi
1275
fi
1276
 
1277
ac_tool_prefix=
1278
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
 
1280
test "$silent" = yes && exec 6>/dev/null
1281
 
1282
 
1283 225 jeremybenn
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284
ac_ls_di=`ls -di .` &&
1285
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286
  as_fn_error "working directory cannot be determined"
1287
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288
  as_fn_error "pwd does not report name of working directory"
1289
 
1290
 
1291 24 jeremybenn
# Find the source files, if location was not specified.
1292
if test -z "$srcdir"; then
1293
  ac_srcdir_defaulted=yes
1294 225 jeremybenn
  # Try the directory containing this script, then the parent directory.
1295
  ac_confdir=`$as_dirname -- "$as_myself" ||
1296
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297
         X"$as_myself" : 'X\(//\)[^/]' \| \
1298
         X"$as_myself" : 'X\(//\)$' \| \
1299
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300
$as_echo X"$as_myself" |
1301
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302
            s//\1/
1303
            q
1304
          }
1305
          /^X\(\/\/\)[^/].*/{
1306
            s//\1/
1307
            q
1308
          }
1309
          /^X\(\/\/\)$/{
1310
            s//\1/
1311
            q
1312
          }
1313
          /^X\(\/\).*/{
1314
            s//\1/
1315
            q
1316
          }
1317
          s/.*/./; q'`
1318 24 jeremybenn
  srcdir=$ac_confdir
1319 225 jeremybenn
  if test ! -r "$srcdir/$ac_unique_file"; then
1320 24 jeremybenn
    srcdir=..
1321
  fi
1322
else
1323
  ac_srcdir_defaulted=no
1324
fi
1325 225 jeremybenn
if test ! -r "$srcdir/$ac_unique_file"; then
1326
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1328 24 jeremybenn
fi
1329 225 jeremybenn
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330
ac_abs_confdir=`(
1331
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1332
        pwd)`
1333
# When building in place, set srcdir=.
1334
if test "$ac_abs_confdir" = "$ac_pwd"; then
1335
  srcdir=.
1336
fi
1337
# Remove unnecessary trailing slashes from srcdir.
1338
# Double slashes in file names in object file debugging info
1339
# mess up M-x gdb in Emacs.
1340
case $srcdir in
1341
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342
esac
1343 24 jeremybenn
ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1344
 
1345 225 jeremybenn
for ac_var in $ac_precious_vars; do
1346
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347
  eval ac_env_${ac_var}_value=\$${ac_var}
1348
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350
done
1351 24 jeremybenn
 
1352
#
1353
# Report the --help message.
1354
#
1355
if test "$ac_init_help" = "long"; then
1356
  # Omit some internal or obsolete options to make the list less imposing.
1357
  # This message is too long to be a string in the A/UX 3.1 sh.
1358
  cat <<_ACEOF
1359
\`configure' configures this package to adapt to many kinds of systems.
1360
 
1361
Usage: $0 [OPTION]... [VAR=VALUE]...
1362
 
1363
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364
VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
 
1366
Defaults for the options are specified in brackets.
1367
 
1368
Configuration:
1369
  -h, --help              display this help and exit
1370
      --help=short        display options specific to this package
1371
      --help=recursive    display the short help of all the included packages
1372
  -V, --version           display version information and exit
1373
  -q, --quiet, --silent   do not print \`checking...' messages
1374
      --cache-file=FILE   cache test results in FILE [disabled]
1375
  -C, --config-cache      alias for \`--cache-file=config.cache'
1376
  -n, --no-create         do not create output files
1377
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
 
1379
Installation directories:
1380
  --prefix=PREFIX         install architecture-independent files in PREFIX
1381 225 jeremybenn
                          [$ac_default_prefix]
1382 24 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383 225 jeremybenn
                          [PREFIX]
1384 24 jeremybenn
 
1385
By default, \`make install' will install all the files in
1386
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388
for instance \`--prefix=\$HOME'.
1389
 
1390
For better control, use the options below.
1391
 
1392
Fine tuning of the installation directories:
1393 225 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1394
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1396
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399
  --libdir=DIR            object code libraries [EPREFIX/lib]
1400
  --includedir=DIR        C header files [PREFIX/include]
1401
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1405
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1407
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1408
  --htmldir=DIR           html documentation [DOCDIR]
1409
  --dvidir=DIR            dvi documentation [DOCDIR]
1410
  --pdfdir=DIR            pdf documentation [DOCDIR]
1411
  --psdir=DIR             ps documentation [DOCDIR]
1412 24 jeremybenn
_ACEOF
1413
 
1414
  cat <<\_ACEOF
1415
 
1416
Program names:
1417
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1418
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1419
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
 
1421
System types:
1422
  --build=BUILD     configure for building on BUILD [guessed]
1423
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424
  --target=TARGET   configure for building compilers for TARGET [HOST]
1425
_ACEOF
1426
fi
1427
 
1428
if test -n "$ac_init_help"; then
1429
 
1430
  cat <<\_ACEOF
1431
 
1432
Optional Features:
1433 225 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1434 24 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436 225 jeremybenn
  --enable-gold           use gold instead of ld
1437 24 jeremybenn
  --enable-libada         build libada directory
1438
  --enable-libssp         build libssp directory
1439 225 jeremybenn
  --enable-build-with-cxx build with C++ compiler instead of C compiler
1440
  --disable-ppl-version-check    disable check for PPL version
1441
  --disable-cloog-version-check  disable check for CLooG version
1442 24 jeremybenn
  --enable-stage1-languages[=all]   choose additional languages to build during
1443
                          stage1.  Mostly useful for compiler development.
1444
  --enable-objc-gc        enable use of Boehm's garbage collector with the
1445
                          GNU Objective-C runtime
1446
  --enable-bootstrap      enable bootstrapping [yes if native build]
1447
  --enable-serial-[{host,target,build}-]configure
1448
                          force sequential configuration of
1449
                          sub-packages for the host, target or build
1450
                          machine, or all sub-packages
1451
  --enable-maintainer-mode enable make rules and dependencies not useful
1452
                          (and sometimes confusing) to the casual installer
1453
  --enable-stage1-checking[=all]   choose additional checking for stage1
1454
                          of the compiler
1455
  --enable-werror         enable -Werror in bootstrap stage2 and later
1456
 
1457
Optional Packages:
1458
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460
  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1461 225 jeremybenn
  --with-mpc=PATH        specify prefix directory for installed MPC package.
1462
                          Equivalent to --with-mpc-include=PATH/include
1463
                          plus --with-mpc-lib=PATH/lib
1464
  --with-mpc-include=PATH
1465
                          specify directory for installed MPC include files
1466
  --with-mpc-lib=PATH    specify directory for the installed MPC library
1467 24 jeremybenn
  --with-mpfr-dir=PATH    this option has been REMOVED
1468
  --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1469
                          Equivalent to --with-mpfr-include=PATH/include
1470
                          plus --with-mpfr-lib=PATH/lib
1471
  --with-mpfr-include=PATH
1472
                          specify directory for installed MPFR include files
1473
  --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1474
  --with-gmp-dir=PATH     this option has been REMOVED
1475
  --with-gmp=PATH         specify prefix directory for the installed GMP package.
1476
                          Equivalent to --with-gmp-include=PATH/include
1477
                          plus --with-gmp-lib=PATH/lib
1478
  --with-gmp-include=PATH specify directory for installed GMP include files
1479
  --with-gmp-lib=PATH     specify directory for the installed GMP library
1480 225 jeremybenn
  --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1481
                          when linking with PPL
1482
  --with-stage1-ldflags=FLAGS Linker flags for stage1
1483
  -with-stage1-libs=LIBS      Libraries for stage1
1484
  --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1485
  --with-boot-libs=LIBS     Libraries for stage2 and later
1486
  --with-ppl=PATH         Specify prefix directory for the installed PPL package
1487
                          Equivalent to --with-ppl-include=PATH/include
1488
                          plus --with-ppl-lib=PATH/lib
1489
  --with-ppl-include=PATH Specify directory for installed PPL include files
1490
  --with-ppl-lib=PATH     Specify the directory for the installed PPL library
1491
  --with-cloog=PATH       Specify prefix directory for the installed CLooG-PPL package
1492
                          Equivalent to --with-cloog-include=PATH/include
1493
                          plus --with-cloog-lib=PATH/lib
1494
  --with-cloog-include=PATH Specify directory for installed CLooG include files
1495
  --with-cloog-lib=PATH   Specify the directory for the installed CLooG library
1496 24 jeremybenn
  --with-build-sysroot=SYSROOT
1497
                          use sysroot as the system root during the build
1498
  --with-debug-prefix-map='A=B C=D ...'
1499
                             map A to B, C to D ... in debug information
1500
  --with-build-time-tools=PATH
1501
                          use given path to find target tools during the build
1502
 
1503
Some influential environment variables:
1504
  CC          C compiler command
1505
  CFLAGS      C compiler flags
1506
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1507
              nonstandard directory 
1508 225 jeremybenn
  LIBS        libraries to pass to the linker, e.g. -l
1509
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1510
              you have headers in a nonstandard directory 
1511 24 jeremybenn
  CXX         C++ compiler command
1512
  CXXFLAGS    C++ compiler flags
1513
  AR          AR for the host
1514
  AS          AS for the host
1515
  DLLTOOL     DLLTOOL for the host
1516
  LD          LD for the host
1517
  LIPO        LIPO for the host
1518
  NM          NM for the host
1519
  RANLIB      RANLIB for the host
1520
  STRIP       STRIP for the host
1521
  WINDRES     WINDRES for the host
1522
  WINDMC      WINDMC for the host
1523
  OBJCOPY     OBJCOPY for the host
1524
  OBJDUMP     OBJDUMP for the host
1525
  CC_FOR_TARGET
1526
              CC for the target
1527
  CXX_FOR_TARGET
1528
              CXX for the target
1529
  GCC_FOR_TARGET
1530
              GCC for the target
1531
  GCJ_FOR_TARGET
1532
              GCJ for the target
1533
  GFORTRAN_FOR_TARGET
1534
              GFORTRAN for the target
1535
  AR_FOR_TARGET
1536
              AR for the target
1537
  AS_FOR_TARGET
1538
              AS for the target
1539
  DLLTOOL_FOR_TARGET
1540
              DLLTOOL for the target
1541
  LD_FOR_TARGET
1542
              LD for the target
1543
  LIPO_FOR_TARGET
1544
              LIPO for the target
1545
  NM_FOR_TARGET
1546
              NM for the target
1547
  OBJDUMP_FOR_TARGET
1548
              OBJDUMP for the target
1549
  RANLIB_FOR_TARGET
1550
              RANLIB for the target
1551
  STRIP_FOR_TARGET
1552
              STRIP for the target
1553
  WINDRES_FOR_TARGET
1554
              WINDRES for the target
1555
  WINDMC_FOR_TARGET
1556
              WINDMC for the target
1557
 
1558
Use these variables to override the choices made by `configure' or to help
1559
it to find libraries and programs with nonstandard names/locations.
1560
 
1561 225 jeremybenn
Report bugs to the package provider.
1562 24 jeremybenn
_ACEOF
1563 225 jeremybenn
ac_status=$?
1564 24 jeremybenn
fi
1565
 
1566
if test "$ac_init_help" = "recursive"; then
1567
  # If there are subdirs, report their specific --help.
1568
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569 225 jeremybenn
    test -d "$ac_dir" ||
1570
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571
      continue
1572 24 jeremybenn
    ac_builddir=.
1573
 
1574 225 jeremybenn
case "$ac_dir" in
1575
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576
*)
1577
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578
  # A ".." for each directory in $ac_dir_suffix.
1579
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580
  case $ac_top_builddir_sub in
1581
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583
  esac ;;
1584
esac
1585
ac_abs_top_builddir=$ac_pwd
1586
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587
# for backward compatibility:
1588
ac_top_builddir=$ac_top_build_prefix
1589 24 jeremybenn
 
1590
case $srcdir in
1591 225 jeremybenn
  .)  # We are building in place.
1592 24 jeremybenn
    ac_srcdir=.
1593 225 jeremybenn
    ac_top_srcdir=$ac_top_builddir_sub
1594
    ac_abs_top_srcdir=$ac_pwd ;;
1595
  [\\/]* | ?:[\\/]* )  # Absolute name.
1596 24 jeremybenn
    ac_srcdir=$srcdir$ac_dir_suffix;
1597 225 jeremybenn
    ac_top_srcdir=$srcdir
1598
    ac_abs_top_srcdir=$srcdir ;;
1599
  *) # Relative name.
1600
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1602
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 24 jeremybenn
esac
1604 225 jeremybenn
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605 24 jeremybenn
 
1606 225 jeremybenn
    cd "$ac_dir" || { ac_status=$?; continue; }
1607
    # Check for guested configure.
1608
    if test -f "$ac_srcdir/configure.gnu"; then
1609
      echo &&
1610
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611
    elif test -f "$ac_srcdir/configure"; then
1612
      echo &&
1613
      $SHELL "$ac_srcdir/configure" --help=recursive
1614 24 jeremybenn
    else
1615 225 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616
    fi || ac_status=$?
1617
    cd "$ac_pwd" || { ac_status=$?; break; }
1618 24 jeremybenn
  done
1619
fi
1620
 
1621 225 jeremybenn
test -n "$ac_init_help" && exit $ac_status
1622 24 jeremybenn
if $ac_init_version; then
1623
  cat <<\_ACEOF
1624 225 jeremybenn
configure
1625
generated by GNU Autoconf 2.64
1626 24 jeremybenn
 
1627 225 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
1628 24 jeremybenn
This configure script is free software; the Free Software Foundation
1629
gives unlimited permission to copy, distribute and modify it.
1630
_ACEOF
1631 225 jeremybenn
  exit
1632 24 jeremybenn
fi
1633 225 jeremybenn
 
1634
## ------------------------ ##
1635
## Autoconf initialization. ##
1636
## ------------------------ ##
1637
 
1638
# ac_fn_c_try_compile LINENO
1639
# --------------------------
1640
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1641
ac_fn_c_try_compile ()
1642
{
1643
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644
  rm -f conftest.$ac_objext
1645
  if { { ac_try="$ac_compile"
1646
case "(($ac_try" in
1647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648
  *) ac_try_echo=$ac_try;;
1649
esac
1650
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651
$as_echo "$ac_try_echo"; } >&5
1652
  (eval "$ac_compile") 2>conftest.err
1653
  ac_status=$?
1654
  if test -s conftest.err; then
1655
    grep -v '^ *+' conftest.err >conftest.er1
1656
    cat conftest.er1 >&5
1657
    mv -f conftest.er1 conftest.err
1658
  fi
1659
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660
  test $ac_status = 0; } && {
1661
         test -z "$ac_c_werror_flag" ||
1662
         test ! -s conftest.err
1663
       } && test -s conftest.$ac_objext; then :
1664
  ac_retval=0
1665
else
1666
  $as_echo "$as_me: failed program was:" >&5
1667
sed 's/^/| /' conftest.$ac_ext >&5
1668
 
1669
        ac_retval=1
1670
fi
1671
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672
  return $ac_retval
1673
 
1674
} # ac_fn_c_try_compile
1675
 
1676
# ac_fn_cxx_try_compile LINENO
1677
# ----------------------------
1678
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1679
ac_fn_cxx_try_compile ()
1680
{
1681
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682
  rm -f conftest.$ac_objext
1683
  if { { ac_try="$ac_compile"
1684
case "(($ac_try" in
1685
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686
  *) ac_try_echo=$ac_try;;
1687
esac
1688
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689
$as_echo "$ac_try_echo"; } >&5
1690
  (eval "$ac_compile") 2>conftest.err
1691
  ac_status=$?
1692
  if test -s conftest.err; then
1693
    grep -v '^ *+' conftest.err >conftest.er1
1694
    cat conftest.er1 >&5
1695
    mv -f conftest.er1 conftest.err
1696
  fi
1697
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698
  test $ac_status = 0; } && {
1699
         test -z "$ac_cxx_werror_flag" ||
1700
         test ! -s conftest.err
1701
       } && test -s conftest.$ac_objext; then :
1702
  ac_retval=0
1703
else
1704
  $as_echo "$as_me: failed program was:" >&5
1705
sed 's/^/| /' conftest.$ac_ext >&5
1706
 
1707
        ac_retval=1
1708
fi
1709
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710
  return $ac_retval
1711
 
1712
} # ac_fn_cxx_try_compile
1713
 
1714
# ac_fn_c_try_link LINENO
1715
# -----------------------
1716
# Try to link conftest.$ac_ext, and return whether this succeeded.
1717
ac_fn_c_try_link ()
1718
{
1719
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720
  rm -f conftest.$ac_objext conftest$ac_exeext
1721
  if { { ac_try="$ac_link"
1722
case "(($ac_try" in
1723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724
  *) ac_try_echo=$ac_try;;
1725
esac
1726
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727
$as_echo "$ac_try_echo"; } >&5
1728
  (eval "$ac_link") 2>conftest.err
1729
  ac_status=$?
1730
  if test -s conftest.err; then
1731
    grep -v '^ *+' conftest.err >conftest.er1
1732
    cat conftest.er1 >&5
1733
    mv -f conftest.er1 conftest.err
1734
  fi
1735
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736
  test $ac_status = 0; } && {
1737
         test -z "$ac_c_werror_flag" ||
1738
         test ! -s conftest.err
1739
       } && test -s conftest$ac_exeext && {
1740
         test "$cross_compiling" = yes ||
1741
         $as_test_x conftest$ac_exeext
1742
       }; then :
1743
  ac_retval=0
1744
else
1745
  $as_echo "$as_me: failed program was:" >&5
1746
sed 's/^/| /' conftest.$ac_ext >&5
1747
 
1748
        ac_retval=1
1749
fi
1750
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1751
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1752
  # interfere with the next link command; also delete a directory that is
1753
  # left behind by Apple's compiler.  We do this before executing the actions.
1754
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756
  return $ac_retval
1757
 
1758
} # ac_fn_c_try_link
1759
cat >config.log <<_ACEOF
1760 24 jeremybenn
This file contains any messages produced by compilers while
1761
running configure, to aid debugging if configure makes a mistake.
1762
 
1763
It was created by $as_me, which was
1764 225 jeremybenn
generated by GNU Autoconf 2.64.  Invocation command line was
1765 24 jeremybenn
 
1766
  $ $0 $@
1767
 
1768
_ACEOF
1769 225 jeremybenn
exec 5>>config.log
1770 24 jeremybenn
{
1771
cat <<_ASUNAME
1772
## --------- ##
1773
## Platform. ##
1774
## --------- ##
1775
 
1776
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1777
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1778
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1779
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1780
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1781
 
1782
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1783
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1784
 
1785
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1786
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1787
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1788 225 jeremybenn
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1789 24 jeremybenn
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1790
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1791
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1792
 
1793
_ASUNAME
1794
 
1795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796
for as_dir in $PATH
1797
do
1798
  IFS=$as_save_IFS
1799
  test -z "$as_dir" && as_dir=.
1800 225 jeremybenn
    $as_echo "PATH: $as_dir"
1801
  done
1802
IFS=$as_save_IFS
1803 24 jeremybenn
 
1804
} >&5
1805
 
1806
cat >&5 <<_ACEOF
1807
 
1808
 
1809
## ----------- ##
1810
## Core tests. ##
1811
## ----------- ##
1812
 
1813
_ACEOF
1814
 
1815
 
1816
# Keep a trace of the command line.
1817
# Strip out --no-create and --no-recursion so they do not pile up.
1818
# Strip out --silent because we don't want to record it for future runs.
1819
# Also quote any args containing shell meta-characters.
1820
# Make two passes to allow for proper duplicate-argument suppression.
1821
ac_configure_args=
1822
ac_configure_args0=
1823
ac_configure_args1=
1824
ac_must_keep_next=false
1825
for ac_pass in 1 2
1826
do
1827
  for ac_arg
1828
  do
1829
    case $ac_arg in
1830
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1831
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1832
    | -silent | --silent | --silen | --sile | --sil)
1833
      continue ;;
1834 225 jeremybenn
    *\'*)
1835
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 24 jeremybenn
    esac
1837
    case $ac_pass in
1838 225 jeremybenn
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1839 24 jeremybenn
    2)
1840 225 jeremybenn
      as_fn_append ac_configure_args1 " '$ac_arg'"
1841 24 jeremybenn
      if test $ac_must_keep_next = true; then
1842
        ac_must_keep_next=false # Got value, back to normal.
1843
      else
1844
        case $ac_arg in
1845
          *=* | --config-cache | -C | -disable-* | --disable-* \
1846
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1847
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1848
          | -with-* | --with-* | -without-* | --without-* | --x)
1849
            case "$ac_configure_args0 " in
1850
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1851
            esac
1852
            ;;
1853
          -* ) ac_must_keep_next=true ;;
1854
        esac
1855
      fi
1856 225 jeremybenn
      as_fn_append ac_configure_args " '$ac_arg'"
1857 24 jeremybenn
      ;;
1858
    esac
1859
  done
1860
done
1861 225 jeremybenn
{ ac_configure_args0=; unset ac_configure_args0;}
1862
{ ac_configure_args1=; unset ac_configure_args1;}
1863 24 jeremybenn
 
1864
# When interrupted or exit'd, cleanup temporary files, and complete
1865
# config.log.  We remove comments because anyway the quotes in there
1866
# would cause problems or look ugly.
1867 225 jeremybenn
# WARNING: Use '\'' to represent an apostrophe within the trap.
1868
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1869 24 jeremybenn
trap 'exit_status=$?
1870
  # Save into config.log some information that might help in debugging.
1871
  {
1872
    echo
1873
 
1874
    cat <<\_ASBOX
1875
## ---------------- ##
1876
## Cache variables. ##
1877
## ---------------- ##
1878
_ASBOX
1879
    echo
1880
    # The following way of writing the cache mishandles newlines in values,
1881 225 jeremybenn
(
1882
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1883
    eval ac_val=\$$ac_var
1884
    case $ac_val in #(
1885
    *${as_nl}*)
1886
      case $ac_var in #(
1887
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1888
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1889
      esac
1890
      case $ac_var in #(
1891
      _ | IFS | as_nl) ;; #(
1892
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1893
      *) { eval $ac_var=; unset $ac_var;} ;;
1894
      esac ;;
1895
    esac
1896
  done
1897 24 jeremybenn
  (set) 2>&1 |
1898 225 jeremybenn
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1899
    *${as_nl}ac_space=\ *)
1900 24 jeremybenn
      sed -n \
1901 225 jeremybenn
        "s/'\''/'\''\\\\'\'''\''/g;
1902
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1903
      ;; #(
1904 24 jeremybenn
    *)
1905 225 jeremybenn
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1906 24 jeremybenn
      ;;
1907 225 jeremybenn
    esac |
1908
    sort
1909
)
1910 24 jeremybenn
    echo
1911
 
1912
    cat <<\_ASBOX
1913
## ----------------- ##
1914
## Output variables. ##
1915
## ----------------- ##
1916
_ASBOX
1917
    echo
1918
    for ac_var in $ac_subst_vars
1919
    do
1920 225 jeremybenn
      eval ac_val=\$$ac_var
1921
      case $ac_val in
1922
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923
      esac
1924
      $as_echo "$ac_var='\''$ac_val'\''"
1925 24 jeremybenn
    done | sort
1926
    echo
1927
 
1928
    if test -n "$ac_subst_files"; then
1929
      cat <<\_ASBOX
1930 225 jeremybenn
## ------------------- ##
1931
## File substitutions. ##
1932
## ------------------- ##
1933 24 jeremybenn
_ASBOX
1934
      echo
1935
      for ac_var in $ac_subst_files
1936
      do
1937 225 jeremybenn
        eval ac_val=\$$ac_var
1938
        case $ac_val in
1939
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1940
        esac
1941
        $as_echo "$ac_var='\''$ac_val'\''"
1942 24 jeremybenn
      done | sort
1943
      echo
1944
    fi
1945
 
1946
    if test -s confdefs.h; then
1947
      cat <<\_ASBOX
1948
## ----------- ##
1949
## confdefs.h. ##
1950
## ----------- ##
1951
_ASBOX
1952
      echo
1953 225 jeremybenn
      cat confdefs.h
1954 24 jeremybenn
      echo
1955
    fi
1956
    test "$ac_signal" != 0 &&
1957 225 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
1958
    $as_echo "$as_me: exit $exit_status"
1959 24 jeremybenn
  } >&5
1960 225 jeremybenn
  rm -f core *.core core.conftest.* &&
1961
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1962 24 jeremybenn
    exit $exit_status
1963 225 jeremybenn
' 0
1964 24 jeremybenn
for ac_signal in 1 2 13 15; do
1965 225 jeremybenn
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1966 24 jeremybenn
done
1967
ac_signal=0
1968
 
1969
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1970 225 jeremybenn
rm -f -r conftest* confdefs.h
1971 24 jeremybenn
 
1972 225 jeremybenn
$as_echo "/* confdefs.h */" > confdefs.h
1973
 
1974 24 jeremybenn
# Predefined preprocessor variables.
1975
 
1976
cat >>confdefs.h <<_ACEOF
1977
#define PACKAGE_NAME "$PACKAGE_NAME"
1978
_ACEOF
1979
 
1980
cat >>confdefs.h <<_ACEOF
1981
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1982
_ACEOF
1983
 
1984
cat >>confdefs.h <<_ACEOF
1985
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1986
_ACEOF
1987
 
1988
cat >>confdefs.h <<_ACEOF
1989
#define PACKAGE_STRING "$PACKAGE_STRING"
1990
_ACEOF
1991
 
1992
cat >>confdefs.h <<_ACEOF
1993
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1994
_ACEOF
1995
 
1996 225 jeremybenn
cat >>confdefs.h <<_ACEOF
1997
#define PACKAGE_URL "$PACKAGE_URL"
1998
_ACEOF
1999 24 jeremybenn
 
2000 225 jeremybenn
 
2001 24 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2002 225 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
2003
ac_site_file1=NONE
2004
ac_site_file2=NONE
2005
if test -n "$CONFIG_SITE"; then
2006
  ac_site_file1=$CONFIG_SITE
2007
elif test "x$prefix" != xNONE; then
2008
  ac_site_file1=$prefix/share/config.site
2009
  ac_site_file2=$prefix/etc/config.site
2010
else
2011
  ac_site_file1=$ac_default_prefix/share/config.site
2012
  ac_site_file2=$ac_default_prefix/etc/config.site
2013 24 jeremybenn
fi
2014 225 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2015
do
2016
  test "x$ac_site_file" = xNONE && continue
2017 24 jeremybenn
  if test -r "$ac_site_file"; then
2018 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2019
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2020 24 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2021
    . "$ac_site_file"
2022
  fi
2023
done
2024
 
2025
if test -r "$cache_file"; then
2026
  # Some versions of bash will fail to source /dev/null (special
2027
  # files actually), so we avoid doing that.
2028
  if test -f "$cache_file"; then
2029 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2030
$as_echo "$as_me: loading cache $cache_file" >&6;}
2031 24 jeremybenn
    case $cache_file in
2032 225 jeremybenn
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2033
      *)                      . "./$cache_file";;
2034 24 jeremybenn
    esac
2035
  fi
2036
else
2037 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2038
$as_echo "$as_me: creating cache $cache_file" >&6;}
2039 24 jeremybenn
  >$cache_file
2040
fi
2041
 
2042
# Check that the precious variables saved in the cache have kept the same
2043
# value.
2044
ac_cache_corrupted=false
2045 225 jeremybenn
for ac_var in $ac_precious_vars; do
2046 24 jeremybenn
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2047
  eval ac_new_set=\$ac_env_${ac_var}_set
2048 225 jeremybenn
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2049
  eval ac_new_val=\$ac_env_${ac_var}_value
2050 24 jeremybenn
  case $ac_old_set,$ac_new_set in
2051
    set,)
2052 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2053
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2054 24 jeremybenn
      ac_cache_corrupted=: ;;
2055
    ,set)
2056 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2057
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2058 24 jeremybenn
      ac_cache_corrupted=: ;;
2059
    ,);;
2060
    *)
2061
      if test "x$ac_old_val" != "x$ac_new_val"; then
2062 225 jeremybenn
        # differences in whitespace do not lead to failure.
2063
        ac_old_val_w=`echo x $ac_old_val`
2064
        ac_new_val_w=`echo x $ac_new_val`
2065
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2066
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2067
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2068
          ac_cache_corrupted=:
2069
        else
2070
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2071
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2072
          eval $ac_var=\$ac_old_val
2073
        fi
2074
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2075
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2076
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2077
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2078 24 jeremybenn
      fi;;
2079
  esac
2080
  # Pass precious variables to config.status.
2081
  if test "$ac_new_set" = set; then
2082
    case $ac_new_val in
2083 225 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2084 24 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2085
    esac
2086
    case " $ac_configure_args " in
2087
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2088 225 jeremybenn
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2089 24 jeremybenn
    esac
2090
  fi
2091
done
2092
if $ac_cache_corrupted; then
2093 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2094
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2095
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2096
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2097
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2098 24 jeremybenn
fi
2099 225 jeremybenn
## -------------------- ##
2100
## Main body of script. ##
2101
## -------------------- ##
2102 24 jeremybenn
 
2103
ac_ext=c
2104
ac_cpp='$CPP $CPPFLAGS'
2105
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108
 
2109
 
2110
 
2111
 
2112
 
2113
 
2114
 
2115
 
2116
 
2117 225 jeremybenn
progname=$0
2118
# if PWD already has a value, it is probably wrong.
2119
if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2120 24 jeremybenn
 
2121 225 jeremybenn
# Export original configure arguments for use by sub-configures.
2122
# Quote arguments with shell meta charatcers.
2123
TOPLEVEL_CONFIGURE_ARGUMENTS=
2124
set -- "$progname" "$@"
2125
for ac_arg
2126
do
2127
  case "$ac_arg" in
2128
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2129
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2130
    # if the argument is of the form -foo=baz, quote the baz part only
2131
    ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2132
  *) ;;
2133
  esac
2134
  # Add the quoted argument to the list.
2135
  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2136
done
2137
if test "$silent" = yes; then
2138
  TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2139
fi
2140
# Remove the initial space we just introduced and, as these will be
2141
# expanded by make, quote '$'.
2142
TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2143 24 jeremybenn
 
2144
 
2145
# Find the build, host, and target systems.
2146
ac_aux_dir=
2147 225 jeremybenn
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2148
  for ac_t in install-sh install.sh shtool; do
2149
    if test -f "$ac_dir/$ac_t"; then
2150
      ac_aux_dir=$ac_dir
2151
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2152
      break 2
2153
    fi
2154
  done
2155 24 jeremybenn
done
2156
if test -z "$ac_aux_dir"; then
2157 225 jeremybenn
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2158 24 jeremybenn
fi
2159
 
2160 225 jeremybenn
# These three variables are undocumented and unsupported,
2161
# and are intended to be withdrawn in a future Autoconf release.
2162
# They can cause serious problems if a builder's source tree is in a directory
2163
# whose full name contains unusual characters.
2164
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2165
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2166
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2167
 
2168
 
2169 24 jeremybenn
# Make sure we can run config.sub.
2170 225 jeremybenn
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2171
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2172 24 jeremybenn
 
2173 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2174
$as_echo_n "checking build system type... " >&6; }
2175
if test "${ac_cv_build+set}" = set; then :
2176
  $as_echo_n "(cached) " >&6
2177 24 jeremybenn
else
2178 225 jeremybenn
  ac_build_alias=$build_alias
2179
test "x$ac_build_alias" = x &&
2180
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2181
test "x$ac_build_alias" = x &&
2182
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2183
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2184
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2185 24 jeremybenn
 
2186
fi
2187 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2188
$as_echo "$ac_cv_build" >&6; }
2189
case $ac_cv_build in
2190
*-*-*) ;;
2191
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2192
esac
2193 24 jeremybenn
build=$ac_cv_build
2194 225 jeremybenn
ac_save_IFS=$IFS; IFS='-'
2195
set x $ac_cv_build
2196
shift
2197
build_cpu=$1
2198
build_vendor=$2
2199
shift; shift
2200
# Remember, the first character of IFS is used to create $*,
2201
# except with old shells:
2202
build_os=$*
2203
IFS=$ac_save_IFS
2204
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2205 24 jeremybenn
 
2206
 
2207
 case ${build_alias} in
2208
  "") build_noncanonical=${build} ;;
2209
  *) build_noncanonical=${build_alias} ;;
2210
esac
2211
 
2212
 
2213
 
2214
 case ${host_alias} in
2215
  "") host_noncanonical=${build_noncanonical} ;;
2216
  *) host_noncanonical=${host_alias} ;;
2217
esac
2218
 
2219
 
2220
 
2221
 case ${target_alias} in
2222
  "") target_noncanonical=${host_noncanonical} ;;
2223
  *) target_noncanonical=${target_alias} ;;
2224
esac
2225
 
2226
 
2227
 
2228
 
2229
test "$host_noncanonical" = "$target_noncanonical" &&
2230
  test "$program_prefix$program_suffix$program_transform_name" = \
2231
    NONENONEs,x,x, &&
2232
  program_transform_name=s,y,y,
2233
 
2234 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2235
$as_echo_n "checking host system type... " >&6; }
2236
if test "${ac_cv_host+set}" = set; then :
2237
  $as_echo_n "(cached) " >&6
2238 24 jeremybenn
else
2239 225 jeremybenn
  if test "x$host_alias" = x; then
2240
  ac_cv_host=$ac_cv_build
2241
else
2242
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2243
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2244
fi
2245 24 jeremybenn
 
2246
fi
2247 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2248
$as_echo "$ac_cv_host" >&6; }
2249
case $ac_cv_host in
2250
*-*-*) ;;
2251
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2252
esac
2253 24 jeremybenn
host=$ac_cv_host
2254 225 jeremybenn
ac_save_IFS=$IFS; IFS='-'
2255
set x $ac_cv_host
2256
shift
2257
host_cpu=$1
2258
host_vendor=$2
2259
shift; shift
2260
# Remember, the first character of IFS is used to create $*,
2261
# except with old shells:
2262
host_os=$*
2263
IFS=$ac_save_IFS
2264
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2265 24 jeremybenn
 
2266
 
2267 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2268
$as_echo_n "checking target system type... " >&6; }
2269
if test "${ac_cv_target+set}" = set; then :
2270
  $as_echo_n "(cached) " >&6
2271 24 jeremybenn
else
2272 225 jeremybenn
  if test "x$target_alias" = x; then
2273
  ac_cv_target=$ac_cv_host
2274
else
2275
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2276
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2277
fi
2278 24 jeremybenn
 
2279
fi
2280 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2281
$as_echo "$ac_cv_target" >&6; }
2282
case $ac_cv_target in
2283
*-*-*) ;;
2284
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2285
esac
2286 24 jeremybenn
target=$ac_cv_target
2287 225 jeremybenn
ac_save_IFS=$IFS; IFS='-'
2288
set x $ac_cv_target
2289
shift
2290
target_cpu=$1
2291
target_vendor=$2
2292
shift; shift
2293
# Remember, the first character of IFS is used to create $*,
2294
# except with old shells:
2295
target_os=$*
2296
IFS=$ac_save_IFS
2297
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2298 24 jeremybenn
 
2299
 
2300
# The aliases save the names the user supplied, while $host etc.
2301
# will get canonicalized.
2302
test -n "$target_alias" &&
2303
  test "$program_prefix$program_suffix$program_transform_name" = \
2304
    NONENONEs,x,x, &&
2305
  program_prefix=${target_alias}-
2306 225 jeremybenn
 
2307 24 jeremybenn
test "$program_prefix" != NONE &&
2308 225 jeremybenn
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2309 24 jeremybenn
# Use a double $ so make ignores it.
2310
test "$program_suffix" != NONE &&
2311 225 jeremybenn
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2312
# Double any \ or $.
2313 24 jeremybenn
# By default was `s,x,x', remove it if useless.
2314 225 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2315
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2316 24 jeremybenn
 
2317
 
2318
 
2319
# Get 'install' or 'install-sh' and its variants.
2320
# Find a good install program.  We prefer a C program (faster),
2321
# so one script is as good as another.  But avoid the broken or
2322
# incompatible versions:
2323
# SysV /etc/install, /usr/sbin/install
2324
# SunOS /usr/etc/install
2325
# IRIX /sbin/install
2326
# AIX /bin/install
2327
# AmigaOS /C/install, which installs bootblocks on floppy discs
2328
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2329
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2330
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2331
# OS/2's system install, which has a completely different semantic
2332
# ./install, which can be erroneously created by make from ./install.sh.
2333 225 jeremybenn
# Reject install programs that cannot install multiple files.
2334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2335
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2336 24 jeremybenn
if test -z "$INSTALL"; then
2337 225 jeremybenn
if test "${ac_cv_path_install+set}" = set; then :
2338
  $as_echo_n "(cached) " >&6
2339 24 jeremybenn
else
2340
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341
for as_dir in $PATH
2342
do
2343
  IFS=$as_save_IFS
2344
  test -z "$as_dir" && as_dir=.
2345 225 jeremybenn
    # Account for people who put trailing slashes in PATH elements.
2346
case $as_dir/ in #((
2347
  ./ | .// | /[cC]/* | \
2348 24 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2349 225 jeremybenn
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2350 24 jeremybenn
  /usr/ucb/* ) ;;
2351
  *)
2352
    # OSF1 and SCO ODT 3.0 have their own names for install.
2353
    # Don't use installbsd from OSF since it installs stuff as root
2354
    # by default.
2355
    for ac_prog in ginstall scoinst install; do
2356
      for ac_exec_ext in '' $ac_executable_extensions; do
2357 225 jeremybenn
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2358 24 jeremybenn
          if test $ac_prog = install &&
2359
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360
            # AIX install.  It has an incompatible calling convention.
2361
            :
2362
          elif test $ac_prog = install &&
2363
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364
            # program-specific install script used by HP pwplus--don't use.
2365
            :
2366
          else
2367 225 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
2368
            echo one > conftest.one
2369
            echo two > conftest.two
2370
            mkdir conftest.dir
2371
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2372
              test -s conftest.one && test -s conftest.two &&
2373
              test -s conftest.dir/conftest.one &&
2374
              test -s conftest.dir/conftest.two
2375
            then
2376
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2377
              break 3
2378
            fi
2379 24 jeremybenn
          fi
2380
        fi
2381
      done
2382
    done
2383
    ;;
2384
esac
2385
 
2386 225 jeremybenn
  done
2387
IFS=$as_save_IFS
2388 24 jeremybenn
 
2389 225 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
2390
 
2391 24 jeremybenn
fi
2392
  if test "${ac_cv_path_install+set}" = set; then
2393
    INSTALL=$ac_cv_path_install
2394
  else
2395 225 jeremybenn
    # As a last resort, use the slow shell script.  Don't cache a
2396
    # value for INSTALL within a source directory, because that will
2397 24 jeremybenn
    # break other packages using the cache if that directory is
2398 225 jeremybenn
    # removed, or if the value is a relative name.
2399 24 jeremybenn
    INSTALL=$ac_install_sh
2400
  fi
2401
fi
2402 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2403
$as_echo "$INSTALL" >&6; }
2404 24 jeremybenn
 
2405
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2406
# It thinks the first close brace ends the variable substitution.
2407
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2408
 
2409
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2410
 
2411
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2412
 
2413 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2414
$as_echo_n "checking whether ln works... " >&6; }
2415
if test "${acx_cv_prog_LN+set}" = set; then :
2416
  $as_echo_n "(cached) " >&6
2417 24 jeremybenn
else
2418
  rm -f conftestdata_t
2419
echo >conftestdata_f
2420
if ln conftestdata_f conftestdata_t 2>/dev/null
2421
then
2422
  acx_cv_prog_LN=ln
2423
else
2424
  acx_cv_prog_LN=no
2425
fi
2426
rm -f conftestdata_f conftestdata_t
2427
 
2428
fi
2429
if test $acx_cv_prog_LN = no; then
2430
  LN="cp"
2431 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2432
$as_echo "no, using $LN" >&6; }
2433 24 jeremybenn
else
2434
  LN="$acx_cv_prog_LN"
2435 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2436
$as_echo "yes" >&6; }
2437 24 jeremybenn
fi
2438
 
2439 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2440
$as_echo_n "checking whether ln -s works... " >&6; }
2441 24 jeremybenn
LN_S=$as_ln_s
2442
if test "$LN_S" = "ln -s"; then
2443 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2444
$as_echo "yes" >&6; }
2445 24 jeremybenn
else
2446 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2447
$as_echo "no, using $LN_S" >&6; }
2448 24 jeremybenn
fi
2449
 
2450 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2451
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2452
if test "${ac_cv_path_SED+set}" = set; then :
2453
  $as_echo_n "(cached) " >&6
2454
else
2455
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2456
     for ac_i in 1 2 3 4 5 6 7; do
2457
       ac_script="$ac_script$as_nl$ac_script"
2458
     done
2459
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2460
     { ac_script=; unset ac_script;}
2461
     if test -z "$SED"; then
2462
  ac_path_SED_found=false
2463
  # Loop through the user's path and test for each of PROGNAME-LIST
2464
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465
for as_dir in $PATH
2466
do
2467
  IFS=$as_save_IFS
2468
  test -z "$as_dir" && as_dir=.
2469
    for ac_prog in sed gsed; do
2470
    for ac_exec_ext in '' $ac_executable_extensions; do
2471
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2472
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2473
# Check for GNU ac_path_SED and select it if it is found.
2474
  # Check for GNU $ac_path_SED
2475
case `"$ac_path_SED" --version 2>&1` in
2476
*GNU*)
2477
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2478
*)
2479
  ac_count=0
2480
  $as_echo_n 0123456789 >"conftest.in"
2481
  while :
2482
  do
2483
    cat "conftest.in" "conftest.in" >"conftest.tmp"
2484
    mv "conftest.tmp" "conftest.in"
2485
    cp "conftest.in" "conftest.nl"
2486
    $as_echo '' >> "conftest.nl"
2487
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2488
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2489
    as_fn_arith $ac_count + 1 && ac_count=$as_val
2490
    if test $ac_count -gt ${ac_path_SED_max-0}; then
2491
      # Best one so far, save it but keep looking for a better one
2492
      ac_cv_path_SED="$ac_path_SED"
2493
      ac_path_SED_max=$ac_count
2494
    fi
2495
    # 10*(2^10) chars as input seems more than enough
2496
    test $ac_count -gt 10 && break
2497
  done
2498
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2499
esac
2500 24 jeremybenn
 
2501 225 jeremybenn
      $ac_path_SED_found && break 3
2502
    done
2503
  done
2504
  done
2505
IFS=$as_save_IFS
2506
  if test -z "$ac_cv_path_SED"; then
2507
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2508
  fi
2509
else
2510
  ac_cv_path_SED=$SED
2511
fi
2512
 
2513
fi
2514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2515
$as_echo "$ac_cv_path_SED" >&6; }
2516
 SED="$ac_cv_path_SED"
2517
  rm -f conftest.sed
2518
 
2519
for ac_prog in gawk mawk nawk awk
2520
do
2521
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2522
set dummy $ac_prog; ac_word=$2
2523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524
$as_echo_n "checking for $ac_word... " >&6; }
2525
if test "${ac_cv_prog_AWK+set}" = set; then :
2526
  $as_echo_n "(cached) " >&6
2527
else
2528
  if test -n "$AWK"; then
2529
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2530
else
2531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532
for as_dir in $PATH
2533
do
2534
  IFS=$as_save_IFS
2535
  test -z "$as_dir" && as_dir=.
2536
    for ac_exec_ext in '' $ac_executable_extensions; do
2537
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538
    ac_cv_prog_AWK="$ac_prog"
2539
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540
    break 2
2541
  fi
2542
done
2543
  done
2544
IFS=$as_save_IFS
2545
 
2546
fi
2547
fi
2548
AWK=$ac_cv_prog_AWK
2549
if test -n "$AWK"; then
2550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2551
$as_echo "$AWK" >&6; }
2552
else
2553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554
$as_echo "no" >&6; }
2555
fi
2556
 
2557
 
2558
  test -n "$AWK" && break
2559
done
2560
 
2561
 
2562 24 jeremybenn
### we might need to use some other shell than /bin/sh for running subshells
2563
### If we are on Windows, search for the shell.  This will permit people
2564
### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2565
### without also having to set CONFIG_SHELL.  This code will work when
2566
### using bash, which sets OSTYPE.
2567
case "${OSTYPE}" in
2568
*win32*)
2569
  if test x${CONFIG_SHELL} = x ; then
2570
    if test ! -f /bin/sh ; then
2571
      if test x${SHELL} != x && test -f ${SHELL} ; then
2572
        CONFIG_SHELL=${SHELL}
2573
        export CONFIG_SHELL
2574
      else
2575
        for prog in sh sh.exe bash bash.exe; do
2576
          IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
2577
          for dir in $PATH; do
2578
            test -z "$dir" && dir=.
2579
            if test -f $dir/$prog; then
2580
              CONFIG_SHELL=$dir/$prog
2581
              export CONFIG_SHELL
2582
              break
2583
            fi
2584
          done
2585
          IFS="$save_ifs"
2586
          test -n "${CONFIG_SHELL}" && break
2587
        done
2588
      fi
2589
    fi
2590
  fi
2591
  ;;
2592
esac
2593
 
2594
config_shell=${CONFIG_SHELL-/bin/sh}
2595
 
2596
moveifchange=${srcdir}/move-if-change
2597
 
2598
srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2599
 
2600
# We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2601
# a relative path.
2602
if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2603
  INSTALL="${srcpwd}/install-sh -c"
2604
fi
2605
 
2606
# Set srcdir to "." if that's what it is.
2607
# This is important for multilib support.
2608
pwd=`${PWDCMD-pwd}`
2609
if test "${pwd}" = "${srcpwd}" ; then
2610
  srcdir=.
2611
fi
2612
 
2613
topsrcdir=$srcpwd
2614
 
2615
extra_host_args=
2616
 
2617
### To add a new directory to the tree, first choose whether it is a target
2618
### or a host dependent tool.  Then put it into the appropriate list
2619
### (library or tools, host or target), doing a dependency sort.
2620
 
2621
# Subdirs will be configured in the order listed in build_configdirs,
2622
# configdirs, or target_configdirs; see the serialization section below.
2623
 
2624
# Dependency sorting is only needed when *configuration* must be done in
2625
# a particular order.  In all cases a dependency should be specified in
2626
# the Makefile, whether or not it's implicitly specified here.
2627
 
2628
# Double entries in build_configdirs, configdirs, or target_configdirs may
2629
# cause circular dependencies and break everything horribly.
2630
 
2631
# these library is used by various programs built for the build
2632
# environment
2633
#
2634
build_libs="build-libiberty"
2635
 
2636
# these tools are built for the build environment
2637
build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2638
 
2639
# these libraries are used by various programs built for the host environment
2640
#
2641 225 jeremybenn
host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
2642 24 jeremybenn
 
2643
# these tools are built for the host environment
2644
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2645
# know that we are building the simulator.
2646
# binutils, gas and ld appear in that order because it makes sense to run
2647
# "make check" in that particular order.
2648 225 jeremybenn
# If --enable-gold is used, "gold" will replace "ld".
2649
host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2650 24 jeremybenn
 
2651
# libgcj represents the runtime libraries only used by gcj.
2652
libgcj="target-libffi \
2653
        target-zlib \
2654
        target-qthreads \
2655
        target-libjava"
2656
 
2657
# these libraries are built for the target environment, and are built after
2658
# the host libraries and the host tools (which may be a cross compiler)
2659
#
2660
target_libraries="target-libgcc \
2661
                target-libiberty \
2662
                target-libgloss \
2663
                target-newlib \
2664
                target-libgomp \
2665
                target-libstdc++-v3 \
2666
                target-libmudflap \
2667
                target-libssp \
2668
                target-libgfortran \
2669
                target-boehm-gc \
2670
                ${libgcj} \
2671
                target-libobjc \
2672
                target-libada"
2673
 
2674
# these tools are built using the target libraries, and are intended to
2675
# run only in the target environment
2676
#
2677
# note: any program that *uses* libraries that are in the "target_libraries"
2678
# list belongs in this list.  those programs are also very likely
2679
# candidates for the "native_only" list which follows
2680
#
2681
target_tools="target-examples target-groff target-gperf target-rda"
2682
 
2683
################################################################################
2684
 
2685
## All tools belong in one of the four categories, and are assigned above
2686
## We assign ${configdirs} this way to remove all embedded newlines.  This
2687
## is important because configure will choke if they ever get through.
2688
## ${configdirs} is directories we build using the host tools.
2689
## ${target_configdirs} is directories we build using the target tools.
2690
configdirs=`echo ${host_libs} ${host_tools}`
2691
target_configdirs=`echo ${target_libraries} ${target_tools}`
2692
build_configdirs=`echo ${build_libs} ${build_tools}`
2693
 
2694
 
2695
 
2696
################################################################################
2697
 
2698
srcname="gnu development package"
2699
 
2700
# This gets set non-empty for some net releases of packages.
2701
appdirs=""
2702
 
2703
# Define is_cross_compiler to save on calls to 'test'.
2704
is_cross_compiler=
2705
if test x"${host}" = x"${target}" ; then
2706
  is_cross_compiler=no
2707
else
2708
  is_cross_compiler=yes
2709
fi
2710
 
2711
# Find the build and target subdir names.
2712
 
2713
# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2714
# have matching libraries, they should use host libraries: Makefile.tpl
2715
# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2716
# However, they still use the build modules, because the corresponding
2717
# host modules (e.g. bison) are only built for the host when bootstrap
2718
# finishes. So:
2719
# - build_subdir is where we find build modules, and never changes.
2720
# - build_libsubdir is where we find build libraries, and can be overridden.
2721
 
2722
# Prefix 'build-' so this never conflicts with target_subdir.
2723
build_subdir="build-${build_noncanonical}"
2724
 
2725 225 jeremybenn
# Check whether --with-build-libsubdir was given.
2726
if test "${with_build_libsubdir+set}" = set; then :
2727
  withval=$with_build_libsubdir; build_libsubdir="$withval"
2728 24 jeremybenn
else
2729
  build_libsubdir="$build_subdir"
2730 225 jeremybenn
fi
2731
 
2732 24 jeremybenn
# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2733
if ( test $srcdir = . && test -d gcc ) \
2734
   || test -d $srcdir/../host-${host_noncanonical}; then
2735
  host_subdir="host-${host_noncanonical}"
2736
else
2737
  host_subdir=.
2738
fi
2739
# No prefix.
2740
target_subdir=${target_noncanonical}
2741
 
2742
 
2743
# Skipdirs are removed silently.
2744
skipdirs=
2745
# Noconfigdirs are removed loudly.
2746
noconfigdirs=""
2747
 
2748
use_gnu_ld=
2749
# Make sure we don't let GNU ld be added if we didn't want it.
2750
if test x$with_gnu_ld = xno ; then
2751
  use_gnu_ld=no
2752 225 jeremybenn
  noconfigdirs="$noconfigdirs ld gold"
2753 24 jeremybenn
fi
2754
 
2755
use_gnu_as=
2756
# Make sure we don't let GNU as be added if we didn't want it.
2757
if test x$with_gnu_as = xno ; then
2758
  use_gnu_as=no
2759
  noconfigdirs="$noconfigdirs gas"
2760
fi
2761
 
2762
# some tools are so dependent upon X11 that if we're not building with X,
2763
# it's not even worth trying to configure, much less build, that tool.
2764
 
2765
case ${with_x} in
2766
  yes | "") ;; # the default value for this tree is that X11 is available
2767
  no)
2768
    skipdirs="${skipdirs} tk itcl libgui"
2769
    # We won't be able to build gdbtk without X.
2770
    enable_gdbtk=no
2771
    ;;
2772
  *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2773
esac
2774
 
2775
# Some tools are only suitable for building in a "native" situation.
2776
# Remove these if host!=target.
2777
native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2778
 
2779
# Similarly, some are only suitable for cross toolchains.
2780
# Remove these if host=target.
2781
cross_only="target-libgloss target-newlib target-opcodes"
2782
 
2783
case $is_cross_compiler in
2784
  no) skipdirs="${skipdirs} ${cross_only}" ;;
2785
  yes) skipdirs="${skipdirs} ${native_only}" ;;
2786
esac
2787
 
2788
# If both --with-headers and --with-libs are specified, default to
2789
# --without-newlib.
2790
if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2791
   && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2792
  if test x"${with_newlib}" = x ; then
2793
    with_newlib=no
2794
  fi
2795
fi
2796
 
2797
# Recognize --with-newlib/--without-newlib.
2798
case ${with_newlib} in
2799
  no) skipdirs="${skipdirs} target-newlib" ;;
2800
  yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2801
esac
2802
 
2803 225 jeremybenn
# Handle --enable-gold.
2804
 
2805
# Check whether --enable-gold was given.
2806
if test "${enable_gold+set}" = set; then :
2807
  enableval=$enable_gold; ENABLE_GOLD=$enableval
2808
else
2809
  ENABLE_GOLD=no
2810
fi
2811
 
2812
if test "${ENABLE_GOLD}" = "yes"; then
2813
  # Check for ELF target.
2814
  is_elf=no
2815
  case "${target}" in
2816
    *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2817
    | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2818
    | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2819
      case "${target}" in
2820
        *-*-linux*aout* | *-*-linux*oldld*)
2821
          ;;
2822
        *)
2823
          is_elf=yes
2824
          ;;
2825
      esac
2826
  esac
2827
 
2828
  if test "$is_elf" = "yes"; then
2829
    # Check for target supported by gold.
2830
    case "${target}" in
2831
      i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2832
        configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2833
        ;;
2834
    esac
2835
  fi
2836
fi
2837
 
2838 24 jeremybenn
# Configure extra directories which are host specific
2839
 
2840
case "${host}" in
2841
  *-cygwin*)
2842
    configdirs="$configdirs libtermcap" ;;
2843
esac
2844
 
2845
# A target can indicate whether a language isn't supported for some reason.
2846
# Only spaces may be used in this macro; not newlines or tabs.
2847
unsupported_languages=
2848
 
2849
# Remove more programs from consideration, based on the host or
2850
# target this usually means that a port of the program doesn't
2851
# exist yet.
2852
 
2853
case "${host}" in
2854
  hppa*64*-*-*)
2855
    noconfigdirs="$noconfigdirs byacc"
2856
    ;;
2857
  i[3456789]86-*-vsta)
2858
    noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2859
    ;;
2860
  i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2861
    noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2862
    ;;
2863
  x86_64-*-mingw*)
2864
    noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2865
    ;;
2866
  i[3456789]86-*-mingw32*)
2867
    # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2868
    noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2869
    ;;
2870
  i[3456789]86-*-beos*)
2871
    noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2872
    ;;
2873
  *-*-cygwin*)
2874
    noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2875
    ;;
2876
  *-*-netbsd*)
2877
    noconfigdirs="$noconfigdirs rcs"
2878
    ;;
2879
  ppc*-*-pe)
2880
    noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2881
    ;;
2882
  powerpc-*-beos*)
2883
    noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2884
    ;;
2885
esac
2886
 
2887
 
2888 225 jeremybenn
# Check whether --enable-libada was given.
2889
if test "${enable_libada+set}" = set; then :
2890
  enableval=$enable_libada; ENABLE_LIBADA=$enableval
2891 24 jeremybenn
else
2892
  ENABLE_LIBADA=yes
2893 225 jeremybenn
fi
2894
 
2895 24 jeremybenn
if test "${ENABLE_LIBADA}" != "yes" ; then
2896
  noconfigdirs="$noconfigdirs gnattools"
2897
fi
2898
 
2899 225 jeremybenn
# Check whether --enable-libssp was given.
2900
if test "${enable_libssp+set}" = set; then :
2901
  enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2902 24 jeremybenn
else
2903
  ENABLE_LIBSSP=yes
2904 225 jeremybenn
fi
2905 24 jeremybenn
 
2906 225 jeremybenn
 
2907 24 jeremybenn
# Save it here so that, even in case of --enable-libgcj, if the Java
2908
# front-end isn't enabled, we still get libgcj disabled.
2909
libgcj_saved=$libgcj
2910
case $enable_libgcj in
2911
yes)
2912
  # If we reset it here, it won't get added to noconfigdirs in the
2913
  # target-specific build rules, so it will be forcibly enabled
2914
  # (unless the Java language itself isn't enabled).
2915
  libgcj=
2916
  ;;
2917
no)
2918
  # Make sure we get it printed in the list of not supported target libs.
2919
  noconfigdirs="$noconfigdirs ${libgcj}"
2920
  ;;
2921
esac
2922
 
2923
 
2924
# Disable libmudflap on some systems.
2925
if test x$enable_libmudflap = x ; then
2926
    case "${target}" in
2927 225 jeremybenn
    *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2928 24 jeremybenn
        # Enable libmudflap by default in GNU and friends.
2929
        ;;
2930
    *-*-freebsd*)
2931
        # Enable libmudflap by default in FreeBSD.
2932
        ;;
2933
    *)
2934
        # Disable it by default everywhere else.
2935
        noconfigdirs="$noconfigdirs target-libmudflap"
2936
        ;;
2937
    esac
2938
fi
2939
 
2940
# Disable libgomp on non POSIX hosted systems.
2941
if test x$enable_libgomp = x ; then
2942
    # Enable libgomp by default on hosted POSIX systems.
2943
    case "${target}" in
2944 225 jeremybenn
    *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2945 24 jeremybenn
        ;;
2946
    *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2947
        ;;
2948
    *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2949
        ;;
2950
    *-*-darwin* | *-*-aix*)
2951
        ;;
2952
    *)
2953
        noconfigdirs="$noconfigdirs target-libgomp"
2954
        ;;
2955
    esac
2956
fi
2957
 
2958
# Default libgloss CPU subdirectory.
2959
libgloss_dir="$target_cpu"
2960
 
2961
case "${target}" in
2962
  *-*-chorusos)
2963
    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2964
    ;;
2965 225 jeremybenn
  powerpc-*-darwin*)
2966
    noconfigdirs="$noconfigdirs ld gas gdb gprof"
2967 24 jeremybenn
    noconfigdirs="$noconfigdirs sim target-rda"
2968
    ;;
2969 225 jeremybenn
  i[3456789]86-*-darwin*)
2970
    noconfigdirs="$noconfigdirs ld gprof"
2971
    noconfigdirs="$noconfigdirs sim target-rda"
2972
    ;;
2973
  x86_64-*-darwin[912]*)
2974
    noconfigdirs="$noconfigdirs ld gas gprof"
2975
    noconfigdirs="$noconfigdirs sim target-rda"
2976
    ;;
2977 24 jeremybenn
  *-*-darwin*)
2978
    noconfigdirs="$noconfigdirs ld gas gdb gprof"
2979
    noconfigdirs="$noconfigdirs sim target-rda"
2980
    noconfigdirs="$noconfigdirs ${libgcj}"
2981
    ;;
2982
  *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2983
    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2984
    ;;
2985
  *-*-freebsd*)
2986
    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2987
    if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2988
        && test -f /usr/local/include/gmp.h; then
2989
      with_gmp=/usr/local
2990
    fi
2991
 
2992
    # Skip some stuff that's unsupported on some FreeBSD configurations.
2993
    case "${target}" in
2994
      i*86-*-*) ;;
2995
      alpha*-*-*) ;;
2996
      *)
2997
        noconfigdirs="$noconfigdirs ${libgcj}"
2998
        ;;
2999
    esac
3000
    ;;
3001
  *-*-kaos*)
3002
    # Remove unsupported stuff on all kaOS configurations.
3003
    skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3004
    skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3005
    skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3006
    noconfigdirs="$noconfigdirs target-libgloss"
3007
    ;;
3008
  *-*-netbsd*)
3009
    # Skip some stuff on all NetBSD configurations.
3010
    noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3011
 
3012
    # Skip some stuff that's unsupported on some NetBSD configurations.
3013
    case "${target}" in
3014
      i*86-*-netbsdelf*) ;;
3015
      arm*-*-netbsdelf*) ;;
3016
      *)
3017
        noconfigdirs="$noconfigdirs ${libgcj}"
3018
        ;;
3019
    esac
3020
    ;;
3021
  *-*-netware*)
3022
    noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3023
    ;;
3024
  *-*-rtems*)
3025
    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3026
    ;;
3027
    # The tpf target doesn't support gdb yet.
3028
  *-*-tpf*)
3029
    noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3030
    ;;
3031
  *-*-uclinux*)
3032
    noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3033
    ;;
3034
  *-*-vxworks*)
3035
    noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3036
    ;;
3037
  alpha*-dec-osf*)
3038
    # ld works, but does not support shared libraries.
3039
    # newlib is not 64 bit ready.  I'm not sure about fileutils.
3040
    # gas doesn't generate exception information.
3041
    noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3042
    ;;
3043
  alpha*-*-*vms*)
3044
    noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
3045
    ;;
3046
  alpha*-*-linux*)
3047
    # newlib is not 64 bit ready
3048
    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3049
    ;;
3050
  alpha*-*-*)
3051
    # newlib is not 64 bit ready
3052
    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3053
    ;;
3054
  am33_2.0-*-linux*)
3055
    noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3056
    ;;
3057
  sh-*-linux*)
3058
    noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3059
    ;;
3060
  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3061
    noconfigdirs="$noconfigdirs ${libgcj}"
3062
    noconfigdirs="$noconfigdirs target-examples"
3063
    noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3064
    noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3065
    noconfigdirs="$noconfigdirs expect dejagnu"
3066
    # the C++ libraries don't build on top of CE's C libraries
3067
    noconfigdirs="$noconfigdirs target-libstdc++-v3"
3068
    noconfigdirs="$noconfigdirs target-newlib"
3069
    case "${host}" in
3070
      *-*-cygwin*) ;; # keep gdb and readline
3071
      *) noconfigdirs="$noconfigdirs gdb readline"
3072
         ;;
3073
    esac
3074
    libgloss_dir=wince
3075
    ;;
3076
  arc-*-*)
3077
    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3078
    ;;
3079
  arm-semi-aof )
3080
    ;;
3081
  arm-*-coff | strongarm-*-coff | xscale-*-coff)
3082
    noconfigdirs="$noconfigdirs ${libgcj}"
3083
    libgloss_dir=arm
3084
    ;;
3085
  arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3086
    noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3087
    libgloss_dir=arm
3088
    ;;
3089
  arm*-*-linux-gnueabi)
3090
    noconfigdirs="$noconfigdirs target-qthreads"
3091
    case ${with_newlib} in
3092
      no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3093
    esac
3094
    libgloss_dir=arm
3095
    ;;
3096
  arm*-*-symbianelf*)
3097
    noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3098
    libgloss_dir=arm
3099
    ;;
3100
  arm-*-pe*)
3101
    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3102
    ;;
3103
  thumb-*-coff)
3104
    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3105
    ;;
3106
  thumb-*-elf)
3107
    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3108
    ;;
3109
  thumb-*-pe)
3110
    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3111
    ;;
3112
  arm-*-riscix*)
3113
    noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3114
    ;;
3115
  avr-*-*)
3116 225 jeremybenn
    noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3117 24 jeremybenn
    ;;
3118
  bfin-*-*)
3119
    noconfigdirs="$noconfigdirs gdb"
3120
    if test x${is_cross_compiler} != xno ; then
3121
      target_configdirs="${target_configdirs} target-bsp target-cygmon"
3122
    fi
3123
    ;;
3124
  c4x-*-* | tic4x-*-*)
3125
    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3126
    ;;
3127
  c54x*-*-* | tic54x-*-*)
3128
    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3129
    ;;
3130 225 jeremybenn
  cr16-*-*)
3131
    noconfigdirs="$noconfigdirs ${libgcj} gdb"
3132
    ;;
3133 24 jeremybenn
  cris-*-* | crisv32-*-*)
3134
    unsupported_languages="$unsupported_languages java"
3135
    case "${target}" in
3136
      *-*-aout)
3137
        unsupported_languages="$unsupported_languages fortran"
3138
        noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3139
      *-*-elf)
3140
        noconfigdirs="$noconfigdirs target-boehm-gc";;
3141
      *-*-linux*)
3142
        noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3143
      *)
3144
        unsupported_languages="$unsupported_languages fortran"
3145
        noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3146
    esac
3147
    libgloss_dir=cris
3148
    ;;
3149
  crx-*-*)
3150
    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3151
    ;;
3152
  d10v-*-*)
3153
    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3154
    ;;
3155
  d30v-*-*)
3156
    noconfigdirs="$noconfigdirs ${libgcj} gdb"
3157
    ;;
3158
  ep9312-*-elf | ep9312-*-coff)
3159
    libgloss_dir=arm
3160
    ;;
3161
  fr30-*-elf*)
3162
    noconfigdirs="$noconfigdirs ${libgcj} gdb"
3163
    ;;
3164
  frv-*-*)
3165
    noconfigdirs="$noconfigdirs ${libgcj}"
3166
    ;;
3167 225 jeremybenn
  moxie-*-*)
3168
    noconfigdirs="$noconfigdirs ${libgcj}"
3169
    noconfigdirs="$noconfigdirs gprof"
3170
    ;;
3171 24 jeremybenn
  h8300*-*-*)
3172
    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3173
    ;;
3174
  h8500-*-*)
3175
    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3176
    ;;
3177
  hppa1.1-*-osf* | hppa1.1-*-bsd* )
3178
    ;;
3179
  hppa*64*-*-linux* | parisc*64*-*-linux*)
3180
    # In this case, it's because the hppa64-linux target is for
3181
    # the kernel only at this point and has no libc, and thus no
3182
    # headers, crt*.o, etc., all of which are needed by these.
3183
    noconfigdirs="$noconfigdirs target-zlib"
3184
    ;;
3185
  parisc*-*-linux* | hppa*-*-linux*)
3186
    ;;
3187
  hppa*-*-*elf* | \
3188
  hppa*-*-lites* | \
3189
  hppa*-*-openbsd* | \
3190
  hppa*64*-*-*)
3191
    noconfigdirs="$noconfigdirs ${libgcj}"
3192
    ;;
3193
  hppa*-hp-hpux11*)
3194
    noconfigdirs="$noconfigdirs ld shellutils"
3195
    ;;
3196
  hppa*-*-pro*)
3197
    libgloss_dir=pa
3198
    ;;
3199
  hppa*-*-*)
3200
    # According to Alexandre Oliva , libjava won't
3201
    # build on HP-UX 10.20.
3202
    noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3203
    ;;
3204
  i960-*-*)
3205
    noconfigdirs="$noconfigdirs ${libgcj} gdb"
3206
    ;;
3207
  ia64*-*-elf*)
3208
    # No gdb support yet.
3209
    noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3210
    ;;
3211
  ia64*-**-hpux*)
3212
    # No gdb or ld support yet.
3213
    noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3214
    ;;
3215 225 jeremybenn
  ia64*-*-*vms*)
3216
    # No gdb or ld support yet.
3217
    noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3218
    ;;
3219 24 jeremybenn
  i370-*-opened*)
3220
    ;;
3221
  i[3456789]86-*-coff | i[3456789]86-*-elf)
3222
    noconfigdirs="$noconfigdirs ${libgcj}"
3223
    libgloss_dir=i386
3224
    ;;
3225
  i[3456789]86-*-linux*)
3226
    # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3227
    # not build java stuff by default.
3228
    case "${target}" in
3229
      *-*-*libc1*)
3230
        noconfigdirs="$noconfigdirs ${libgcj}";;
3231
    esac
3232
 
3233
    # This section makes it possible to build newlib natively on linux.
3234
    # If we are using a cross compiler then don't configure newlib.
3235
    if test x${is_cross_compiler} != xno ; then
3236
      noconfigdirs="$noconfigdirs target-newlib"
3237
    fi
3238
    noconfigdirs="$noconfigdirs target-libgloss"
3239
    # If we are not using a cross compiler, do configure newlib.
3240
    # Note however, that newlib will only be configured in this situation
3241
    # if the --with-newlib option has been given, because otherwise
3242
    # 'target-newlib' will appear in skipdirs.
3243
    ;;
3244
  i[3456789]86-*-mingw32*)
3245
    target_configdirs="$target_configdirs target-winsup"
3246
    noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3247
    ;;
3248
  x86_64-*-mingw*)
3249
    target_configdirs="$target_configdirs target-winsup"
3250
    noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3251
    ;;
3252
  *-*-cygwin*)
3253
    target_configdirs="$target_configdirs target-libtermcap target-winsup"
3254 225 jeremybenn
    noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3255 24 jeremybenn
    # always build newlib if winsup directory is present.
3256
    if test -d "$srcdir/winsup/cygwin"; then
3257
      skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3258
    elif test -d "$srcdir/newlib"; then
3259
      echo "Warning: winsup/cygwin is missing so newlib can't be built."
3260
    fi
3261
    ;;
3262
  i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3263
  i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3264
    ;;
3265
  i[3456789]86-*-pe)
3266
    noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3267
    ;;
3268
  i[3456789]86-*-sco3.2v5*)
3269
    # The linker does not yet know about weak symbols in COFF,
3270
    # and is not configured to handle mixed ELF and COFF.
3271
    noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3272
    ;;
3273
  i[3456789]86-*-sco*)
3274
    noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3275
    ;;
3276
  i[3456789]86-*-solaris2*)
3277
    noconfigdirs="$noconfigdirs target-libgloss"
3278
    ;;
3279
  i[3456789]86-*-sysv4*)
3280
    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3281
    ;;
3282
  i[3456789]86-*-beos*)
3283
    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3284
    ;;
3285
  i[3456789]86-*-rdos*)
3286
    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3287
    ;;
3288
  m32r-*-*)
3289
    noconfigdirs="$noconfigdirs ${libgcj}"
3290
    ;;
3291
  m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3292
    noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3293
    libgloss_dir=m68hc11
3294
    ;;
3295
  m68k-*-elf*)
3296
    noconfigdirs="$noconfigdirs ${libgcj}"
3297
    ;;
3298
  m68k-*-coff*)
3299
    noconfigdirs="$noconfigdirs ${libgcj}"
3300
    ;;
3301
  m68*-*-* | fido-*-*)
3302
    libgloss_dir=m68k
3303
    ;;
3304
  mcore-*-pe*)
3305
  # The EPOC C++ environment does not support exceptions or rtti,
3306
  # and so building libstdc++-v3 tends not to always work.
3307
    noconfigdirs="$noconfigdirs target-libstdc++-v3"
3308
    ;;
3309
  mmix-*-*)
3310
    noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3311
    unsupported_languages="$unsupported_languages fortran java"
3312
    ;;
3313
  mn10200-*-*)
3314
    noconfigdirs="$noconfigdirs ${libgcj}"
3315
    ;;
3316
  mn10300-*-*)
3317
    noconfigdirs="$noconfigdirs ${libgcj}"
3318
    ;;
3319
  mt-*-*)
3320
    noconfigdirs="$noconfigdirs sim"
3321
    ;;
3322
  powerpc-*-aix*)
3323
    # copied from rs6000-*-* entry
3324 225 jeremybenn
    noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3325 24 jeremybenn
    ;;
3326
  powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3327
    target_configdirs="$target_configdirs target-winsup"
3328
    noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3329
    # always build newlib.
3330
    skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3331
    ;;
3332
    # This is temporary until we can link against shared libraries
3333
  powerpcle-*-solaris*)
3334
    noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3335
    libgloss_dir=rs6000
3336
    ;;
3337
  powerpc-*-beos*)
3338
    noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3339
    ;;
3340
  powerpc-*-eabi)
3341
    noconfigdirs="$noconfigdirs ${libgcj}"
3342
    libgloss_dir=rs6000
3343
    ;;
3344
  powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3345
    libgloss_dir=rs6000
3346
    ;;
3347
  rs6000-*-lynxos*)
3348
    noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3349
    ;;
3350
  rs6000-*-aix*)
3351 225 jeremybenn
    noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3352 24 jeremybenn
    ;;
3353
  rs6000-*-*)
3354
    noconfigdirs="$noconfigdirs gprof ${libgcj}"
3355
    ;;
3356
  m68k-apollo-*)
3357
    noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3358
    ;;
3359 225 jeremybenn
  microblaze*)
3360
    noconfigdirs="$noconfigdirs gprof ${libgcj}"
3361
    ;;
3362 24 jeremybenn
  mips*-sde-elf*)
3363
    skipdirs="$skipdirs target-libiberty"
3364
    noconfigdirs="$noconfigdirs ${libgcj}"
3365
    if test x$with_newlib = xyes; then
3366
      noconfigdirs="$noconfigdirs gprof"
3367
    fi
3368
    libgloss_dir=mips
3369
    ;;
3370
  mips*-*-irix5*)
3371
    noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3372
    ;;
3373
  mips*-*-irix6*)
3374
    # Linking libjava exceeds command-line length limits on at least
3375
    # IRIX 6.2, but not on IRIX 6.5.
3376
    # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3377
    # 
3378
    noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3379
    ;;
3380
  mips*-*-bsd*)
3381
    noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3382
    ;;
3383
  mips*-*-linux*)
3384
    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3385
    ;;
3386
  mips*-*-*)
3387
    noconfigdirs="$noconfigdirs gprof ${libgcj}"
3388
    libgloss_dir=mips
3389
    ;;
3390
  romp-*-*)
3391
    noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3392
    ;;
3393
  sh-*-* | sh64-*-*)
3394
    case "${host}" in
3395
      i[3456789]86-*-vsta) ;; # don't add gprof back in
3396
      i[3456789]86-*-go32*) ;; # don't add gprof back in
3397
      i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3398
      *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3399
    esac
3400 225 jeremybenn
    case "${target}" in
3401
      sh*-*-elf)
3402
         noconfigdirs="$noconfigdirs ${libgcj}" ;;
3403
      *)
3404
         noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3405
    esac
3406 24 jeremybenn
    ;;
3407
  sparclet-*-aout* | sparc86x-*-*)
3408
    libgloss_dir=sparc
3409
    ;;
3410
  sparc-*-elf*)
3411
    noconfigdirs="$noconfigdirs ${libgcj}"
3412
    ;;
3413
  sparc64-*-elf*)
3414
    noconfigdirs="$noconfigdirs ${libgcj}"
3415
    libgloss_dir=sparc
3416
    ;;
3417
  sparclite-*-*)
3418
    noconfigdirs="$noconfigdirs ${libgcj}"
3419
    libgloss_dir=sparc
3420
    ;;
3421
  sparc-*-sunos4*)
3422
    noconfigdirs="$noconfigdirs ${libgcj}"
3423
    if test x${is_cross_compiler} != xno ; then
3424
           noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3425
    else
3426
           use_gnu_ld=no
3427
    fi
3428
    ;;
3429
  sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3430
    noconfigdirs="$noconfigdirs ${libgcj}"
3431
    ;;
3432
  sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3433
    ;;
3434
  v810-*-*)
3435
    noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3436
    ;;
3437
  v850-*-*)
3438
    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3439
    ;;
3440
  v850e-*-*)
3441
    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3442
    ;;
3443
  v850ea-*-*)
3444
    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3445
    ;;
3446
  vax-*-vms)
3447
    noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3448
    ;;
3449
  vax-*-*)
3450
    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3451
    ;;
3452
  xtensa*-*-*)
3453
    noconfigdirs="$noconfigdirs ${libgcj}"
3454
    ;;
3455
  ip2k-*-*)
3456
    noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3457
    ;;
3458 225 jeremybenn
  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3459 24 jeremybenn
    noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3460
    ;;
3461
  *-*-lynxos*)
3462
    noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3463
    ;;
3464
  *-*-*)
3465
    noconfigdirs="$noconfigdirs ${libgcj}"
3466
    ;;
3467
esac
3468
 
3469
# If we aren't building newlib, then don't build libgloss, since libgloss
3470
# depends upon some newlib header files.
3471
case "${noconfigdirs}" in
3472
  *target-libgloss*) ;;
3473
  *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3474
esac
3475
 
3476
# Work in distributions that contain no compiler tools, like Autoconf.
3477
tentative_cc=""
3478
host_makefile_frag=/dev/null
3479
if test -d ${srcdir}/config ; then
3480
case "${host}" in
3481
  m68k-hp-hpux*)
3482
    # Avoid "too much defining" errors from HPUX compiler.
3483
    tentative_cc="cc -Wp,-H256000"
3484
    # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3485
    # If it's HP/UX ar, this should be harmless.
3486
    RANLIB="ar ts"
3487
    ;;
3488
  m68k-apollo-sysv*)
3489
    tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3490
    ;;
3491
  m68k-apollo-bsd*)
3492
    #None of the Apollo compilers can compile gas or binutils.  The preprocessor
3493
    # chokes on bfd, the compiler won't let you assign integers to enums, and
3494
    # other problems.  Defining CC to gcc is a questionable way to say "don't use
3495
    # the apollo compiler" (the preferred version of GCC could be called cc,
3496
    # or whatever), but I'm not sure leaving CC as cc is any better...
3497
    #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3498
    # Used to have BISON=yacc.
3499
    tentative_cc=gcc
3500
    ;;
3501
  m88k-dg-dgux*)
3502
    tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3503
    ;;
3504
  m88k-harris-cxux*)
3505
    # Under CX/UX, we want to tell the compiler to use ANSI mode.
3506
    tentative_cc="cc -Xa"
3507
    host_makefile_frag="config/mh-cxux"
3508
    ;;
3509
  m88k-motorola-sysv*)
3510
    ;;
3511
  mips*-dec-ultrix*)
3512
    tentative_cc="cc -Wf,-XNg1000"
3513
    host_makefile_frag="config/mh-decstation"
3514
    ;;
3515
  mips*-nec-sysv4*)
3516
    # The C compiler on NEC MIPS SVR4 needs bigger tables.
3517
    tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3518
    host_makefile_frag="config/mh-necv4"
3519
    ;;
3520
  mips*-sgi-irix4*)
3521
    # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
3522
    # environment.  Also bump switch table size so that cp-parse will
3523
    # compile.  Bump string length limit so linker builds.
3524
    tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3525
    ;;
3526
  mips*-*-sysv4*)
3527
    host_makefile_frag="config/mh-sysv4"
3528
    ;;
3529
  mips*-*-sysv*)
3530
    # This is for a MIPS running RISC/os 4.52C.
3531
 
3532
    # This is needed for GDB, but needs to be in the top-level make because
3533
    # if a library is compiled with the bsd headers and gets linked with the
3534
    # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3535
    # a different size).
3536
    # ptrace(2) apparently has problems in the BSD environment.  No workaround is
3537
    # known except to select the sysv environment.  Could we use /proc instead?
3538
    # These "sysv environments" and "bsd environments" often end up being a pain.
3539
    #
3540
    # This is not part of CFLAGS because perhaps not all C compilers have this
3541
    # option.
3542
    tentative_cc="cc -systype sysv"
3543
    ;;
3544
  i370-ibm-opened*)
3545
    tentative_cc="c89"
3546
    ;;
3547
  i[3456789]86-*-sysv5*)
3548
    host_makefile_frag="config/mh-sysv5"
3549
    ;;
3550
  i[3456789]86-*-dgux*)
3551
    tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3552
    host_makefile_frag="config/mh-dgux386"
3553
    ;;
3554
  i[3456789]86-ncr-sysv4.3*)
3555
    # The MetaWare compiler will generate a copyright message unless you
3556
    # turn it off by adding the -Hnocopyr flag.
3557
    tentative_cc="cc -Hnocopyr"
3558
    ;;
3559
  i[3456789]86-ncr-sysv4*)
3560
    # for an NCR 3000 (i486/SVR4) system.
3561
    # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3562
    # This compiler not only emits obnoxious copyright messages every time
3563
    # you run it, but it chokes and dies on a whole bunch of GNU source
3564
    # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3565
    tentative_cc="/usr/ccs/ATT/cc"
3566
    host_makefile_frag="config/mh-ncr3000"
3567
    ;;
3568
  i[3456789]86-*-sco3.2v5*)
3569
    ;;
3570
  i[3456789]86-*-sco*)
3571
    # The native C compiler botches some simple uses of const.  Unfortunately,
3572
    # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3573
    tentative_cc="cc -Dconst="
3574
    host_makefile_frag="config/mh-sco"
3575
    ;;
3576
  i[3456789]86-*-udk*)
3577
    host_makefile_frag="config/mh-sysv5"
3578
    ;;
3579
  i[3456789]86-*-solaris2*)
3580
    host_makefile_frag="config/mh-sysv4"
3581
    ;;
3582
  i[3456789]86-*-msdosdjgpp*)
3583
    host_makefile_frag="config/mh-djgpp"
3584
    ;;
3585
  *-cygwin*)
3586 225 jeremybenn
 
3587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3588
$as_echo_n "checking to see if cat works as expected... " >&6; }
3589
echo a >cygwin-cat-check
3590
if test `cat cygwin-cat-check` == a ; then
3591
  rm cygwin-cat-check
3592
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593
$as_echo "yes" >&6; }
3594
else
3595
  rm cygwin-cat-check
3596
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597
$as_echo "no" >&6; }
3598
  as_fn_error "The cat command does not ignore carriage return characters.
3599
  Please either mount the build directory in binary mode or run the following
3600
  commands before running any configure script:
3601
set -o igncr
3602
export SHELLOPTS
3603
  " "$LINENO" 5
3604
fi
3605
 
3606 24 jeremybenn
    host_makefile_frag="config/mh-cygwin"
3607
    ;;
3608 225 jeremybenn
  *-mingw*)
3609 24 jeremybenn
    host_makefile_frag="config/mh-mingw"
3610
    ;;
3611
  *-interix*)
3612
    host_makefile_frag="config/mh-interix"
3613
    ;;
3614
  vax-*-ultrix2*)
3615
    # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3616
    tentative_cc=gcc
3617
    ;;
3618
  *-*-solaris2*)
3619
    host_makefile_frag="config/mh-solaris"
3620
    ;;
3621
  m68k-sun-sunos*)
3622
    # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3623
    # without overflowing the jump tables (-J says to use a 32 bit table)
3624
    tentative_cc="cc -J"
3625
    ;;
3626 225 jeremybenn
  hppa*-hp-hpux10*)
3627 24 jeremybenn
    tentative_cc="cc -Wp,-H256000"
3628 225 jeremybenn
    host_makefile_frag="config/mh-pa-hpux10"
3629 24 jeremybenn
    ;;
3630 225 jeremybenn
  hppa*-hp-hpux* | hppa*-*-hiux*)
3631 24 jeremybenn
    tentative_cc="cc -Wp,-H256000"
3632 225 jeremybenn
    host_makefile_frag="config/mh-pa"
3633 24 jeremybenn
    ;;
3634 225 jeremybenn
  hppa*-*)
3635
    host_makefile_frag="config/mh-pa"
3636
    ;;
3637
  *-hp-hpux* | *-*-hiux*)
3638
    tentative_cc="cc -Wp,-H256000"
3639
    ;;
3640 24 jeremybenn
  rs6000-*-lynxos*)
3641
    # /bin/cc is less than useful for our purposes.  Always use GCC
3642
    tentative_cc="/usr/cygnus/progressive/bin/gcc"
3643
    host_makefile_frag="config/mh-lynxrs6k"
3644
    ;;
3645
  powerpc-*-darwin*)
3646
    host_makefile_frag="config/mh-ppc-darwin"
3647
    ;;
3648
  powerpc-*-aix*)
3649
    host_makefile_frag="config/mh-ppc-aix"
3650
    ;;
3651
  rs6000-*-aix*)
3652
    host_makefile_frag="config/mh-ppc-aix"
3653
    ;;
3654
  *-*-lynxos*)
3655
    # /bin/cc is less than useful for our purposes.  Always use GCC
3656
    tentative_cc="/bin/gcc"
3657
    ;;
3658
  *-*-sysv4*)
3659
    host_makefile_frag="config/mh-sysv4"
3660
    ;;
3661
  # This is placed last to prevent interfering with the cases above.
3662
  i[3456789]86-*-*)
3663
    # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3664
    host_makefile_frag="config/mh-x86omitfp"
3665
    ;;
3666
esac
3667
fi
3668
 
3669
# If we aren't going to be using gcc, see if we can extract a definition
3670
# of CC from the fragment.
3671
# Actually, use the 'pre-extracted' version above.
3672
if test -z "${CC}" && test "${build}" = "${host}" ; then
3673
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
3674
  found=
3675
  for dir in $PATH; do
3676
    test -z "$dir" && dir=.
3677
    if test -f $dir/gcc; then
3678
      found=yes
3679
      break
3680
    fi
3681
  done
3682
  IFS="$save_ifs"
3683
  if test -z "${found}" && test -n "${tentative_cc}" ; then
3684
    CC=$tentative_cc
3685
  fi
3686
fi
3687
 
3688
if test "${build}" != "${host}" ; then
3689
  AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3690
  AS_FOR_BUILD=${AS_FOR_BUILD-as}
3691
  CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3692
  CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3693
  GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3694
  GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3695
  DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3696
  LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3697
  NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3698
  RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3699
  WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3700
  WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3701
else
3702
  AR_FOR_BUILD="\$(AR)"
3703
  AS_FOR_BUILD="\$(AS)"
3704
  CC_FOR_BUILD="\$(CC)"
3705
  CXX_FOR_BUILD="\$(CXX)"
3706
  GCJ_FOR_BUILD="\$(GCJ)"
3707
  GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3708
  DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3709
  LD_FOR_BUILD="\$(LD)"
3710
  NM_FOR_BUILD="\$(NM)"
3711
  RANLIB_FOR_BUILD="\$(RANLIB)"
3712
  WINDRES_FOR_BUILD="\$(WINDRES)"
3713
  WINDMC_FOR_BUILD="\$(WINDMC)"
3714
fi
3715
 
3716
ac_ext=c
3717
ac_cpp='$CPP $CPPFLAGS'
3718
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721
if test -n "$ac_tool_prefix"; then
3722
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3723
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3724 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725
$as_echo_n "checking for $ac_word... " >&6; }
3726
if test "${ac_cv_prog_CC+set}" = set; then :
3727
  $as_echo_n "(cached) " >&6
3728 24 jeremybenn
else
3729
  if test -n "$CC"; then
3730
  ac_cv_prog_CC="$CC" # Let the user override the test.
3731
else
3732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733
for as_dir in $PATH
3734
do
3735
  IFS=$as_save_IFS
3736
  test -z "$as_dir" && as_dir=.
3737 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3738
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3739 24 jeremybenn
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3740 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 24 jeremybenn
    break 2
3742
  fi
3743
done
3744 225 jeremybenn
  done
3745
IFS=$as_save_IFS
3746 24 jeremybenn
 
3747
fi
3748
fi
3749
CC=$ac_cv_prog_CC
3750
if test -n "$CC"; then
3751 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752
$as_echo "$CC" >&6; }
3753 24 jeremybenn
else
3754 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755
$as_echo "no" >&6; }
3756 24 jeremybenn
fi
3757
 
3758 225 jeremybenn
 
3759 24 jeremybenn
fi
3760
if test -z "$ac_cv_prog_CC"; then
3761
  ac_ct_CC=$CC
3762
  # Extract the first word of "gcc", so it can be a program name with args.
3763
set dummy gcc; ac_word=$2
3764 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765
$as_echo_n "checking for $ac_word... " >&6; }
3766
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3767
  $as_echo_n "(cached) " >&6
3768 24 jeremybenn
else
3769
  if test -n "$ac_ct_CC"; then
3770
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3771
else
3772
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773
for as_dir in $PATH
3774
do
3775
  IFS=$as_save_IFS
3776
  test -z "$as_dir" && as_dir=.
3777 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3778
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 24 jeremybenn
    ac_cv_prog_ac_ct_CC="gcc"
3780 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 24 jeremybenn
    break 2
3782
  fi
3783
done
3784 225 jeremybenn
  done
3785
IFS=$as_save_IFS
3786 24 jeremybenn
 
3787
fi
3788
fi
3789
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3790
if test -n "$ac_ct_CC"; then
3791 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3792
$as_echo "$ac_ct_CC" >&6; }
3793 24 jeremybenn
else
3794 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795
$as_echo "no" >&6; }
3796 24 jeremybenn
fi
3797
 
3798 225 jeremybenn
  if test "x$ac_ct_CC" = x; then
3799
    CC=""
3800
  else
3801
    case $cross_compiling:$ac_tool_warned in
3802
yes:)
3803
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3804
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3805
ac_tool_warned=yes ;;
3806
esac
3807
    CC=$ac_ct_CC
3808
  fi
3809 24 jeremybenn
else
3810
  CC="$ac_cv_prog_CC"
3811
fi
3812
 
3813
if test -z "$CC"; then
3814 225 jeremybenn
          if test -n "$ac_tool_prefix"; then
3815
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3816 24 jeremybenn
set dummy ${ac_tool_prefix}cc; ac_word=$2
3817 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818
$as_echo_n "checking for $ac_word... " >&6; }
3819
if test "${ac_cv_prog_CC+set}" = set; then :
3820
  $as_echo_n "(cached) " >&6
3821 24 jeremybenn
else
3822
  if test -n "$CC"; then
3823
  ac_cv_prog_CC="$CC" # Let the user override the test.
3824
else
3825
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826
for as_dir in $PATH
3827
do
3828
  IFS=$as_save_IFS
3829
  test -z "$as_dir" && as_dir=.
3830 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3831
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3832 24 jeremybenn
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3833 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834 24 jeremybenn
    break 2
3835
  fi
3836
done
3837 225 jeremybenn
  done
3838
IFS=$as_save_IFS
3839 24 jeremybenn
 
3840
fi
3841
fi
3842
CC=$ac_cv_prog_CC
3843
if test -n "$CC"; then
3844 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845
$as_echo "$CC" >&6; }
3846 24 jeremybenn
else
3847 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848
$as_echo "no" >&6; }
3849 24 jeremybenn
fi
3850
 
3851 225 jeremybenn
 
3852 24 jeremybenn
  fi
3853
fi
3854
if test -z "$CC"; then
3855
  # Extract the first word of "cc", so it can be a program name with args.
3856
set dummy cc; ac_word=$2
3857 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858
$as_echo_n "checking for $ac_word... " >&6; }
3859
if test "${ac_cv_prog_CC+set}" = set; then :
3860
  $as_echo_n "(cached) " >&6
3861 24 jeremybenn
else
3862
  if test -n "$CC"; then
3863
  ac_cv_prog_CC="$CC" # Let the user override the test.
3864
else
3865
  ac_prog_rejected=no
3866
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867
for as_dir in $PATH
3868
do
3869
  IFS=$as_save_IFS
3870
  test -z "$as_dir" && as_dir=.
3871 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3872
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3873 24 jeremybenn
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3874
       ac_prog_rejected=yes
3875
       continue
3876
     fi
3877
    ac_cv_prog_CC="cc"
3878 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 24 jeremybenn
    break 2
3880
  fi
3881
done
3882 225 jeremybenn
  done
3883
IFS=$as_save_IFS
3884 24 jeremybenn
 
3885
if test $ac_prog_rejected = yes; then
3886
  # We found a bogon in the path, so make sure we never use it.
3887
  set dummy $ac_cv_prog_CC
3888
  shift
3889
  if test $# != 0; then
3890
    # We chose a different compiler from the bogus one.
3891
    # However, it has the same basename, so the bogon will be chosen
3892
    # first if we set CC to just the basename; use the full file name.
3893
    shift
3894
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3895
  fi
3896
fi
3897
fi
3898
fi
3899
CC=$ac_cv_prog_CC
3900
if test -n "$CC"; then
3901 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3902
$as_echo "$CC" >&6; }
3903 24 jeremybenn
else
3904 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905
$as_echo "no" >&6; }
3906 24 jeremybenn
fi
3907
 
3908 225 jeremybenn
 
3909 24 jeremybenn
fi
3910
if test -z "$CC"; then
3911
  if test -n "$ac_tool_prefix"; then
3912 225 jeremybenn
  for ac_prog in cl.exe
3913 24 jeremybenn
  do
3914
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3915
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3916 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917
$as_echo_n "checking for $ac_word... " >&6; }
3918
if test "${ac_cv_prog_CC+set}" = set; then :
3919
  $as_echo_n "(cached) " >&6
3920 24 jeremybenn
else
3921
  if test -n "$CC"; then
3922
  ac_cv_prog_CC="$CC" # Let the user override the test.
3923
else
3924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925
for as_dir in $PATH
3926
do
3927
  IFS=$as_save_IFS
3928
  test -z "$as_dir" && as_dir=.
3929 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3930
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3931 24 jeremybenn
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3932 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 24 jeremybenn
    break 2
3934
  fi
3935
done
3936 225 jeremybenn
  done
3937
IFS=$as_save_IFS
3938 24 jeremybenn
 
3939
fi
3940
fi
3941
CC=$ac_cv_prog_CC
3942
if test -n "$CC"; then
3943 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3944
$as_echo "$CC" >&6; }
3945 24 jeremybenn
else
3946 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947
$as_echo "no" >&6; }
3948 24 jeremybenn
fi
3949
 
3950 225 jeremybenn
 
3951 24 jeremybenn
    test -n "$CC" && break
3952
  done
3953
fi
3954
if test -z "$CC"; then
3955
  ac_ct_CC=$CC
3956 225 jeremybenn
  for ac_prog in cl.exe
3957 24 jeremybenn
do
3958
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3959
set dummy $ac_prog; ac_word=$2
3960 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961
$as_echo_n "checking for $ac_word... " >&6; }
3962
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3963
  $as_echo_n "(cached) " >&6
3964 24 jeremybenn
else
3965
  if test -n "$ac_ct_CC"; then
3966
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3967
else
3968
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969
for as_dir in $PATH
3970
do
3971
  IFS=$as_save_IFS
3972
  test -z "$as_dir" && as_dir=.
3973 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3974
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3975 24 jeremybenn
    ac_cv_prog_ac_ct_CC="$ac_prog"
3976 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 24 jeremybenn
    break 2
3978
  fi
3979
done
3980 225 jeremybenn
  done
3981
IFS=$as_save_IFS
3982 24 jeremybenn
 
3983
fi
3984
fi
3985
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3986
if test -n "$ac_ct_CC"; then
3987 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3988
$as_echo "$ac_ct_CC" >&6; }
3989 24 jeremybenn
else
3990 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991
$as_echo "no" >&6; }
3992 24 jeremybenn
fi
3993
 
3994 225 jeremybenn
 
3995 24 jeremybenn
  test -n "$ac_ct_CC" && break
3996
done
3997
 
3998 225 jeremybenn
  if test "x$ac_ct_CC" = x; then
3999
    CC=""
4000
  else
4001
    case $cross_compiling:$ac_tool_warned in
4002
yes:)
4003
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005
ac_tool_warned=yes ;;
4006
esac
4007
    CC=$ac_ct_CC
4008
  fi
4009 24 jeremybenn
fi
4010
 
4011
fi
4012
 
4013
 
4014 225 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016
as_fn_error "no acceptable C compiler found in \$PATH
4017
See \`config.log' for more details." "$LINENO" 5; }
4018 24 jeremybenn
 
4019
# Provide some information about the compiler.
4020 225 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4021
set X $ac_compile
4022
ac_compiler=$2
4023
for ac_option in --version -v -V -qversion; do
4024
  { { ac_try="$ac_compiler $ac_option >&5"
4025
case "(($ac_try" in
4026
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027
  *) ac_try_echo=$ac_try;;
4028
esac
4029
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030
$as_echo "$ac_try_echo"; } >&5
4031
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4032 24 jeremybenn
  ac_status=$?
4033 225 jeremybenn
  if test -s conftest.err; then
4034
    sed '10a\
4035
... rest of stderr output deleted ...
4036
         10q' conftest.err >conftest.er1
4037
    cat conftest.er1 >&5
4038
    rm -f conftest.er1 conftest.err
4039
  fi
4040
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041
  test $ac_status = 0; }
4042
done
4043 24 jeremybenn
 
4044 225 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 24 jeremybenn
/* end confdefs.h.  */
4046
 
4047
int
4048
main ()
4049
{
4050
 
4051
  ;
4052
  return 0;
4053
}
4054
_ACEOF
4055
ac_clean_files_save=$ac_clean_files
4056 225 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4057 24 jeremybenn
# Try to create an executable without -o first, disregard a.out.
4058
# It will help us diagnose broken compilers, and finding out an intuition
4059
# of exeext.
4060 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4061
$as_echo_n "checking for C compiler default output file name... " >&6; }
4062
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4063 24 jeremybenn
 
4064 225 jeremybenn
# The possible output files:
4065
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4066
 
4067
ac_rmfiles=
4068
for ac_file in $ac_files
4069 24 jeremybenn
do
4070 225 jeremybenn
  case $ac_file in
4071
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4072
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4073
  esac
4074
done
4075
rm -f $ac_rmfiles
4076
 
4077
if { { ac_try="$ac_link_default"
4078
case "(($ac_try" in
4079
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080
  *) ac_try_echo=$ac_try;;
4081
esac
4082
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083
$as_echo "$ac_try_echo"; } >&5
4084
  (eval "$ac_link_default") 2>&5
4085
  ac_status=$?
4086
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087
  test $ac_status = 0; }; then :
4088
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4089
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4090
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4091
# so that the user can short-circuit this test for compilers unknown to
4092
# Autoconf.
4093
for ac_file in $ac_files ''
4094
do
4095 24 jeremybenn
  test -f "$ac_file" || continue
4096
  case $ac_file in
4097 225 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4098 24 jeremybenn
        ;;
4099
    [ab].out )
4100
        # We found the default executable, but exeext='' is most
4101
        # certainly right.
4102
        break;;
4103
    *.* )
4104 225 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4105
        then :; else
4106
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4107
        fi
4108
        # We set ac_cv_exeext here because the later test for it is not
4109
        # safe: cross compilers may not add the suffix if given an `-o'
4110
        # argument, so we may need to know it at that point already.
4111
        # Even if this section looks crufty: it has the advantage of
4112
        # actually working.
4113 24 jeremybenn
        break;;
4114
    * )
4115
        break;;
4116
  esac
4117
done
4118 225 jeremybenn
test "$ac_cv_exeext" = no && ac_cv_exeext=
4119
 
4120 24 jeremybenn
else
4121 225 jeremybenn
  ac_file=''
4122
fi
4123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4124
$as_echo "$ac_file" >&6; }
4125
if test -z "$ac_file"; then :
4126
  $as_echo "$as_me: failed program was:" >&5
4127 24 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4128
 
4129 225 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4131
{ as_fn_set_status 77
4132
as_fn_error "C compiler cannot create executables
4133
See \`config.log' for more details." "$LINENO" 5; }; }
4134 24 jeremybenn
fi
4135
ac_exeext=$ac_cv_exeext
4136
 
4137 225 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
4138 24 jeremybenn
# the compiler is broken, or we cross compile.
4139 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4140
$as_echo_n "checking whether the C compiler works... " >&6; }
4141 24 jeremybenn
# If not cross compiling, check that we can run a simple program.
4142
if test "$cross_compiling" != yes; then
4143
  if { ac_try='./$ac_file'
4144 225 jeremybenn
  { { case "(($ac_try" in
4145
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146
  *) ac_try_echo=$ac_try;;
4147
esac
4148
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149
$as_echo "$ac_try_echo"; } >&5
4150
  (eval "$ac_try") 2>&5
4151 24 jeremybenn
  ac_status=$?
4152 225 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153
  test $ac_status = 0; }; }; then
4154 24 jeremybenn
    cross_compiling=no
4155
  else
4156
    if test "$cross_compiling" = maybe; then
4157
        cross_compiling=yes
4158
    else
4159 225 jeremybenn
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4161
as_fn_error "cannot run C compiled programs.
4162 24 jeremybenn
If you meant to cross compile, use \`--host'.
4163 225 jeremybenn
See \`config.log' for more details." "$LINENO" 5; }
4164 24 jeremybenn
    fi
4165
  fi
4166
fi
4167 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4168
$as_echo "yes" >&6; }
4169 24 jeremybenn
 
4170 225 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4171 24 jeremybenn
ac_clean_files=$ac_clean_files_save
4172 225 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
4173 24 jeremybenn
# the compiler is broken, or we cross compile.
4174 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4175
$as_echo_n "checking whether we are cross compiling... " >&6; }
4176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4177
$as_echo "$cross_compiling" >&6; }
4178 24 jeremybenn
 
4179 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4180
$as_echo_n "checking for suffix of executables... " >&6; }
4181
if { { ac_try="$ac_link"
4182
case "(($ac_try" in
4183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184
  *) ac_try_echo=$ac_try;;
4185
esac
4186
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187
$as_echo "$ac_try_echo"; } >&5
4188
  (eval "$ac_link") 2>&5
4189 24 jeremybenn
  ac_status=$?
4190 225 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4191
  test $ac_status = 0; }; then :
4192 24 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4193
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4194
# work properly (i.e., refer to `conftest.exe'), while it won't with
4195
# `rm'.
4196
for ac_file in conftest.exe conftest conftest.*; do
4197
  test -f "$ac_file" || continue
4198
  case $ac_file in
4199 225 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4200 24 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4201
          break;;
4202
    * ) break;;
4203
  esac
4204
done
4205
else
4206 225 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4208
as_fn_error "cannot compute suffix of executables: cannot compile and link
4209
See \`config.log' for more details." "$LINENO" 5; }
4210 24 jeremybenn
fi
4211
rm -f conftest$ac_cv_exeext
4212 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4213
$as_echo "$ac_cv_exeext" >&6; }
4214 24 jeremybenn
 
4215
rm -f conftest.$ac_ext
4216
EXEEXT=$ac_cv_exeext
4217
ac_exeext=$EXEEXT
4218 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4219
$as_echo_n "checking for suffix of object files... " >&6; }
4220
if test "${ac_cv_objext+set}" = set; then :
4221
  $as_echo_n "(cached) " >&6
4222 24 jeremybenn
else
4223 225 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 24 jeremybenn
/* end confdefs.h.  */
4225
 
4226
int
4227
main ()
4228
{
4229
 
4230
  ;
4231
  return 0;
4232
}
4233
_ACEOF
4234
rm -f conftest.o conftest.obj
4235 225 jeremybenn
if { { ac_try="$ac_compile"
4236
case "(($ac_try" in
4237
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238
  *) ac_try_echo=$ac_try;;
4239
esac
4240
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241
$as_echo "$ac_try_echo"; } >&5
4242
  (eval "$ac_compile") 2>&5
4243 24 jeremybenn
  ac_status=$?
4244 225 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245
  test $ac_status = 0; }; then :
4246
  for ac_file in conftest.o conftest.obj conftest.*; do
4247
  test -f "$ac_file" || continue;
4248 24 jeremybenn
  case $ac_file in
4249 225 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4250 24 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4251
       break;;
4252
  esac
4253
done
4254
else
4255 225 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
4256 24 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
4257
 
4258 225 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4259
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4260
as_fn_error "cannot compute suffix of object files: cannot compile
4261
See \`config.log' for more details." "$LINENO" 5; }
4262 24 jeremybenn
fi
4263
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4264
fi
4265 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4266
$as_echo "$ac_cv_objext" >&6; }
4267 24 jeremybenn
OBJEXT=$ac_cv_objext
4268
ac_objext=$OBJEXT
4269 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4270
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4271
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4272
  $as_echo_n "(cached) " >&6
4273 24 jeremybenn
else
4274 225 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 24 jeremybenn
/* end confdefs.h.  */
4276
 
4277
int
4278
main ()
4279
{
4280
#ifndef __GNUC__
4281
       choke me
4282
#endif
4283
 
4284
  ;
4285
  return 0;
4286
}
4287
_ACEOF
4288 225 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
4289 24 jeremybenn
  ac_compiler_gnu=yes
4290
else
4291 225 jeremybenn
  ac_compiler_gnu=no
4292 24 jeremybenn
fi
4293 225 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 24 jeremybenn
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4295
 
4296
fi
4297 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4298
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4299
if test $ac_compiler_gnu = yes; then
4300
  GCC=yes
4301
else
4302
  GCC=
4303
fi
4304 24 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
4305
ac_save_CFLAGS=$CFLAGS
4306 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4307
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4308
if test "${ac_cv_prog_cc_g+set}" = set; then :
4309
  $as_echo_n "(cached) " >&6
4310 24 jeremybenn
else
4311 225 jeremybenn
  ac_save_c_werror_flag=$ac_c_werror_flag
4312
   ac_c_werror_flag=yes
4313
   ac_cv_prog_cc_g=no
4314
   CFLAGS="-g"
4315
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 24 jeremybenn
/* end confdefs.h.  */
4317
 
4318
int
4319
main ()
4320
{
4321
 
4322
  ;
4323
  return 0;
4324
}
4325
_ACEOF
4326 225 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
4327 24 jeremybenn
  ac_cv_prog_cc_g=yes
4328
else
4329 225 jeremybenn
  CFLAGS=""
4330
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331
/* end confdefs.h.  */
4332 24 jeremybenn
 
4333 225 jeremybenn
int
4334
main ()
4335
{
4336
 
4337
  ;
4338
  return 0;
4339
}
4340
_ACEOF
4341
if ac_fn_c_try_compile "$LINENO"; then :
4342
 
4343
else
4344
  ac_c_werror_flag=$ac_save_c_werror_flag
4345
         CFLAGS="-g"
4346
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347
/* end confdefs.h.  */
4348
 
4349
int
4350
main ()
4351
{
4352
 
4353
  ;
4354
  return 0;
4355
}
4356
_ACEOF
4357
if ac_fn_c_try_compile "$LINENO"; then :
4358
  ac_cv_prog_cc_g=yes
4359 24 jeremybenn
fi
4360 225 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 24 jeremybenn
fi
4362 225 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363
fi
4364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365
   ac_c_werror_flag=$ac_save_c_werror_flag
4366
fi
4367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4368
$as_echo "$ac_cv_prog_cc_g" >&6; }
4369 24 jeremybenn
if test "$ac_test_CFLAGS" = set; then
4370
  CFLAGS=$ac_save_CFLAGS
4371
elif test $ac_cv_prog_cc_g = yes; then
4372
  if test "$GCC" = yes; then
4373
    CFLAGS="-g -O2"
4374
  else
4375
    CFLAGS="-g"
4376
  fi
4377
else
4378
  if test "$GCC" = yes; then
4379
    CFLAGS="-O2"
4380
  else
4381
    CFLAGS=
4382
  fi
4383
fi
4384 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4385
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4386
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4387
  $as_echo_n "(cached) " >&6
4388 24 jeremybenn
else
4389 225 jeremybenn
  ac_cv_prog_cc_c89=no
4390 24 jeremybenn
ac_save_CC=$CC
4391 225 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 24 jeremybenn
/* end confdefs.h.  */
4393
#include 
4394
#include 
4395
#include 
4396
#include 
4397
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4398
struct buf { int x; };
4399
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4400
static char *e (p, i)
4401
     char **p;
4402
     int i;
4403
{
4404
  return p[i];
4405
}
4406
static char *f (char * (*g) (char **, int), char **p, ...)
4407
{
4408
  char *s;
4409
  va_list v;
4410
  va_start (v,p);
4411
  s = g (p, va_arg (v,int));
4412
  va_end (v);
4413
  return s;
4414
}
4415
 
4416
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4417
   function prototypes and stuff, but not '\xHH' hex character constants.
4418
   These don't provoke an error unfortunately, instead are silently treated
4419 225 jeremybenn
   as 'x'.  The following induces an error, until -std is added to get
4420 24 jeremybenn
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4421
   array size at least.  It's necessary to write '\x00'==0 to get something
4422 225 jeremybenn
   that's true only with -std.  */
4423 24 jeremybenn
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4424
 
4425 225 jeremybenn
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4426
   inside strings and character constants.  */
4427
#define FOO(x) 'x'
4428
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4429
 
4430 24 jeremybenn
int test (int i, double x);
4431
struct s1 {int (*f) (int a);};
4432
struct s2 {int (*f) (double a);};
4433
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4434
int argc;
4435
char **argv;
4436
int
4437
main ()
4438
{
4439
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4440
  ;
4441
  return 0;
4442
}
4443
_ACEOF
4444 225 jeremybenn
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4445
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4446 24 jeremybenn
do
4447
  CC="$ac_save_CC $ac_arg"
4448 225 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
4449
  ac_cv_prog_cc_c89=$ac_arg
4450 24 jeremybenn
fi
4451 225 jeremybenn
rm -f core conftest.err conftest.$ac_objext
4452
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4453 24 jeremybenn
done
4454 225 jeremybenn
rm -f conftest.$ac_ext
4455 24 jeremybenn
CC=$ac_save_CC
4456
 
4457
fi
4458 225 jeremybenn
# AC_CACHE_VAL
4459
case "x$ac_cv_prog_cc_c89" in
4460
  x)
4461
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4462
$as_echo "none needed" >&6; } ;;
4463
  xno)
4464
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4465
$as_echo "unsupported" >&6; } ;;
4466 24 jeremybenn
  *)
4467 225 jeremybenn
    CC="$CC $ac_cv_prog_cc_c89"
4468
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4469
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4470 24 jeremybenn
esac
4471 225 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
4472 24 jeremybenn
 
4473
fi
4474
 
4475
ac_ext=c
4476
ac_cpp='$CPP $CPPFLAGS'
4477
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480
 
4481 225 jeremybenn
ac_ext=cpp
4482 24 jeremybenn
ac_cpp='$CXXCPP $CPPFLAGS'
4483
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4486 225 jeremybenn
if test -z "$CXX"; then
4487
  if test -n "$CCC"; then
4488
    CXX=$CCC
4489
  else
4490
    if test -n "$ac_tool_prefix"; then
4491
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4492 24 jeremybenn
  do
4493
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4494
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4495 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4496
$as_echo_n "checking for $ac_word... " >&6; }
4497
if test "${ac_cv_prog_CXX+set}" = set; then :
4498
  $as_echo_n "(cached) " >&6
4499 24 jeremybenn
else
4500
  if test -n "$CXX"; then
4501
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4502
else
4503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504
for as_dir in $PATH
4505
do
4506
  IFS=$as_save_IFS
4507
  test -z "$as_dir" && as_dir=.
4508 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4509
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 24 jeremybenn
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4511 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 24 jeremybenn
    break 2
4513
  fi
4514
done
4515 225 jeremybenn
  done
4516
IFS=$as_save_IFS
4517 24 jeremybenn
 
4518
fi
4519
fi
4520
CXX=$ac_cv_prog_CXX
4521
if test -n "$CXX"; then
4522 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4523
$as_echo "$CXX" >&6; }
4524 24 jeremybenn
else
4525 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526
$as_echo "no" >&6; }
4527 24 jeremybenn
fi
4528
 
4529 225 jeremybenn
 
4530 24 jeremybenn
    test -n "$CXX" && break
4531
  done
4532
fi
4533
if test -z "$CXX"; then
4534
  ac_ct_CXX=$CXX
4535 225 jeremybenn
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4536 24 jeremybenn
do
4537
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4538
set dummy $ac_prog; ac_word=$2
4539 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540
$as_echo_n "checking for $ac_word... " >&6; }
4541
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4542
  $as_echo_n "(cached) " >&6
4543 24 jeremybenn
else
4544
  if test -n "$ac_ct_CXX"; then
4545
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4546
else
4547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548
for as_dir in $PATH
4549
do
4550
  IFS=$as_save_IFS
4551
  test -z "$as_dir" && as_dir=.
4552 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4553
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 24 jeremybenn
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4555 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 24 jeremybenn
    break 2
4557
  fi
4558
done
4559 225 jeremybenn
  done
4560
IFS=$as_save_IFS
4561 24 jeremybenn
 
4562
fi
4563
fi
4564
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4565
if test -n "$ac_ct_CXX"; then
4566 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4567
$as_echo "$ac_ct_CXX" >&6; }
4568 24 jeremybenn
else
4569 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570
$as_echo "no" >&6; }
4571 24 jeremybenn
fi
4572
 
4573 225 jeremybenn
 
4574 24 jeremybenn
  test -n "$ac_ct_CXX" && break
4575
done
4576
 
4577 225 jeremybenn
  if test "x$ac_ct_CXX" = x; then
4578
    CXX="g++"
4579
  else
4580
    case $cross_compiling:$ac_tool_warned in
4581
yes:)
4582
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4583
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4584
ac_tool_warned=yes ;;
4585
esac
4586
    CXX=$ac_ct_CXX
4587
  fi
4588 24 jeremybenn
fi
4589
 
4590 225 jeremybenn
  fi
4591
fi
4592 24 jeremybenn
# Provide some information about the compiler.
4593 225 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4594
set X $ac_compile
4595
ac_compiler=$2
4596
for ac_option in --version -v -V -qversion; do
4597
  { { ac_try="$ac_compiler $ac_option >&5"
4598
case "(($ac_try" in
4599
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600
  *) ac_try_echo=$ac_try;;
4601
esac
4602
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4603
$as_echo "$ac_try_echo"; } >&5
4604
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4605 24 jeremybenn
  ac_status=$?
4606 225 jeremybenn
  if test -s conftest.err; then
4607
    sed '10a\
4608
... rest of stderr output deleted ...
4609
         10q' conftest.err >conftest.er1
4610
    cat conftest.er1 >&5
4611
    rm -f conftest.er1 conftest.err
4612
  fi
4613
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4614
  test $ac_status = 0; }
4615
done
4616 24 jeremybenn
 
4617 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4618
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4619
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4620
  $as_echo_n "(cached) " >&6
4621 24 jeremybenn
else
4622 225 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 24 jeremybenn
/* end confdefs.h.  */
4624
 
4625
int
4626
main ()
4627
{
4628
#ifndef __GNUC__
4629
       choke me
4630
#endif
4631
 
4632
  ;
4633
  return 0;
4634
}
4635
_ACEOF
4636 225 jeremybenn
if ac_fn_cxx_try_compile "$LINENO"; then :
4637 24 jeremybenn
  ac_compiler_gnu=yes
4638
else
4639 225 jeremybenn
  ac_compiler_gnu=no
4640 24 jeremybenn
fi
4641 225 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 24 jeremybenn
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4643
 
4644
fi
4645 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4646
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4647
if test $ac_compiler_gnu = yes; then
4648
  GXX=yes
4649
else
4650
  GXX=
4651
fi
4652 24 jeremybenn
ac_test_CXXFLAGS=${CXXFLAGS+set}
4653
ac_save_CXXFLAGS=$CXXFLAGS
4654 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4655
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4656
if test "${ac_cv_prog_cxx_g+set}" = set; then :
4657
  $as_echo_n "(cached) " >&6
4658 24 jeremybenn
else
4659 225 jeremybenn
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4660
   ac_cxx_werror_flag=yes
4661
   ac_cv_prog_cxx_g=no
4662
   CXXFLAGS="-g"
4663
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 24 jeremybenn
/* end confdefs.h.  */
4665
 
4666
int
4667
main ()
4668
{
4669
 
4670
  ;
4671
  return 0;
4672
}
4673
_ACEOF
4674 225 jeremybenn
if ac_fn_cxx_try_compile "$LINENO"; then :
4675 24 jeremybenn
  ac_cv_prog_cxx_g=yes
4676
else
4677 225 jeremybenn
  CXXFLAGS=""
4678
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679
/* end confdefs.h.  */
4680 24 jeremybenn
 
4681
int
4682
main ()
4683
{
4684 225 jeremybenn
 
4685 24 jeremybenn
  ;
4686
  return 0;
4687
}
4688
_ACEOF
4689 225 jeremybenn
if ac_fn_cxx_try_compile "$LINENO"; then :
4690
 
4691 24 jeremybenn
else
4692 225 jeremybenn
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4693
         CXXFLAGS="-g"
4694
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695
/* end confdefs.h.  */
4696 24 jeremybenn
 
4697
int
4698
main ()
4699
{
4700 225 jeremybenn
 
4701 24 jeremybenn
  ;
4702
  return 0;
4703
}
4704
_ACEOF
4705 225 jeremybenn
if ac_fn_cxx_try_compile "$LINENO"; then :
4706
  ac_cv_prog_cxx_g=yes
4707
fi
4708
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709
fi
4710
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711
fi
4712
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4714
fi
4715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4716
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4717
if test "$ac_test_CXXFLAGS" = set; then
4718
  CXXFLAGS=$ac_save_CXXFLAGS
4719
elif test $ac_cv_prog_cxx_g = yes; then
4720
  if test "$GXX" = yes; then
4721
    CXXFLAGS="-g -O2"
4722
  else
4723
    CXXFLAGS="-g"
4724
  fi
4725 24 jeremybenn
else
4726 225 jeremybenn
  if test "$GXX" = yes; then
4727
    CXXFLAGS="-O2"
4728
  else
4729
    CXXFLAGS=
4730
  fi
4731 24 jeremybenn
fi
4732
ac_ext=c
4733
ac_cpp='$CPP $CPPFLAGS'
4734
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737
 
4738
 
4739
# We must set the default linker to the linker used by gcc for the correct
4740
# operation of libtool.  If LD is not defined and we are using gcc, try to
4741
# set the LD default to the ld used by gcc.
4742
if test -z "$LD"; then
4743
  if test "$GCC" = yes; then
4744
    case $build in
4745
    *-*-mingw*)
4746
      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4747
    *)
4748
      gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4749
    esac
4750
    case $gcc_prog_ld in
4751
    # Accept absolute paths.
4752
    [\\/]* | [A-Za-z]:[\\/]*)
4753
      LD="$gcc_prog_ld" ;;
4754
    esac
4755
  fi
4756
fi
4757
 
4758
 
4759
 
4760
 
4761
if test -n "$ac_tool_prefix"; then
4762
  # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4763
set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4764 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765
$as_echo_n "checking for $ac_word... " >&6; }
4766
if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4767
  $as_echo_n "(cached) " >&6
4768 24 jeremybenn
else
4769
  if test -n "$GNATBIND"; then
4770
  ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4771
else
4772
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773
for as_dir in $PATH
4774
do
4775
  IFS=$as_save_IFS
4776
  test -z "$as_dir" && as_dir=.
4777 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4778
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 24 jeremybenn
    ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4780 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 24 jeremybenn
    break 2
4782
  fi
4783
done
4784 225 jeremybenn
  done
4785
IFS=$as_save_IFS
4786 24 jeremybenn
 
4787
fi
4788
fi
4789
GNATBIND=$ac_cv_prog_GNATBIND
4790
if test -n "$GNATBIND"; then
4791 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4792
$as_echo "$GNATBIND" >&6; }
4793 24 jeremybenn
else
4794 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795
$as_echo "no" >&6; }
4796 24 jeremybenn
fi
4797
 
4798 225 jeremybenn
 
4799 24 jeremybenn
fi
4800
if test -z "$ac_cv_prog_GNATBIND"; then
4801
  ac_ct_GNATBIND=$GNATBIND
4802
  # Extract the first word of "gnatbind", so it can be a program name with args.
4803
set dummy gnatbind; ac_word=$2
4804 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805
$as_echo_n "checking for $ac_word... " >&6; }
4806
if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4807
  $as_echo_n "(cached) " >&6
4808 24 jeremybenn
else
4809
  if test -n "$ac_ct_GNATBIND"; then
4810
  ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4811
else
4812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813
for as_dir in $PATH
4814
do
4815
  IFS=$as_save_IFS
4816
  test -z "$as_dir" && as_dir=.
4817 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4818
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 24 jeremybenn
    ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4820 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 24 jeremybenn
    break 2
4822
  fi
4823
done
4824 225 jeremybenn
  done
4825
IFS=$as_save_IFS
4826 24 jeremybenn
 
4827
fi
4828
fi
4829
ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4830
if test -n "$ac_ct_GNATBIND"; then
4831 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4832
$as_echo "$ac_ct_GNATBIND" >&6; }
4833 24 jeremybenn
else
4834 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835
$as_echo "no" >&6; }
4836 24 jeremybenn
fi
4837
 
4838 225 jeremybenn
  if test "x$ac_ct_GNATBIND" = x; then
4839
    GNATBIND="no"
4840
  else
4841
    case $cross_compiling:$ac_tool_warned in
4842
yes:)
4843
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4844
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4845
ac_tool_warned=yes ;;
4846
esac
4847
    GNATBIND=$ac_ct_GNATBIND
4848
  fi
4849 24 jeremybenn
else
4850
  GNATBIND="$ac_cv_prog_GNATBIND"
4851
fi
4852
 
4853
if test -n "$ac_tool_prefix"; then
4854
  # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4855
set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4856 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857
$as_echo_n "checking for $ac_word... " >&6; }
4858
if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4859
  $as_echo_n "(cached) " >&6
4860 24 jeremybenn
else
4861
  if test -n "$GNATMAKE"; then
4862
  ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4863
else
4864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865
for as_dir in $PATH
4866
do
4867
  IFS=$as_save_IFS
4868
  test -z "$as_dir" && as_dir=.
4869 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4870
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 24 jeremybenn
    ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4872 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 24 jeremybenn
    break 2
4874
  fi
4875
done
4876 225 jeremybenn
  done
4877
IFS=$as_save_IFS
4878 24 jeremybenn
 
4879
fi
4880
fi
4881
GNATMAKE=$ac_cv_prog_GNATMAKE
4882
if test -n "$GNATMAKE"; then
4883 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4884
$as_echo "$GNATMAKE" >&6; }
4885 24 jeremybenn
else
4886 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887
$as_echo "no" >&6; }
4888 24 jeremybenn
fi
4889
 
4890 225 jeremybenn
 
4891 24 jeremybenn
fi
4892
if test -z "$ac_cv_prog_GNATMAKE"; then
4893
  ac_ct_GNATMAKE=$GNATMAKE
4894
  # Extract the first word of "gnatmake", so it can be a program name with args.
4895
set dummy gnatmake; ac_word=$2
4896 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897
$as_echo_n "checking for $ac_word... " >&6; }
4898
if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4899
  $as_echo_n "(cached) " >&6
4900 24 jeremybenn
else
4901
  if test -n "$ac_ct_GNATMAKE"; then
4902
  ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4903
else
4904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905
for as_dir in $PATH
4906
do
4907
  IFS=$as_save_IFS
4908
  test -z "$as_dir" && as_dir=.
4909 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4910
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 24 jeremybenn
    ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4912 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 24 jeremybenn
    break 2
4914
  fi
4915
done
4916 225 jeremybenn
  done
4917
IFS=$as_save_IFS
4918 24 jeremybenn
 
4919
fi
4920
fi
4921
ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4922
if test -n "$ac_ct_GNATMAKE"; then
4923 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4924
$as_echo "$ac_ct_GNATMAKE" >&6; }
4925 24 jeremybenn
else
4926 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927
$as_echo "no" >&6; }
4928 24 jeremybenn
fi
4929
 
4930 225 jeremybenn
  if test "x$ac_ct_GNATMAKE" = x; then
4931
    GNATMAKE="no"
4932
  else
4933
    case $cross_compiling:$ac_tool_warned in
4934
yes:)
4935
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4936
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4937
ac_tool_warned=yes ;;
4938
esac
4939
    GNATMAKE=$ac_ct_GNATMAKE
4940
  fi
4941 24 jeremybenn
else
4942
  GNATMAKE="$ac_cv_prog_GNATMAKE"
4943
fi
4944
 
4945 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4946
$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4947
if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4948
  $as_echo_n "(cached) " >&6
4949 24 jeremybenn
else
4950
  cat >conftest.adb <
4951
procedure conftest is begin null; end conftest;
4952
EOF
4953
acx_cv_cc_gcc_supports_ada=no
4954
# There is a bug in old released versions of GCC which causes the
4955
# driver to exit successfully when the appropriate language module
4956
# has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4957
# Therefore we must check for the error message as well as an
4958
# unsuccessful exit.
4959
# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4960
# given a .adb file, but produce no object file.  So we must check
4961
# if an object file was really produced to guard against this.
4962
errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4963
if test x"$errors" = x && test -f conftest.$ac_objext; then
4964
  acx_cv_cc_gcc_supports_ada=yes
4965
fi
4966
rm -f conftest.*
4967
fi
4968 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4969
$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4970 24 jeremybenn
 
4971
if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4972
  have_gnat=yes
4973
else
4974
  have_gnat=no
4975
fi
4976
 
4977 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4978
$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4979
if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4980
  $as_echo_n "(cached) " >&6
4981 24 jeremybenn
else
4982
   echo abfoo >t1
4983
  echo cdfoo >t2
4984
  gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4985
  if cmp t1 t2 2 2 > /dev/null 2>&1; then
4986
    if cmp t1 t2 1 1 > /dev/null 2>&1; then
4987
      :
4988
    else
4989
      gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4990
    fi
4991
  fi
4992
  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4993
    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4994
      :
4995
    else
4996
      gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4997
    fi
4998
  fi
4999
  rm t1 t2
5000
 
5001
fi
5002 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5003
$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5004 24 jeremybenn
do_compare="$gcc_cv_prog_cmp_skip"
5005
 
5006
 
5007
 
5008 225 jeremybenn
# See if we are building gcc with C++.
5009
# Check whether --enable-build-with-cxx was given.
5010
if test "${enable_build_with_cxx+set}" = set; then :
5011
  enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5012
else
5013
  ENABLE_BUILD_WITH_CXX=no
5014
fi
5015
 
5016
 
5017
# Check for GMP, MPFR and MPC
5018 24 jeremybenn
gmplibs="-lmpfr -lgmp"
5019
gmpinc=
5020
have_gmp=no
5021 225 jeremybenn
mpclibs=-lmpc
5022
mpcinc=
5023
have_mpc=no
5024 24 jeremybenn
 
5025 225 jeremybenn
# Specify a location for mpc
5026
# check for this first so it ends up on the link line before mpfr.
5027
 
5028
# Check whether --with-mpc was given.
5029
if test "${with_mpc+set}" = set; then :
5030
  withval=$with_mpc;
5031
fi
5032
 
5033
 
5034
# Check whether --with-mpc_include was given.
5035
if test "${with_mpc_include+set}" = set; then :
5036
  withval=$with_mpc_include;
5037
fi
5038
 
5039
 
5040
# Check whether --with-mpc_lib was given.
5041
if test "${with_mpc_lib+set}" = set; then :
5042
  withval=$with_mpc_lib;
5043
fi
5044
 
5045
 
5046
if test "x$with_mpc" != x; then
5047
  mpclibs="-L$with_mpc/lib -lmpc"
5048
  mpcinc="-I$with_mpc/include $mpcinc"
5049
fi
5050
if test "x$with_mpc_include" != x; then
5051
  mpcinc="-I$with_mpc_include $mpcinc"
5052
fi
5053
if test "x$with_mpc_lib" != x; then
5054
  mpclibs="-L$with_mpc_lib -lmpc"
5055
fi
5056
if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5057
  mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
5058
  mpcinc='-I$$s/mpc/src '"$mpcinc"
5059
  # Do not test the mpc version.  Assume that it is sufficient, since
5060
  # it is in the source tree, and the library has not been built yet
5061
  # but it would be included on the link line in the version check below
5062
  # hence making the test fail.
5063
  have_mpc=yes
5064
fi
5065
 
5066 24 jeremybenn
# Specify a location for mpfr
5067
# check for this first so it ends up on the link line before gmp.
5068
 
5069 225 jeremybenn
# Check whether --with-mpfr-dir was given.
5070
if test "${with_mpfr_dir+set}" = set; then :
5071
  withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5072
Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5073
fi
5074 24 jeremybenn
 
5075
 
5076
 
5077 225 jeremybenn
# Check whether --with-mpfr was given.
5078
if test "${with_mpfr+set}" = set; then :
5079
  withval=$with_mpfr;
5080
fi
5081 24 jeremybenn
 
5082
 
5083 225 jeremybenn
# Check whether --with-mpfr_include was given.
5084
if test "${with_mpfr_include+set}" = set; then :
5085
  withval=$with_mpfr_include;
5086
fi
5087 24 jeremybenn
 
5088
 
5089 225 jeremybenn
# Check whether --with-mpfr_lib was given.
5090
if test "${with_mpfr_lib+set}" = set; then :
5091
  withval=$with_mpfr_lib;
5092
fi
5093 24 jeremybenn
 
5094 225 jeremybenn
 
5095 24 jeremybenn
if test "x$with_mpfr" != x; then
5096
  gmplibs="-L$with_mpfr/lib $gmplibs"
5097
  gmpinc="-I$with_mpfr/include"
5098
fi
5099
if test "x$with_mpfr_include" != x; then
5100
  gmpinc="-I$with_mpfr_include"
5101
fi
5102
if test "x$with_mpfr_lib" != x; then
5103
  gmplibs="-L$with_mpfr_lib $gmplibs"
5104
fi
5105
if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5106
  gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
5107
  gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5108 225 jeremybenn
  extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
5109 24 jeremybenn
  # Do not test the mpfr version.  Assume that it is sufficient, since
5110
  # it is in the source tree, and the library has not been built yet
5111
  # but it would be included on the link line in the version check below
5112
  # hence making the test fail.
5113
  have_gmp=yes
5114
fi
5115
 
5116
# Specify a location for gmp
5117
 
5118 225 jeremybenn
# Check whether --with-gmp-dir was given.
5119
if test "${with_gmp_dir+set}" = set; then :
5120
  withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5121
Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5122
fi
5123 24 jeremybenn
 
5124
 
5125
 
5126 225 jeremybenn
# Check whether --with-gmp was given.
5127
if test "${with_gmp+set}" = set; then :
5128
  withval=$with_gmp;
5129
fi
5130 24 jeremybenn
 
5131
 
5132 225 jeremybenn
# Check whether --with-gmp_include was given.
5133
if test "${with_gmp_include+set}" = set; then :
5134
  withval=$with_gmp_include;
5135
fi
5136 24 jeremybenn
 
5137
 
5138 225 jeremybenn
# Check whether --with-gmp_lib was given.
5139
if test "${with_gmp_lib+set}" = set; then :
5140
  withval=$with_gmp_lib;
5141
fi
5142 24 jeremybenn
 
5143
 
5144 225 jeremybenn
 
5145 24 jeremybenn
if test "x$with_gmp" != x; then
5146
  gmplibs="-L$with_gmp/lib $gmplibs"
5147
  gmpinc="-I$with_gmp/include $gmpinc"
5148
fi
5149
if test "x$with_gmp_include" != x; then
5150
  gmpinc="-I$with_gmp_include $gmpinc"
5151
fi
5152
if test "x$with_gmp_lib" != x; then
5153
  gmplibs="-L$with_gmp_lib $gmplibs"
5154
fi
5155
if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5156
  gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
5157
  gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5158 225 jeremybenn
  extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
5159
  extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
5160 24 jeremybenn
  # Do not test the gmp version.  Assume that it is sufficient, since
5161
  # it is in the source tree, and the library has not been built yet
5162
  # but it would be included on the link line in the version check below
5163
  # hence making the test fail.
5164
  have_gmp=yes
5165
fi
5166
 
5167
if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5168
  have_gmp=yes
5169
  saved_CFLAGS="$CFLAGS"
5170
  CFLAGS="$CFLAGS $gmpinc"
5171
  # Check GMP actually works
5172 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5
5173
$as_echo_n "checking for correct version of gmp.h... " >&6; }
5174 24 jeremybenn
 
5175 225 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 24 jeremybenn
/* end confdefs.h.  */
5177
#include "gmp.h"
5178
int
5179
main ()
5180
{
5181
 
5182 225 jeremybenn
  #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
5183 24 jeremybenn
  choke me
5184
  #endif
5185
 
5186
  ;
5187
  return 0;
5188
}
5189
_ACEOF
5190 225 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
5191
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5192
$as_echo "yes" >&6; }
5193 24 jeremybenn
else
5194 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195
$as_echo "no" >&6; }; have_gmp=no
5196
fi
5197
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198 24 jeremybenn
 
5199 225 jeremybenn
  # If we have GMP, check the MPFR version.
5200
  if test x"$have_gmp" = xyes; then
5201
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5
5202
$as_echo_n "checking for correct version of mpfr.h... " >&6; }
5203
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204
/* end confdefs.h.  */
5205
#include 
5206
    #include 
5207
int
5208
main ()
5209
{
5210
 
5211
    #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5212
    choke me
5213
    #endif
5214
 
5215
  ;
5216
  return 0;
5217
}
5218
_ACEOF
5219
if ac_fn_c_try_compile "$LINENO"; then :
5220
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221
/* end confdefs.h.  */
5222
#include 
5223
    #include 
5224
int
5225
main ()
5226
{
5227
 
5228
    #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
5229
    choke me
5230
    #endif
5231
 
5232
  ;
5233
  return 0;
5234
}
5235
_ACEOF
5236
if ac_fn_c_try_compile "$LINENO"; then :
5237
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5238
$as_echo "yes" >&6; }
5239
else
5240
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5241
$as_echo "buggy but acceptable" >&6; }
5242 24 jeremybenn
fi
5243 225 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244
else
5245
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246
$as_echo "no" >&6; }; have_gmp=no
5247
fi
5248
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249
  fi
5250 24 jeremybenn
 
5251 225 jeremybenn
  # Check for the MPC header version.
5252
  if test x"$have_mpc" != xyes ; then
5253
    CFLAGS="$CFLAGS $mpcinc"
5254
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5255
$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5256
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257
/* end confdefs.h.  */
5258
#include 
5259
int
5260
main ()
5261
{
5262
 
5263
    #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
5264
    choke me
5265
    #endif
5266
 
5267
  ;
5268
  return 0;
5269
}
5270
_ACEOF
5271
if ac_fn_c_try_compile "$LINENO"; then :
5272
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5273
$as_echo "yes" >&6; }; have_mpc=maybe
5274
else
5275
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276
$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
5277
fi
5278
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279
  fi
5280
 
5281
  # Now check the MPFR library.
5282 24 jeremybenn
  if test x"$have_gmp" = xyes; then
5283
    saved_LIBS="$LIBS"
5284
    LIBS="$LIBS $gmplibs"
5285 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
5286
$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5287
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 24 jeremybenn
/* end confdefs.h.  */
5289
#include 
5290
    #include 
5291
int
5292
main ()
5293
{
5294
 
5295
    mpfr_t n;
5296
    mpfr_t x;
5297
    int t;
5298
    mpfr_init (n);
5299
    mpfr_init (x);
5300
    mpfr_atan2 (n, n, x, GMP_RNDN);
5301
    mpfr_erfc (n, x, GMP_RNDN);
5302
    mpfr_subnormalize (x, t, GMP_RNDN);
5303
 
5304
  ;
5305
  return 0;
5306
}
5307
_ACEOF
5308 225 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5309
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5310
$as_echo "yes" >&6; }
5311
else
5312
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313
$as_echo "no" >&6; }; have_gmp=no
5314
fi
5315
rm -f core conftest.err conftest.$ac_objext \
5316
    conftest$ac_exeext conftest.$ac_ext
5317
    LIBS="$saved_LIBS"
5318
  fi
5319
 
5320
  if test x"$have_mpc" = xmaybe; then
5321
    saved_LIBS="$LIBS"
5322
    LIBS="$LIBS $mpclibs $gmplibs"
5323
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc library" >&5
5324
$as_echo_n "checking for the correct version of the mpc library... " >&6; }
5325
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 24 jeremybenn
/* end confdefs.h.  */
5327 225 jeremybenn
#include 
5328 24 jeremybenn
int
5329
main ()
5330
{
5331
 
5332 225 jeremybenn
    mpc_t n;
5333
    mpc_init2 (n, 53);
5334
    mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5335
    mpc_sin (n, n, MPC_RNDNN);
5336
    mpc_cos (n, n, MPC_RNDNN);
5337
    mpc_tan (n, n, MPC_RNDNN);
5338
    mpc_sinh (n, n, MPC_RNDNN);
5339
    mpc_cosh (n, n, MPC_RNDNN);
5340
    mpc_tanh (n, n, MPC_RNDNN);
5341
    mpc_exp (n, n, MPC_RNDNN);
5342
    mpc_log (n, n, MPC_RNDNN);
5343
    mpc_sqrt (n, n, MPC_RNDNN);
5344
    mpc_proj (n, n, MPC_RNDNN);
5345
    mpc_neg (n, n, MPC_RNDNN);
5346
    mpc_sqr (n, n, MPC_RNDNN);
5347
    mpc_clear (n);
5348 24 jeremybenn
 
5349
  ;
5350
  return 0;
5351
}
5352
_ACEOF
5353 225 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5354
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5355
$as_echo "yes" >&6; }; have_mpc=yes
5356 24 jeremybenn
else
5357 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358
$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
5359 24 jeremybenn
fi
5360 225 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5361
    conftest$ac_exeext conftest.$ac_ext
5362
    LIBS="$saved_LIBS"
5363
  fi
5364 24 jeremybenn
 
5365
  CFLAGS="$saved_CFLAGS"
5366
 
5367
  if test x$have_gmp != xyes; then
5368 225 jeremybenn
    as_fn_error "Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
5369 24 jeremybenn
Try the --with-gmp and/or --with-mpfr options to specify their locations.
5370
Copies of these libraries' source code can be found at their respective
5371
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5372
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5373
If you obtained GMP and/or MPFR from a vendor distribution package, make
5374
sure that you have installed both the libraries and the header files.
5375 225 jeremybenn
They may be located in separate packages." "$LINENO" 5
5376 24 jeremybenn
  fi
5377
fi
5378
 
5379 225 jeremybenn
if test x$have_mpc != xyes ; then
5380
  mpcinc=
5381
  mpclibs=
5382
fi
5383 24 jeremybenn
 
5384 225 jeremybenn
gmpinc="$mpcinc $gmpinc"
5385
gmplibs="$mpclibs $gmplibs"
5386 24 jeremybenn
 
5387 225 jeremybenn
# Flags needed for both GMP, MPFR and/or MPC.
5388 24 jeremybenn
 
5389 225 jeremybenn
 
5390
 
5391
 
5392
 
5393
 
5394
# Allow host libstdc++ to be specified for static linking with PPL.
5395
 
5396
# Check whether --with-host-libstdcxx was given.
5397
if test "${with_host_libstdcxx+set}" = set; then :
5398
  withval=$with_host_libstdcxx;
5399
fi
5400
 
5401
 
5402
case $with_host_libstdcxx in
5403
  no|yes)
5404
    as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5405
    ;;
5406
esac
5407
 
5408
# Linker flags to use for stage1 or when not boostrapping.
5409
 
5410
# Check whether --with-stage1-ldflags was given.
5411
if test "${with_stage1_ldflags+set}" = set; then :
5412
  withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5413
   stage1_ldflags=
5414
 else
5415
   stage1_ldflags=$withval
5416
 fi
5417
else
5418
  stage1_ldflags=
5419
fi
5420
 
5421
 
5422
 
5423
# Libraries to use for stage1 or when not bootstrapping.
5424
 
5425
# Check whether --with-stage1-libs was given.
5426
if test "${with_stage1_libs+set}" = set; then :
5427
  withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5428
   stage1_libs=
5429
 else
5430
   stage1_libs=$withval
5431
 fi
5432
else
5433
  stage1_libs=$with_host_libstdcxx
5434
fi
5435
 
5436
 
5437
 
5438
# Linker flags to use for stage2 and later builds.
5439
 
5440
# Check whether --with-boot-ldflags was given.
5441
if test "${with_boot_ldflags+set}" = set; then :
5442
  withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5443
   poststage1_ldflags=
5444
 else
5445
   poststage1_ldflags=$withval
5446
 fi
5447
else
5448
  if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5449
   poststage1_ldflags=-static-libstdc++
5450
 else
5451
   poststage1_ldflags=
5452
 fi
5453
fi
5454
 
5455
 
5456
 
5457
# Libraries to use for stage2 and later builds.  This defaults to the
5458
# argument passed to --with-host-libstdcxx.
5459
 
5460
# Check whether --with-boot-libs was given.
5461
if test "${with_boot_libs+set}" = set; then :
5462
  withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5463
   poststage1_libs=
5464
 else
5465
   poststage1_libs=$withval
5466
 fi
5467
else
5468
  poststage1_libs=$with_host_libstdcxx
5469
fi
5470
 
5471
 
5472
 
5473
# Check for PPL
5474
ppl_major_version=0
5475
ppl_minor_version=10
5476
ppllibs=" -lppl_c -lppl -lgmpxx"
5477
pplinc=
5478
 
5479
 
5480
# Check whether --with-ppl was given.
5481
if test "${with_ppl+set}" = set; then :
5482
  withval=$with_ppl;
5483
else
5484
  with_ppl=no
5485
fi
5486
 
5487
 
5488
# Check whether --with-ppl_include was given.
5489
if test "${with_ppl_include+set}" = set; then :
5490
  withval=$with_ppl_include;
5491
fi
5492
 
5493
 
5494
# Check whether --with-ppl_lib was given.
5495
if test "${with_ppl_lib+set}" = set; then :
5496
  withval=$with_ppl_lib;
5497
fi
5498
 
5499
 
5500
case $with_ppl in
5501
  no)
5502
    ppllibs=
5503
    ;;
5504
  *)
5505
    ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5506
    pplinc="-I$with_ppl/include $pplinc"
5507
    LIBS="$ppllibs $LIBS"
5508
    ;;
5509
esac
5510
if test "x$with_ppl_include" != x; then
5511
  pplinc="-I$with_ppl_include $pplinc"
5512
fi
5513
if test "x$with_ppl_lib" != x; then
5514
  ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5515
  LIBS="$ppllibs $LIBS"
5516
fi
5517
if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5518
  ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
5519
  pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5520
  LIBS="$ppllibs $LIBS"
5521
fi
5522
 
5523
# Check whether --enable-ppl-version-check was given.
5524
if test "${enable_ppl_version_check+set}" = set; then :
5525
  enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5526
else
5527
  ENABLE_PPL_CHECK=yes
5528
fi
5529
 
5530
 
5531
if test "${ENABLE_PPL_CHECK}" = "yes"; then
5532
  saved_CFLAGS="$CFLAGS"
5533
  CFLAGS="$CFLAGS $pplinc $gmpinc"
5534
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5535
$as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
5536
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537
/* end confdefs.h.  */
5538
#include "ppl_c.h"
5539
int
5540
main ()
5541
{
5542
 
5543
  #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5544
  choke me
5545
  #endif
5546
 
5547
  ;
5548
  return 0;
5549
}
5550
_ACEOF
5551
if ac_fn_c_try_compile "$LINENO"; then :
5552
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553
$as_echo "yes" >&6; }
5554
else
5555
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556
$as_echo "no" >&6; }; ppllibs= ; pplinc=
5557
fi
5558
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559
  CFLAGS="$saved_CFLAGS"
5560
fi
5561
 
5562
# Flags needed for PPL
5563
 
5564
 
5565
 
5566
 
5567
# Check for CLOOG
5568
clooglibs=" -lcloog "
5569
clooginc=" -DCLOOG_PPL_BACKEND "
5570
 
5571
 
5572
# Check whether --with-cloog was given.
5573
if test "${with_cloog+set}" = set; then :
5574
  withval=$with_cloog;
5575
else
5576
  with_cloog=no
5577
fi
5578
 
5579
 
5580
# Check whether --with-cloog_include was given.
5581
if test "${with_cloog_include+set}" = set; then :
5582
  withval=$with_cloog_include;
5583
fi
5584
 
5585
 
5586
# Check whether --with-cloog_lib was given.
5587
if test "${with_cloog_lib+set}" = set; then :
5588
  withval=$with_cloog_lib;
5589
fi
5590
 
5591
 
5592
case $with_cloog in
5593
  no)
5594
    clooglibs=
5595
    clooginc=
5596
    ;;
5597
  *)
5598
    clooglibs="-L$with_cloog/lib -lcloog"
5599
    clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5600
    LIBS="$clooglibs $LIBS"
5601
    ;;
5602
esac
5603
if test "x$with_cloog_include" != x; then
5604
  clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5605
fi
5606
if test "x$with_cloog_lib" != x; then
5607
  clooglibs="-L$with_cloog_lib -lcloog"
5608
  LIBS="$clooglibs $LIBS"
5609
fi
5610
if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5611
  clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5612
  clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5613
  LIBS="$clooglibs $LIBS"
5614
fi
5615
 
5616
# Check whether --enable-cloog-version-check was given.
5617
if test "${enable_cloog_version_check+set}" = set; then :
5618
  enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5619
else
5620
  ENABLE_CLOOG_CHECK=yes
5621
fi
5622
 
5623
 
5624
if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5625
  saved_CFLAGS="$CFLAGS"
5626
  CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5627
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
5628
$as_echo_n "checking for correct version of CLooG... " >&6; }
5629
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630
/* end confdefs.h.  */
5631
#include "cloog/cloog.h"
5632
int
5633
main ()
5634
{
5635
 
5636
  #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5637
  choke me
5638
  #endif
5639
 
5640
  ;
5641
  return 0;
5642
}
5643
_ACEOF
5644
if ac_fn_c_try_compile "$LINENO"; then :
5645
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646
$as_echo "yes" >&6; }
5647
else
5648
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649
$as_echo "no" >&6; }; clooglibs= ; clooginc=
5650
fi
5651
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652
  CFLAGS="$saved_CFLAGS"
5653
fi
5654
 
5655
# Flags needed for CLOOG
5656
 
5657
 
5658
 
5659
 
5660 24 jeremybenn
# By default, C is the only stage 1 language.
5661
stage1_languages=,c,
5662
 
5663 225 jeremybenn
# Target libraries that we bootstrap.
5664
bootstrap_target_libs=,target-libgcc,
5665
 
5666 24 jeremybenn
# Figure out what language subdirectories are present.
5667
# Look if the user specified --enable-languages="..."; if not, use
5668
# the environment variable $LANGUAGES if defined. $LANGUAGES might
5669
# go away some day.
5670
# NB:  embedded tabs in this IF block -- do not untabify
5671
if test -d ${srcdir}/gcc; then
5672
  if test x"${enable_languages+set}" != xset; then
5673
    if test x"${LANGUAGES+set}" = xset; then
5674
      enable_languages="${LANGUAGES}"
5675
        echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5676
    else
5677
      enable_languages=all
5678
    fi
5679
  else
5680
    if test x"${enable_languages}" = x ||
5681
       test x"${enable_languages}" = xyes;
5682
       then
5683
      echo configure.in: --enable-languages needs at least one language argument 1>&2
5684
      exit 1
5685
    fi
5686
  fi
5687
  enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
5688
 
5689
  # 'f95' is the old name for the 'fortran' language. We issue a warning
5690
  # and make the substitution.
5691
  case ,${enable_languages}, in
5692
    *,f95,*)
5693
      echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5694
      enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5695
      ;;
5696
  esac
5697
 
5698
  # First scan to see if an enabled language requires some other language.
5699
  # We assume that a given config-lang.in will list all the language
5700
  # front ends it requires, even if some are required indirectly.
5701
  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5702
    case ${lang_frag} in
5703
      ..) ;;
5704
      # The odd quoting in the next line works around
5705
      # an apparent bug in bash 1.12 on linux.
5706
      ${srcdir}/gcc/[*]/config-lang.in) ;;
5707
      *)
5708
        # From the config-lang.in, get $language, $lang_requires
5709
        language=
5710
        lang_requires=
5711
        . ${lang_frag}
5712
        for other in ${lang_requires} ; do
5713
          case ,${enable_languages}, in
5714
            *,$other,*) ;;
5715
            *,all,*) ;;
5716
            *,$language,*)
5717
              echo " \`$other' language required by \`$language'; enabling" 1>&2
5718
              enable_languages="${enable_languages},${other}"
5719
              ;;
5720
          esac
5721
        done
5722
        ;;
5723
    esac
5724
  done
5725
 
5726
  new_enable_languages=,c,
5727
  missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5728
  potential_languages=,c,
5729
 
5730
  for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5731
    case ${lang_frag} in
5732
      ..) ;;
5733
      # The odd quoting in the next line works around
5734
      # an apparent bug in bash 1.12 on linux.
5735
      ${srcdir}/gcc/[*]/config-lang.in) ;;
5736
      *)
5737
        # From the config-lang.in, get $language, $target_libs,
5738
        # $lang_dirs, $boot_language, and $build_by_default
5739
        language=
5740
        target_libs=
5741
        lang_dirs=
5742
        subdir_requires=
5743
        boot_language=no
5744
        build_by_default=yes
5745
        . ${lang_frag}
5746
        if test x${language} = x; then
5747
          echo "${lang_frag} doesn't set \$language." 1>&2
5748
          exit 1
5749
        fi
5750
 
5751 225 jeremybenn
        if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5752
          boot_language=yes
5753
        fi
5754
 
5755 24 jeremybenn
        case ,${enable_languages}, in
5756
          *,${language},*)
5757
            # Language was explicitly selected; include it.
5758
            add_this_lang=yes
5759
            ;;
5760
          *,all,*)
5761
            # 'all' was selected, select it if it is a default language
5762
            add_this_lang=${build_by_default}
5763
            ;;
5764
          *)
5765
            add_this_lang=no
5766
            ;;
5767
        esac
5768
 
5769
        # Disable languages that need other directories if these aren't available.
5770
        for i in $subdir_requires; do
5771
          test -f "$srcdir/gcc/$i/config-lang.in" && continue
5772
          case ,${enable_languages}, in
5773
            *,${language},*)
5774
              # Specifically requested language; tell them.
5775 225 jeremybenn
              as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5776 24 jeremybenn
              ;;
5777
            *)
5778
              # Silently disable.
5779
              add_this_lang=unsupported
5780
              ;;
5781
          esac
5782
        done
5783
 
5784
        # Disable Ada if no preexisting GNAT is available.
5785
        case ,${enable_languages},:${language}:${have_gnat} in
5786
          *,${language},*:ada:no)
5787
            # Specifically requested language; tell them.
5788 225 jeremybenn
            as_fn_error "GNAT is required to build $language" "$LINENO" 5
5789 24 jeremybenn
            ;;
5790
          *:ada:no)
5791
            # Silently disable.
5792
            add_this_lang=unsupported
5793
            ;;
5794
        esac
5795
 
5796
        # Disable a language that is unsupported by the target.
5797
        case " $unsupported_languages " in
5798
          *" $language "*)
5799
            add_this_lang=unsupported
5800
            ;;
5801
        esac
5802
 
5803
        case $add_this_lang in
5804
          unsupported)
5805
            # Remove language-dependent dirs.
5806
            eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5807
            ;;
5808
          no)
5809
            # Remove language-dependent dirs; still show language as supported.
5810
            eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5811
            potential_languages="${potential_languages}${language},"
5812
            ;;
5813
          yes)
5814
            new_enable_languages="${new_enable_languages}${language},"
5815
            potential_languages="${potential_languages}${language},"
5816
            missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5817
            case ${boot_language} in
5818
              yes)
5819
                # Add to (comma-separated) list of stage 1 languages.
5820
                stage1_languages="${stage1_languages}${language},"
5821 225 jeremybenn
                # We need to bootstrap any supporting libraries.
5822
                bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
5823 24 jeremybenn
                ;;
5824
            esac
5825
            ;;
5826
        esac
5827
        ;;
5828
    esac
5829
  done
5830
 
5831 225 jeremybenn
  # Check whether --enable-stage1-languages was given.
5832
if test "${enable_stage1_languages+set}" = set; then :
5833
  enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
5834 24 jeremybenn
    ,no,|,,)
5835
      # Set it to something that will have no effect in the loop below
5836
      enable_stage1_languages=c ;;
5837
    ,yes,)
5838
      enable_stage1_languages=`echo $new_enable_languages | \
5839
        sed -e "s/^,//" -e "s/,$//" ` ;;
5840
    *,all,*)
5841
      enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5842
        sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5843
  esac
5844
 
5845
  # Add "good" languages from enable_stage1_languages to stage1_languages,
5846
  # while "bad" languages go in missing_languages.  Leave no duplicates.
5847
  for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5848
    case $potential_languages in
5849
      *,$i,*)
5850
        case $stage1_languages in
5851
          *,$i,*) ;;
5852
          *) stage1_languages="$stage1_languages$i," ;;
5853
        esac ;;
5854
      *)
5855
        case $missing_languages in
5856
          *,$i,*) ;;
5857
          *) missing_languages="$missing_languages$i," ;;
5858
        esac ;;
5859
     esac
5860
  done
5861 225 jeremybenn
fi
5862 24 jeremybenn
 
5863 225 jeremybenn
 
5864 24 jeremybenn
  # Remove leading/trailing commas that were added for simplicity
5865
  potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5866
  missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5867
  stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5868
  new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5869
 
5870
  if test "x$missing_languages" != x; then
5871 225 jeremybenn
    as_fn_error "
5872 24 jeremybenn
The following requested languages could not be built: ${missing_languages}
5873 225 jeremybenn
Supported languages are: ${potential_languages}" "$LINENO" 5
5874 24 jeremybenn
  fi
5875
  if test "x$new_enable_languages" != "x$enable_languages"; then
5876
    echo The following languages will be built: ${new_enable_languages}
5877
    enable_languages="$new_enable_languages"
5878
  fi
5879
 
5880
 
5881
  ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5882
fi
5883
 
5884
# Handle --disable- generically.
5885
for dir in $configdirs $build_configdirs $target_configdirs ; do
5886
  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5887
  varname=`echo $dirname | sed -e s/+/_/g`
5888
  if eval test x\${enable_${varname}} "=" xno ; then
5889
    noconfigdirs="$noconfigdirs $dir"
5890
  fi
5891
done
5892
 
5893
# Check for Boehm's garbage collector
5894 225 jeremybenn
# Check whether --enable-objc-gc was given.
5895
if test "${enable_objc_gc+set}" = set; then :
5896
  enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5897 24 jeremybenn
  *,objc,*:*:yes:*target-boehm-gc*)
5898 225 jeremybenn
    as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
5899 24 jeremybenn
    ;;
5900
esac
5901 225 jeremybenn
fi
5902 24 jeremybenn
 
5903 225 jeremybenn
 
5904 24 jeremybenn
# Make sure we only build Boehm's garbage collector if required.
5905
case ,${enable_languages},:${enable_objc_gc} in
5906
  *,objc,*:yes)
5907
    # Keep target-boehm-gc if requested for Objective-C.
5908
    ;;
5909
  *)
5910
    # Otherwise remove target-boehm-gc depending on target-libjava.
5911
    if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5912
      noconfigdirs="$noconfigdirs target-boehm-gc"
5913
    fi
5914
    ;;
5915
esac
5916
 
5917
# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5918
# $build_configdirs and $target_configdirs.
5919
# If we have the source for $noconfigdirs entries, add them to $notsupp.
5920
 
5921
notsupp=""
5922
for dir in . $skipdirs $noconfigdirs ; do
5923
  dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5924
  if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5925
    configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5926
    if test -r $srcdir/$dirname/configure ; then
5927
      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5928
        true
5929
      else
5930
        notsupp="$notsupp $dir"
5931
      fi
5932
    fi
5933
  fi
5934
  if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5935
    build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5936
    if test -r $srcdir/$dirname/configure ; then
5937
      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5938
        true
5939
      else
5940
        notsupp="$notsupp $dir"
5941
      fi
5942
    fi
5943
  fi
5944
  if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5945
    target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5946
    if test -r $srcdir/$dirname/configure ; then
5947
      if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5948
        true
5949
      else
5950
        notsupp="$notsupp $dir"
5951
      fi
5952
    fi
5953
  fi
5954
done
5955
 
5956
# Sometimes the tools are distributed with libiberty but with no other
5957
# libraries.  In that case, we don't want to build target-libiberty.
5958
# Don't let libgcc imply libiberty either.
5959
if test -n "${target_configdirs}" ; then
5960
  libgcc=
5961
  others=
5962
  for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5963
    if test "$i" = "libgcc"; then
5964
      libgcc=target-libgcc
5965
    elif test "$i" != "libiberty" ; then
5966
      if test -r $srcdir/$i/configure ; then
5967
        others=yes;
5968
        break;
5969
      fi
5970
    fi
5971
  done
5972
  if test -z "${others}" ; then
5973
    target_configdirs=$libgcc
5974
  fi
5975
fi
5976
 
5977
# Quietly strip out all directories which aren't configurable in this tree.
5978
# This relies on all configurable subdirectories being autoconfiscated, which
5979
# is now the case.
5980
build_configdirs_all="$build_configdirs"
5981
build_configdirs=
5982
for i in ${build_configdirs_all} ; do
5983
  j=`echo $i | sed -e s/build-//g`
5984
  if test -f ${srcdir}/$j/configure ; then
5985
    build_configdirs="${build_configdirs} $i"
5986
  fi
5987
done
5988
 
5989
configdirs_all="$configdirs"
5990
configdirs=
5991
for i in ${configdirs_all} ; do
5992
  if test -f ${srcdir}/$i/configure ; then
5993
    configdirs="${configdirs} $i"
5994
  fi
5995
done
5996
 
5997
target_configdirs_all="$target_configdirs"
5998
target_configdirs=
5999
for i in ${target_configdirs_all} ; do
6000
  j=`echo $i | sed -e s/target-//g`
6001
  if test -f ${srcdir}/$j/configure ; then
6002
    target_configdirs="${target_configdirs} $i"
6003
  fi
6004
done
6005
 
6006
# Produce a warning message for the subdirs we can't configure.
6007
# This isn't especially interesting in the Cygnus tree, but in the individual
6008
# FSF releases, it's important to let people know when their machine isn't
6009
# supported by the one or two programs in a package.
6010
 
6011
if test -n "${notsupp}" && test -z "${norecursion}" ; then
6012
  # If $appdirs is non-empty, at least one of those directories must still
6013
  # be configured, or we error out.  (E.g., if the gas release supports a
6014
  # specified target in some subdirs but not the gas subdir, we shouldn't
6015
  # pretend that all is well.)
6016
  if test -n "$appdirs" ; then
6017
    for dir in $appdirs ; do
6018
      if test -r $dir/Makefile.in ; then
6019
        if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6020
          appdirs=""
6021
          break
6022
        fi
6023
        if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6024
          appdirs=""
6025
          break
6026
        fi
6027
      fi
6028
    done
6029
    if test -n "$appdirs" ; then
6030
      echo "*** This configuration is not supported by this package." 1>&2
6031
      exit 1
6032
    fi
6033
  fi
6034
  # Okay, some application will build, or we don't care to check.  Still
6035
  # notify of subdirs not getting built.
6036
  echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6037
  echo "    ${notsupp}" 1>&2
6038
  echo "    (Any other directories should still work fine.)" 1>&2
6039
fi
6040
 
6041
case "$host" in
6042
  *msdosdjgpp*)
6043
    enable_gdbtk=no ;;
6044
esac
6045
 
6046
# To find our prefix, in gcc_cv_tool_prefix.
6047
 
6048
# The user is always right.
6049
if test "${PATH_SEPARATOR+set}" != set; then
6050
  echo "#! /bin/sh" >conf$$.sh
6051
  echo  "exit 0"   >>conf$$.sh
6052
  chmod +x conf$$.sh
6053
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6054
    PATH_SEPARATOR=';'
6055
  else
6056
    PATH_SEPARATOR=:
6057
  fi
6058
  rm -f conf$$.sh
6059
fi
6060
 
6061
 
6062
 
6063
if test "x$exec_prefix" = xNONE; then
6064
        if test "x$prefix" = xNONE; then
6065
                gcc_cv_tool_prefix=$ac_default_prefix
6066
        else
6067
                gcc_cv_tool_prefix=$prefix
6068
        fi
6069
else
6070
        gcc_cv_tool_prefix=$exec_prefix
6071
fi
6072
 
6073
# If there is no compiler in the tree, use the PATH only.  In any
6074
# case, if there is no compiler in the tree nobody should use
6075
# AS_FOR_TARGET and LD_FOR_TARGET.
6076
if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6077
    gcc_version=`cat $srcdir/gcc/BASE-VER`
6078
    gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6079
    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6080
    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6081
    gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6082
    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6083
    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6084
else
6085
    gcc_cv_tool_dirs=
6086
fi
6087
 
6088
if test x$build = x$target && test -n "$md_exec_prefix"; then
6089
        gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6090
fi
6091
 
6092
 
6093
 
6094
copy_dirs=
6095
 
6096
 
6097 225 jeremybenn
# Check whether --with-build-sysroot was given.
6098
if test "${with_build_sysroot+set}" = set; then :
6099
  withval=$with_build_sysroot; if test x"$withval" != x ; then
6100 24 jeremybenn
     SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6101
   fi
6102
else
6103
  SYSROOT_CFLAGS_FOR_TARGET=
6104 225 jeremybenn
fi
6105 24 jeremybenn
 
6106
 
6107
 
6108 225 jeremybenn
 
6109
# Check whether --with-debug-prefix-map was given.
6110
if test "${with_debug_prefix_map+set}" = set; then :
6111
  withval=$with_debug_prefix_map; if test x"$withval" != x; then
6112 24 jeremybenn
     DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6113
     for debug_map in $withval; do
6114
       DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6115
     done
6116
   fi
6117
else
6118
  DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6119 225 jeremybenn
fi
6120 24 jeremybenn
 
6121
 
6122 225 jeremybenn
 
6123 24 jeremybenn
# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6124
# might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6125
# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6126
# We want to ensure that TARGET libraries (which we know are built with
6127
# gcc) are built with "-O2 -g", so include those options when setting
6128
# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6129
if test "x$CFLAGS_FOR_TARGET" = x; then
6130
  CFLAGS_FOR_TARGET=$CFLAGS
6131
  case " $CFLAGS " in
6132
    *" -O2 "*) ;;
6133
    *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6134
  esac
6135
  case " $CFLAGS " in
6136
    *" -g "* | *" -g3 "*) ;;
6137
    *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6138
  esac
6139
fi
6140
 
6141
 
6142
if test "x$CXXFLAGS_FOR_TARGET" = x; then
6143
  CXXFLAGS_FOR_TARGET=$CXXFLAGS
6144
  case " $CXXFLAGS " in
6145
    *" -O2 "*) ;;
6146
    *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6147
  esac
6148
  case " $CXXFLAGS " in
6149
    *" -g "* | *" -g3 "*) ;;
6150
    *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6151
  esac
6152
fi
6153
 
6154
 
6155
# Handle --with-headers=XXX.  If the value is not "yes", the contents of
6156
# the named directory are copied to $(tooldir)/sys-include.
6157
if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6158
  if test x${is_cross_compiler} = xno ; then
6159
    echo 1>&2 '***' --with-headers is only supported when cross compiling
6160
    exit 1
6161
  fi
6162
  if test x"${with_headers}" != xyes ; then
6163
    x=${gcc_cv_tool_prefix}
6164
    copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6165
  fi
6166
fi
6167
 
6168
# Handle --with-libs=XXX.  If the value is not "yes", the contents of
6169
# the name directories are copied to $(tooldir)/lib.  Multiple directories
6170
# are permitted.
6171
if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6172
  if test x${is_cross_compiler} = xno ; then
6173
    echo 1>&2 '***' --with-libs is only supported when cross compiling
6174
    exit 1
6175
  fi
6176
  if test x"${with_libs}" != xyes ; then
6177
    # Copy the libraries in reverse order, so that files in the first named
6178
    # library override files in subsequent libraries.
6179
    x=${gcc_cv_tool_prefix}
6180
    for l in ${with_libs}; do
6181
      copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6182
    done
6183
  fi
6184
fi
6185
 
6186
# Set with_gnu_as and with_gnu_ld as appropriate.
6187
#
6188
# This is done by determining whether or not the appropriate directory
6189
# is available, and by checking whether or not specific configurations
6190
# have requested that this magic not happen.
6191
#
6192
# The command line options always override the explicit settings in
6193
# configure.in, and the settings in configure.in override this magic.
6194
#
6195
# If the default for a toolchain is to use GNU as and ld, and you don't
6196
# want to do that, then you should use the --without-gnu-as and
6197
# --without-gnu-ld options for the configure script.
6198
 
6199
if test x${use_gnu_as} = x &&
6200
   echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6201
  with_gnu_as=yes
6202
  extra_host_args="$extra_host_args --with-gnu-as"
6203
fi
6204
 
6205
if test x${use_gnu_ld} = x &&
6206 225 jeremybenn
   echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6207 24 jeremybenn
  with_gnu_ld=yes
6208
  extra_host_args="$extra_host_args --with-gnu-ld"
6209
fi
6210
 
6211
# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6212
# can detect this case.
6213
 
6214
if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6215
  with_newlib=yes
6216
  extra_host_args="$extra_host_args --with-newlib"
6217
fi
6218
 
6219
# Handle ${copy_dirs}
6220
set fnord ${copy_dirs}
6221
shift
6222
while test $# != 0 ; do
6223
  if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6224
    :
6225
  else
6226
    echo Copying $1 to $2
6227
 
6228
    # Use the install script to create the directory and all required
6229
    # parent directories.
6230
    if test -d $2 ; then
6231
      :
6232
    else
6233
      echo >config.temp
6234
      ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6235
    fi
6236
 
6237
    # Copy the directory, assuming we have tar.
6238
    # FIXME: Should we use B in the second tar?  Not all systems support it.
6239
    (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6240
 
6241
    # It is the responsibility of the user to correctly adjust all
6242
    # symlinks.  If somebody can figure out how to handle them correctly
6243
    # here, feel free to add the code.
6244
 
6245
    echo $1 > $2/COPIED
6246
  fi
6247
  shift; shift
6248
done
6249
 
6250
# Determine a target-dependent exec_prefix that the installed
6251
# gcc will search in.  Keep this list sorted by triplet, with
6252
# the *-*-osname triplets last.
6253
md_exec_prefix=
6254
case "${target}" in
6255
  alpha*-*-*vms*)
6256
    md_exec_prefix=/gnu/lib/gcc-lib
6257
    ;;
6258
  i[34567]86-pc-msdosdjgpp*)
6259
    md_exec_prefix=/dev/env/DJDIR/bin
6260
    ;;
6261
  i[34567]86-*-sco3.2v5*)
6262
    if test $with_gnu_as = yes; then
6263
      md_exec_prefix=/usr/gnu/bin
6264
    else
6265
      md_exec_prefix=/usr/ccs/bin/elf
6266
    fi
6267
    ;;
6268
 
6269
  mn10300-*-* | \
6270
  powerpc-*-chorusos* | \
6271
  powerpc*-*-eabi* | \
6272
  powerpc*-*-sysv* | \
6273
  powerpc*-*-kaos* | \
6274
  s390x-ibm-tpf*)
6275
    md_exec_prefix=/usr/ccs/bin
6276
    ;;
6277
  sparc64-*-elf*)
6278
    ;;
6279
  v850*-*-*)
6280
    md_exec_prefix=/usr/ccs/bin
6281
    ;;
6282
  xtensa*-*-elf*)
6283
    ;;
6284
 
6285
  *-*-beos* | \
6286
  *-*-elf* | \
6287
  *-*-hpux* | \
6288
  *-*-netware* | \
6289
  *-*-nto-qnx* | \
6290
  *-*-rtems* | \
6291
  *-*-solaris2* | \
6292
  *-*-sysv[45]* | \
6293
  *-*-vxworks* | \
6294
  *-wrs-windiss)
6295
    md_exec_prefix=/usr/ccs/bin
6296
    ;;
6297
esac
6298
 
6299
extra_arflags_for_target=
6300
extra_nmflags_for_target=
6301
extra_ranlibflags_for_target=
6302
target_makefile_frag=/dev/null
6303
case "${target}" in
6304
  mep*-*-*)
6305
    target_makefile_frag="config/mt-mep"
6306
    ;;
6307
  spu-*-*)
6308
    target_makefile_frag="config/mt-spu"
6309
    ;;
6310
  mips*-sde-elf*)
6311
    target_makefile_frag="config/mt-sde"
6312
    ;;
6313
  mipsisa*-*-elfoabi*)
6314
    target_makefile_frag="config/mt-mips-elfoabi"
6315
    ;;
6316 225 jeremybenn
  mips*-*-*linux* | mips*-*-gnu*)
6317
    target_makefile_frag="config/mt-mips-gnu"
6318
    ;;
6319 24 jeremybenn
  *-*-netware*)
6320
    target_makefile_frag="config/mt-netware"
6321
    ;;
6322 225 jeremybenn
  *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6323 24 jeremybenn
    target_makefile_frag="config/mt-gnu"
6324
    ;;
6325
  *-*-aix4.[3456789]* | *-*-aix[56789].*)
6326
    # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6327
    # commands to handle both 32-bit and 64-bit objects.  These flags are
6328
    # harmless if we're using GNU nm or ar.
6329
    extra_arflags_for_target=" -X32_64"
6330
    extra_nmflags_for_target=" -B -X32_64"
6331
    ;;
6332
  *-*-darwin*)
6333
    # ranlib from Darwin requires the -c flag to look at common symbols.
6334
    extra_ranlibflags_for_target=" -c"
6335
    ;;
6336
  mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6337
    target_makefile_frag="config/mt-wince"
6338
    ;;
6339
esac
6340
 
6341
alphaieee_frag=/dev/null
6342
case $target in
6343
  alpha*-*-*)
6344
    # This just makes sure to use the -mieee option to build target libs.
6345
    # This should probably be set individually by each library.
6346
    alphaieee_frag="config/mt-alphaieee"
6347
    ;;
6348
esac
6349
 
6350
# If --enable-target-optspace always use -Os instead of -O2 to build
6351
# the target libraries, similarly if it is not specified, use -Os
6352
# on selected platforms.
6353
ospace_frag=/dev/null
6354
case "${enable_target_optspace}:${target}" in
6355
  yes:*)
6356
    ospace_frag="config/mt-ospace"
6357
    ;;
6358
  :d30v-*)
6359
    ospace_frag="config/mt-d30v"
6360
    ;;
6361
  :m32r-* | :d10v-* | :fr30-*)
6362
    ospace_frag="config/mt-ospace"
6363
    ;;
6364
  no:* | :*)
6365
    ;;
6366
  *)
6367
    echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6368
    ;;
6369
esac
6370
 
6371
# Default to using --with-stabs for certain targets.
6372
if test x${with_stabs} = x ; then
6373
  case "${target}" in
6374
  mips*-*-irix[56]*)
6375
    ;;
6376
  mips*-*-* | alpha*-*-osf*)
6377
    with_stabs=yes;
6378
    extra_host_args="${extra_host_args} --with-stabs"
6379
    ;;
6380
  esac
6381
fi
6382
 
6383
# hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
6384
# them automatically.
6385
case "${host}" in
6386
  hppa*64*-*-hpux11*)
6387
    extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6388
    ;;
6389
esac
6390
 
6391
# Some systems (e.g., one of the i386-aix systems the gas testers are
6392
# using) don't handle "\$" correctly, so don't use it here.
6393
tooldir='${exec_prefix}'/${target_noncanonical}
6394
build_tooldir=${tooldir}
6395
 
6396
# Create a .gdbinit file which runs the one in srcdir
6397
# and tells GDB to look there for source files.
6398
 
6399
if test -r ${srcdir}/.gdbinit ; then
6400
  case ${srcdir} in
6401
    .) ;;
6402
    *) cat > ./.gdbinit <
6403
# ${NO_EDIT}
6404
dir ${srcdir}
6405
dir .
6406
source ${srcdir}/.gdbinit
6407
EOF
6408
    ;;
6409
  esac
6410
fi
6411
 
6412
# Make sure that the compiler is able to generate an executable.  If it
6413
# can't, we are probably in trouble.  We don't care whether we can run the
6414
# executable--we might be using a cross compiler--we only care whether it
6415
# can be created.  At this point the main configure script has set CC.
6416
we_are_ok=no
6417
echo "int main () { return 0; }" > conftest.c
6418
${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6419
if test $? = 0 ; then
6420
  if test -s conftest || test -s conftest.exe ; then
6421
    we_are_ok=yes
6422
  fi
6423
fi
6424
case $we_are_ok in
6425
  no)
6426
    echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6427
    echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6428
    rm -f conftest*
6429
    exit 1
6430
    ;;
6431
esac
6432
rm -f conftest*
6433
 
6434
# The Solaris /usr/ucb/cc compiler does not appear to work.
6435
case "${host}" in
6436
  sparc-sun-solaris2*)
6437
      CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6438
      if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6439
          could_use=
6440
          test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6441
          if test -d /opt/cygnus/bin ; then
6442
              if test "$could_use" = "" ; then
6443
                  could_use="/opt/cygnus/bin"
6444
              else
6445
                  could_use="$could_use or /opt/cygnus/bin"
6446
              fi
6447
          fi
6448
        if test "$could_use" = "" ; then
6449
            echo "Warning: compilation may fail because you're using"
6450
            echo "/usr/ucb/cc.  You should change your PATH or CC "
6451
            echo "variable and rerun configure."
6452
        else
6453
            echo "Warning: compilation may fail because you're using"
6454
            echo "/usr/ucb/cc, when you should use the C compiler from"
6455
            echo "$could_use.  You should change your"
6456
            echo "PATH or CC variable and rerun configure."
6457
        fi
6458
      fi
6459
  ;;
6460
esac
6461
 
6462 225 jeremybenn
# Decide which environment variable is used to find dynamic libraries.
6463 24 jeremybenn
case "${host}" in
6464
  *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6465
  *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6466 225 jeremybenn
  *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6467 24 jeremybenn
  *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6468
esac
6469
 
6470 225 jeremybenn
# On systems where the dynamic library environment variable is PATH,
6471
# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6472
# built executables to PATH.
6473
if test "$RPATH_ENVVAR" = PATH; then
6474
  GCC_SHLIB_SUBDIR=/shlib
6475
else
6476
  GCC_SHLIB_SUBDIR=
6477
fi
6478
 
6479 24 jeremybenn
# Record target_configdirs and the configure arguments for target and
6480
# build configuration in Makefile.
6481
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6482
build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6483
 
6484
# Determine whether gdb needs tk/tcl or not.
6485
# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6486
# and in that case we want gdb to be built without tk.  Ugh!
6487
# In fact I believe gdb is the *only* package directly dependent on tk,
6488
# so we should be able to put the 'maybe's in unconditionally and
6489
# leave out the maybe dependencies when enable_gdbtk is false.  I'm not
6490
# 100% sure that that's safe though.
6491
 
6492
gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6493
case "$enable_gdbtk" in
6494
  no)
6495
    GDB_TK="" ;;
6496
  yes)
6497
    GDB_TK="${gdb_tk}" ;;
6498
  *)
6499
    # Only add the dependency on gdbtk when GDBtk is part of the gdb
6500
    # distro.  Eventually someone will fix this and move Insight, nee
6501
    # gdbtk to a separate directory.
6502
    if test -d ${srcdir}/gdb/gdbtk ; then
6503
      GDB_TK="${gdb_tk}"
6504
    else
6505
      GDB_TK=""
6506
    fi
6507
    ;;
6508
esac
6509
CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6510
INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6511
 
6512
# Strip out unwanted targets.
6513
 
6514
# While at that, we remove Makefiles if we were started for recursive
6515
# configuration, so that the top-level Makefile reconfigures them,
6516
# like we used to do when configure itself was recursive.
6517
 
6518
# Loop over modules.  $extrasub must be used with care, limiting as
6519
# much as possible the usage of range addresses.  That's because autoconf
6520
# splits the sed script to overcome limits in the number of commands,
6521
# and relying on carefully-timed sed passes may turn out to be very hard
6522
# to maintain later.  In this particular case, you just have to be careful
6523
# not to nest @if/@endif pairs, because configure will not warn you at all.
6524
 
6525 225 jeremybenn
# Check whether --enable-bootstrap was given.
6526
if test "${enable_bootstrap+set}" = set; then :
6527
  enableval=$enable_bootstrap;
6528 24 jeremybenn
else
6529
  enable_bootstrap=default
6530 225 jeremybenn
fi
6531 24 jeremybenn
 
6532 225 jeremybenn
 
6533 24 jeremybenn
# Issue errors and warnings for invalid/strange bootstrap combinations.
6534
case "$configdirs" in
6535
  *gcc*) have_compiler=yes ;;
6536
  *) have_compiler=no ;;
6537
esac
6538
 
6539
case "$have_compiler:$host:$target:$enable_bootstrap" in
6540
  *:*:*:no) ;;
6541
 
6542
  # Default behavior.  Enable bootstrap if we have a compiler
6543
  # and we are in a native configuration.
6544
  yes:$build:$build:default)
6545
    enable_bootstrap=yes ;;
6546
 
6547
  *:*:*:default)
6548
    enable_bootstrap=no ;;
6549
 
6550
  # We have a compiler and we are in a native configuration, bootstrap is ok
6551
  yes:$build:$build:yes)
6552
    ;;
6553
 
6554
  # Other configurations, but we have a compiler.  Assume the user knows
6555
  # what he's doing.
6556
  yes:*:*:yes)
6557 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6558
$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6559 24 jeremybenn
    ;;
6560
 
6561
  # No compiler: if they passed --enable-bootstrap explicitly, fail
6562
  no:*:*:yes)
6563 225 jeremybenn
    as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6564 24 jeremybenn
 
6565
  # Fail if wrong command line
6566
  *)
6567 225 jeremybenn
    as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
6568 24 jeremybenn
    ;;
6569
esac
6570
 
6571
# Adjust the toplevel makefile according to whether bootstrap was selected.
6572
case "$enable_bootstrap" in
6573
  yes)
6574
    bootstrap_suffix=bootstrap ;;
6575
  no)
6576
    bootstrap_suffix=no-bootstrap ;;
6577
esac
6578
 
6579
for module in ${build_configdirs} ; do
6580
  if test -z "${no_recursion}" \
6581
     && test -f ${build_subdir}/${module}/Makefile; then
6582
    echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6583
    rm -f ${build_subdir}/${module}/Makefile
6584
  fi
6585
  extrasub="$extrasub
6586
/^@if build-$module\$/d
6587
/^@endif build-$module\$/d
6588
/^@if build-$module-$bootstrap_suffix\$/d
6589
/^@endif build-$module-$bootstrap_suffix\$/d"
6590
done
6591
for module in ${configdirs} ; do
6592
  if test -z "${no_recursion}"; then
6593
    for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6594
      if test -f ${file}; then
6595
        echo 1>&2 "*** removing ${file} to force reconfigure"
6596
        rm -f ${file}
6597
      fi
6598
    done
6599
  fi
6600
  extrasub="$extrasub
6601
/^@if $module\$/d
6602
/^@endif $module\$/d
6603
/^@if $module-$bootstrap_suffix\$/d
6604
/^@endif $module-$bootstrap_suffix\$/d"
6605
done
6606
for module in ${target_configdirs} ; do
6607
  if test -z "${no_recursion}" \
6608
     && test -f ${target_subdir}/${module}/Makefile; then
6609
    echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6610
    rm -f ${target_subdir}/${module}/Makefile
6611
  fi
6612 225 jeremybenn
 
6613
  # We only bootstrap target libraries listed in bootstrap_target_libs.
6614
  case $bootstrap_target_libs in
6615
    *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6616
    *) target_bootstrap_suffix=no-bootstrap ;;
6617
  esac
6618
 
6619 24 jeremybenn
  extrasub="$extrasub
6620
/^@if target-$module\$/d
6621
/^@endif target-$module\$/d
6622 225 jeremybenn
/^@if target-$module-$target_bootstrap_suffix\$/d
6623
/^@endif target-$module-$target_bootstrap_suffix\$/d"
6624 24 jeremybenn
done
6625
 
6626
extrasub="$extrasub
6627
/^@if /,/^@endif /d"
6628
 
6629
# Create the serialization dependencies.  This uses a temporary file.
6630
 
6631 225 jeremybenn
# Check whether --enable-serial-configure was given.
6632
if test "${enable_serial_configure+set}" = set; then :
6633
  enableval=$enable_serial_configure;
6634
fi
6635 24 jeremybenn
 
6636
 
6637
case ${enable_serial_configure} in
6638
  yes)
6639
    enable_serial_build_configure=yes
6640
    enable_serial_host_configure=yes
6641
    enable_serial_target_configure=yes
6642
    ;;
6643
esac
6644
 
6645
# These force 'configure's to be done one at a time, to avoid problems
6646
# with contention over a shared config.cache.
6647
rm -f serdep.tmp
6648
echo '# serdep.tmp' > serdep.tmp
6649
olditem=
6650
test "x${enable_serial_build_configure}" = xyes &&
6651
for item in ${build_configdirs} ; do
6652
  case ${olditem} in
6653
    "") ;;
6654
    *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6655
  esac
6656
  olditem=${item}
6657
done
6658
olditem=
6659
test "x${enable_serial_host_configure}" = xyes &&
6660
for item in ${configdirs} ; do
6661
  case ${olditem} in
6662
    "") ;;
6663
    *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6664
  esac
6665
  olditem=${item}
6666
done
6667
olditem=
6668
test "x${enable_serial_target_configure}" = xyes &&
6669
for item in ${target_configdirs} ; do
6670
  case ${olditem} in
6671
    "") ;;
6672
    *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6673
  esac
6674
  olditem=${item}
6675
done
6676
serialization_dependencies=serdep.tmp
6677
 
6678
 
6679
# Base args.  Strip norecursion, cache-file, srcdir, host, build,
6680
# target, nonopt, and variable assignments.  These are the ones we
6681
# might not want to pass down to subconfigures.  Also strip
6682
# program-prefix, program-suffix, and program-transform-name, so that
6683
# we can pass down a consistent program-transform-name.
6684
baseargs=
6685
keep_next=no
6686
skip_next=no
6687
eval "set -- $ac_configure_args"
6688
for ac_arg
6689
do
6690
  if test X"$skip_next" = X"yes"; then
6691
    skip_next=no
6692
    continue
6693
  fi
6694
  if test X"$keep_next" = X"yes"; then
6695
    case $ac_arg in
6696
      *\'*)
6697
        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6698
    esac
6699
    baseargs="$baseargs '$ac_arg'"
6700
    keep_next=no
6701
    continue
6702
  fi
6703
 
6704
  # Handle separated arguments.  Based on the logic generated by
6705
  # autoconf 2.59.
6706
  case $ac_arg in
6707
    *=* | --config-cache | -C | -disable-* | --disable-* \
6708
      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6709
      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6710
      | -with-* | --with-* | -without-* | --without-* | --x)
6711
      separate_arg=no
6712
      ;;
6713
    -*)
6714
      separate_arg=yes
6715
      ;;
6716
    *)
6717
      separate_arg=no
6718
      ;;
6719
  esac
6720
 
6721
  case "$ac_arg" in
6722
    --no*)
6723
      continue
6724
      ;;
6725
    --c* | \
6726
    --sr* | \
6727
    --ho* | \
6728
    --bu* | \
6729
    --t* | \
6730
    --program-* | \
6731
    -cache_file* | \
6732
    -srcdir* | \
6733
    -host* | \
6734
    -build* | \
6735
    -target* | \
6736
    -program-prefix* | \
6737
    -program-suffix* | \
6738
    -program-transform-name* )
6739
      skip_next=$separate_arg
6740
      continue
6741
      ;;
6742
    -*)
6743
      # An option.  Add it.
6744
      case $ac_arg in
6745
        *\'*)
6746
          ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6747
      esac
6748
      baseargs="$baseargs '$ac_arg'"
6749
      keep_next=$separate_arg
6750
      ;;
6751
    *)
6752
      # Either a variable assignment, or a nonopt (triplet).  Don't
6753
      # pass it down; let the Makefile handle this.
6754
      continue
6755
      ;;
6756
  esac
6757
done
6758
# Remove the initial space we just introduced and, as these will be
6759
# expanded by make, quote '$'.
6760
baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6761
 
6762
# Add in --program-transform-name, after --program-prefix and
6763
# --program-suffix have been applied to it.  Autoconf has already
6764
# doubled dollar signs and backslashes in program_transform_name; we want
6765
# the backslashes un-doubled, and then the entire thing wrapped in single
6766
# quotes, because this will be expanded first by make and then by the shell.
6767
# Also, because we want to override the logic in subdir configure scripts to
6768
# choose program_transform_name, replace any s,x,x, with s,y,y,.
6769
sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" < conftestsed.out
6770
${program_transform_name}
6771
EOF_SED
6772
gcc_transform_name=`cat conftestsed.out`
6773
rm -f conftestsed.out
6774
baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6775
if test "$silent" = yes; then
6776
  baseargs="$baseargs --silent"
6777
fi
6778 225 jeremybenn
baseargs="$baseargs --disable-option-checking"
6779 24 jeremybenn
 
6780
# For the build-side libraries, we just need to pretend we're native,
6781
# and not use the same cache file.  Multilibs are neither needed nor
6782
# desired.
6783
build_configargs="--cache-file=../config.cache ${baseargs}"
6784
 
6785
# For host modules, accept cache file option, or specification as blank.
6786
case "${cache_file}" in
6787
"") # empty
6788
  cache_file_option="" ;;
6789
/* | [A-Za-z]:[\\/]* ) # absolute path
6790
  cache_file_option="--cache-file=${cache_file}" ;;
6791
*) # relative path
6792
  cache_file_option="--cache-file=../${cache_file}" ;;
6793
esac
6794
 
6795
# Host dirs don't like to share a cache file either, horribly enough.
6796
# This seems to be due to autoconf 2.5x stupidity.
6797
host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6798
 
6799
target_configargs=${baseargs}
6800
 
6801
# Passing a --with-cross-host argument lets the target libraries know
6802
# whether they are being built with a cross-compiler or being built
6803
# native.  However, it would be better to use other mechanisms to make the
6804
# sorts of decisions they want to make on this basis.  Please consider
6805
# this option to be deprecated.  FIXME.
6806
if test x${is_cross_compiler} = xyes ; then
6807
  target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6808
fi
6809
 
6810
# Default to --enable-multilib.
6811
if test x${enable_multilib} = x ; then
6812
  target_configargs="--enable-multilib ${target_configargs}"
6813
fi
6814
 
6815
# Pass --with-newlib if appropriate.  Note that target_configdirs has
6816
# changed from the earlier setting of with_newlib.
6817
if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6818
  target_configargs="--with-newlib ${target_configargs}"
6819
fi
6820
 
6821
# Different target subdirs use different values of certain variables
6822
# (notably CXX).  Worse, multilibs use *lots* of different values.
6823
# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6824
# it doesn't automatically accept command-line overrides of them.
6825
# This means it's not safe for target subdirs to share a cache file,
6826
# which is disgusting, but there you have it.  Hopefully this can be
6827
# fixed in future.  It's still worthwhile to use a cache file for each
6828
# directory.  I think.
6829
 
6830
# Pass the appropriate --build, --host, --target and --cache-file arguments.
6831
# We need to pass --target, as newer autoconf's requires consistency
6832
# for target_alias and gcc doesn't manage it consistently.
6833
target_configargs="--cache-file=./config.cache ${target_configargs}"
6834
 
6835
FLAGS_FOR_TARGET=
6836
case " $target_configdirs " in
6837
 *" newlib "*)
6838
  case " $target_configargs " in
6839
  *" --with-newlib "*)
6840
   case "$target" in
6841
   *-cygwin*)
6842
     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
6843
   esac
6844
 
6845
   # If we're not building GCC, don't discard standard headers.
6846
   if test -d ${srcdir}/gcc; then
6847
     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6848
 
6849
     if test "${build}" != "${host}"; then
6850
       # On Canadian crosses, CC_FOR_TARGET will have already been set
6851
       # by `configure', so we won't have an opportunity to add -Bgcc/
6852
       # to it.  This is right: we don't want to search that directory
6853
       # for binaries, but we want the header files in there, so add
6854
       # them explicitly.
6855
       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6856
 
6857
       # Someone might think of using the pre-installed headers on
6858
       # Canadian crosses, in case the installed compiler is not fully
6859
       # compatible with the compiler being built.  In this case, it
6860
       # would be better to flag an error than risking having
6861
       # incompatible object files being constructed.  We can't
6862
       # guarantee that an error will be flagged, but let's hope the
6863
       # compiler will do it, when presented with incompatible header
6864
       # files.
6865
     fi
6866
   fi
6867
 
6868
   case "${target}-${is_cross_compiler}" in
6869
   i[3456789]86-*-linux*-no)
6870
      # Here host == target, so we don't need to build gcc,
6871
      # so we don't want to discard standard headers.
6872
      FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6873
      ;;
6874
   *)
6875
      # If we're building newlib, use its generic headers last, but search
6876
      # for any libc-related directories first (so make it the last -B
6877
      # switch).
6878
      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6879
 
6880
      # If we're building libgloss, find the startup file, simulator library
6881
      # and linker script.
6882
      case " $target_configdirs " in
6883
        *" libgloss "*)
6884
        # Look for startup file, simulator library and maybe linker script.
6885
        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6886
        # Look for libnosys.a in case the target needs it.
6887
        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6888
        # Most targets have the linker script in the source directory.
6889
        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6890
        ;;
6891
      esac
6892
      ;;
6893
   esac
6894
   ;;
6895
  esac
6896
  ;;
6897
esac
6898
case "$target" in
6899
*-mingw*)
6900
  # Can't be handled as Cygwin above since Mingw does not use newlib.
6901
  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
6902
esac
6903
 
6904
# Allow the user to override the flags for
6905
# our build compiler if desired.
6906
if test x"${build}" = x"${host}" ; then
6907
  CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6908
  CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6909
  LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6910
fi
6911
 
6912
# On Canadian crosses, we'll be searching the right directories for
6913
# the previously-installed cross compiler, so don't bother to add
6914
# flags for directories within the install tree of the compiler
6915
# being built; programs in there won't even run.
6916
if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6917
  # Search for pre-installed headers if nothing else fits.
6918
  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6919
fi
6920
 
6921
if test "x${use_gnu_ld}" = x &&
6922
   echo " ${configdirs} " | grep " ld " > /dev/null ; then
6923
  # Arrange for us to find uninstalled linker scripts.
6924
  FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6925
fi
6926
 
6927
# Search for other target-specific linker scripts and such.
6928
case "${target}" in
6929
  mep*)
6930
    FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6931
    ;;
6932
esac
6933
 
6934
# Makefile fragments.
6935
for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6936
do
6937
  eval fragval=\$$frag
6938
  if test $fragval != /dev/null; then
6939
    eval $frag=${srcdir}/$fragval
6940
  fi
6941
done
6942
 
6943
 
6944
 
6945
 
6946
 
6947
# Miscellanea: directories, flags, etc.
6948
 
6949
 
6950
 
6951
 
6952
 
6953
 
6954
 
6955 225 jeremybenn
 
6956 24 jeremybenn
# Build module lists & subconfigure args.
6957
 
6958
 
6959
 
6960
# Host module lists & subconfigure args.
6961
 
6962
 
6963
 
6964
# Target module lists & subconfigure args.
6965
 
6966
 
6967
 
6968
# Build tools.
6969
 
6970
 
6971
 
6972
 
6973
 
6974
 
6975
 
6976
 
6977
 
6978
 
6979
 
6980
 
6981
 
6982
 
6983
 
6984
 
6985
 
6986
# Generate default definitions for YACC, M4, LEX and other programs that run
6987
# on the build machine.  These are used if the Makefile can't locate these
6988
# programs in objdir.
6989
MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6990
 
6991
for ac_prog in 'bison -y' byacc yacc
6992
do
6993
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6994
set dummy $ac_prog; ac_word=$2
6995 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996
$as_echo_n "checking for $ac_word... " >&6; }
6997
if test "${ac_cv_prog_YACC+set}" = set; then :
6998
  $as_echo_n "(cached) " >&6
6999 24 jeremybenn
else
7000
  if test -n "$YACC"; then
7001
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
7002
else
7003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004
for as_dir in $PATH
7005
do
7006
  IFS=$as_save_IFS
7007
  test -z "$as_dir" && as_dir=.
7008 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7009
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 24 jeremybenn
    ac_cv_prog_YACC="$ac_prog"
7011 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 24 jeremybenn
    break 2
7013
  fi
7014
done
7015 225 jeremybenn
  done
7016
IFS=$as_save_IFS
7017 24 jeremybenn
 
7018
fi
7019
fi
7020
YACC=$ac_cv_prog_YACC
7021
if test -n "$YACC"; then
7022 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7023
$as_echo "$YACC" >&6; }
7024 24 jeremybenn
else
7025 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026
$as_echo "no" >&6; }
7027 24 jeremybenn
fi
7028
 
7029 225 jeremybenn
 
7030 24 jeremybenn
  test -n "$YACC" && break
7031
done
7032
test -n "$YACC" || YACC="$MISSING bison -y"
7033
 
7034
case " $build_configdirs " in
7035
  *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7036
  *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7037
esac
7038
 
7039
for ac_prog in bison
7040
do
7041
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7042
set dummy $ac_prog; ac_word=$2
7043 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044
$as_echo_n "checking for $ac_word... " >&6; }
7045
if test "${ac_cv_prog_BISON+set}" = set; then :
7046
  $as_echo_n "(cached) " >&6
7047 24 jeremybenn
else
7048
  if test -n "$BISON"; then
7049
  ac_cv_prog_BISON="$BISON" # Let the user override the test.
7050
else
7051
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052
for as_dir in $PATH
7053
do
7054
  IFS=$as_save_IFS
7055
  test -z "$as_dir" && as_dir=.
7056 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7057
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 24 jeremybenn
    ac_cv_prog_BISON="$ac_prog"
7059 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 24 jeremybenn
    break 2
7061
  fi
7062
done
7063 225 jeremybenn
  done
7064
IFS=$as_save_IFS
7065 24 jeremybenn
 
7066
fi
7067
fi
7068
BISON=$ac_cv_prog_BISON
7069
if test -n "$BISON"; then
7070 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7071
$as_echo "$BISON" >&6; }
7072 24 jeremybenn
else
7073 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074
$as_echo "no" >&6; }
7075 24 jeremybenn
fi
7076
 
7077 225 jeremybenn
 
7078 24 jeremybenn
  test -n "$BISON" && break
7079
done
7080
test -n "$BISON" || BISON="$MISSING bison"
7081
 
7082
case " $build_configdirs " in
7083
  *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7084
esac
7085
 
7086
for ac_prog in gm4 gnum4 m4
7087
do
7088
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7089
set dummy $ac_prog; ac_word=$2
7090 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091
$as_echo_n "checking for $ac_word... " >&6; }
7092
if test "${ac_cv_prog_M4+set}" = set; then :
7093
  $as_echo_n "(cached) " >&6
7094 24 jeremybenn
else
7095
  if test -n "$M4"; then
7096
  ac_cv_prog_M4="$M4" # Let the user override the test.
7097
else
7098
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099
for as_dir in $PATH
7100
do
7101
  IFS=$as_save_IFS
7102
  test -z "$as_dir" && as_dir=.
7103 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7104
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 24 jeremybenn
    ac_cv_prog_M4="$ac_prog"
7106 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 24 jeremybenn
    break 2
7108
  fi
7109
done
7110 225 jeremybenn
  done
7111
IFS=$as_save_IFS
7112 24 jeremybenn
 
7113
fi
7114
fi
7115
M4=$ac_cv_prog_M4
7116
if test -n "$M4"; then
7117 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7118
$as_echo "$M4" >&6; }
7119 24 jeremybenn
else
7120 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121
$as_echo "no" >&6; }
7122 24 jeremybenn
fi
7123
 
7124 225 jeremybenn
 
7125 24 jeremybenn
  test -n "$M4" && break
7126
done
7127
test -n "$M4" || M4="$MISSING m4"
7128
 
7129
case " $build_configdirs " in
7130
  *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7131
esac
7132
 
7133
for ac_prog in flex lex
7134
do
7135
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7136
set dummy $ac_prog; ac_word=$2
7137 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138
$as_echo_n "checking for $ac_word... " >&6; }
7139
if test "${ac_cv_prog_LEX+set}" = set; then :
7140
  $as_echo_n "(cached) " >&6
7141 24 jeremybenn
else
7142
  if test -n "$LEX"; then
7143
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
7144
else
7145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146
for as_dir in $PATH
7147
do
7148
  IFS=$as_save_IFS
7149
  test -z "$as_dir" && as_dir=.
7150 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7151
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 24 jeremybenn
    ac_cv_prog_LEX="$ac_prog"
7153 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 24 jeremybenn
    break 2
7155
  fi
7156
done
7157 225 jeremybenn
  done
7158
IFS=$as_save_IFS
7159 24 jeremybenn
 
7160
fi
7161
fi
7162
LEX=$ac_cv_prog_LEX
7163
if test -n "$LEX"; then
7164 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7165
$as_echo "$LEX" >&6; }
7166 24 jeremybenn
else
7167 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168
$as_echo "no" >&6; }
7169 24 jeremybenn
fi
7170
 
7171 225 jeremybenn
 
7172 24 jeremybenn
  test -n "$LEX" && break
7173
done
7174
test -n "$LEX" || LEX="$MISSING flex"
7175
 
7176
case " $build_configdirs " in
7177
  *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7178
  *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7179
esac
7180
 
7181
for ac_prog in flex
7182
do
7183
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7184
set dummy $ac_prog; ac_word=$2
7185 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186
$as_echo_n "checking for $ac_word... " >&6; }
7187
if test "${ac_cv_prog_FLEX+set}" = set; then :
7188
  $as_echo_n "(cached) " >&6
7189 24 jeremybenn
else
7190
  if test -n "$FLEX"; then
7191
  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7192
else
7193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194
for as_dir in $PATH
7195
do
7196
  IFS=$as_save_IFS
7197
  test -z "$as_dir" && as_dir=.
7198 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7199
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 24 jeremybenn
    ac_cv_prog_FLEX="$ac_prog"
7201 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 24 jeremybenn
    break 2
7203
  fi
7204
done
7205 225 jeremybenn
  done
7206
IFS=$as_save_IFS
7207 24 jeremybenn
 
7208
fi
7209
fi
7210
FLEX=$ac_cv_prog_FLEX
7211
if test -n "$FLEX"; then
7212 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7213
$as_echo "$FLEX" >&6; }
7214 24 jeremybenn
else
7215 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216
$as_echo "no" >&6; }
7217 24 jeremybenn
fi
7218
 
7219 225 jeremybenn
 
7220 24 jeremybenn
  test -n "$FLEX" && break
7221
done
7222
test -n "$FLEX" || FLEX="$MISSING flex"
7223
 
7224
case " $build_configdirs " in
7225
  *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7226
esac
7227
 
7228
for ac_prog in makeinfo
7229
do
7230
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7231
set dummy $ac_prog; ac_word=$2
7232 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233
$as_echo_n "checking for $ac_word... " >&6; }
7234
if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7235
  $as_echo_n "(cached) " >&6
7236 24 jeremybenn
else
7237
  if test -n "$MAKEINFO"; then
7238
  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7239
else
7240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241
for as_dir in $PATH
7242
do
7243
  IFS=$as_save_IFS
7244
  test -z "$as_dir" && as_dir=.
7245 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7246
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 24 jeremybenn
    ac_cv_prog_MAKEINFO="$ac_prog"
7248 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 24 jeremybenn
    break 2
7250
  fi
7251
done
7252 225 jeremybenn
  done
7253
IFS=$as_save_IFS
7254 24 jeremybenn
 
7255
fi
7256
fi
7257
MAKEINFO=$ac_cv_prog_MAKEINFO
7258
if test -n "$MAKEINFO"; then
7259 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7260
$as_echo "$MAKEINFO" >&6; }
7261 24 jeremybenn
else
7262 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263
$as_echo "no" >&6; }
7264 24 jeremybenn
fi
7265
 
7266 225 jeremybenn
 
7267 24 jeremybenn
  test -n "$MAKEINFO" && break
7268
done
7269
test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7270
 
7271
case " $build_configdirs " in
7272
  *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7273
  *)
7274
 
7275 225 jeremybenn
    # For an installed makeinfo, we require it to be from texinfo 4.7 or
7276 24 jeremybenn
    # higher, else we use the "missing" dummy.
7277
    if ${MAKEINFO} --version \
7278 225 jeremybenn
       | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7279 24 jeremybenn
      :
7280
    else
7281
      MAKEINFO="$MISSING makeinfo"
7282
    fi
7283
    ;;
7284
 
7285
esac
7286
 
7287
# FIXME: expect and dejagnu may become build tools?
7288
 
7289
for ac_prog in expect
7290
do
7291
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7292
set dummy $ac_prog; ac_word=$2
7293 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294
$as_echo_n "checking for $ac_word... " >&6; }
7295
if test "${ac_cv_prog_EXPECT+set}" = set; then :
7296
  $as_echo_n "(cached) " >&6
7297 24 jeremybenn
else
7298
  if test -n "$EXPECT"; then
7299
  ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7300
else
7301
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302
for as_dir in $PATH
7303
do
7304
  IFS=$as_save_IFS
7305
  test -z "$as_dir" && as_dir=.
7306 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7307
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308 24 jeremybenn
    ac_cv_prog_EXPECT="$ac_prog"
7309 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 24 jeremybenn
    break 2
7311
  fi
7312
done
7313 225 jeremybenn
  done
7314
IFS=$as_save_IFS
7315 24 jeremybenn
 
7316
fi
7317
fi
7318
EXPECT=$ac_cv_prog_EXPECT
7319
if test -n "$EXPECT"; then
7320 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7321
$as_echo "$EXPECT" >&6; }
7322 24 jeremybenn
else
7323 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324
$as_echo "no" >&6; }
7325 24 jeremybenn
fi
7326
 
7327 225 jeremybenn
 
7328 24 jeremybenn
  test -n "$EXPECT" && break
7329
done
7330
test -n "$EXPECT" || EXPECT="expect"
7331
 
7332
case " $configdirs " in
7333
  *" expect "*)
7334
    test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7335
    ;;
7336
esac
7337
 
7338
for ac_prog in runtest
7339
do
7340
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7341
set dummy $ac_prog; ac_word=$2
7342 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343
$as_echo_n "checking for $ac_word... " >&6; }
7344
if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7345
  $as_echo_n "(cached) " >&6
7346 24 jeremybenn
else
7347
  if test -n "$RUNTEST"; then
7348
  ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7349
else
7350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351
for as_dir in $PATH
7352
do
7353
  IFS=$as_save_IFS
7354
  test -z "$as_dir" && as_dir=.
7355 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7356
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 24 jeremybenn
    ac_cv_prog_RUNTEST="$ac_prog"
7358 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 24 jeremybenn
    break 2
7360
  fi
7361
done
7362 225 jeremybenn
  done
7363
IFS=$as_save_IFS
7364 24 jeremybenn
 
7365
fi
7366
fi
7367
RUNTEST=$ac_cv_prog_RUNTEST
7368
if test -n "$RUNTEST"; then
7369 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7370
$as_echo "$RUNTEST" >&6; }
7371 24 jeremybenn
else
7372 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373
$as_echo "no" >&6; }
7374 24 jeremybenn
fi
7375
 
7376 225 jeremybenn
 
7377 24 jeremybenn
  test -n "$RUNTEST" && break
7378
done
7379
test -n "$RUNTEST" || RUNTEST="runtest"
7380
 
7381
case " $configdirs " in
7382
  *" dejagnu "*)
7383
    test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7384
    ;;
7385
esac
7386
 
7387
 
7388
# Host tools.
7389
ncn_tool_prefix=
7390
test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7391
ncn_target_tool_prefix=
7392
test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7393
 
7394
 
7395
 
7396
if test -n "$AR"; then
7397
  ac_cv_prog_AR=$AR
7398
elif test -n "$ac_cv_prog_AR"; then
7399
  AR=$ac_cv_prog_AR
7400
fi
7401
 
7402
if test -n "$ac_cv_prog_AR"; then
7403
  for ncn_progname in ar; do
7404
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7405
set dummy ${ncn_progname}; ac_word=$2
7406 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407
$as_echo_n "checking for $ac_word... " >&6; }
7408
if test "${ac_cv_prog_AR+set}" = set; then :
7409
  $as_echo_n "(cached) " >&6
7410 24 jeremybenn
else
7411
  if test -n "$AR"; then
7412
  ac_cv_prog_AR="$AR" # Let the user override the test.
7413
else
7414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415
for as_dir in $PATH
7416
do
7417
  IFS=$as_save_IFS
7418
  test -z "$as_dir" && as_dir=.
7419 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7420
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 24 jeremybenn
    ac_cv_prog_AR="${ncn_progname}"
7422 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 24 jeremybenn
    break 2
7424
  fi
7425
done
7426 225 jeremybenn
  done
7427
IFS=$as_save_IFS
7428 24 jeremybenn
 
7429
fi
7430
fi
7431
AR=$ac_cv_prog_AR
7432
if test -n "$AR"; then
7433 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7434
$as_echo "$AR" >&6; }
7435 24 jeremybenn
else
7436 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437
$as_echo "no" >&6; }
7438 24 jeremybenn
fi
7439
 
7440 225 jeremybenn
 
7441 24 jeremybenn
  done
7442
fi
7443
 
7444
for ncn_progname in ar; do
7445
  if test -n "$ncn_tool_prefix"; then
7446
    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7447
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7448 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449
$as_echo_n "checking for $ac_word... " >&6; }
7450
if test "${ac_cv_prog_AR+set}" = set; then :
7451
  $as_echo_n "(cached) " >&6
7452 24 jeremybenn
else
7453
  if test -n "$AR"; then
7454
  ac_cv_prog_AR="$AR" # Let the user override the test.
7455
else
7456
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457
for as_dir in $PATH
7458
do
7459
  IFS=$as_save_IFS
7460
  test -z "$as_dir" && as_dir=.
7461 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7462
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 24 jeremybenn
    ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7464 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 24 jeremybenn
    break 2
7466
  fi
7467
done
7468 225 jeremybenn
  done
7469
IFS=$as_save_IFS
7470 24 jeremybenn
 
7471
fi
7472
fi
7473
AR=$ac_cv_prog_AR
7474
if test -n "$AR"; then
7475 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7476
$as_echo "$AR" >&6; }
7477 24 jeremybenn
else
7478 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479
$as_echo "no" >&6; }
7480 24 jeremybenn
fi
7481
 
7482 225 jeremybenn
 
7483 24 jeremybenn
  fi
7484
  if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7485
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7486
set dummy ${ncn_progname}; ac_word=$2
7487 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488
$as_echo_n "checking for $ac_word... " >&6; }
7489
if test "${ac_cv_prog_AR+set}" = set; then :
7490
  $as_echo_n "(cached) " >&6
7491 24 jeremybenn
else
7492
  if test -n "$AR"; then
7493
  ac_cv_prog_AR="$AR" # Let the user override the test.
7494
else
7495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496
for as_dir in $PATH
7497
do
7498
  IFS=$as_save_IFS
7499
  test -z "$as_dir" && as_dir=.
7500 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7501
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502 24 jeremybenn
    ac_cv_prog_AR="${ncn_progname}"
7503 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 24 jeremybenn
    break 2
7505
  fi
7506
done
7507 225 jeremybenn
  done
7508
IFS=$as_save_IFS
7509 24 jeremybenn
 
7510
fi
7511
fi
7512
AR=$ac_cv_prog_AR
7513
if test -n "$AR"; then
7514 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7515
$as_echo "$AR" >&6; }
7516 24 jeremybenn
else
7517 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518
$as_echo "no" >&6; }
7519 24 jeremybenn
fi
7520
 
7521 225 jeremybenn
 
7522 24 jeremybenn
  fi
7523
  test -n "$ac_cv_prog_AR" && break
7524
done
7525
 
7526
if test -z "$ac_cv_prog_AR" ; then
7527
  set dummy ar
7528
  if test $build = $host ; then
7529
    AR="$2"
7530
  else
7531
    AR="${ncn_tool_prefix}$2"
7532
  fi
7533
fi
7534
 
7535
 
7536
 
7537
if test -n "$AS"; then
7538
  ac_cv_prog_AS=$AS
7539
elif test -n "$ac_cv_prog_AS"; then
7540
  AS=$ac_cv_prog_AS
7541
fi
7542
 
7543
if test -n "$ac_cv_prog_AS"; then
7544
  for ncn_progname in as; do
7545
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7546
set dummy ${ncn_progname}; ac_word=$2
7547 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548
$as_echo_n "checking for $ac_word... " >&6; }
7549
if test "${ac_cv_prog_AS+set}" = set; then :
7550
  $as_echo_n "(cached) " >&6
7551 24 jeremybenn
else
7552
  if test -n "$AS"; then
7553
  ac_cv_prog_AS="$AS" # Let the user override the test.
7554
else
7555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556
for as_dir in $PATH
7557
do
7558
  IFS=$as_save_IFS
7559
  test -z "$as_dir" && as_dir=.
7560 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7561
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 24 jeremybenn
    ac_cv_prog_AS="${ncn_progname}"
7563 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 24 jeremybenn
    break 2
7565
  fi
7566
done
7567 225 jeremybenn
  done
7568
IFS=$as_save_IFS
7569 24 jeremybenn
 
7570
fi
7571
fi
7572
AS=$ac_cv_prog_AS
7573
if test -n "$AS"; then
7574 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7575
$as_echo "$AS" >&6; }
7576 24 jeremybenn
else
7577 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578
$as_echo "no" >&6; }
7579 24 jeremybenn
fi
7580
 
7581 225 jeremybenn
 
7582 24 jeremybenn
  done
7583
fi
7584
 
7585
for ncn_progname in as; do
7586
  if test -n "$ncn_tool_prefix"; then
7587
    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7588
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7589 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590
$as_echo_n "checking for $ac_word... " >&6; }
7591
if test "${ac_cv_prog_AS+set}" = set; then :
7592
  $as_echo_n "(cached) " >&6
7593 24 jeremybenn
else
7594
  if test -n "$AS"; then
7595
  ac_cv_prog_AS="$AS" # Let the user override the test.
7596
else
7597
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598
for as_dir in $PATH
7599
do
7600
  IFS=$as_save_IFS
7601
  test -z "$as_dir" && as_dir=.
7602 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7603
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 24 jeremybenn
    ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7605 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 24 jeremybenn
    break 2
7607
  fi
7608
done
7609 225 jeremybenn
  done
7610
IFS=$as_save_IFS
7611 24 jeremybenn
 
7612
fi
7613
fi
7614
AS=$ac_cv_prog_AS
7615
if test -n "$AS"; then
7616 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7617
$as_echo "$AS" >&6; }
7618 24 jeremybenn
else
7619 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620
$as_echo "no" >&6; }
7621 24 jeremybenn
fi
7622
 
7623 225 jeremybenn
 
7624 24 jeremybenn
  fi
7625
  if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7626
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7627
set dummy ${ncn_progname}; ac_word=$2
7628 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629
$as_echo_n "checking for $ac_word... " >&6; }
7630
if test "${ac_cv_prog_AS+set}" = set; then :
7631
  $as_echo_n "(cached) " >&6
7632 24 jeremybenn
else
7633
  if test -n "$AS"; then
7634
  ac_cv_prog_AS="$AS" # Let the user override the test.
7635
else
7636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637
for as_dir in $PATH
7638
do
7639
  IFS=$as_save_IFS
7640
  test -z "$as_dir" && as_dir=.
7641 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7642
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 24 jeremybenn
    ac_cv_prog_AS="${ncn_progname}"
7644 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 24 jeremybenn
    break 2
7646
  fi
7647
done
7648 225 jeremybenn
  done
7649
IFS=$as_save_IFS
7650 24 jeremybenn
 
7651
fi
7652
fi
7653
AS=$ac_cv_prog_AS
7654
if test -n "$AS"; then
7655 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7656
$as_echo "$AS" >&6; }
7657 24 jeremybenn
else
7658 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659
$as_echo "no" >&6; }
7660 24 jeremybenn
fi
7661
 
7662 225 jeremybenn
 
7663 24 jeremybenn
  fi
7664
  test -n "$ac_cv_prog_AS" && break
7665
done
7666
 
7667
if test -z "$ac_cv_prog_AS" ; then
7668
  set dummy as
7669
  if test $build = $host ; then
7670
    AS="$2"
7671
  else
7672
    AS="${ncn_tool_prefix}$2"
7673
  fi
7674
fi
7675
 
7676
 
7677
 
7678
if test -n "$DLLTOOL"; then
7679
  ac_cv_prog_DLLTOOL=$DLLTOOL
7680
elif test -n "$ac_cv_prog_DLLTOOL"; then
7681
  DLLTOOL=$ac_cv_prog_DLLTOOL
7682
fi
7683
 
7684
if test -n "$ac_cv_prog_DLLTOOL"; then
7685
  for ncn_progname in dlltool; do
7686
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7687
set dummy ${ncn_progname}; ac_word=$2
7688 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689
$as_echo_n "checking for $ac_word... " >&6; }
7690
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7691
  $as_echo_n "(cached) " >&6
7692 24 jeremybenn
else
7693
  if test -n "$DLLTOOL"; then
7694
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7695
else
7696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697
for as_dir in $PATH
7698
do
7699
  IFS=$as_save_IFS
7700
  test -z "$as_dir" && as_dir=.
7701 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7702
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7703 24 jeremybenn
    ac_cv_prog_DLLTOOL="${ncn_progname}"
7704 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 24 jeremybenn
    break 2
7706
  fi
7707
done
7708 225 jeremybenn
  done
7709
IFS=$as_save_IFS
7710 24 jeremybenn
 
7711
fi
7712
fi
7713
DLLTOOL=$ac_cv_prog_DLLTOOL
7714
if test -n "$DLLTOOL"; then
7715 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7716
$as_echo "$DLLTOOL" >&6; }
7717 24 jeremybenn
else
7718 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719
$as_echo "no" >&6; }
7720 24 jeremybenn
fi
7721
 
7722 225 jeremybenn
 
7723 24 jeremybenn
  done
7724
fi
7725
 
7726
for ncn_progname in dlltool; do
7727
  if test -n "$ncn_tool_prefix"; then
7728
    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7729
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7730 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731
$as_echo_n "checking for $ac_word... " >&6; }
7732
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7733
  $as_echo_n "(cached) " >&6
7734 24 jeremybenn
else
7735
  if test -n "$DLLTOOL"; then
7736
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7737
else
7738
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739
for as_dir in $PATH
7740
do
7741
  IFS=$as_save_IFS
7742
  test -z "$as_dir" && as_dir=.
7743 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7744
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 24 jeremybenn
    ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7746 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 24 jeremybenn
    break 2
7748
  fi
7749
done
7750 225 jeremybenn
  done
7751
IFS=$as_save_IFS
7752 24 jeremybenn
 
7753
fi
7754
fi
7755
DLLTOOL=$ac_cv_prog_DLLTOOL
7756
if test -n "$DLLTOOL"; then
7757 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7758
$as_echo "$DLLTOOL" >&6; }
7759 24 jeremybenn
else
7760 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761
$as_echo "no" >&6; }
7762 24 jeremybenn
fi
7763
 
7764 225 jeremybenn
 
7765 24 jeremybenn
  fi
7766
  if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7767
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7768
set dummy ${ncn_progname}; ac_word=$2
7769 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770
$as_echo_n "checking for $ac_word... " >&6; }
7771
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7772
  $as_echo_n "(cached) " >&6
7773 24 jeremybenn
else
7774
  if test -n "$DLLTOOL"; then
7775
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7776
else
7777
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778
for as_dir in $PATH
7779
do
7780
  IFS=$as_save_IFS
7781
  test -z "$as_dir" && as_dir=.
7782 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7783
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 24 jeremybenn
    ac_cv_prog_DLLTOOL="${ncn_progname}"
7785 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 24 jeremybenn
    break 2
7787
  fi
7788
done
7789 225 jeremybenn
  done
7790
IFS=$as_save_IFS
7791 24 jeremybenn
 
7792
fi
7793
fi
7794
DLLTOOL=$ac_cv_prog_DLLTOOL
7795
if test -n "$DLLTOOL"; then
7796 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7797
$as_echo "$DLLTOOL" >&6; }
7798 24 jeremybenn
else
7799 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800
$as_echo "no" >&6; }
7801 24 jeremybenn
fi
7802
 
7803 225 jeremybenn
 
7804 24 jeremybenn
  fi
7805
  test -n "$ac_cv_prog_DLLTOOL" && break
7806
done
7807
 
7808
if test -z "$ac_cv_prog_DLLTOOL" ; then
7809
  set dummy dlltool
7810
  if test $build = $host ; then
7811
    DLLTOOL="$2"
7812
  else
7813
    DLLTOOL="${ncn_tool_prefix}$2"
7814
  fi
7815
fi
7816
 
7817
 
7818
 
7819
if test -n "$LD"; then
7820
  ac_cv_prog_LD=$LD
7821
elif test -n "$ac_cv_prog_LD"; then
7822
  LD=$ac_cv_prog_LD
7823
fi
7824
 
7825
if test -n "$ac_cv_prog_LD"; then
7826
  for ncn_progname in ld; do
7827
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7828
set dummy ${ncn_progname}; ac_word=$2
7829 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830
$as_echo_n "checking for $ac_word... " >&6; }
7831
if test "${ac_cv_prog_LD+set}" = set; then :
7832
  $as_echo_n "(cached) " >&6
7833 24 jeremybenn
else
7834
  if test -n "$LD"; then
7835
  ac_cv_prog_LD="$LD" # Let the user override the test.
7836
else
7837
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838
for as_dir in $PATH
7839
do
7840
  IFS=$as_save_IFS
7841
  test -z "$as_dir" && as_dir=.
7842 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7843
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 24 jeremybenn
    ac_cv_prog_LD="${ncn_progname}"
7845 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 24 jeremybenn
    break 2
7847
  fi
7848
done
7849 225 jeremybenn
  done
7850
IFS=$as_save_IFS
7851 24 jeremybenn
 
7852
fi
7853
fi
7854
LD=$ac_cv_prog_LD
7855
if test -n "$LD"; then
7856 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7857
$as_echo "$LD" >&6; }
7858 24 jeremybenn
else
7859 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860
$as_echo "no" >&6; }
7861 24 jeremybenn
fi
7862
 
7863 225 jeremybenn
 
7864 24 jeremybenn
  done
7865
fi
7866
 
7867
for ncn_progname in ld; do
7868
  if test -n "$ncn_tool_prefix"; then
7869
    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7870
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7871 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872
$as_echo_n "checking for $ac_word... " >&6; }
7873
if test "${ac_cv_prog_LD+set}" = set; then :
7874
  $as_echo_n "(cached) " >&6
7875 24 jeremybenn
else
7876
  if test -n "$LD"; then
7877
  ac_cv_prog_LD="$LD" # Let the user override the test.
7878
else
7879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880
for as_dir in $PATH
7881
do
7882
  IFS=$as_save_IFS
7883
  test -z "$as_dir" && as_dir=.
7884 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7885
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7886 24 jeremybenn
    ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7887 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 24 jeremybenn
    break 2
7889
  fi
7890
done
7891 225 jeremybenn
  done
7892
IFS=$as_save_IFS
7893 24 jeremybenn
 
7894
fi
7895
fi
7896
LD=$ac_cv_prog_LD
7897
if test -n "$LD"; then
7898 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7899
$as_echo "$LD" >&6; }
7900 24 jeremybenn
else
7901 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902
$as_echo "no" >&6; }
7903 24 jeremybenn
fi
7904
 
7905 225 jeremybenn
 
7906 24 jeremybenn
  fi
7907
  if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7908
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7909
set dummy ${ncn_progname}; ac_word=$2
7910 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911
$as_echo_n "checking for $ac_word... " >&6; }
7912
if test "${ac_cv_prog_LD+set}" = set; then :
7913
  $as_echo_n "(cached) " >&6
7914 24 jeremybenn
else
7915
  if test -n "$LD"; then
7916
  ac_cv_prog_LD="$LD" # Let the user override the test.
7917
else
7918
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919
for as_dir in $PATH
7920
do
7921
  IFS=$as_save_IFS
7922
  test -z "$as_dir" && as_dir=.
7923 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7924
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 24 jeremybenn
    ac_cv_prog_LD="${ncn_progname}"
7926 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 24 jeremybenn
    break 2
7928
  fi
7929
done
7930 225 jeremybenn
  done
7931
IFS=$as_save_IFS
7932 24 jeremybenn
 
7933
fi
7934
fi
7935
LD=$ac_cv_prog_LD
7936
if test -n "$LD"; then
7937 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7938
$as_echo "$LD" >&6; }
7939 24 jeremybenn
else
7940 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941
$as_echo "no" >&6; }
7942 24 jeremybenn
fi
7943
 
7944 225 jeremybenn
 
7945 24 jeremybenn
  fi
7946
  test -n "$ac_cv_prog_LD" && break
7947
done
7948
 
7949
if test -z "$ac_cv_prog_LD" ; then
7950
  set dummy ld
7951
  if test $build = $host ; then
7952
    LD="$2"
7953
  else
7954
    LD="${ncn_tool_prefix}$2"
7955
  fi
7956
fi
7957
 
7958
 
7959
 
7960
if test -n "$LIPO"; then
7961
  ac_cv_prog_LIPO=$LIPO
7962
elif test -n "$ac_cv_prog_LIPO"; then
7963
  LIPO=$ac_cv_prog_LIPO
7964
fi
7965
 
7966
if test -n "$ac_cv_prog_LIPO"; then
7967
  for ncn_progname in lipo; do
7968
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7969
set dummy ${ncn_progname}; ac_word=$2
7970 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971
$as_echo_n "checking for $ac_word... " >&6; }
7972
if test "${ac_cv_prog_LIPO+set}" = set; then :
7973
  $as_echo_n "(cached) " >&6
7974 24 jeremybenn
else
7975
  if test -n "$LIPO"; then
7976
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7977
else
7978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979
for as_dir in $PATH
7980
do
7981
  IFS=$as_save_IFS
7982
  test -z "$as_dir" && as_dir=.
7983 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
7984
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 24 jeremybenn
    ac_cv_prog_LIPO="${ncn_progname}"
7986 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 24 jeremybenn
    break 2
7988
  fi
7989
done
7990 225 jeremybenn
  done
7991
IFS=$as_save_IFS
7992 24 jeremybenn
 
7993
fi
7994
fi
7995
LIPO=$ac_cv_prog_LIPO
7996
if test -n "$LIPO"; then
7997 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7998
$as_echo "$LIPO" >&6; }
7999 24 jeremybenn
else
8000 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001
$as_echo "no" >&6; }
8002 24 jeremybenn
fi
8003
 
8004 225 jeremybenn
 
8005 24 jeremybenn
  done
8006
fi
8007
 
8008
for ncn_progname in lipo; do
8009
  if test -n "$ncn_tool_prefix"; then
8010
    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8011
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8012 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013
$as_echo_n "checking for $ac_word... " >&6; }
8014
if test "${ac_cv_prog_LIPO+set}" = set; then :
8015
  $as_echo_n "(cached) " >&6
8016 24 jeremybenn
else
8017
  if test -n "$LIPO"; then
8018
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8019
else
8020
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021
for as_dir in $PATH
8022
do
8023
  IFS=$as_save_IFS
8024
  test -z "$as_dir" && as_dir=.
8025 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8026
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 24 jeremybenn
    ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8028 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 24 jeremybenn
    break 2
8030
  fi
8031
done
8032 225 jeremybenn
  done
8033
IFS=$as_save_IFS
8034 24 jeremybenn
 
8035
fi
8036
fi
8037
LIPO=$ac_cv_prog_LIPO
8038
if test -n "$LIPO"; then
8039 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8040
$as_echo "$LIPO" >&6; }
8041 24 jeremybenn
else
8042 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043
$as_echo "no" >&6; }
8044 24 jeremybenn
fi
8045
 
8046 225 jeremybenn
 
8047 24 jeremybenn
  fi
8048
  if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8049
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8050
set dummy ${ncn_progname}; ac_word=$2
8051 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052
$as_echo_n "checking for $ac_word... " >&6; }
8053
if test "${ac_cv_prog_LIPO+set}" = set; then :
8054
  $as_echo_n "(cached) " >&6
8055 24 jeremybenn
else
8056
  if test -n "$LIPO"; then
8057
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8058
else
8059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060
for as_dir in $PATH
8061
do
8062
  IFS=$as_save_IFS
8063
  test -z "$as_dir" && as_dir=.
8064 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8065
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 24 jeremybenn
    ac_cv_prog_LIPO="${ncn_progname}"
8067 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 24 jeremybenn
    break 2
8069
  fi
8070
done
8071 225 jeremybenn
  done
8072
IFS=$as_save_IFS
8073 24 jeremybenn
 
8074
fi
8075
fi
8076
LIPO=$ac_cv_prog_LIPO
8077
if test -n "$LIPO"; then
8078 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8079
$as_echo "$LIPO" >&6; }
8080 24 jeremybenn
else
8081 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082
$as_echo "no" >&6; }
8083 24 jeremybenn
fi
8084
 
8085 225 jeremybenn
 
8086 24 jeremybenn
  fi
8087
  test -n "$ac_cv_prog_LIPO" && break
8088
done
8089
 
8090
if test -z "$ac_cv_prog_LIPO" ; then
8091
  set dummy lipo
8092
  if test $build = $host ; then
8093
    LIPO="$2"
8094
  else
8095
    LIPO="${ncn_tool_prefix}$2"
8096
  fi
8097
fi
8098
 
8099
 
8100
 
8101
if test -n "$NM"; then
8102
  ac_cv_prog_NM=$NM
8103
elif test -n "$ac_cv_prog_NM"; then
8104
  NM=$ac_cv_prog_NM
8105
fi
8106
 
8107
if test -n "$ac_cv_prog_NM"; then
8108
  for ncn_progname in nm; do
8109
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8110
set dummy ${ncn_progname}; ac_word=$2
8111 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112
$as_echo_n "checking for $ac_word... " >&6; }
8113
if test "${ac_cv_prog_NM+set}" = set; then :
8114
  $as_echo_n "(cached) " >&6
8115 24 jeremybenn
else
8116
  if test -n "$NM"; then
8117
  ac_cv_prog_NM="$NM" # Let the user override the test.
8118
else
8119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120
for as_dir in $PATH
8121
do
8122
  IFS=$as_save_IFS
8123
  test -z "$as_dir" && as_dir=.
8124 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8125
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8126 24 jeremybenn
    ac_cv_prog_NM="${ncn_progname}"
8127 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 24 jeremybenn
    break 2
8129
  fi
8130
done
8131 225 jeremybenn
  done
8132
IFS=$as_save_IFS
8133 24 jeremybenn
 
8134
fi
8135
fi
8136
NM=$ac_cv_prog_NM
8137
if test -n "$NM"; then
8138 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8139
$as_echo "$NM" >&6; }
8140 24 jeremybenn
else
8141 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142
$as_echo "no" >&6; }
8143 24 jeremybenn
fi
8144
 
8145 225 jeremybenn
 
8146 24 jeremybenn
  done
8147
fi
8148
 
8149
for ncn_progname in nm; do
8150
  if test -n "$ncn_tool_prefix"; then
8151
    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8152
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8153 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154
$as_echo_n "checking for $ac_word... " >&6; }
8155
if test "${ac_cv_prog_NM+set}" = set; then :
8156
  $as_echo_n "(cached) " >&6
8157 24 jeremybenn
else
8158
  if test -n "$NM"; then
8159
  ac_cv_prog_NM="$NM" # Let the user override the test.
8160
else
8161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162
for as_dir in $PATH
8163
do
8164
  IFS=$as_save_IFS
8165
  test -z "$as_dir" && as_dir=.
8166 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8167
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168 24 jeremybenn
    ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8169 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 24 jeremybenn
    break 2
8171
  fi
8172
done
8173 225 jeremybenn
  done
8174
IFS=$as_save_IFS
8175 24 jeremybenn
 
8176
fi
8177
fi
8178
NM=$ac_cv_prog_NM
8179
if test -n "$NM"; then
8180 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8181
$as_echo "$NM" >&6; }
8182 24 jeremybenn
else
8183 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184
$as_echo "no" >&6; }
8185 24 jeremybenn
fi
8186
 
8187 225 jeremybenn
 
8188 24 jeremybenn
  fi
8189
  if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8190
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8191
set dummy ${ncn_progname}; ac_word=$2
8192 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193
$as_echo_n "checking for $ac_word... " >&6; }
8194
if test "${ac_cv_prog_NM+set}" = set; then :
8195
  $as_echo_n "(cached) " >&6
8196 24 jeremybenn
else
8197
  if test -n "$NM"; then
8198
  ac_cv_prog_NM="$NM" # Let the user override the test.
8199
else
8200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201
for as_dir in $PATH
8202
do
8203
  IFS=$as_save_IFS
8204
  test -z "$as_dir" && as_dir=.
8205 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8206
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8207 24 jeremybenn
    ac_cv_prog_NM="${ncn_progname}"
8208 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 24 jeremybenn
    break 2
8210
  fi
8211
done
8212 225 jeremybenn
  done
8213
IFS=$as_save_IFS
8214 24 jeremybenn
 
8215
fi
8216
fi
8217
NM=$ac_cv_prog_NM
8218
if test -n "$NM"; then
8219 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8220
$as_echo "$NM" >&6; }
8221 24 jeremybenn
else
8222 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223
$as_echo "no" >&6; }
8224 24 jeremybenn
fi
8225
 
8226 225 jeremybenn
 
8227 24 jeremybenn
  fi
8228
  test -n "$ac_cv_prog_NM" && break
8229
done
8230
 
8231
if test -z "$ac_cv_prog_NM" ; then
8232
  set dummy nm
8233
  if test $build = $host ; then
8234
    NM="$2"
8235
  else
8236
    NM="${ncn_tool_prefix}$2"
8237
  fi
8238
fi
8239
 
8240
 
8241
 
8242
if test -n "$RANLIB"; then
8243
  ac_cv_prog_RANLIB=$RANLIB
8244
elif test -n "$ac_cv_prog_RANLIB"; then
8245
  RANLIB=$ac_cv_prog_RANLIB
8246
fi
8247
 
8248
if test -n "$ac_cv_prog_RANLIB"; then
8249
  for ncn_progname in ranlib; do
8250
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8251
set dummy ${ncn_progname}; ac_word=$2
8252 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253
$as_echo_n "checking for $ac_word... " >&6; }
8254
if test "${ac_cv_prog_RANLIB+set}" = set; then :
8255
  $as_echo_n "(cached) " >&6
8256 24 jeremybenn
else
8257
  if test -n "$RANLIB"; then
8258
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8259
else
8260
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261
for as_dir in $PATH
8262
do
8263
  IFS=$as_save_IFS
8264
  test -z "$as_dir" && as_dir=.
8265 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8266
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 24 jeremybenn
    ac_cv_prog_RANLIB="${ncn_progname}"
8268 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 24 jeremybenn
    break 2
8270
  fi
8271
done
8272 225 jeremybenn
  done
8273
IFS=$as_save_IFS
8274 24 jeremybenn
 
8275
fi
8276
fi
8277
RANLIB=$ac_cv_prog_RANLIB
8278
if test -n "$RANLIB"; then
8279 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8280
$as_echo "$RANLIB" >&6; }
8281 24 jeremybenn
else
8282 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283
$as_echo "no" >&6; }
8284 24 jeremybenn
fi
8285
 
8286 225 jeremybenn
 
8287 24 jeremybenn
  done
8288
fi
8289
 
8290
for ncn_progname in ranlib; do
8291
  if test -n "$ncn_tool_prefix"; then
8292
    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8293
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8294 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295
$as_echo_n "checking for $ac_word... " >&6; }
8296
if test "${ac_cv_prog_RANLIB+set}" = set; then :
8297
  $as_echo_n "(cached) " >&6
8298 24 jeremybenn
else
8299
  if test -n "$RANLIB"; then
8300
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8301
else
8302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303
for as_dir in $PATH
8304
do
8305
  IFS=$as_save_IFS
8306
  test -z "$as_dir" && as_dir=.
8307 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8308
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 24 jeremybenn
    ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8310 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 24 jeremybenn
    break 2
8312
  fi
8313
done
8314 225 jeremybenn
  done
8315
IFS=$as_save_IFS
8316 24 jeremybenn
 
8317
fi
8318
fi
8319
RANLIB=$ac_cv_prog_RANLIB
8320
if test -n "$RANLIB"; then
8321 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8322
$as_echo "$RANLIB" >&6; }
8323 24 jeremybenn
else
8324 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325
$as_echo "no" >&6; }
8326 24 jeremybenn
fi
8327
 
8328 225 jeremybenn
 
8329 24 jeremybenn
  fi
8330
  if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8331
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8332
set dummy ${ncn_progname}; ac_word=$2
8333 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334
$as_echo_n "checking for $ac_word... " >&6; }
8335
if test "${ac_cv_prog_RANLIB+set}" = set; then :
8336
  $as_echo_n "(cached) " >&6
8337 24 jeremybenn
else
8338
  if test -n "$RANLIB"; then
8339
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8340
else
8341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342
for as_dir in $PATH
8343
do
8344
  IFS=$as_save_IFS
8345
  test -z "$as_dir" && as_dir=.
8346 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8347
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 24 jeremybenn
    ac_cv_prog_RANLIB="${ncn_progname}"
8349 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 24 jeremybenn
    break 2
8351
  fi
8352
done
8353 225 jeremybenn
  done
8354
IFS=$as_save_IFS
8355 24 jeremybenn
 
8356
fi
8357
fi
8358
RANLIB=$ac_cv_prog_RANLIB
8359
if test -n "$RANLIB"; then
8360 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8361
$as_echo "$RANLIB" >&6; }
8362 24 jeremybenn
else
8363 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364
$as_echo "no" >&6; }
8365 24 jeremybenn
fi
8366
 
8367 225 jeremybenn
 
8368 24 jeremybenn
  fi
8369
  test -n "$ac_cv_prog_RANLIB" && break
8370
done
8371
 
8372
if test -z "$ac_cv_prog_RANLIB" ; then
8373
  RANLIB=":"
8374
fi
8375
 
8376
 
8377
 
8378
if test -n "$STRIP"; then
8379
  ac_cv_prog_STRIP=$STRIP
8380
elif test -n "$ac_cv_prog_STRIP"; then
8381
  STRIP=$ac_cv_prog_STRIP
8382
fi
8383
 
8384
if test -n "$ac_cv_prog_STRIP"; then
8385
  for ncn_progname in strip; do
8386
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8387
set dummy ${ncn_progname}; ac_word=$2
8388 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389
$as_echo_n "checking for $ac_word... " >&6; }
8390
if test "${ac_cv_prog_STRIP+set}" = set; then :
8391
  $as_echo_n "(cached) " >&6
8392 24 jeremybenn
else
8393
  if test -n "$STRIP"; then
8394
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8395
else
8396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397
for as_dir in $PATH
8398
do
8399
  IFS=$as_save_IFS
8400
  test -z "$as_dir" && as_dir=.
8401 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8402
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 24 jeremybenn
    ac_cv_prog_STRIP="${ncn_progname}"
8404 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 24 jeremybenn
    break 2
8406
  fi
8407
done
8408 225 jeremybenn
  done
8409
IFS=$as_save_IFS
8410 24 jeremybenn
 
8411
fi
8412
fi
8413
STRIP=$ac_cv_prog_STRIP
8414
if test -n "$STRIP"; then
8415 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8416
$as_echo "$STRIP" >&6; }
8417 24 jeremybenn
else
8418 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419
$as_echo "no" >&6; }
8420 24 jeremybenn
fi
8421
 
8422 225 jeremybenn
 
8423 24 jeremybenn
  done
8424
fi
8425
 
8426
for ncn_progname in strip; do
8427
  if test -n "$ncn_tool_prefix"; then
8428
    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8429
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8430 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431
$as_echo_n "checking for $ac_word... " >&6; }
8432
if test "${ac_cv_prog_STRIP+set}" = set; then :
8433
  $as_echo_n "(cached) " >&6
8434 24 jeremybenn
else
8435
  if test -n "$STRIP"; then
8436
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8437
else
8438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439
for as_dir in $PATH
8440
do
8441
  IFS=$as_save_IFS
8442
  test -z "$as_dir" && as_dir=.
8443 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8444
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 24 jeremybenn
    ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8446 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 24 jeremybenn
    break 2
8448
  fi
8449
done
8450 225 jeremybenn
  done
8451
IFS=$as_save_IFS
8452 24 jeremybenn
 
8453
fi
8454
fi
8455
STRIP=$ac_cv_prog_STRIP
8456
if test -n "$STRIP"; then
8457 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8458
$as_echo "$STRIP" >&6; }
8459 24 jeremybenn
else
8460 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461
$as_echo "no" >&6; }
8462 24 jeremybenn
fi
8463
 
8464 225 jeremybenn
 
8465 24 jeremybenn
  fi
8466
  if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8467
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8468
set dummy ${ncn_progname}; ac_word=$2
8469 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470
$as_echo_n "checking for $ac_word... " >&6; }
8471
if test "${ac_cv_prog_STRIP+set}" = set; then :
8472
  $as_echo_n "(cached) " >&6
8473 24 jeremybenn
else
8474
  if test -n "$STRIP"; then
8475
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8476
else
8477
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478
for as_dir in $PATH
8479
do
8480
  IFS=$as_save_IFS
8481
  test -z "$as_dir" && as_dir=.
8482 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8483
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8484 24 jeremybenn
    ac_cv_prog_STRIP="${ncn_progname}"
8485 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 24 jeremybenn
    break 2
8487
  fi
8488
done
8489 225 jeremybenn
  done
8490
IFS=$as_save_IFS
8491 24 jeremybenn
 
8492
fi
8493
fi
8494
STRIP=$ac_cv_prog_STRIP
8495
if test -n "$STRIP"; then
8496 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8497
$as_echo "$STRIP" >&6; }
8498 24 jeremybenn
else
8499 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500
$as_echo "no" >&6; }
8501 24 jeremybenn
fi
8502
 
8503 225 jeremybenn
 
8504 24 jeremybenn
  fi
8505
  test -n "$ac_cv_prog_STRIP" && break
8506
done
8507
 
8508
if test -z "$ac_cv_prog_STRIP" ; then
8509
  STRIP=":"
8510
fi
8511
 
8512
 
8513
 
8514
if test -n "$WINDRES"; then
8515
  ac_cv_prog_WINDRES=$WINDRES
8516
elif test -n "$ac_cv_prog_WINDRES"; then
8517
  WINDRES=$ac_cv_prog_WINDRES
8518
fi
8519
 
8520
if test -n "$ac_cv_prog_WINDRES"; then
8521
  for ncn_progname in windres; do
8522
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8523
set dummy ${ncn_progname}; ac_word=$2
8524 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525
$as_echo_n "checking for $ac_word... " >&6; }
8526
if test "${ac_cv_prog_WINDRES+set}" = set; then :
8527
  $as_echo_n "(cached) " >&6
8528 24 jeremybenn
else
8529
  if test -n "$WINDRES"; then
8530
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8531
else
8532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533
for as_dir in $PATH
8534
do
8535
  IFS=$as_save_IFS
8536
  test -z "$as_dir" && as_dir=.
8537 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8538
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8539 24 jeremybenn
    ac_cv_prog_WINDRES="${ncn_progname}"
8540 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 24 jeremybenn
    break 2
8542
  fi
8543
done
8544 225 jeremybenn
  done
8545
IFS=$as_save_IFS
8546 24 jeremybenn
 
8547
fi
8548
fi
8549
WINDRES=$ac_cv_prog_WINDRES
8550
if test -n "$WINDRES"; then
8551 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8552
$as_echo "$WINDRES" >&6; }
8553 24 jeremybenn
else
8554 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555
$as_echo "no" >&6; }
8556 24 jeremybenn
fi
8557
 
8558 225 jeremybenn
 
8559 24 jeremybenn
  done
8560
fi
8561
 
8562
for ncn_progname in windres; do
8563
  if test -n "$ncn_tool_prefix"; then
8564
    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8565
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8566 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567
$as_echo_n "checking for $ac_word... " >&6; }
8568
if test "${ac_cv_prog_WINDRES+set}" = set; then :
8569
  $as_echo_n "(cached) " >&6
8570 24 jeremybenn
else
8571
  if test -n "$WINDRES"; then
8572
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8573
else
8574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575
for as_dir in $PATH
8576
do
8577
  IFS=$as_save_IFS
8578
  test -z "$as_dir" && as_dir=.
8579 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8580
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8581 24 jeremybenn
    ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8582 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 24 jeremybenn
    break 2
8584
  fi
8585
done
8586 225 jeremybenn
  done
8587
IFS=$as_save_IFS
8588 24 jeremybenn
 
8589
fi
8590
fi
8591
WINDRES=$ac_cv_prog_WINDRES
8592
if test -n "$WINDRES"; then
8593 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8594
$as_echo "$WINDRES" >&6; }
8595 24 jeremybenn
else
8596 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597
$as_echo "no" >&6; }
8598 24 jeremybenn
fi
8599
 
8600 225 jeremybenn
 
8601 24 jeremybenn
  fi
8602
  if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8603
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8604
set dummy ${ncn_progname}; ac_word=$2
8605 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606
$as_echo_n "checking for $ac_word... " >&6; }
8607
if test "${ac_cv_prog_WINDRES+set}" = set; then :
8608
  $as_echo_n "(cached) " >&6
8609 24 jeremybenn
else
8610
  if test -n "$WINDRES"; then
8611
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8612
else
8613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614
for as_dir in $PATH
8615
do
8616
  IFS=$as_save_IFS
8617
  test -z "$as_dir" && as_dir=.
8618 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8619
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8620 24 jeremybenn
    ac_cv_prog_WINDRES="${ncn_progname}"
8621 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 24 jeremybenn
    break 2
8623
  fi
8624
done
8625 225 jeremybenn
  done
8626
IFS=$as_save_IFS
8627 24 jeremybenn
 
8628
fi
8629
fi
8630
WINDRES=$ac_cv_prog_WINDRES
8631
if test -n "$WINDRES"; then
8632 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8633
$as_echo "$WINDRES" >&6; }
8634 24 jeremybenn
else
8635 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636
$as_echo "no" >&6; }
8637 24 jeremybenn
fi
8638
 
8639 225 jeremybenn
 
8640 24 jeremybenn
  fi
8641
  test -n "$ac_cv_prog_WINDRES" && break
8642
done
8643
 
8644
if test -z "$ac_cv_prog_WINDRES" ; then
8645
  set dummy windres
8646
  if test $build = $host ; then
8647
    WINDRES="$2"
8648
  else
8649
    WINDRES="${ncn_tool_prefix}$2"
8650
  fi
8651
fi
8652
 
8653
 
8654
 
8655
if test -n "$WINDMC"; then
8656
  ac_cv_prog_WINDMC=$WINDMC
8657
elif test -n "$ac_cv_prog_WINDMC"; then
8658
  WINDMC=$ac_cv_prog_WINDMC
8659
fi
8660
 
8661
if test -n "$ac_cv_prog_WINDMC"; then
8662
  for ncn_progname in windmc; do
8663
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8664
set dummy ${ncn_progname}; ac_word=$2
8665 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666
$as_echo_n "checking for $ac_word... " >&6; }
8667
if test "${ac_cv_prog_WINDMC+set}" = set; then :
8668
  $as_echo_n "(cached) " >&6
8669 24 jeremybenn
else
8670
  if test -n "$WINDMC"; then
8671
  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8672
else
8673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674
for as_dir in $PATH
8675
do
8676
  IFS=$as_save_IFS
8677
  test -z "$as_dir" && as_dir=.
8678 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8679
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680 24 jeremybenn
    ac_cv_prog_WINDMC="${ncn_progname}"
8681 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 24 jeremybenn
    break 2
8683
  fi
8684
done
8685 225 jeremybenn
  done
8686
IFS=$as_save_IFS
8687 24 jeremybenn
 
8688
fi
8689
fi
8690
WINDMC=$ac_cv_prog_WINDMC
8691
if test -n "$WINDMC"; then
8692 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8693
$as_echo "$WINDMC" >&6; }
8694 24 jeremybenn
else
8695 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696
$as_echo "no" >&6; }
8697 24 jeremybenn
fi
8698
 
8699 225 jeremybenn
 
8700 24 jeremybenn
  done
8701
fi
8702
 
8703
for ncn_progname in windmc; do
8704
  if test -n "$ncn_tool_prefix"; then
8705
    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8706
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8707 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708
$as_echo_n "checking for $ac_word... " >&6; }
8709
if test "${ac_cv_prog_WINDMC+set}" = set; then :
8710
  $as_echo_n "(cached) " >&6
8711 24 jeremybenn
else
8712
  if test -n "$WINDMC"; then
8713
  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8714
else
8715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716
for as_dir in $PATH
8717
do
8718
  IFS=$as_save_IFS
8719
  test -z "$as_dir" && as_dir=.
8720 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8721
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8722 24 jeremybenn
    ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8723 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 24 jeremybenn
    break 2
8725
  fi
8726
done
8727 225 jeremybenn
  done
8728
IFS=$as_save_IFS
8729 24 jeremybenn
 
8730
fi
8731
fi
8732
WINDMC=$ac_cv_prog_WINDMC
8733
if test -n "$WINDMC"; then
8734 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8735
$as_echo "$WINDMC" >&6; }
8736 24 jeremybenn
else
8737 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738
$as_echo "no" >&6; }
8739 24 jeremybenn
fi
8740
 
8741 225 jeremybenn
 
8742 24 jeremybenn
  fi
8743
  if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8744
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8745
set dummy ${ncn_progname}; ac_word=$2
8746 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747
$as_echo_n "checking for $ac_word... " >&6; }
8748
if test "${ac_cv_prog_WINDMC+set}" = set; then :
8749
  $as_echo_n "(cached) " >&6
8750 24 jeremybenn
else
8751
  if test -n "$WINDMC"; then
8752
  ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8753
else
8754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755
for as_dir in $PATH
8756
do
8757
  IFS=$as_save_IFS
8758
  test -z "$as_dir" && as_dir=.
8759 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8760
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8761 24 jeremybenn
    ac_cv_prog_WINDMC="${ncn_progname}"
8762 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 24 jeremybenn
    break 2
8764
  fi
8765
done
8766 225 jeremybenn
  done
8767
IFS=$as_save_IFS
8768 24 jeremybenn
 
8769
fi
8770
fi
8771
WINDMC=$ac_cv_prog_WINDMC
8772
if test -n "$WINDMC"; then
8773 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8774
$as_echo "$WINDMC" >&6; }
8775 24 jeremybenn
else
8776 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777
$as_echo "no" >&6; }
8778 24 jeremybenn
fi
8779
 
8780 225 jeremybenn
 
8781 24 jeremybenn
  fi
8782
  test -n "$ac_cv_prog_WINDMC" && break
8783
done
8784
 
8785
if test -z "$ac_cv_prog_WINDMC" ; then
8786
  set dummy windmc
8787
  if test $build = $host ; then
8788
    WINDMC="$2"
8789
  else
8790
    WINDMC="${ncn_tool_prefix}$2"
8791
  fi
8792
fi
8793
 
8794
 
8795
 
8796
if test -n "$OBJCOPY"; then
8797
  ac_cv_prog_OBJCOPY=$OBJCOPY
8798
elif test -n "$ac_cv_prog_OBJCOPY"; then
8799
  OBJCOPY=$ac_cv_prog_OBJCOPY
8800
fi
8801
 
8802
if test -n "$ac_cv_prog_OBJCOPY"; then
8803
  for ncn_progname in objcopy; do
8804
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8805
set dummy ${ncn_progname}; ac_word=$2
8806 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807
$as_echo_n "checking for $ac_word... " >&6; }
8808
if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8809
  $as_echo_n "(cached) " >&6
8810 24 jeremybenn
else
8811
  if test -n "$OBJCOPY"; then
8812
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8813
else
8814
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815
for as_dir in $PATH
8816
do
8817
  IFS=$as_save_IFS
8818
  test -z "$as_dir" && as_dir=.
8819 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8820
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8821 24 jeremybenn
    ac_cv_prog_OBJCOPY="${ncn_progname}"
8822 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 24 jeremybenn
    break 2
8824
  fi
8825
done
8826 225 jeremybenn
  done
8827
IFS=$as_save_IFS
8828 24 jeremybenn
 
8829
fi
8830
fi
8831
OBJCOPY=$ac_cv_prog_OBJCOPY
8832
if test -n "$OBJCOPY"; then
8833 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8834
$as_echo "$OBJCOPY" >&6; }
8835 24 jeremybenn
else
8836 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837
$as_echo "no" >&6; }
8838 24 jeremybenn
fi
8839
 
8840 225 jeremybenn
 
8841 24 jeremybenn
  done
8842
fi
8843
 
8844
for ncn_progname in objcopy; do
8845
  if test -n "$ncn_tool_prefix"; then
8846
    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8847
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8848 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8849
$as_echo_n "checking for $ac_word... " >&6; }
8850
if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8851
  $as_echo_n "(cached) " >&6
8852 24 jeremybenn
else
8853
  if test -n "$OBJCOPY"; then
8854
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8855
else
8856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857
for as_dir in $PATH
8858
do
8859
  IFS=$as_save_IFS
8860
  test -z "$as_dir" && as_dir=.
8861 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8862
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8863 24 jeremybenn
    ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8864 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 24 jeremybenn
    break 2
8866
  fi
8867
done
8868 225 jeremybenn
  done
8869
IFS=$as_save_IFS
8870 24 jeremybenn
 
8871
fi
8872
fi
8873
OBJCOPY=$ac_cv_prog_OBJCOPY
8874
if test -n "$OBJCOPY"; then
8875 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8876
$as_echo "$OBJCOPY" >&6; }
8877 24 jeremybenn
else
8878 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879
$as_echo "no" >&6; }
8880 24 jeremybenn
fi
8881
 
8882 225 jeremybenn
 
8883 24 jeremybenn
  fi
8884
  if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8885
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8886
set dummy ${ncn_progname}; ac_word=$2
8887 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888
$as_echo_n "checking for $ac_word... " >&6; }
8889
if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8890
  $as_echo_n "(cached) " >&6
8891 24 jeremybenn
else
8892
  if test -n "$OBJCOPY"; then
8893
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8894
else
8895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896
for as_dir in $PATH
8897
do
8898
  IFS=$as_save_IFS
8899
  test -z "$as_dir" && as_dir=.
8900 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8901
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8902 24 jeremybenn
    ac_cv_prog_OBJCOPY="${ncn_progname}"
8903 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 24 jeremybenn
    break 2
8905
  fi
8906
done
8907 225 jeremybenn
  done
8908
IFS=$as_save_IFS
8909 24 jeremybenn
 
8910
fi
8911
fi
8912
OBJCOPY=$ac_cv_prog_OBJCOPY
8913
if test -n "$OBJCOPY"; then
8914 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8915
$as_echo "$OBJCOPY" >&6; }
8916 24 jeremybenn
else
8917 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918
$as_echo "no" >&6; }
8919 24 jeremybenn
fi
8920
 
8921 225 jeremybenn
 
8922 24 jeremybenn
  fi
8923
  test -n "$ac_cv_prog_OBJCOPY" && break
8924
done
8925
 
8926
if test -z "$ac_cv_prog_OBJCOPY" ; then
8927
  set dummy objcopy
8928
  if test $build = $host ; then
8929
    OBJCOPY="$2"
8930
  else
8931
    OBJCOPY="${ncn_tool_prefix}$2"
8932
  fi
8933
fi
8934
 
8935
 
8936
 
8937
if test -n "$OBJDUMP"; then
8938
  ac_cv_prog_OBJDUMP=$OBJDUMP
8939
elif test -n "$ac_cv_prog_OBJDUMP"; then
8940
  OBJDUMP=$ac_cv_prog_OBJDUMP
8941
fi
8942
 
8943
if test -n "$ac_cv_prog_OBJDUMP"; then
8944
  for ncn_progname in objdump; do
8945
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8946
set dummy ${ncn_progname}; ac_word=$2
8947 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948
$as_echo_n "checking for $ac_word... " >&6; }
8949
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8950
  $as_echo_n "(cached) " >&6
8951 24 jeremybenn
else
8952
  if test -n "$OBJDUMP"; then
8953
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8954
else
8955
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956
for as_dir in $PATH
8957
do
8958
  IFS=$as_save_IFS
8959
  test -z "$as_dir" && as_dir=.
8960 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
8961
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8962 24 jeremybenn
    ac_cv_prog_OBJDUMP="${ncn_progname}"
8963 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 24 jeremybenn
    break 2
8965
  fi
8966
done
8967 225 jeremybenn
  done
8968
IFS=$as_save_IFS
8969 24 jeremybenn
 
8970
fi
8971
fi
8972
OBJDUMP=$ac_cv_prog_OBJDUMP
8973
if test -n "$OBJDUMP"; then
8974 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8975
$as_echo "$OBJDUMP" >&6; }
8976 24 jeremybenn
else
8977 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978
$as_echo "no" >&6; }
8979 24 jeremybenn
fi
8980
 
8981 225 jeremybenn
 
8982 24 jeremybenn
  done
8983
fi
8984
 
8985
for ncn_progname in objdump; do
8986
  if test -n "$ncn_tool_prefix"; then
8987
    # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8988
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8989 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990
$as_echo_n "checking for $ac_word... " >&6; }
8991
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8992
  $as_echo_n "(cached) " >&6
8993 24 jeremybenn
else
8994
  if test -n "$OBJDUMP"; then
8995
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8996
else
8997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998
for as_dir in $PATH
8999
do
9000
  IFS=$as_save_IFS
9001
  test -z "$as_dir" && as_dir=.
9002 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9003
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9004 24 jeremybenn
    ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9005 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 24 jeremybenn
    break 2
9007
  fi
9008
done
9009 225 jeremybenn
  done
9010
IFS=$as_save_IFS
9011 24 jeremybenn
 
9012
fi
9013
fi
9014
OBJDUMP=$ac_cv_prog_OBJDUMP
9015
if test -n "$OBJDUMP"; then
9016 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9017
$as_echo "$OBJDUMP" >&6; }
9018 24 jeremybenn
else
9019 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020
$as_echo "no" >&6; }
9021 24 jeremybenn
fi
9022
 
9023 225 jeremybenn
 
9024 24 jeremybenn
  fi
9025
  if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9026
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9027
set dummy ${ncn_progname}; ac_word=$2
9028 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029
$as_echo_n "checking for $ac_word... " >&6; }
9030
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9031
  $as_echo_n "(cached) " >&6
9032 24 jeremybenn
else
9033
  if test -n "$OBJDUMP"; then
9034
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9035
else
9036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037
for as_dir in $PATH
9038
do
9039
  IFS=$as_save_IFS
9040
  test -z "$as_dir" && as_dir=.
9041 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9042
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9043 24 jeremybenn
    ac_cv_prog_OBJDUMP="${ncn_progname}"
9044 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 24 jeremybenn
    break 2
9046
  fi
9047
done
9048 225 jeremybenn
  done
9049
IFS=$as_save_IFS
9050 24 jeremybenn
 
9051
fi
9052
fi
9053
OBJDUMP=$ac_cv_prog_OBJDUMP
9054
if test -n "$OBJDUMP"; then
9055 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9056
$as_echo "$OBJDUMP" >&6; }
9057 24 jeremybenn
else
9058 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059
$as_echo "no" >&6; }
9060 24 jeremybenn
fi
9061
 
9062 225 jeremybenn
 
9063 24 jeremybenn
  fi
9064
  test -n "$ac_cv_prog_OBJDUMP" && break
9065
done
9066
 
9067
if test -z "$ac_cv_prog_OBJDUMP" ; then
9068
  set dummy objdump
9069
  if test $build = $host ; then
9070
    OBJDUMP="$2"
9071
  else
9072
    OBJDUMP="${ncn_tool_prefix}$2"
9073
  fi
9074
fi
9075
 
9076
 
9077
 
9078
 
9079
 
9080
 
9081
# Target tools.
9082
 
9083 225 jeremybenn
# Check whether --with-build-time-tools was given.
9084
if test "${with_build_time_tools+set}" = set; then :
9085
  withval=$with_build_time_tools; case x"$withval" in
9086 24 jeremybenn
     x/*) ;;
9087
     *)
9088
       with_build_time_tools=
9089 225 jeremybenn
       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9090
$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9091 24 jeremybenn
       ;;
9092
   esac
9093
else
9094
  with_build_time_tools=
9095 225 jeremybenn
fi
9096 24 jeremybenn
 
9097
 
9098
 
9099 225 jeremybenn
 
9100 24 jeremybenn
if test -n "$CC_FOR_TARGET"; then
9101
  ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9102
elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9103
  CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9104
fi
9105
 
9106
if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9107
  for ncn_progname in cc gcc; do
9108
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9109
set dummy ${ncn_progname}; ac_word=$2
9110 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111
$as_echo_n "checking for $ac_word... " >&6; }
9112
if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9113
  $as_echo_n "(cached) " >&6
9114 24 jeremybenn
else
9115
  if test -n "$CC_FOR_TARGET"; then
9116
  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9117
else
9118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119
for as_dir in $PATH
9120
do
9121
  IFS=$as_save_IFS
9122
  test -z "$as_dir" && as_dir=.
9123 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9124
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9125 24 jeremybenn
    ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9126 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 24 jeremybenn
    break 2
9128
  fi
9129
done
9130 225 jeremybenn
  done
9131
IFS=$as_save_IFS
9132 24 jeremybenn
 
9133
fi
9134
fi
9135
CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9136
if test -n "$CC_FOR_TARGET"; then
9137 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9138
$as_echo "$CC_FOR_TARGET" >&6; }
9139 24 jeremybenn
else
9140 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141
$as_echo "no" >&6; }
9142 24 jeremybenn
fi
9143
 
9144 225 jeremybenn
 
9145 24 jeremybenn
  done
9146
fi
9147
 
9148
if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9149
  for ncn_progname in cc gcc; do
9150 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9151
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9152 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
9153
      ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9154 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9155
$as_echo "yes" >&6; }
9156 24 jeremybenn
      break
9157
    else
9158 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159
$as_echo "no" >&6; }
9160 24 jeremybenn
    fi
9161
  done
9162
fi
9163
 
9164
if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9165
  for ncn_progname in cc gcc; do
9166
    if test -n "$ncn_target_tool_prefix"; then
9167
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9168
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9169 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170
$as_echo_n "checking for $ac_word... " >&6; }
9171
if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9172
  $as_echo_n "(cached) " >&6
9173 24 jeremybenn
else
9174
  if test -n "$CC_FOR_TARGET"; then
9175
  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9176
else
9177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178
for as_dir in $PATH
9179
do
9180
  IFS=$as_save_IFS
9181
  test -z "$as_dir" && as_dir=.
9182 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9183
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9184 24 jeremybenn
    ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9185 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 24 jeremybenn
    break 2
9187
  fi
9188
done
9189 225 jeremybenn
  done
9190
IFS=$as_save_IFS
9191 24 jeremybenn
 
9192
fi
9193
fi
9194
CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9195
if test -n "$CC_FOR_TARGET"; then
9196 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9197
$as_echo "$CC_FOR_TARGET" >&6; }
9198 24 jeremybenn
else
9199 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200
$as_echo "no" >&6; }
9201 24 jeremybenn
fi
9202
 
9203 225 jeremybenn
 
9204 24 jeremybenn
    fi
9205
    if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9206
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9207
set dummy ${ncn_progname}; ac_word=$2
9208 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209
$as_echo_n "checking for $ac_word... " >&6; }
9210
if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9211
  $as_echo_n "(cached) " >&6
9212 24 jeremybenn
else
9213
  if test -n "$CC_FOR_TARGET"; then
9214
  ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9215
else
9216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217
for as_dir in $PATH
9218
do
9219
  IFS=$as_save_IFS
9220
  test -z "$as_dir" && as_dir=.
9221 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9222
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9223 24 jeremybenn
    ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9224 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 24 jeremybenn
    break 2
9226
  fi
9227
done
9228 225 jeremybenn
  done
9229
IFS=$as_save_IFS
9230 24 jeremybenn
 
9231
fi
9232
fi
9233
CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9234
if test -n "$CC_FOR_TARGET"; then
9235 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9236
$as_echo "$CC_FOR_TARGET" >&6; }
9237 24 jeremybenn
else
9238 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239
$as_echo "no" >&6; }
9240 24 jeremybenn
fi
9241
 
9242 225 jeremybenn
 
9243 24 jeremybenn
    fi
9244
    test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9245
  done
9246
fi
9247
 
9248
if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9249
  set dummy cc gcc
9250
  if test $build = $target ; then
9251
    CC_FOR_TARGET="$2"
9252
  else
9253
    CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9254
  fi
9255
else
9256
  CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9257
fi
9258
 
9259
 
9260
 
9261
if test -n "$CXX_FOR_TARGET"; then
9262
  ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9263
elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9264
  CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9265
fi
9266
 
9267
if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9268
  for ncn_progname in c++ g++ cxx gxx; do
9269
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9270
set dummy ${ncn_progname}; ac_word=$2
9271 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272
$as_echo_n "checking for $ac_word... " >&6; }
9273
if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9274
  $as_echo_n "(cached) " >&6
9275 24 jeremybenn
else
9276
  if test -n "$CXX_FOR_TARGET"; then
9277
  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9278
else
9279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280
for as_dir in $PATH
9281
do
9282
  IFS=$as_save_IFS
9283
  test -z "$as_dir" && as_dir=.
9284 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9285
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9286 24 jeremybenn
    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9287 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9288 24 jeremybenn
    break 2
9289
  fi
9290
done
9291 225 jeremybenn
  done
9292
IFS=$as_save_IFS
9293 24 jeremybenn
 
9294
fi
9295
fi
9296
CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9297
if test -n "$CXX_FOR_TARGET"; then
9298 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9299
$as_echo "$CXX_FOR_TARGET" >&6; }
9300 24 jeremybenn
else
9301 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302
$as_echo "no" >&6; }
9303 24 jeremybenn
fi
9304
 
9305 225 jeremybenn
 
9306 24 jeremybenn
  done
9307
fi
9308
 
9309
if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9310
  for ncn_progname in c++ g++ cxx gxx; do
9311 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9312
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9313 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
9314
      ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9315 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9316
$as_echo "yes" >&6; }
9317 24 jeremybenn
      break
9318
    else
9319 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320
$as_echo "no" >&6; }
9321 24 jeremybenn
    fi
9322
  done
9323
fi
9324
 
9325
if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9326
  for ncn_progname in c++ g++ cxx gxx; do
9327
    if test -n "$ncn_target_tool_prefix"; then
9328
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9329
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9330 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331
$as_echo_n "checking for $ac_word... " >&6; }
9332
if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9333
  $as_echo_n "(cached) " >&6
9334 24 jeremybenn
else
9335
  if test -n "$CXX_FOR_TARGET"; then
9336
  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9337
else
9338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339
for as_dir in $PATH
9340
do
9341
  IFS=$as_save_IFS
9342
  test -z "$as_dir" && as_dir=.
9343 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9344
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9345 24 jeremybenn
    ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9346 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9347 24 jeremybenn
    break 2
9348
  fi
9349
done
9350 225 jeremybenn
  done
9351
IFS=$as_save_IFS
9352 24 jeremybenn
 
9353
fi
9354
fi
9355
CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9356
if test -n "$CXX_FOR_TARGET"; then
9357 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9358
$as_echo "$CXX_FOR_TARGET" >&6; }
9359 24 jeremybenn
else
9360 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361
$as_echo "no" >&6; }
9362 24 jeremybenn
fi
9363
 
9364 225 jeremybenn
 
9365 24 jeremybenn
    fi
9366
    if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9367
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9368
set dummy ${ncn_progname}; ac_word=$2
9369 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9370
$as_echo_n "checking for $ac_word... " >&6; }
9371
if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9372
  $as_echo_n "(cached) " >&6
9373 24 jeremybenn
else
9374
  if test -n "$CXX_FOR_TARGET"; then
9375
  ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9376
else
9377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378
for as_dir in $PATH
9379
do
9380
  IFS=$as_save_IFS
9381
  test -z "$as_dir" && as_dir=.
9382 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9383
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9384 24 jeremybenn
    ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9385 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 24 jeremybenn
    break 2
9387
  fi
9388
done
9389 225 jeremybenn
  done
9390
IFS=$as_save_IFS
9391 24 jeremybenn
 
9392
fi
9393
fi
9394
CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9395
if test -n "$CXX_FOR_TARGET"; then
9396 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9397
$as_echo "$CXX_FOR_TARGET" >&6; }
9398 24 jeremybenn
else
9399 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400
$as_echo "no" >&6; }
9401 24 jeremybenn
fi
9402
 
9403 225 jeremybenn
 
9404 24 jeremybenn
    fi
9405
    test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9406
  done
9407
fi
9408
 
9409
if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9410
  set dummy c++ g++ cxx gxx
9411
  if test $build = $target ; then
9412
    CXX_FOR_TARGET="$2"
9413
  else
9414
    CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9415
  fi
9416
else
9417
  CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9418
fi
9419
 
9420
 
9421
 
9422
if test -n "$GCC_FOR_TARGET"; then
9423
  ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9424
elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9425
  GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9426
fi
9427
 
9428
if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9429
  for ncn_progname in gcc; do
9430
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9431
set dummy ${ncn_progname}; ac_word=$2
9432 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433
$as_echo_n "checking for $ac_word... " >&6; }
9434
if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9435
  $as_echo_n "(cached) " >&6
9436 24 jeremybenn
else
9437
  if test -n "$GCC_FOR_TARGET"; then
9438
  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9439
else
9440
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441
for as_dir in $PATH
9442
do
9443
  IFS=$as_save_IFS
9444
  test -z "$as_dir" && as_dir=.
9445 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9446
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9447 24 jeremybenn
    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9448 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9449 24 jeremybenn
    break 2
9450
  fi
9451
done
9452 225 jeremybenn
  done
9453
IFS=$as_save_IFS
9454 24 jeremybenn
 
9455
fi
9456
fi
9457
GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9458
if test -n "$GCC_FOR_TARGET"; then
9459 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9460
$as_echo "$GCC_FOR_TARGET" >&6; }
9461 24 jeremybenn
else
9462 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463
$as_echo "no" >&6; }
9464 24 jeremybenn
fi
9465
 
9466 225 jeremybenn
 
9467 24 jeremybenn
  done
9468
fi
9469
 
9470
if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9471
  for ncn_progname in gcc; do
9472 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9473
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9474 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
9475
      ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9476 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9477
$as_echo "yes" >&6; }
9478 24 jeremybenn
      break
9479
    else
9480 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481
$as_echo "no" >&6; }
9482 24 jeremybenn
    fi
9483
  done
9484
fi
9485
 
9486
if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9487
  for ncn_progname in gcc; do
9488
    if test -n "$ncn_target_tool_prefix"; then
9489
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9490
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9491 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492
$as_echo_n "checking for $ac_word... " >&6; }
9493
if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9494
  $as_echo_n "(cached) " >&6
9495 24 jeremybenn
else
9496
  if test -n "$GCC_FOR_TARGET"; then
9497
  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9498
else
9499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500
for as_dir in $PATH
9501
do
9502
  IFS=$as_save_IFS
9503
  test -z "$as_dir" && as_dir=.
9504 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9505
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506 24 jeremybenn
    ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9507 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 24 jeremybenn
    break 2
9509
  fi
9510
done
9511 225 jeremybenn
  done
9512
IFS=$as_save_IFS
9513 24 jeremybenn
 
9514
fi
9515
fi
9516
GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9517
if test -n "$GCC_FOR_TARGET"; then
9518 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9519
$as_echo "$GCC_FOR_TARGET" >&6; }
9520 24 jeremybenn
else
9521 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522
$as_echo "no" >&6; }
9523 24 jeremybenn
fi
9524
 
9525 225 jeremybenn
 
9526 24 jeremybenn
    fi
9527
    if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9528
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9529
set dummy ${ncn_progname}; ac_word=$2
9530 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531
$as_echo_n "checking for $ac_word... " >&6; }
9532
if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9533
  $as_echo_n "(cached) " >&6
9534 24 jeremybenn
else
9535
  if test -n "$GCC_FOR_TARGET"; then
9536
  ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9537
else
9538
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539
for as_dir in $PATH
9540
do
9541
  IFS=$as_save_IFS
9542
  test -z "$as_dir" && as_dir=.
9543 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9544
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9545 24 jeremybenn
    ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9546 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 24 jeremybenn
    break 2
9548
  fi
9549
done
9550 225 jeremybenn
  done
9551
IFS=$as_save_IFS
9552 24 jeremybenn
 
9553
fi
9554
fi
9555
GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9556
if test -n "$GCC_FOR_TARGET"; then
9557 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9558
$as_echo "$GCC_FOR_TARGET" >&6; }
9559 24 jeremybenn
else
9560 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561
$as_echo "no" >&6; }
9562 24 jeremybenn
fi
9563
 
9564 225 jeremybenn
 
9565 24 jeremybenn
    fi
9566
    test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9567
  done
9568
fi
9569
 
9570
if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9571
  GCC_FOR_TARGET="${CC_FOR_TARGET}"
9572
else
9573
  GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
9574
fi
9575
 
9576
 
9577
 
9578
if test -n "$GCJ_FOR_TARGET"; then
9579
  ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9580
elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9581
  GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9582
fi
9583
 
9584
if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9585
  for ncn_progname in gcj; do
9586
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9587
set dummy ${ncn_progname}; ac_word=$2
9588 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589
$as_echo_n "checking for $ac_word... " >&6; }
9590
if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9591
  $as_echo_n "(cached) " >&6
9592 24 jeremybenn
else
9593
  if test -n "$GCJ_FOR_TARGET"; then
9594
  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9595
else
9596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597
for as_dir in $PATH
9598
do
9599
  IFS=$as_save_IFS
9600
  test -z "$as_dir" && as_dir=.
9601 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9602
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9603 24 jeremybenn
    ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9604 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9605 24 jeremybenn
    break 2
9606
  fi
9607
done
9608 225 jeremybenn
  done
9609
IFS=$as_save_IFS
9610 24 jeremybenn
 
9611
fi
9612
fi
9613
GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9614
if test -n "$GCJ_FOR_TARGET"; then
9615 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9616
$as_echo "$GCJ_FOR_TARGET" >&6; }
9617 24 jeremybenn
else
9618 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619
$as_echo "no" >&6; }
9620 24 jeremybenn
fi
9621
 
9622 225 jeremybenn
 
9623 24 jeremybenn
  done
9624
fi
9625
 
9626
if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
9627
  for ncn_progname in gcj; do
9628 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9629
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9630 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
9631
      ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9632 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9633
$as_echo "yes" >&6; }
9634 24 jeremybenn
      break
9635
    else
9636 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637
$as_echo "no" >&6; }
9638 24 jeremybenn
    fi
9639
  done
9640
fi
9641
 
9642
if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9643
  for ncn_progname in gcj; do
9644
    if test -n "$ncn_target_tool_prefix"; then
9645
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9646
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9647 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648
$as_echo_n "checking for $ac_word... " >&6; }
9649
if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9650
  $as_echo_n "(cached) " >&6
9651 24 jeremybenn
else
9652
  if test -n "$GCJ_FOR_TARGET"; then
9653
  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9654
else
9655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656
for as_dir in $PATH
9657
do
9658
  IFS=$as_save_IFS
9659
  test -z "$as_dir" && as_dir=.
9660 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9661
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9662 24 jeremybenn
    ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9663 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 24 jeremybenn
    break 2
9665
  fi
9666
done
9667 225 jeremybenn
  done
9668
IFS=$as_save_IFS
9669 24 jeremybenn
 
9670
fi
9671
fi
9672
GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9673
if test -n "$GCJ_FOR_TARGET"; then
9674 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9675
$as_echo "$GCJ_FOR_TARGET" >&6; }
9676 24 jeremybenn
else
9677 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9678
$as_echo "no" >&6; }
9679 24 jeremybenn
fi
9680
 
9681 225 jeremybenn
 
9682 24 jeremybenn
    fi
9683
    if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9684
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9685
set dummy ${ncn_progname}; ac_word=$2
9686 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687
$as_echo_n "checking for $ac_word... " >&6; }
9688
if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9689
  $as_echo_n "(cached) " >&6
9690 24 jeremybenn
else
9691
  if test -n "$GCJ_FOR_TARGET"; then
9692
  ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9693
else
9694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695
for as_dir in $PATH
9696
do
9697
  IFS=$as_save_IFS
9698
  test -z "$as_dir" && as_dir=.
9699 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9700
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9701 24 jeremybenn
    ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9702 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 24 jeremybenn
    break 2
9704
  fi
9705
done
9706 225 jeremybenn
  done
9707
IFS=$as_save_IFS
9708 24 jeremybenn
 
9709
fi
9710
fi
9711
GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9712
if test -n "$GCJ_FOR_TARGET"; then
9713 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9714
$as_echo "$GCJ_FOR_TARGET" >&6; }
9715 24 jeremybenn
else
9716 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717
$as_echo "no" >&6; }
9718 24 jeremybenn
fi
9719
 
9720 225 jeremybenn
 
9721 24 jeremybenn
    fi
9722
    test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9723
  done
9724
fi
9725
 
9726
if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9727
  set dummy gcj
9728
  if test $build = $target ; then
9729
    GCJ_FOR_TARGET="$2"
9730
  else
9731
    GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9732
  fi
9733
else
9734
  GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9735
fi
9736
 
9737
 
9738
 
9739
if test -n "$GFORTRAN_FOR_TARGET"; then
9740
  ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9741
elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9742
  GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9743
fi
9744
 
9745
if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9746
  for ncn_progname in gfortran; do
9747
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9748
set dummy ${ncn_progname}; ac_word=$2
9749 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750
$as_echo_n "checking for $ac_word... " >&6; }
9751
if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9752
  $as_echo_n "(cached) " >&6
9753 24 jeremybenn
else
9754
  if test -n "$GFORTRAN_FOR_TARGET"; then
9755
  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9756
else
9757
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9758
for as_dir in $PATH
9759
do
9760
  IFS=$as_save_IFS
9761
  test -z "$as_dir" && as_dir=.
9762 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9763
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9764 24 jeremybenn
    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9765 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9766 24 jeremybenn
    break 2
9767
  fi
9768
done
9769 225 jeremybenn
  done
9770
IFS=$as_save_IFS
9771 24 jeremybenn
 
9772
fi
9773
fi
9774
GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9775
if test -n "$GFORTRAN_FOR_TARGET"; then
9776 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9777
$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
9778 24 jeremybenn
else
9779 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780
$as_echo "no" >&6; }
9781 24 jeremybenn
fi
9782
 
9783 225 jeremybenn
 
9784 24 jeremybenn
  done
9785
fi
9786
 
9787
if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
9788
  for ncn_progname in gfortran; do
9789 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9790
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9791 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
9792
      ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9793 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9794
$as_echo "yes" >&6; }
9795 24 jeremybenn
      break
9796
    else
9797 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798
$as_echo "no" >&6; }
9799 24 jeremybenn
    fi
9800
  done
9801
fi
9802
 
9803
if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9804
  for ncn_progname in gfortran; do
9805
    if test -n "$ncn_target_tool_prefix"; then
9806
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9807
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9808 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809
$as_echo_n "checking for $ac_word... " >&6; }
9810
if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9811
  $as_echo_n "(cached) " >&6
9812 24 jeremybenn
else
9813
  if test -n "$GFORTRAN_FOR_TARGET"; then
9814
  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9815
else
9816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817
for as_dir in $PATH
9818
do
9819
  IFS=$as_save_IFS
9820
  test -z "$as_dir" && as_dir=.
9821 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9822
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9823 24 jeremybenn
    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9824 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9825 24 jeremybenn
    break 2
9826
  fi
9827
done
9828 225 jeremybenn
  done
9829
IFS=$as_save_IFS
9830 24 jeremybenn
 
9831
fi
9832
fi
9833
GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9834
if test -n "$GFORTRAN_FOR_TARGET"; then
9835 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9836
$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
9837 24 jeremybenn
else
9838 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839
$as_echo "no" >&6; }
9840 24 jeremybenn
fi
9841
 
9842 225 jeremybenn
 
9843 24 jeremybenn
    fi
9844
    if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9845
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9846
set dummy ${ncn_progname}; ac_word=$2
9847 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848
$as_echo_n "checking for $ac_word... " >&6; }
9849
if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9850
  $as_echo_n "(cached) " >&6
9851 24 jeremybenn
else
9852
  if test -n "$GFORTRAN_FOR_TARGET"; then
9853
  ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9854
else
9855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856
for as_dir in $PATH
9857
do
9858
  IFS=$as_save_IFS
9859
  test -z "$as_dir" && as_dir=.
9860 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9861
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9862 24 jeremybenn
    ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9863 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 24 jeremybenn
    break 2
9865
  fi
9866
done
9867 225 jeremybenn
  done
9868
IFS=$as_save_IFS
9869 24 jeremybenn
 
9870
fi
9871
fi
9872
GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9873
if test -n "$GFORTRAN_FOR_TARGET"; then
9874 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9875
$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
9876 24 jeremybenn
else
9877 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878
$as_echo "no" >&6; }
9879 24 jeremybenn
fi
9880
 
9881 225 jeremybenn
 
9882 24 jeremybenn
    fi
9883
    test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9884
  done
9885
fi
9886
 
9887
if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9888
  set dummy gfortran
9889
  if test $build = $target ; then
9890
    GFORTRAN_FOR_TARGET="$2"
9891
  else
9892
    GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9893
  fi
9894
else
9895
  GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
9896
fi
9897
 
9898
 
9899
 
9900
cat > conftest.c << \EOF
9901
#ifdef __GNUC__
9902
  gcc_yay;
9903
#endif
9904
EOF
9905
if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9906
  have_gcc_for_target=yes
9907
else
9908
  GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9909
  have_gcc_for_target=no
9910
fi
9911
rm conftest.c
9912
 
9913
 
9914
 
9915
 
9916
if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9917
  if test -n "$with_build_time_tools"; then
9918 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
9919
$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
9920 24 jeremybenn
    if test -x $with_build_time_tools/ar; then
9921
      AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9922
      ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9923 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
9924
$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
9925 24 jeremybenn
    else
9926 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927
$as_echo "no" >&6; }
9928 24 jeremybenn
    fi
9929
  elif test $build != $host && test $have_gcc_for_target = yes; then
9930
    AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9931
    test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9932
    test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9933
  fi
9934
fi
9935
if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9936
  # Extract the first word of "ar", so it can be a program name with args.
9937
set dummy ar; ac_word=$2
9938 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939
$as_echo_n "checking for $ac_word... " >&6; }
9940
if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
9941
  $as_echo_n "(cached) " >&6
9942 24 jeremybenn
else
9943
  case $AR_FOR_TARGET in
9944
  [\\/]* | ?:[\\/]*)
9945
  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9946
  ;;
9947
  *)
9948
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9949
for as_dir in $gcc_cv_tool_dirs
9950
do
9951
  IFS=$as_save_IFS
9952
  test -z "$as_dir" && as_dir=.
9953 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
9954
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9955 24 jeremybenn
    ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9956 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9957 24 jeremybenn
    break 2
9958
  fi
9959
done
9960 225 jeremybenn
  done
9961
IFS=$as_save_IFS
9962 24 jeremybenn
 
9963
  ;;
9964
esac
9965
fi
9966
AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9967
if test -n "$AR_FOR_TARGET"; then
9968 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9969
$as_echo "$AR_FOR_TARGET" >&6; }
9970 24 jeremybenn
else
9971 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972
$as_echo "no" >&6; }
9973 24 jeremybenn
fi
9974
 
9975 225 jeremybenn
 
9976 24 jeremybenn
fi
9977
if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9978
 
9979
 
9980
if test -n "$AR_FOR_TARGET"; then
9981
  ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9982
elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9983
  AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9984
fi
9985
 
9986
if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9987
  for ncn_progname in ar; do
9988
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9989
set dummy ${ncn_progname}; ac_word=$2
9990 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991
$as_echo_n "checking for $ac_word... " >&6; }
9992
if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9993
  $as_echo_n "(cached) " >&6
9994 24 jeremybenn
else
9995
  if test -n "$AR_FOR_TARGET"; then
9996
  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9997
else
9998
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999
for as_dir in $PATH
10000
do
10001
  IFS=$as_save_IFS
10002
  test -z "$as_dir" && as_dir=.
10003 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10004
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10005 24 jeremybenn
    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10006 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10007 24 jeremybenn
    break 2
10008
  fi
10009
done
10010 225 jeremybenn
  done
10011
IFS=$as_save_IFS
10012 24 jeremybenn
 
10013
fi
10014
fi
10015
AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10016
if test -n "$AR_FOR_TARGET"; then
10017 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10018
$as_echo "$AR_FOR_TARGET" >&6; }
10019 24 jeremybenn
else
10020 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021
$as_echo "no" >&6; }
10022 24 jeremybenn
fi
10023
 
10024 225 jeremybenn
 
10025 24 jeremybenn
  done
10026
fi
10027
 
10028
if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10029
  for ncn_progname in ar; do
10030 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10031
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10032 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
10033
      ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10034 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10035
$as_echo "yes" >&6; }
10036 24 jeremybenn
      break
10037
    else
10038 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039
$as_echo "no" >&6; }
10040 24 jeremybenn
    fi
10041
  done
10042
fi
10043
 
10044
if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10045
  for ncn_progname in ar; do
10046
    if test -n "$ncn_target_tool_prefix"; then
10047
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10048
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10049 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050
$as_echo_n "checking for $ac_word... " >&6; }
10051
if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10052
  $as_echo_n "(cached) " >&6
10053 24 jeremybenn
else
10054
  if test -n "$AR_FOR_TARGET"; then
10055
  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10056
else
10057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058
for as_dir in $PATH
10059
do
10060
  IFS=$as_save_IFS
10061
  test -z "$as_dir" && as_dir=.
10062 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10063
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10064 24 jeremybenn
    ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10065 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10066 24 jeremybenn
    break 2
10067
  fi
10068
done
10069 225 jeremybenn
  done
10070
IFS=$as_save_IFS
10071 24 jeremybenn
 
10072
fi
10073
fi
10074
AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10075
if test -n "$AR_FOR_TARGET"; then
10076 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10077
$as_echo "$AR_FOR_TARGET" >&6; }
10078 24 jeremybenn
else
10079 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080
$as_echo "no" >&6; }
10081 24 jeremybenn
fi
10082
 
10083 225 jeremybenn
 
10084 24 jeremybenn
    fi
10085
    if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10086
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10087
set dummy ${ncn_progname}; ac_word=$2
10088 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089
$as_echo_n "checking for $ac_word... " >&6; }
10090
if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10091
  $as_echo_n "(cached) " >&6
10092 24 jeremybenn
else
10093
  if test -n "$AR_FOR_TARGET"; then
10094
  ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10095
else
10096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097
for as_dir in $PATH
10098
do
10099
  IFS=$as_save_IFS
10100
  test -z "$as_dir" && as_dir=.
10101 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10102
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103 24 jeremybenn
    ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10104 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 24 jeremybenn
    break 2
10106
  fi
10107
done
10108 225 jeremybenn
  done
10109
IFS=$as_save_IFS
10110 24 jeremybenn
 
10111
fi
10112
fi
10113
AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10114
if test -n "$AR_FOR_TARGET"; then
10115 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10116
$as_echo "$AR_FOR_TARGET" >&6; }
10117 24 jeremybenn
else
10118 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119
$as_echo "no" >&6; }
10120 24 jeremybenn
fi
10121
 
10122 225 jeremybenn
 
10123 24 jeremybenn
    fi
10124
    test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10125
  done
10126
fi
10127
 
10128
if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10129
  set dummy ar
10130
  if test $build = $target ; then
10131
    AR_FOR_TARGET="$2"
10132
  else
10133
    AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10134
  fi
10135
else
10136
  AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10137
fi
10138
 
10139
else
10140
  AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10141
fi
10142
 
10143
 
10144
 
10145
 
10146
if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10147
  if test -n "$with_build_time_tools"; then
10148 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10149
$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10150 24 jeremybenn
    if test -x $with_build_time_tools/as; then
10151
      AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10152
      ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10153 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10154
$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10155 24 jeremybenn
    else
10156 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157
$as_echo "no" >&6; }
10158 24 jeremybenn
    fi
10159
  elif test $build != $host && test $have_gcc_for_target = yes; then
10160
    AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10161
    test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10162
    test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10163
  fi
10164
fi
10165
if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10166
  # Extract the first word of "as", so it can be a program name with args.
10167
set dummy as; ac_word=$2
10168 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169
$as_echo_n "checking for $ac_word... " >&6; }
10170
if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10171
  $as_echo_n "(cached) " >&6
10172 24 jeremybenn
else
10173
  case $AS_FOR_TARGET in
10174
  [\\/]* | ?:[\\/]*)
10175
  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10176
  ;;
10177
  *)
10178
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179
for as_dir in $gcc_cv_tool_dirs
10180
do
10181
  IFS=$as_save_IFS
10182
  test -z "$as_dir" && as_dir=.
10183 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10184
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10185 24 jeremybenn
    ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10186 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 24 jeremybenn
    break 2
10188
  fi
10189
done
10190 225 jeremybenn
  done
10191
IFS=$as_save_IFS
10192 24 jeremybenn
 
10193
  ;;
10194
esac
10195
fi
10196
AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10197
if test -n "$AS_FOR_TARGET"; then
10198 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10199
$as_echo "$AS_FOR_TARGET" >&6; }
10200 24 jeremybenn
else
10201 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202
$as_echo "no" >&6; }
10203 24 jeremybenn
fi
10204
 
10205 225 jeremybenn
 
10206 24 jeremybenn
fi
10207
if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10208
 
10209
 
10210
if test -n "$AS_FOR_TARGET"; then
10211
  ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10212
elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10213
  AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10214
fi
10215
 
10216
if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10217
  for ncn_progname in as; do
10218
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10219
set dummy ${ncn_progname}; ac_word=$2
10220 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10221
$as_echo_n "checking for $ac_word... " >&6; }
10222
if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10223
  $as_echo_n "(cached) " >&6
10224 24 jeremybenn
else
10225
  if test -n "$AS_FOR_TARGET"; then
10226
  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10227
else
10228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229
for as_dir in $PATH
10230
do
10231
  IFS=$as_save_IFS
10232
  test -z "$as_dir" && as_dir=.
10233 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10234
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10235 24 jeremybenn
    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10236 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 24 jeremybenn
    break 2
10238
  fi
10239
done
10240 225 jeremybenn
  done
10241
IFS=$as_save_IFS
10242 24 jeremybenn
 
10243
fi
10244
fi
10245
AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10246
if test -n "$AS_FOR_TARGET"; then
10247 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10248
$as_echo "$AS_FOR_TARGET" >&6; }
10249 24 jeremybenn
else
10250 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10251
$as_echo "no" >&6; }
10252 24 jeremybenn
fi
10253
 
10254 225 jeremybenn
 
10255 24 jeremybenn
  done
10256
fi
10257
 
10258
if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10259
  for ncn_progname in as; do
10260 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10261
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10262 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
10263
      ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10264 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10265
$as_echo "yes" >&6; }
10266 24 jeremybenn
      break
10267
    else
10268 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269
$as_echo "no" >&6; }
10270 24 jeremybenn
    fi
10271
  done
10272
fi
10273
 
10274
if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10275
  for ncn_progname in as; do
10276
    if test -n "$ncn_target_tool_prefix"; then
10277
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10278
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10279 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10280
$as_echo_n "checking for $ac_word... " >&6; }
10281
if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10282
  $as_echo_n "(cached) " >&6
10283 24 jeremybenn
else
10284
  if test -n "$AS_FOR_TARGET"; then
10285
  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10286
else
10287
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288
for as_dir in $PATH
10289
do
10290
  IFS=$as_save_IFS
10291
  test -z "$as_dir" && as_dir=.
10292 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10293
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10294 24 jeremybenn
    ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10295 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10296 24 jeremybenn
    break 2
10297
  fi
10298
done
10299 225 jeremybenn
  done
10300
IFS=$as_save_IFS
10301 24 jeremybenn
 
10302
fi
10303
fi
10304
AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10305
if test -n "$AS_FOR_TARGET"; then
10306 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10307
$as_echo "$AS_FOR_TARGET" >&6; }
10308 24 jeremybenn
else
10309 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10310
$as_echo "no" >&6; }
10311 24 jeremybenn
fi
10312
 
10313 225 jeremybenn
 
10314 24 jeremybenn
    fi
10315
    if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10316
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10317
set dummy ${ncn_progname}; ac_word=$2
10318 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10319
$as_echo_n "checking for $ac_word... " >&6; }
10320
if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10321
  $as_echo_n "(cached) " >&6
10322 24 jeremybenn
else
10323
  if test -n "$AS_FOR_TARGET"; then
10324
  ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10325
else
10326
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327
for as_dir in $PATH
10328
do
10329
  IFS=$as_save_IFS
10330
  test -z "$as_dir" && as_dir=.
10331 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10332
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10333 24 jeremybenn
    ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10334 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 24 jeremybenn
    break 2
10336
  fi
10337
done
10338 225 jeremybenn
  done
10339
IFS=$as_save_IFS
10340 24 jeremybenn
 
10341
fi
10342
fi
10343
AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10344
if test -n "$AS_FOR_TARGET"; then
10345 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10346
$as_echo "$AS_FOR_TARGET" >&6; }
10347 24 jeremybenn
else
10348 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349
$as_echo "no" >&6; }
10350 24 jeremybenn
fi
10351
 
10352 225 jeremybenn
 
10353 24 jeremybenn
    fi
10354
    test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10355
  done
10356
fi
10357
 
10358
if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10359
  set dummy as
10360
  if test $build = $target ; then
10361
    AS_FOR_TARGET="$2"
10362
  else
10363
    AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10364
  fi
10365
else
10366
  AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10367
fi
10368
 
10369
else
10370
  AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10371
fi
10372
 
10373
 
10374
 
10375
 
10376
if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10377
  if test -n "$with_build_time_tools"; then
10378 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10379
$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
10380 24 jeremybenn
    if test -x $with_build_time_tools/dlltool; then
10381
      DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10382
      ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10383 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10384
$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
10385 24 jeremybenn
    else
10386 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387
$as_echo "no" >&6; }
10388 24 jeremybenn
    fi
10389
  elif test $build != $host && test $have_gcc_for_target = yes; then
10390
    DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10391
    test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10392
    test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10393
  fi
10394
fi
10395
if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10396
  # Extract the first word of "dlltool", so it can be a program name with args.
10397
set dummy dlltool; ac_word=$2
10398 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10399
$as_echo_n "checking for $ac_word... " >&6; }
10400
if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10401
  $as_echo_n "(cached) " >&6
10402 24 jeremybenn
else
10403
  case $DLLTOOL_FOR_TARGET in
10404
  [\\/]* | ?:[\\/]*)
10405
  ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10406
  ;;
10407
  *)
10408
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409
for as_dir in $gcc_cv_tool_dirs
10410
do
10411
  IFS=$as_save_IFS
10412
  test -z "$as_dir" && as_dir=.
10413 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10414
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10415 24 jeremybenn
    ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10416 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 24 jeremybenn
    break 2
10418
  fi
10419
done
10420 225 jeremybenn
  done
10421
IFS=$as_save_IFS
10422 24 jeremybenn
 
10423
  ;;
10424
esac
10425
fi
10426
DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10427
if test -n "$DLLTOOL_FOR_TARGET"; then
10428 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10429
$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10430 24 jeremybenn
else
10431 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432
$as_echo "no" >&6; }
10433 24 jeremybenn
fi
10434
 
10435 225 jeremybenn
 
10436 24 jeremybenn
fi
10437
if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10438
 
10439
 
10440
if test -n "$DLLTOOL_FOR_TARGET"; then
10441
  ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10442
elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10443
  DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10444
fi
10445
 
10446
if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10447
  for ncn_progname in dlltool; do
10448
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10449
set dummy ${ncn_progname}; ac_word=$2
10450 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451
$as_echo_n "checking for $ac_word... " >&6; }
10452
if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10453
  $as_echo_n "(cached) " >&6
10454 24 jeremybenn
else
10455
  if test -n "$DLLTOOL_FOR_TARGET"; then
10456
  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10457
else
10458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459
for as_dir in $PATH
10460
do
10461
  IFS=$as_save_IFS
10462
  test -z "$as_dir" && as_dir=.
10463 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10464
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10465 24 jeremybenn
    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10466 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 24 jeremybenn
    break 2
10468
  fi
10469
done
10470 225 jeremybenn
  done
10471
IFS=$as_save_IFS
10472 24 jeremybenn
 
10473
fi
10474
fi
10475
DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10476
if test -n "$DLLTOOL_FOR_TARGET"; then
10477 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10478
$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10479 24 jeremybenn
else
10480 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481
$as_echo "no" >&6; }
10482 24 jeremybenn
fi
10483
 
10484 225 jeremybenn
 
10485 24 jeremybenn
  done
10486
fi
10487
 
10488
if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
10489
  for ncn_progname in dlltool; do
10490 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10491
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10492 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
10493
      ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10494 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10495
$as_echo "yes" >&6; }
10496 24 jeremybenn
      break
10497
    else
10498 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499
$as_echo "no" >&6; }
10500 24 jeremybenn
    fi
10501
  done
10502
fi
10503
 
10504
if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10505
  for ncn_progname in dlltool; do
10506
    if test -n "$ncn_target_tool_prefix"; then
10507
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10508
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10509 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510
$as_echo_n "checking for $ac_word... " >&6; }
10511
if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10512
  $as_echo_n "(cached) " >&6
10513 24 jeremybenn
else
10514
  if test -n "$DLLTOOL_FOR_TARGET"; then
10515
  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10516
else
10517
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518
for as_dir in $PATH
10519
do
10520
  IFS=$as_save_IFS
10521
  test -z "$as_dir" && as_dir=.
10522 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10523
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10524 24 jeremybenn
    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10525 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10526 24 jeremybenn
    break 2
10527
  fi
10528
done
10529 225 jeremybenn
  done
10530
IFS=$as_save_IFS
10531 24 jeremybenn
 
10532
fi
10533
fi
10534
DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10535
if test -n "$DLLTOOL_FOR_TARGET"; then
10536 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10537
$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10538 24 jeremybenn
else
10539 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540
$as_echo "no" >&6; }
10541 24 jeremybenn
fi
10542
 
10543 225 jeremybenn
 
10544 24 jeremybenn
    fi
10545
    if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10546
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10547
set dummy ${ncn_progname}; ac_word=$2
10548 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10549
$as_echo_n "checking for $ac_word... " >&6; }
10550
if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10551
  $as_echo_n "(cached) " >&6
10552 24 jeremybenn
else
10553
  if test -n "$DLLTOOL_FOR_TARGET"; then
10554
  ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10555
else
10556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557
for as_dir in $PATH
10558
do
10559
  IFS=$as_save_IFS
10560
  test -z "$as_dir" && as_dir=.
10561 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10562
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10563 24 jeremybenn
    ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10564 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10565 24 jeremybenn
    break 2
10566
  fi
10567
done
10568 225 jeremybenn
  done
10569
IFS=$as_save_IFS
10570 24 jeremybenn
 
10571
fi
10572
fi
10573
DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10574
if test -n "$DLLTOOL_FOR_TARGET"; then
10575 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10576
$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10577 24 jeremybenn
else
10578 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579
$as_echo "no" >&6; }
10580 24 jeremybenn
fi
10581
 
10582 225 jeremybenn
 
10583 24 jeremybenn
    fi
10584
    test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10585
  done
10586
fi
10587
 
10588
if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10589
  set dummy dlltool
10590
  if test $build = $target ; then
10591
    DLLTOOL_FOR_TARGET="$2"
10592
  else
10593
    DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10594
  fi
10595
else
10596
  DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
10597
fi
10598
 
10599
else
10600
  DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10601
fi
10602
 
10603
 
10604
 
10605
 
10606
if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10607
  if test -n "$with_build_time_tools"; then
10608 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10609
$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
10610 24 jeremybenn
    if test -x $with_build_time_tools/ld; then
10611
      LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10612
      ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10613 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10614
$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
10615 24 jeremybenn
    else
10616 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617
$as_echo "no" >&6; }
10618 24 jeremybenn
    fi
10619
  elif test $build != $host && test $have_gcc_for_target = yes; then
10620
    LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
10621
    test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10622
    test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10623
  fi
10624
fi
10625
if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10626
  # Extract the first word of "ld", so it can be a program name with args.
10627
set dummy ld; ac_word=$2
10628 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10629
$as_echo_n "checking for $ac_word... " >&6; }
10630
if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10631
  $as_echo_n "(cached) " >&6
10632 24 jeremybenn
else
10633
  case $LD_FOR_TARGET in
10634
  [\\/]* | ?:[\\/]*)
10635
  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10636
  ;;
10637
  *)
10638
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639
for as_dir in $gcc_cv_tool_dirs
10640
do
10641
  IFS=$as_save_IFS
10642
  test -z "$as_dir" && as_dir=.
10643 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10644
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10645 24 jeremybenn
    ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10646 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 24 jeremybenn
    break 2
10648
  fi
10649
done
10650 225 jeremybenn
  done
10651
IFS=$as_save_IFS
10652 24 jeremybenn
 
10653
  ;;
10654
esac
10655
fi
10656
LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10657
if test -n "$LD_FOR_TARGET"; then
10658 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10659
$as_echo "$LD_FOR_TARGET" >&6; }
10660 24 jeremybenn
else
10661 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662
$as_echo "no" >&6; }
10663 24 jeremybenn
fi
10664
 
10665 225 jeremybenn
 
10666 24 jeremybenn
fi
10667
if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10668
 
10669
 
10670
if test -n "$LD_FOR_TARGET"; then
10671
  ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10672
elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10673
  LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10674
fi
10675
 
10676
if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10677
  for ncn_progname in ld; do
10678
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10679
set dummy ${ncn_progname}; ac_word=$2
10680 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681
$as_echo_n "checking for $ac_word... " >&6; }
10682
if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10683
  $as_echo_n "(cached) " >&6
10684 24 jeremybenn
else
10685
  if test -n "$LD_FOR_TARGET"; then
10686
  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10687
else
10688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689
for as_dir in $PATH
10690
do
10691
  IFS=$as_save_IFS
10692
  test -z "$as_dir" && as_dir=.
10693 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10694
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10695 24 jeremybenn
    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10696 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 24 jeremybenn
    break 2
10698
  fi
10699
done
10700 225 jeremybenn
  done
10701
IFS=$as_save_IFS
10702 24 jeremybenn
 
10703
fi
10704
fi
10705
LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10706
if test -n "$LD_FOR_TARGET"; then
10707 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10708
$as_echo "$LD_FOR_TARGET" >&6; }
10709 24 jeremybenn
else
10710 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711
$as_echo "no" >&6; }
10712 24 jeremybenn
fi
10713
 
10714 225 jeremybenn
 
10715 24 jeremybenn
  done
10716
fi
10717
 
10718
if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
10719
  for ncn_progname in ld; do
10720 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10721
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10722 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
10723
      ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10724 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10725
$as_echo "yes" >&6; }
10726 24 jeremybenn
      break
10727
    else
10728 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729
$as_echo "no" >&6; }
10730 24 jeremybenn
    fi
10731
  done
10732
fi
10733
 
10734
if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10735
  for ncn_progname in ld; do
10736
    if test -n "$ncn_target_tool_prefix"; then
10737
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10738
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10739 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10740
$as_echo_n "checking for $ac_word... " >&6; }
10741
if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10742
  $as_echo_n "(cached) " >&6
10743 24 jeremybenn
else
10744
  if test -n "$LD_FOR_TARGET"; then
10745
  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10746
else
10747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748
for as_dir in $PATH
10749
do
10750
  IFS=$as_save_IFS
10751
  test -z "$as_dir" && as_dir=.
10752 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10753
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10754 24 jeremybenn
    ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10755 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10756 24 jeremybenn
    break 2
10757
  fi
10758
done
10759 225 jeremybenn
  done
10760
IFS=$as_save_IFS
10761 24 jeremybenn
 
10762
fi
10763
fi
10764
LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10765
if test -n "$LD_FOR_TARGET"; then
10766 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10767
$as_echo "$LD_FOR_TARGET" >&6; }
10768 24 jeremybenn
else
10769 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770
$as_echo "no" >&6; }
10771 24 jeremybenn
fi
10772
 
10773 225 jeremybenn
 
10774 24 jeremybenn
    fi
10775
    if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10776
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10777
set dummy ${ncn_progname}; ac_word=$2
10778 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779
$as_echo_n "checking for $ac_word... " >&6; }
10780
if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10781
  $as_echo_n "(cached) " >&6
10782 24 jeremybenn
else
10783
  if test -n "$LD_FOR_TARGET"; then
10784
  ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10785
else
10786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787
for as_dir in $PATH
10788
do
10789
  IFS=$as_save_IFS
10790
  test -z "$as_dir" && as_dir=.
10791 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10792
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10793 24 jeremybenn
    ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10794 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 24 jeremybenn
    break 2
10796
  fi
10797
done
10798 225 jeremybenn
  done
10799
IFS=$as_save_IFS
10800 24 jeremybenn
 
10801
fi
10802
fi
10803
LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10804
if test -n "$LD_FOR_TARGET"; then
10805 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10806
$as_echo "$LD_FOR_TARGET" >&6; }
10807 24 jeremybenn
else
10808 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809
$as_echo "no" >&6; }
10810 24 jeremybenn
fi
10811
 
10812 225 jeremybenn
 
10813 24 jeremybenn
    fi
10814
    test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10815
  done
10816
fi
10817
 
10818
if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10819
  set dummy ld
10820
  if test $build = $target ; then
10821
    LD_FOR_TARGET="$2"
10822
  else
10823
    LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10824
  fi
10825
else
10826
  LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
10827
fi
10828
 
10829
else
10830
  LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10831
fi
10832
 
10833
 
10834
 
10835
 
10836
if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10837
  if test -n "$with_build_time_tools"; then
10838 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
10839
$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
10840 24 jeremybenn
    if test -x $with_build_time_tools/lipo; then
10841
      LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10842
      ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10843 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10844
$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
10845 24 jeremybenn
    else
10846 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847
$as_echo "no" >&6; }
10848 24 jeremybenn
    fi
10849
  elif test $build != $host && test $have_gcc_for_target = yes; then
10850
    LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10851
    test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10852
    test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10853
  fi
10854
fi
10855
if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10856
  # Extract the first word of "lipo", so it can be a program name with args.
10857
set dummy lipo; ac_word=$2
10858 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859
$as_echo_n "checking for $ac_word... " >&6; }
10860
if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
10861
  $as_echo_n "(cached) " >&6
10862 24 jeremybenn
else
10863
  case $LIPO_FOR_TARGET in
10864
  [\\/]* | ?:[\\/]*)
10865
  ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10866
  ;;
10867
  *)
10868
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869
for as_dir in $gcc_cv_tool_dirs
10870
do
10871
  IFS=$as_save_IFS
10872
  test -z "$as_dir" && as_dir=.
10873 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10874
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10875 24 jeremybenn
    ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10876 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 24 jeremybenn
    break 2
10878
  fi
10879
done
10880 225 jeremybenn
  done
10881
IFS=$as_save_IFS
10882 24 jeremybenn
 
10883
  ;;
10884
esac
10885
fi
10886
LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10887
if test -n "$LIPO_FOR_TARGET"; then
10888 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10889
$as_echo "$LIPO_FOR_TARGET" >&6; }
10890 24 jeremybenn
else
10891 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892
$as_echo "no" >&6; }
10893 24 jeremybenn
fi
10894
 
10895 225 jeremybenn
 
10896 24 jeremybenn
fi
10897
if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10898
 
10899
 
10900
if test -n "$LIPO_FOR_TARGET"; then
10901
  ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10902
elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10903
  LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10904
fi
10905
 
10906
if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10907
  for ncn_progname in lipo; do
10908
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10909
set dummy ${ncn_progname}; ac_word=$2
10910 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911
$as_echo_n "checking for $ac_word... " >&6; }
10912
if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10913
  $as_echo_n "(cached) " >&6
10914 24 jeremybenn
else
10915
  if test -n "$LIPO_FOR_TARGET"; then
10916
  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10917
else
10918
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919
for as_dir in $PATH
10920
do
10921
  IFS=$as_save_IFS
10922
  test -z "$as_dir" && as_dir=.
10923 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10924
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10925 24 jeremybenn
    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10926 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 24 jeremybenn
    break 2
10928
  fi
10929
done
10930 225 jeremybenn
  done
10931
IFS=$as_save_IFS
10932 24 jeremybenn
 
10933
fi
10934
fi
10935
LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10936
if test -n "$LIPO_FOR_TARGET"; then
10937 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10938
$as_echo "$LIPO_FOR_TARGET" >&6; }
10939 24 jeremybenn
else
10940 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941
$as_echo "no" >&6; }
10942 24 jeremybenn
fi
10943
 
10944 225 jeremybenn
 
10945 24 jeremybenn
  done
10946
fi
10947
 
10948
if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10949
  for ncn_progname in lipo; do
10950 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10951
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10952 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
10953
      ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10954 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10955
$as_echo "yes" >&6; }
10956 24 jeremybenn
      break
10957
    else
10958 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959
$as_echo "no" >&6; }
10960 24 jeremybenn
    fi
10961
  done
10962
fi
10963
 
10964
if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10965
  for ncn_progname in lipo; do
10966
    if test -n "$ncn_target_tool_prefix"; then
10967
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10968
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10969 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10970
$as_echo_n "checking for $ac_word... " >&6; }
10971
if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10972
  $as_echo_n "(cached) " >&6
10973 24 jeremybenn
else
10974
  if test -n "$LIPO_FOR_TARGET"; then
10975
  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10976
else
10977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978
for as_dir in $PATH
10979
do
10980
  IFS=$as_save_IFS
10981
  test -z "$as_dir" && as_dir=.
10982 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10983
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10984 24 jeremybenn
    ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10985 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 24 jeremybenn
    break 2
10987
  fi
10988
done
10989 225 jeremybenn
  done
10990
IFS=$as_save_IFS
10991 24 jeremybenn
 
10992
fi
10993
fi
10994
LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10995
if test -n "$LIPO_FOR_TARGET"; then
10996 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10997
$as_echo "$LIPO_FOR_TARGET" >&6; }
10998 24 jeremybenn
else
10999 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000
$as_echo "no" >&6; }
11001 24 jeremybenn
fi
11002
 
11003 225 jeremybenn
 
11004 24 jeremybenn
    fi
11005
    if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11006
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11007
set dummy ${ncn_progname}; ac_word=$2
11008 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11009
$as_echo_n "checking for $ac_word... " >&6; }
11010
if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11011
  $as_echo_n "(cached) " >&6
11012 24 jeremybenn
else
11013
  if test -n "$LIPO_FOR_TARGET"; then
11014
  ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11015
else
11016
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017
for as_dir in $PATH
11018
do
11019
  IFS=$as_save_IFS
11020
  test -z "$as_dir" && as_dir=.
11021 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11022
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11023 24 jeremybenn
    ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11024 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11025 24 jeremybenn
    break 2
11026
  fi
11027
done
11028 225 jeremybenn
  done
11029
IFS=$as_save_IFS
11030 24 jeremybenn
 
11031
fi
11032
fi
11033
LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11034
if test -n "$LIPO_FOR_TARGET"; then
11035 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11036
$as_echo "$LIPO_FOR_TARGET" >&6; }
11037 24 jeremybenn
else
11038 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039
$as_echo "no" >&6; }
11040 24 jeremybenn
fi
11041
 
11042 225 jeremybenn
 
11043 24 jeremybenn
    fi
11044
    test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11045
  done
11046
fi
11047
 
11048
if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11049
  set dummy lipo
11050
  if test $build = $target ; then
11051
    LIPO_FOR_TARGET="$2"
11052
  else
11053
    LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11054
  fi
11055
else
11056
  LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11057
fi
11058
 
11059
else
11060
  LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11061
fi
11062
 
11063
 
11064
 
11065
 
11066
if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11067
  if test -n "$with_build_time_tools"; then
11068 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11069
$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11070 24 jeremybenn
    if test -x $with_build_time_tools/nm; then
11071
      NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11072
      ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11073 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11074
$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11075 24 jeremybenn
    else
11076 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077
$as_echo "no" >&6; }
11078 24 jeremybenn
    fi
11079
  elif test $build != $host && test $have_gcc_for_target = yes; then
11080
    NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11081
    test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11082
    test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11083
  fi
11084
fi
11085
if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11086
  # Extract the first word of "nm", so it can be a program name with args.
11087
set dummy nm; ac_word=$2
11088 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089
$as_echo_n "checking for $ac_word... " >&6; }
11090
if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11091
  $as_echo_n "(cached) " >&6
11092 24 jeremybenn
else
11093
  case $NM_FOR_TARGET in
11094
  [\\/]* | ?:[\\/]*)
11095
  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11096
  ;;
11097
  *)
11098
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099
for as_dir in $gcc_cv_tool_dirs
11100
do
11101
  IFS=$as_save_IFS
11102
  test -z "$as_dir" && as_dir=.
11103 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11104
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11105 24 jeremybenn
    ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11106 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11107 24 jeremybenn
    break 2
11108
  fi
11109
done
11110 225 jeremybenn
  done
11111
IFS=$as_save_IFS
11112 24 jeremybenn
 
11113
  ;;
11114
esac
11115
fi
11116
NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11117
if test -n "$NM_FOR_TARGET"; then
11118 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11119
$as_echo "$NM_FOR_TARGET" >&6; }
11120 24 jeremybenn
else
11121 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122
$as_echo "no" >&6; }
11123 24 jeremybenn
fi
11124
 
11125 225 jeremybenn
 
11126 24 jeremybenn
fi
11127
if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11128
 
11129
 
11130
if test -n "$NM_FOR_TARGET"; then
11131
  ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11132
elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11133
  NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11134
fi
11135
 
11136
if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11137
  for ncn_progname in nm; do
11138
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11139
set dummy ${ncn_progname}; ac_word=$2
11140 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141
$as_echo_n "checking for $ac_word... " >&6; }
11142
if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11143
  $as_echo_n "(cached) " >&6
11144 24 jeremybenn
else
11145
  if test -n "$NM_FOR_TARGET"; then
11146
  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11147
else
11148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149
for as_dir in $PATH
11150
do
11151
  IFS=$as_save_IFS
11152
  test -z "$as_dir" && as_dir=.
11153 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11154
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11155 24 jeremybenn
    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11156 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 24 jeremybenn
    break 2
11158
  fi
11159
done
11160 225 jeremybenn
  done
11161
IFS=$as_save_IFS
11162 24 jeremybenn
 
11163
fi
11164
fi
11165
NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11166
if test -n "$NM_FOR_TARGET"; then
11167 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11168
$as_echo "$NM_FOR_TARGET" >&6; }
11169 24 jeremybenn
else
11170 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171
$as_echo "no" >&6; }
11172 24 jeremybenn
fi
11173
 
11174 225 jeremybenn
 
11175 24 jeremybenn
  done
11176
fi
11177
 
11178
if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11179
  for ncn_progname in nm; do
11180 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11181
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11182 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
11183
      ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11184 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185
$as_echo "yes" >&6; }
11186 24 jeremybenn
      break
11187
    else
11188 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189
$as_echo "no" >&6; }
11190 24 jeremybenn
    fi
11191
  done
11192
fi
11193
 
11194
if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11195
  for ncn_progname in nm; do
11196
    if test -n "$ncn_target_tool_prefix"; then
11197
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11198
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11199 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200
$as_echo_n "checking for $ac_word... " >&6; }
11201
if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11202
  $as_echo_n "(cached) " >&6
11203 24 jeremybenn
else
11204
  if test -n "$NM_FOR_TARGET"; then
11205
  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11206
else
11207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208
for as_dir in $PATH
11209
do
11210
  IFS=$as_save_IFS
11211
  test -z "$as_dir" && as_dir=.
11212 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11213
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214 24 jeremybenn
    ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11215 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 24 jeremybenn
    break 2
11217
  fi
11218
done
11219 225 jeremybenn
  done
11220
IFS=$as_save_IFS
11221 24 jeremybenn
 
11222
fi
11223
fi
11224
NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11225
if test -n "$NM_FOR_TARGET"; then
11226 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11227
$as_echo "$NM_FOR_TARGET" >&6; }
11228 24 jeremybenn
else
11229 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230
$as_echo "no" >&6; }
11231 24 jeremybenn
fi
11232
 
11233 225 jeremybenn
 
11234 24 jeremybenn
    fi
11235
    if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11236
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11237
set dummy ${ncn_progname}; ac_word=$2
11238 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239
$as_echo_n "checking for $ac_word... " >&6; }
11240
if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11241
  $as_echo_n "(cached) " >&6
11242 24 jeremybenn
else
11243
  if test -n "$NM_FOR_TARGET"; then
11244
  ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11245
else
11246
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247
for as_dir in $PATH
11248
do
11249
  IFS=$as_save_IFS
11250
  test -z "$as_dir" && as_dir=.
11251 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11252
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11253 24 jeremybenn
    ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11254 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 24 jeremybenn
    break 2
11256
  fi
11257
done
11258 225 jeremybenn
  done
11259
IFS=$as_save_IFS
11260 24 jeremybenn
 
11261
fi
11262
fi
11263
NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11264
if test -n "$NM_FOR_TARGET"; then
11265 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11266
$as_echo "$NM_FOR_TARGET" >&6; }
11267 24 jeremybenn
else
11268 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269
$as_echo "no" >&6; }
11270 24 jeremybenn
fi
11271
 
11272 225 jeremybenn
 
11273 24 jeremybenn
    fi
11274
    test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11275
  done
11276
fi
11277
 
11278
if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11279
  set dummy nm
11280
  if test $build = $target ; then
11281
    NM_FOR_TARGET="$2"
11282
  else
11283
    NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11284
  fi
11285
else
11286
  NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11287
fi
11288
 
11289
else
11290
  NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11291
fi
11292
 
11293
 
11294
 
11295
 
11296
if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11297
  if test -n "$with_build_time_tools"; then
11298 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11299
$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11300 24 jeremybenn
    if test -x $with_build_time_tools/objdump; then
11301
      OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11302
      ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11303 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11304
$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11305 24 jeremybenn
    else
11306 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307
$as_echo "no" >&6; }
11308 24 jeremybenn
    fi
11309
  elif test $build != $host && test $have_gcc_for_target = yes; then
11310
    OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11311
    test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11312
    test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11313
  fi
11314
fi
11315
if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11316
  # Extract the first word of "objdump", so it can be a program name with args.
11317
set dummy objdump; ac_word=$2
11318 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319
$as_echo_n "checking for $ac_word... " >&6; }
11320
if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11321
  $as_echo_n "(cached) " >&6
11322 24 jeremybenn
else
11323
  case $OBJDUMP_FOR_TARGET in
11324
  [\\/]* | ?:[\\/]*)
11325
  ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11326
  ;;
11327
  *)
11328
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329
for as_dir in $gcc_cv_tool_dirs
11330
do
11331
  IFS=$as_save_IFS
11332
  test -z "$as_dir" && as_dir=.
11333 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11334
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11335 24 jeremybenn
    ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11336 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 24 jeremybenn
    break 2
11338
  fi
11339
done
11340 225 jeremybenn
  done
11341
IFS=$as_save_IFS
11342 24 jeremybenn
 
11343
  ;;
11344
esac
11345
fi
11346
OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11347
if test -n "$OBJDUMP_FOR_TARGET"; then
11348 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11349
$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11350 24 jeremybenn
else
11351 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352
$as_echo "no" >&6; }
11353 24 jeremybenn
fi
11354
 
11355 225 jeremybenn
 
11356 24 jeremybenn
fi
11357
if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11358
 
11359
 
11360
if test -n "$OBJDUMP_FOR_TARGET"; then
11361
  ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11362
elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11363
  OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11364
fi
11365
 
11366
if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11367
  for ncn_progname in objdump; do
11368
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11369
set dummy ${ncn_progname}; ac_word=$2
11370 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371
$as_echo_n "checking for $ac_word... " >&6; }
11372
if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11373
  $as_echo_n "(cached) " >&6
11374 24 jeremybenn
else
11375
  if test -n "$OBJDUMP_FOR_TARGET"; then
11376
  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11377
else
11378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379
for as_dir in $PATH
11380
do
11381
  IFS=$as_save_IFS
11382
  test -z "$as_dir" && as_dir=.
11383 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11384
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11385 24 jeremybenn
    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11386 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 24 jeremybenn
    break 2
11388
  fi
11389
done
11390 225 jeremybenn
  done
11391
IFS=$as_save_IFS
11392 24 jeremybenn
 
11393
fi
11394
fi
11395
OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11396
if test -n "$OBJDUMP_FOR_TARGET"; then
11397 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11398
$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11399 24 jeremybenn
else
11400 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401
$as_echo "no" >&6; }
11402 24 jeremybenn
fi
11403
 
11404 225 jeremybenn
 
11405 24 jeremybenn
  done
11406
fi
11407
 
11408
if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11409
  for ncn_progname in objdump; do
11410 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11411
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11412 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
11413
      ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11414 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11415
$as_echo "yes" >&6; }
11416 24 jeremybenn
      break
11417
    else
11418 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419
$as_echo "no" >&6; }
11420 24 jeremybenn
    fi
11421
  done
11422
fi
11423
 
11424
if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11425
  for ncn_progname in objdump; do
11426
    if test -n "$ncn_target_tool_prefix"; then
11427
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11428
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11429 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11430
$as_echo_n "checking for $ac_word... " >&6; }
11431
if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11432
  $as_echo_n "(cached) " >&6
11433 24 jeremybenn
else
11434
  if test -n "$OBJDUMP_FOR_TARGET"; then
11435
  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11436
else
11437
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438
for as_dir in $PATH
11439
do
11440
  IFS=$as_save_IFS
11441
  test -z "$as_dir" && as_dir=.
11442 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11443
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11444 24 jeremybenn
    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11445 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 24 jeremybenn
    break 2
11447
  fi
11448
done
11449 225 jeremybenn
  done
11450
IFS=$as_save_IFS
11451 24 jeremybenn
 
11452
fi
11453
fi
11454
OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11455
if test -n "$OBJDUMP_FOR_TARGET"; then
11456 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11457
$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11458 24 jeremybenn
else
11459 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460
$as_echo "no" >&6; }
11461 24 jeremybenn
fi
11462
 
11463 225 jeremybenn
 
11464 24 jeremybenn
    fi
11465
    if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11466
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11467
set dummy ${ncn_progname}; ac_word=$2
11468 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469
$as_echo_n "checking for $ac_word... " >&6; }
11470
if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11471
  $as_echo_n "(cached) " >&6
11472 24 jeremybenn
else
11473
  if test -n "$OBJDUMP_FOR_TARGET"; then
11474
  ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11475
else
11476
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477
for as_dir in $PATH
11478
do
11479
  IFS=$as_save_IFS
11480
  test -z "$as_dir" && as_dir=.
11481 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11482
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11483 24 jeremybenn
    ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11484 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 24 jeremybenn
    break 2
11486
  fi
11487
done
11488 225 jeremybenn
  done
11489
IFS=$as_save_IFS
11490 24 jeremybenn
 
11491
fi
11492
fi
11493
OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11494
if test -n "$OBJDUMP_FOR_TARGET"; then
11495 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11496
$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11497 24 jeremybenn
else
11498 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499
$as_echo "no" >&6; }
11500 24 jeremybenn
fi
11501
 
11502 225 jeremybenn
 
11503 24 jeremybenn
    fi
11504
    test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11505
  done
11506
fi
11507
 
11508
if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11509
  set dummy objdump
11510
  if test $build = $target ; then
11511
    OBJDUMP_FOR_TARGET="$2"
11512
  else
11513
    OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11514
  fi
11515
else
11516
  OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
11517
fi
11518
 
11519
else
11520
  OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11521
fi
11522
 
11523
 
11524
 
11525
 
11526
if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11527
  if test -n "$with_build_time_tools"; then
11528 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11529
$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
11530 24 jeremybenn
    if test -x $with_build_time_tools/ranlib; then
11531
      RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11532
      ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11533 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11534
$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
11535 24 jeremybenn
    else
11536 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537
$as_echo "no" >&6; }
11538 24 jeremybenn
    fi
11539
  elif test $build != $host && test $have_gcc_for_target = yes; then
11540
    RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
11541
    test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11542
    test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11543
  fi
11544
fi
11545
if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11546
  # Extract the first word of "ranlib", so it can be a program name with args.
11547
set dummy ranlib; ac_word=$2
11548 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549
$as_echo_n "checking for $ac_word... " >&6; }
11550
if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11551
  $as_echo_n "(cached) " >&6
11552 24 jeremybenn
else
11553
  case $RANLIB_FOR_TARGET in
11554
  [\\/]* | ?:[\\/]*)
11555
  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11556
  ;;
11557
  *)
11558
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559
for as_dir in $gcc_cv_tool_dirs
11560
do
11561
  IFS=$as_save_IFS
11562
  test -z "$as_dir" && as_dir=.
11563 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11564
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11565 24 jeremybenn
    ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11566 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 24 jeremybenn
    break 2
11568
  fi
11569
done
11570 225 jeremybenn
  done
11571
IFS=$as_save_IFS
11572 24 jeremybenn
 
11573
  ;;
11574
esac
11575
fi
11576
RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11577
if test -n "$RANLIB_FOR_TARGET"; then
11578 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11579
$as_echo "$RANLIB_FOR_TARGET" >&6; }
11580 24 jeremybenn
else
11581 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582
$as_echo "no" >&6; }
11583 24 jeremybenn
fi
11584
 
11585 225 jeremybenn
 
11586 24 jeremybenn
fi
11587
if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11588
 
11589
 
11590
if test -n "$RANLIB_FOR_TARGET"; then
11591
  ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11592
elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11593
  RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11594
fi
11595
 
11596
if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11597
  for ncn_progname in ranlib; do
11598
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11599
set dummy ${ncn_progname}; ac_word=$2
11600 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601
$as_echo_n "checking for $ac_word... " >&6; }
11602
if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11603
  $as_echo_n "(cached) " >&6
11604 24 jeremybenn
else
11605
  if test -n "$RANLIB_FOR_TARGET"; then
11606
  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11607
else
11608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609
for as_dir in $PATH
11610
do
11611
  IFS=$as_save_IFS
11612
  test -z "$as_dir" && as_dir=.
11613 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11614
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11615 24 jeremybenn
    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11616 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 24 jeremybenn
    break 2
11618
  fi
11619
done
11620 225 jeremybenn
  done
11621
IFS=$as_save_IFS
11622 24 jeremybenn
 
11623
fi
11624
fi
11625
RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11626
if test -n "$RANLIB_FOR_TARGET"; then
11627 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11628
$as_echo "$RANLIB_FOR_TARGET" >&6; }
11629 24 jeremybenn
else
11630 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631
$as_echo "no" >&6; }
11632 24 jeremybenn
fi
11633
 
11634 225 jeremybenn
 
11635 24 jeremybenn
  done
11636
fi
11637
 
11638
if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
11639
  for ncn_progname in ranlib; do
11640 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11641
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11642 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
11643
      ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11644 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645
$as_echo "yes" >&6; }
11646 24 jeremybenn
      break
11647
    else
11648 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649
$as_echo "no" >&6; }
11650 24 jeremybenn
    fi
11651
  done
11652
fi
11653
 
11654
if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11655
  for ncn_progname in ranlib; do
11656
    if test -n "$ncn_target_tool_prefix"; then
11657
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11658
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11659 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660
$as_echo_n "checking for $ac_word... " >&6; }
11661
if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11662
  $as_echo_n "(cached) " >&6
11663 24 jeremybenn
else
11664
  if test -n "$RANLIB_FOR_TARGET"; then
11665
  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11666
else
11667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668
for as_dir in $PATH
11669
do
11670
  IFS=$as_save_IFS
11671
  test -z "$as_dir" && as_dir=.
11672 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11673
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11674 24 jeremybenn
    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11675 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11676 24 jeremybenn
    break 2
11677
  fi
11678
done
11679 225 jeremybenn
  done
11680
IFS=$as_save_IFS
11681 24 jeremybenn
 
11682
fi
11683
fi
11684
RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11685
if test -n "$RANLIB_FOR_TARGET"; then
11686 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11687
$as_echo "$RANLIB_FOR_TARGET" >&6; }
11688 24 jeremybenn
else
11689 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690
$as_echo "no" >&6; }
11691 24 jeremybenn
fi
11692
 
11693 225 jeremybenn
 
11694 24 jeremybenn
    fi
11695
    if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11696
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11697
set dummy ${ncn_progname}; ac_word=$2
11698 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699
$as_echo_n "checking for $ac_word... " >&6; }
11700
if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11701
  $as_echo_n "(cached) " >&6
11702 24 jeremybenn
else
11703
  if test -n "$RANLIB_FOR_TARGET"; then
11704
  ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11705
else
11706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707
for as_dir in $PATH
11708
do
11709
  IFS=$as_save_IFS
11710
  test -z "$as_dir" && as_dir=.
11711 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11712
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11713 24 jeremybenn
    ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11714 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 24 jeremybenn
    break 2
11716
  fi
11717
done
11718 225 jeremybenn
  done
11719
IFS=$as_save_IFS
11720 24 jeremybenn
 
11721
fi
11722
fi
11723
RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11724
if test -n "$RANLIB_FOR_TARGET"; then
11725 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11726
$as_echo "$RANLIB_FOR_TARGET" >&6; }
11727 24 jeremybenn
else
11728 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729
$as_echo "no" >&6; }
11730 24 jeremybenn
fi
11731
 
11732 225 jeremybenn
 
11733 24 jeremybenn
    fi
11734
    test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11735
  done
11736
fi
11737
 
11738
if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11739
  set dummy ranlib
11740
  if test $build = $target ; then
11741
    RANLIB_FOR_TARGET="$2"
11742
  else
11743
    RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
11744
  fi
11745
else
11746
  RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
11747
fi
11748
 
11749
else
11750
  RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11751
fi
11752
 
11753
 
11754
 
11755
 
11756
if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11757
  if test -n "$with_build_time_tools"; then
11758 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
11759
$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
11760 24 jeremybenn
    if test -x $with_build_time_tools/strip; then
11761
      STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11762
      ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11763 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11764
$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
11765 24 jeremybenn
    else
11766 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767
$as_echo "no" >&6; }
11768 24 jeremybenn
    fi
11769
  elif test $build != $host && test $have_gcc_for_target = yes; then
11770
    STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
11771
    test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11772
    test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11773
  fi
11774
fi
11775
if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11776
  # Extract the first word of "strip", so it can be a program name with args.
11777
set dummy strip; ac_word=$2
11778 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779
$as_echo_n "checking for $ac_word... " >&6; }
11780
if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
11781
  $as_echo_n "(cached) " >&6
11782 24 jeremybenn
else
11783
  case $STRIP_FOR_TARGET in
11784
  [\\/]* | ?:[\\/]*)
11785
  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11786
  ;;
11787
  *)
11788
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789
for as_dir in $gcc_cv_tool_dirs
11790
do
11791
  IFS=$as_save_IFS
11792
  test -z "$as_dir" && as_dir=.
11793 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11794
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11795 24 jeremybenn
    ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11796 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 24 jeremybenn
    break 2
11798
  fi
11799
done
11800 225 jeremybenn
  done
11801
IFS=$as_save_IFS
11802 24 jeremybenn
 
11803
  ;;
11804
esac
11805
fi
11806
STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11807
if test -n "$STRIP_FOR_TARGET"; then
11808 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11809
$as_echo "$STRIP_FOR_TARGET" >&6; }
11810 24 jeremybenn
else
11811 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812
$as_echo "no" >&6; }
11813 24 jeremybenn
fi
11814
 
11815 225 jeremybenn
 
11816 24 jeremybenn
fi
11817
if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11818
 
11819
 
11820
if test -n "$STRIP_FOR_TARGET"; then
11821
  ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11822
elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11823
  STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11824
fi
11825
 
11826
if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11827
  for ncn_progname in strip; do
11828
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11829
set dummy ${ncn_progname}; ac_word=$2
11830 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831
$as_echo_n "checking for $ac_word... " >&6; }
11832
if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11833
  $as_echo_n "(cached) " >&6
11834 24 jeremybenn
else
11835
  if test -n "$STRIP_FOR_TARGET"; then
11836
  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11837
else
11838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839
for as_dir in $PATH
11840
do
11841
  IFS=$as_save_IFS
11842
  test -z "$as_dir" && as_dir=.
11843 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11844
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11845 24 jeremybenn
    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11846 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 24 jeremybenn
    break 2
11848
  fi
11849
done
11850 225 jeremybenn
  done
11851
IFS=$as_save_IFS
11852 24 jeremybenn
 
11853
fi
11854
fi
11855
STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11856
if test -n "$STRIP_FOR_TARGET"; then
11857 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11858
$as_echo "$STRIP_FOR_TARGET" >&6; }
11859 24 jeremybenn
else
11860 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861
$as_echo "no" >&6; }
11862 24 jeremybenn
fi
11863
 
11864 225 jeremybenn
 
11865 24 jeremybenn
  done
11866
fi
11867
 
11868
if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11869
  for ncn_progname in strip; do
11870 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11871
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11872 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
11873
      ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11874 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875
$as_echo "yes" >&6; }
11876 24 jeremybenn
      break
11877
    else
11878 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879
$as_echo "no" >&6; }
11880 24 jeremybenn
    fi
11881
  done
11882
fi
11883
 
11884
if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11885
  for ncn_progname in strip; do
11886
    if test -n "$ncn_target_tool_prefix"; then
11887
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11888
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11889 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890
$as_echo_n "checking for $ac_word... " >&6; }
11891
if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11892
  $as_echo_n "(cached) " >&6
11893 24 jeremybenn
else
11894
  if test -n "$STRIP_FOR_TARGET"; then
11895
  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11896
else
11897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898
for as_dir in $PATH
11899
do
11900
  IFS=$as_save_IFS
11901
  test -z "$as_dir" && as_dir=.
11902 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11903
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11904 24 jeremybenn
    ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11905 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 24 jeremybenn
    break 2
11907
  fi
11908
done
11909 225 jeremybenn
  done
11910
IFS=$as_save_IFS
11911 24 jeremybenn
 
11912
fi
11913
fi
11914
STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11915
if test -n "$STRIP_FOR_TARGET"; then
11916 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11917
$as_echo "$STRIP_FOR_TARGET" >&6; }
11918 24 jeremybenn
else
11919 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920
$as_echo "no" >&6; }
11921 24 jeremybenn
fi
11922
 
11923 225 jeremybenn
 
11924 24 jeremybenn
    fi
11925
    if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11926
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11927
set dummy ${ncn_progname}; ac_word=$2
11928 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929
$as_echo_n "checking for $ac_word... " >&6; }
11930
if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11931
  $as_echo_n "(cached) " >&6
11932 24 jeremybenn
else
11933
  if test -n "$STRIP_FOR_TARGET"; then
11934
  ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11935
else
11936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937
for as_dir in $PATH
11938
do
11939
  IFS=$as_save_IFS
11940
  test -z "$as_dir" && as_dir=.
11941 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11942
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11943 24 jeremybenn
    ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11944 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 24 jeremybenn
    break 2
11946
  fi
11947
done
11948 225 jeremybenn
  done
11949
IFS=$as_save_IFS
11950 24 jeremybenn
 
11951
fi
11952
fi
11953
STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11954
if test -n "$STRIP_FOR_TARGET"; then
11955 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11956
$as_echo "$STRIP_FOR_TARGET" >&6; }
11957 24 jeremybenn
else
11958 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959
$as_echo "no" >&6; }
11960 24 jeremybenn
fi
11961
 
11962 225 jeremybenn
 
11963 24 jeremybenn
    fi
11964
    test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11965
  done
11966
fi
11967
 
11968
if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11969
  set dummy strip
11970
  if test $build = $target ; then
11971
    STRIP_FOR_TARGET="$2"
11972
  else
11973
    STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11974
  fi
11975
else
11976
  STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
11977
fi
11978
 
11979
else
11980
  STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11981
fi
11982
 
11983
 
11984
 
11985
 
11986
if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11987
  if test -n "$with_build_time_tools"; then
11988 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
11989
$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
11990 24 jeremybenn
    if test -x $with_build_time_tools/windres; then
11991
      WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11992
      ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11993 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11994
$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
11995 24 jeremybenn
    else
11996 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997
$as_echo "no" >&6; }
11998 24 jeremybenn
    fi
11999
  elif test $build != $host && test $have_gcc_for_target = yes; then
12000
    WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12001
    test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12002
    test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12003
  fi
12004
fi
12005
if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12006
  # Extract the first word of "windres", so it can be a program name with args.
12007
set dummy windres; ac_word=$2
12008 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009
$as_echo_n "checking for $ac_word... " >&6; }
12010
if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12011
  $as_echo_n "(cached) " >&6
12012 24 jeremybenn
else
12013
  case $WINDRES_FOR_TARGET in
12014
  [\\/]* | ?:[\\/]*)
12015
  ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12016
  ;;
12017
  *)
12018
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019
for as_dir in $gcc_cv_tool_dirs
12020
do
12021
  IFS=$as_save_IFS
12022
  test -z "$as_dir" && as_dir=.
12023 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
12024
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12025 24 jeremybenn
    ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12026 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 24 jeremybenn
    break 2
12028
  fi
12029
done
12030 225 jeremybenn
  done
12031
IFS=$as_save_IFS
12032 24 jeremybenn
 
12033
  ;;
12034
esac
12035
fi
12036
WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12037
if test -n "$WINDRES_FOR_TARGET"; then
12038 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12039
$as_echo "$WINDRES_FOR_TARGET" >&6; }
12040 24 jeremybenn
else
12041 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042
$as_echo "no" >&6; }
12043 24 jeremybenn
fi
12044
 
12045 225 jeremybenn
 
12046 24 jeremybenn
fi
12047
if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12048
 
12049
 
12050
if test -n "$WINDRES_FOR_TARGET"; then
12051
  ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12052
elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12053
  WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12054
fi
12055
 
12056
if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12057
  for ncn_progname in windres; do
12058
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12059
set dummy ${ncn_progname}; ac_word=$2
12060 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061
$as_echo_n "checking for $ac_word... " >&6; }
12062
if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12063
  $as_echo_n "(cached) " >&6
12064 24 jeremybenn
else
12065
  if test -n "$WINDRES_FOR_TARGET"; then
12066
  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12067
else
12068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069
for as_dir in $PATH
12070
do
12071
  IFS=$as_save_IFS
12072
  test -z "$as_dir" && as_dir=.
12073 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
12074
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12075 24 jeremybenn
    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12076 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 24 jeremybenn
    break 2
12078
  fi
12079
done
12080 225 jeremybenn
  done
12081
IFS=$as_save_IFS
12082 24 jeremybenn
 
12083
fi
12084
fi
12085
WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12086
if test -n "$WINDRES_FOR_TARGET"; then
12087 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12088
$as_echo "$WINDRES_FOR_TARGET" >&6; }
12089 24 jeremybenn
else
12090 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091
$as_echo "no" >&6; }
12092 24 jeremybenn
fi
12093
 
12094 225 jeremybenn
 
12095 24 jeremybenn
  done
12096
fi
12097
 
12098
if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12099
  for ncn_progname in windres; do
12100 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12101
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12102 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
12103
      ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12104 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105
$as_echo "yes" >&6; }
12106 24 jeremybenn
      break
12107
    else
12108 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109
$as_echo "no" >&6; }
12110 24 jeremybenn
    fi
12111
  done
12112
fi
12113
 
12114
if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12115
  for ncn_progname in windres; do
12116
    if test -n "$ncn_target_tool_prefix"; then
12117
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12118
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12119 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120
$as_echo_n "checking for $ac_word... " >&6; }
12121
if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12122
  $as_echo_n "(cached) " >&6
12123 24 jeremybenn
else
12124
  if test -n "$WINDRES_FOR_TARGET"; then
12125
  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12126
else
12127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128
for as_dir in $PATH
12129
do
12130
  IFS=$as_save_IFS
12131
  test -z "$as_dir" && as_dir=.
12132 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
12133
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12134 24 jeremybenn
    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12135 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 24 jeremybenn
    break 2
12137
  fi
12138
done
12139 225 jeremybenn
  done
12140
IFS=$as_save_IFS
12141 24 jeremybenn
 
12142
fi
12143
fi
12144
WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12145
if test -n "$WINDRES_FOR_TARGET"; then
12146 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12147
$as_echo "$WINDRES_FOR_TARGET" >&6; }
12148 24 jeremybenn
else
12149 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150
$as_echo "no" >&6; }
12151 24 jeremybenn
fi
12152
 
12153 225 jeremybenn
 
12154 24 jeremybenn
    fi
12155
    if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12156
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12157
set dummy ${ncn_progname}; ac_word=$2
12158 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159
$as_echo_n "checking for $ac_word... " >&6; }
12160
if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12161
  $as_echo_n "(cached) " >&6
12162 24 jeremybenn
else
12163
  if test -n "$WINDRES_FOR_TARGET"; then
12164
  ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12165
else
12166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167
for as_dir in $PATH
12168
do
12169
  IFS=$as_save_IFS
12170
  test -z "$as_dir" && as_dir=.
12171 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
12172
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12173 24 jeremybenn
    ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12174 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 24 jeremybenn
    break 2
12176
  fi
12177
done
12178 225 jeremybenn
  done
12179
IFS=$as_save_IFS
12180 24 jeremybenn
 
12181
fi
12182
fi
12183
WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12184
if test -n "$WINDRES_FOR_TARGET"; then
12185 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12186
$as_echo "$WINDRES_FOR_TARGET" >&6; }
12187 24 jeremybenn
else
12188 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189
$as_echo "no" >&6; }
12190 24 jeremybenn
fi
12191
 
12192 225 jeremybenn
 
12193 24 jeremybenn
    fi
12194
    test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12195
  done
12196
fi
12197
 
12198
if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12199
  set dummy windres
12200
  if test $build = $target ; then
12201
    WINDRES_FOR_TARGET="$2"
12202
  else
12203
    WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12204
  fi
12205
else
12206
  WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12207
fi
12208
 
12209
else
12210
  WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12211
fi
12212
 
12213
 
12214
 
12215
 
12216
if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12217
  if test -n "$with_build_time_tools"; then
12218 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12219
$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12220 24 jeremybenn
    if test -x $with_build_time_tools/windmc; then
12221
      WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12222
      ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12223 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12224
$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12225 24 jeremybenn
    else
12226 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227
$as_echo "no" >&6; }
12228 24 jeremybenn
    fi
12229
  elif test $build != $host && test $have_gcc_for_target = yes; then
12230
    WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12231
    test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12232
    test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12233
  fi
12234
fi
12235
if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12236
  # Extract the first word of "windmc", so it can be a program name with args.
12237
set dummy windmc; ac_word=$2
12238 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239
$as_echo_n "checking for $ac_word... " >&6; }
12240
if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12241
  $as_echo_n "(cached) " >&6
12242 24 jeremybenn
else
12243
  case $WINDMC_FOR_TARGET in
12244
  [\\/]* | ?:[\\/]*)
12245
  ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12246
  ;;
12247
  *)
12248
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249
for as_dir in $gcc_cv_tool_dirs
12250
do
12251
  IFS=$as_save_IFS
12252
  test -z "$as_dir" && as_dir=.
12253 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
12254
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12255 24 jeremybenn
    ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12256 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 24 jeremybenn
    break 2
12258
  fi
12259
done
12260 225 jeremybenn
  done
12261
IFS=$as_save_IFS
12262 24 jeremybenn
 
12263
  ;;
12264
esac
12265
fi
12266
WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12267
if test -n "$WINDMC_FOR_TARGET"; then
12268 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12269
$as_echo "$WINDMC_FOR_TARGET" >&6; }
12270 24 jeremybenn
else
12271 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272
$as_echo "no" >&6; }
12273 24 jeremybenn
fi
12274
 
12275 225 jeremybenn
 
12276 24 jeremybenn
fi
12277
if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12278
 
12279
 
12280
if test -n "$WINDMC_FOR_TARGET"; then
12281
  ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12282
elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12283
  WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12284
fi
12285
 
12286
if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12287
  for ncn_progname in windmc; do
12288
    # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12289
set dummy ${ncn_progname}; ac_word=$2
12290 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291
$as_echo_n "checking for $ac_word... " >&6; }
12292
if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12293
  $as_echo_n "(cached) " >&6
12294 24 jeremybenn
else
12295
  if test -n "$WINDMC_FOR_TARGET"; then
12296
  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12297
else
12298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299
for as_dir in $PATH
12300
do
12301
  IFS=$as_save_IFS
12302
  test -z "$as_dir" && as_dir=.
12303 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
12304
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12305 24 jeremybenn
    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12306 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 24 jeremybenn
    break 2
12308
  fi
12309
done
12310 225 jeremybenn
  done
12311
IFS=$as_save_IFS
12312 24 jeremybenn
 
12313
fi
12314
fi
12315
WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12316
if test -n "$WINDMC_FOR_TARGET"; then
12317 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12318
$as_echo "$WINDMC_FOR_TARGET" >&6; }
12319 24 jeremybenn
else
12320 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321
$as_echo "no" >&6; }
12322 24 jeremybenn
fi
12323
 
12324 225 jeremybenn
 
12325 24 jeremybenn
  done
12326
fi
12327
 
12328
if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12329
  for ncn_progname in windmc; do
12330 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12331
$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12332 24 jeremybenn
    if test -x $with_build_time_tools/${ncn_progname}; then
12333
      ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12334 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12335
$as_echo "yes" >&6; }
12336 24 jeremybenn
      break
12337
    else
12338 225 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339
$as_echo "no" >&6; }
12340 24 jeremybenn
    fi
12341
  done
12342
fi
12343
 
12344
if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12345
  for ncn_progname in windmc; do
12346
    if test -n "$ncn_target_tool_prefix"; then
12347
      # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12348
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12349 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350
$as_echo_n "checking for $ac_word... " >&6; }
12351
if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12352
  $as_echo_n "(cached) " >&6
12353 24 jeremybenn
else
12354
  if test -n "$WINDMC_FOR_TARGET"; then
12355
  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12356
else
12357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358
for as_dir in $PATH
12359
do
12360
  IFS=$as_save_IFS
12361
  test -z "$as_dir" && as_dir=.
12362 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
12363
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12364 24 jeremybenn
    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12365 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366 24 jeremybenn
    break 2
12367
  fi
12368
done
12369 225 jeremybenn
  done
12370
IFS=$as_save_IFS
12371 24 jeremybenn
 
12372
fi
12373
fi
12374
WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12375
if test -n "$WINDMC_FOR_TARGET"; then
12376 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12377
$as_echo "$WINDMC_FOR_TARGET" >&6; }
12378 24 jeremybenn
else
12379 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380
$as_echo "no" >&6; }
12381 24 jeremybenn
fi
12382
 
12383 225 jeremybenn
 
12384 24 jeremybenn
    fi
12385
    if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12386
      # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12387
set dummy ${ncn_progname}; ac_word=$2
12388 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389
$as_echo_n "checking for $ac_word... " >&6; }
12390
if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12391
  $as_echo_n "(cached) " >&6
12392 24 jeremybenn
else
12393
  if test -n "$WINDMC_FOR_TARGET"; then
12394
  ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12395
else
12396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397
for as_dir in $PATH
12398
do
12399
  IFS=$as_save_IFS
12400
  test -z "$as_dir" && as_dir=.
12401 225 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
12402
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12403 24 jeremybenn
    ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12404 225 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405 24 jeremybenn
    break 2
12406
  fi
12407
done
12408 225 jeremybenn
  done
12409
IFS=$as_save_IFS
12410 24 jeremybenn
 
12411
fi
12412
fi
12413
WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12414
if test -n "$WINDMC_FOR_TARGET"; then
12415 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12416
$as_echo "$WINDMC_FOR_TARGET" >&6; }
12417 24 jeremybenn
else
12418 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419
$as_echo "no" >&6; }
12420 24 jeremybenn
fi
12421
 
12422 225 jeremybenn
 
12423 24 jeremybenn
    fi
12424
    test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12425
  done
12426
fi
12427
 
12428
if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12429
  set dummy windmc
12430
  if test $build = $target ; then
12431
    WINDMC_FOR_TARGET="$2"
12432
  else
12433
    WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12434
  fi
12435
else
12436
  WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12437
fi
12438
 
12439
else
12440
  WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12441
fi
12442
 
12443
 
12444
RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12445
 
12446 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12447
$as_echo_n "checking where to find the target ar... " >&6; }
12448 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12449
  if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12450
    # We already found the complete path
12451
    ac_dir=`dirname $AR_FOR_TARGET`
12452 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12453
$as_echo "pre-installed in $ac_dir" >&6; }
12454 24 jeremybenn
  else
12455
    # Canadian cross, just use what we found
12456 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12457
$as_echo "pre-installed" >&6; }
12458 24 jeremybenn
  fi
12459
else
12460
  ok=yes
12461
  case " ${configdirs} " in
12462
    *" binutils "*) ;;
12463
    *) ok=no ;;
12464
  esac
12465
 
12466
  if test $ok = yes; then
12467
    # An in-tree tool is available and we can use it
12468
    AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12469 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12470
$as_echo "just compiled" >&6; }
12471 24 jeremybenn
  elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12472
    # We already found the complete path
12473
    ac_dir=`dirname $AR_FOR_TARGET`
12474 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12475
$as_echo "pre-installed in $ac_dir" >&6; }
12476 24 jeremybenn
  elif test "x$target" = "x$host"; then
12477
    # We can use an host tool
12478
    AR_FOR_TARGET='$(AR)'
12479 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12480
$as_echo "host tool" >&6; }
12481 24 jeremybenn
  else
12482
    # We need a cross tool
12483 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12484
$as_echo "pre-installed" >&6; }
12485 24 jeremybenn
  fi
12486
fi
12487
 
12488 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12489
$as_echo_n "checking where to find the target as... " >&6; }
12490 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12491
  if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12492
    # We already found the complete path
12493
    ac_dir=`dirname $AS_FOR_TARGET`
12494 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12495
$as_echo "pre-installed in $ac_dir" >&6; }
12496 24 jeremybenn
  else
12497
    # Canadian cross, just use what we found
12498 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12499
$as_echo "pre-installed" >&6; }
12500 24 jeremybenn
  fi
12501
else
12502
  ok=yes
12503
  case " ${configdirs} " in
12504
    *" gas "*) ;;
12505
    *) ok=no ;;
12506
  esac
12507
 
12508
  if test $ok = yes; then
12509
    # An in-tree tool is available and we can use it
12510
    AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
12511 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12512
$as_echo "just compiled" >&6; }
12513 24 jeremybenn
  elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12514
    # We already found the complete path
12515
    ac_dir=`dirname $AS_FOR_TARGET`
12516 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12517
$as_echo "pre-installed in $ac_dir" >&6; }
12518 24 jeremybenn
  elif test "x$target" = "x$host"; then
12519
    # We can use an host tool
12520
    AS_FOR_TARGET='$(AS)'
12521 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12522
$as_echo "host tool" >&6; }
12523 24 jeremybenn
  else
12524
    # We need a cross tool
12525 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12526
$as_echo "pre-installed" >&6; }
12527 24 jeremybenn
  fi
12528
fi
12529
 
12530 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12531
$as_echo_n "checking where to find the target cc... " >&6; }
12532 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12533
  if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12534
    # We already found the complete path
12535
    ac_dir=`dirname $CC_FOR_TARGET`
12536 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12537
$as_echo "pre-installed in $ac_dir" >&6; }
12538 24 jeremybenn
  else
12539
    # Canadian cross, just use what we found
12540 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12541
$as_echo "pre-installed" >&6; }
12542 24 jeremybenn
  fi
12543
else
12544
  ok=yes
12545
  case " ${configdirs} " in
12546
    *" gcc "*) ;;
12547
    *) ok=no ;;
12548
  esac
12549
 
12550
  if test $ok = yes; then
12551
    # An in-tree tool is available and we can use it
12552
    CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12553 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12554
$as_echo "just compiled" >&6; }
12555 24 jeremybenn
  elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12556
    # We already found the complete path
12557
    ac_dir=`dirname $CC_FOR_TARGET`
12558 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12559
$as_echo "pre-installed in $ac_dir" >&6; }
12560 24 jeremybenn
  elif test "x$target" = "x$host"; then
12561
    # We can use an host tool
12562
    CC_FOR_TARGET='$(CC)'
12563 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12564
$as_echo "host tool" >&6; }
12565 24 jeremybenn
  else
12566
    # We need a cross tool
12567 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12568
$as_echo "pre-installed" >&6; }
12569 24 jeremybenn
  fi
12570
fi
12571
 
12572 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12573
$as_echo_n "checking where to find the target c++... " >&6; }
12574 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12575
  if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12576
    # We already found the complete path
12577
    ac_dir=`dirname $CXX_FOR_TARGET`
12578 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12579
$as_echo "pre-installed in $ac_dir" >&6; }
12580 24 jeremybenn
  else
12581
    # Canadian cross, just use what we found
12582 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12583
$as_echo "pre-installed" >&6; }
12584 24 jeremybenn
  fi
12585
else
12586
  ok=yes
12587
  case " ${configdirs} " in
12588
    *" gcc "*) ;;
12589
    *) ok=no ;;
12590
  esac
12591
  case ,${enable_languages}, in
12592
    *,c++,*) ;;
12593
    *) ok=no ;;
12594
  esac
12595
  if test $ok = yes; then
12596
    # An in-tree tool is available and we can use it
12597
    CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
12598 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12599
$as_echo "just compiled" >&6; }
12600 24 jeremybenn
  elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12601
    # We already found the complete path
12602
    ac_dir=`dirname $CXX_FOR_TARGET`
12603 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12604
$as_echo "pre-installed in $ac_dir" >&6; }
12605 24 jeremybenn
  elif test "x$target" = "x$host"; then
12606
    # We can use an host tool
12607
    CXX_FOR_TARGET='$(CXX)'
12608 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12609
$as_echo "host tool" >&6; }
12610 24 jeremybenn
  else
12611
    # We need a cross tool
12612 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12613
$as_echo "pre-installed" >&6; }
12614 24 jeremybenn
  fi
12615
fi
12616
 
12617 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12618
$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
12619 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12620
  if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12621
    # We already found the complete path
12622
    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12623 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12624
$as_echo "pre-installed in $ac_dir" >&6; }
12625 24 jeremybenn
  else
12626
    # Canadian cross, just use what we found
12627 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12628
$as_echo "pre-installed" >&6; }
12629 24 jeremybenn
  fi
12630
else
12631
  ok=yes
12632
  case " ${configdirs} " in
12633
    *" gcc "*) ;;
12634
    *) ok=no ;;
12635
  esac
12636
  case ,${enable_languages}, in
12637
    *,c++,*) ;;
12638
    *) ok=no ;;
12639
  esac
12640
  if test $ok = yes; then
12641
    # An in-tree tool is available and we can use it
12642
    RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
12643 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12644
$as_echo "just compiled" >&6; }
12645 24 jeremybenn
  elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12646
    # We already found the complete path
12647
    ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12648 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12649
$as_echo "pre-installed in $ac_dir" >&6; }
12650 24 jeremybenn
  elif test "x$target" = "x$host"; then
12651
    # We can use an host tool
12652
    RAW_CXX_FOR_TARGET='$(CXX)'
12653 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12654
$as_echo "host tool" >&6; }
12655 24 jeremybenn
  else
12656
    # We need a cross tool
12657 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12658
$as_echo "pre-installed" >&6; }
12659 24 jeremybenn
  fi
12660
fi
12661
 
12662 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12663
$as_echo_n "checking where to find the target dlltool... " >&6; }
12664 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12665
  if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12666
    # We already found the complete path
12667
    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12668 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12669
$as_echo "pre-installed in $ac_dir" >&6; }
12670 24 jeremybenn
  else
12671
    # Canadian cross, just use what we found
12672 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12673
$as_echo "pre-installed" >&6; }
12674 24 jeremybenn
  fi
12675
else
12676
  ok=yes
12677
  case " ${configdirs} " in
12678
    *" binutils "*) ;;
12679
    *) ok=no ;;
12680
  esac
12681
 
12682
  if test $ok = yes; then
12683
    # An in-tree tool is available and we can use it
12684
    DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
12685 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12686
$as_echo "just compiled" >&6; }
12687 24 jeremybenn
  elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12688
    # We already found the complete path
12689
    ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12690 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12691
$as_echo "pre-installed in $ac_dir" >&6; }
12692 24 jeremybenn
  elif test "x$target" = "x$host"; then
12693
    # We can use an host tool
12694
    DLLTOOL_FOR_TARGET='$(DLLTOOL)'
12695 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12696
$as_echo "host tool" >&6; }
12697 24 jeremybenn
  else
12698
    # We need a cross tool
12699 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12700
$as_echo "pre-installed" >&6; }
12701 24 jeremybenn
  fi
12702
fi
12703
 
12704 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12705
$as_echo_n "checking where to find the target gcc... " >&6; }
12706 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12707
  if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12708
    # We already found the complete path
12709
    ac_dir=`dirname $GCC_FOR_TARGET`
12710 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12711
$as_echo "pre-installed in $ac_dir" >&6; }
12712 24 jeremybenn
  else
12713
    # Canadian cross, just use what we found
12714 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12715
$as_echo "pre-installed" >&6; }
12716 24 jeremybenn
  fi
12717
else
12718
  ok=yes
12719
  case " ${configdirs} " in
12720
    *" gcc "*) ;;
12721
    *) ok=no ;;
12722
  esac
12723
 
12724
  if test $ok = yes; then
12725
    # An in-tree tool is available and we can use it
12726
    GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12727 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12728
$as_echo "just compiled" >&6; }
12729 24 jeremybenn
  elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12730
    # We already found the complete path
12731
    ac_dir=`dirname $GCC_FOR_TARGET`
12732 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12733
$as_echo "pre-installed in $ac_dir" >&6; }
12734 24 jeremybenn
  elif test "x$target" = "x$host"; then
12735
    # We can use an host tool
12736
    GCC_FOR_TARGET='$()'
12737 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12738
$as_echo "host tool" >&6; }
12739 24 jeremybenn
  else
12740
    # We need a cross tool
12741 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12742
$as_echo "pre-installed" >&6; }
12743 24 jeremybenn
  fi
12744
fi
12745
 
12746 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
12747
$as_echo_n "checking where to find the target gcj... " >&6; }
12748 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12749
  if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12750
    # We already found the complete path
12751
    ac_dir=`dirname $GCJ_FOR_TARGET`
12752 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12753
$as_echo "pre-installed in $ac_dir" >&6; }
12754 24 jeremybenn
  else
12755
    # Canadian cross, just use what we found
12756 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12757
$as_echo "pre-installed" >&6; }
12758 24 jeremybenn
  fi
12759
else
12760
  ok=yes
12761
  case " ${configdirs} " in
12762
    *" gcc "*) ;;
12763
    *) ok=no ;;
12764
  esac
12765
  case ,${enable_languages}, in
12766
    *,java,*) ;;
12767
    *) ok=no ;;
12768
  esac
12769
  if test $ok = yes; then
12770
    # An in-tree tool is available and we can use it
12771
    GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
12772 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12773
$as_echo "just compiled" >&6; }
12774 24 jeremybenn
  elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12775
    # We already found the complete path
12776
    ac_dir=`dirname $GCJ_FOR_TARGET`
12777 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12778
$as_echo "pre-installed in $ac_dir" >&6; }
12779 24 jeremybenn
  elif test "x$target" = "x$host"; then
12780
    # We can use an host tool
12781
    GCJ_FOR_TARGET='$(GCJ)'
12782 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12783
$as_echo "host tool" >&6; }
12784 24 jeremybenn
  else
12785
    # We need a cross tool
12786 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12787
$as_echo "pre-installed" >&6; }
12788 24 jeremybenn
  fi
12789
fi
12790
 
12791 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
12792
$as_echo_n "checking where to find the target gfortran... " >&6; }
12793 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12794
  if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12795
    # We already found the complete path
12796
    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12797 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12798
$as_echo "pre-installed in $ac_dir" >&6; }
12799 24 jeremybenn
  else
12800
    # Canadian cross, just use what we found
12801 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12802
$as_echo "pre-installed" >&6; }
12803 24 jeremybenn
  fi
12804
else
12805
  ok=yes
12806
  case " ${configdirs} " in
12807
    *" gcc "*) ;;
12808
    *) ok=no ;;
12809
  esac
12810
  case ,${enable_languages}, in
12811
    *,fortran,*) ;;
12812
    *) ok=no ;;
12813
  esac
12814
  if test $ok = yes; then
12815
    # An in-tree tool is available and we can use it
12816
    GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
12817 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12818
$as_echo "just compiled" >&6; }
12819 24 jeremybenn
  elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12820
    # We already found the complete path
12821
    ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12822 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12823
$as_echo "pre-installed in $ac_dir" >&6; }
12824 24 jeremybenn
  elif test "x$target" = "x$host"; then
12825
    # We can use an host tool
12826
    GFORTRAN_FOR_TARGET='$(GFORTRAN)'
12827 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12828
$as_echo "host tool" >&6; }
12829 24 jeremybenn
  else
12830
    # We need a cross tool
12831 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12832
$as_echo "pre-installed" >&6; }
12833 24 jeremybenn
  fi
12834
fi
12835
 
12836 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
12837
$as_echo_n "checking where to find the target ld... " >&6; }
12838 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12839
  if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12840
    # We already found the complete path
12841
    ac_dir=`dirname $LD_FOR_TARGET`
12842 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12843
$as_echo "pre-installed in $ac_dir" >&6; }
12844 24 jeremybenn
  else
12845
    # Canadian cross, just use what we found
12846 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12847
$as_echo "pre-installed" >&6; }
12848 24 jeremybenn
  fi
12849
else
12850
  ok=yes
12851
  case " ${configdirs} " in
12852
    *" ld "*) ;;
12853
    *) ok=no ;;
12854
  esac
12855
 
12856
  if test $ok = yes; then
12857
    # An in-tree tool is available and we can use it
12858
    LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
12859 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12860
$as_echo "just compiled" >&6; }
12861 24 jeremybenn
  elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12862
    # We already found the complete path
12863
    ac_dir=`dirname $LD_FOR_TARGET`
12864 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12865
$as_echo "pre-installed in $ac_dir" >&6; }
12866 24 jeremybenn
  elif test "x$target" = "x$host"; then
12867
    # We can use an host tool
12868
    LD_FOR_TARGET='$(LD)'
12869 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12870
$as_echo "host tool" >&6; }
12871 24 jeremybenn
  else
12872
    # We need a cross tool
12873 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12874
$as_echo "pre-installed" >&6; }
12875 24 jeremybenn
  fi
12876
fi
12877
 
12878 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
12879
$as_echo_n "checking where to find the target lipo... " >&6; }
12880 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12881
  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12882
    # We already found the complete path
12883
    ac_dir=`dirname $LIPO_FOR_TARGET`
12884 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12885
$as_echo "pre-installed in $ac_dir" >&6; }
12886 24 jeremybenn
  else
12887
    # Canadian cross, just use what we found
12888 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12889
$as_echo "pre-installed" >&6; }
12890 24 jeremybenn
  fi
12891
else
12892
  if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12893
    # We already found the complete path
12894
    ac_dir=`dirname $LIPO_FOR_TARGET`
12895 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12896
$as_echo "pre-installed in $ac_dir" >&6; }
12897 24 jeremybenn
  elif test "x$target" = "x$host"; then
12898
    # We can use an host tool
12899
    LIPO_FOR_TARGET='$(LIPO)'
12900 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12901
$as_echo "host tool" >&6; }
12902 24 jeremybenn
  else
12903
    # We need a cross tool
12904 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12905
$as_echo "pre-installed" >&6; }
12906 24 jeremybenn
  fi
12907
fi
12908
 
12909 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
12910
$as_echo_n "checking where to find the target nm... " >&6; }
12911 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12912
  if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12913
    # We already found the complete path
12914
    ac_dir=`dirname $NM_FOR_TARGET`
12915 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12916
$as_echo "pre-installed in $ac_dir" >&6; }
12917 24 jeremybenn
  else
12918
    # Canadian cross, just use what we found
12919 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12920
$as_echo "pre-installed" >&6; }
12921 24 jeremybenn
  fi
12922
else
12923
  ok=yes
12924
  case " ${configdirs} " in
12925
    *" binutils "*) ;;
12926
    *) ok=no ;;
12927
  esac
12928
 
12929
  if test $ok = yes; then
12930
    # An in-tree tool is available and we can use it
12931
    NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
12932 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12933
$as_echo "just compiled" >&6; }
12934 24 jeremybenn
  elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12935
    # We already found the complete path
12936
    ac_dir=`dirname $NM_FOR_TARGET`
12937 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12938
$as_echo "pre-installed in $ac_dir" >&6; }
12939 24 jeremybenn
  elif test "x$target" = "x$host"; then
12940
    # We can use an host tool
12941
    NM_FOR_TARGET='$(NM)'
12942 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12943
$as_echo "host tool" >&6; }
12944 24 jeremybenn
  else
12945
    # We need a cross tool
12946 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12947
$as_echo "pre-installed" >&6; }
12948 24 jeremybenn
  fi
12949
fi
12950
 
12951 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
12952
$as_echo_n "checking where to find the target objdump... " >&6; }
12953 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12954
  if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12955
    # We already found the complete path
12956
    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12957 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12958
$as_echo "pre-installed in $ac_dir" >&6; }
12959 24 jeremybenn
  else
12960
    # Canadian cross, just use what we found
12961 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12962
$as_echo "pre-installed" >&6; }
12963 24 jeremybenn
  fi
12964
else
12965
  ok=yes
12966
  case " ${configdirs} " in
12967
    *" binutils "*) ;;
12968
    *) ok=no ;;
12969
  esac
12970
 
12971
  if test $ok = yes; then
12972
    # An in-tree tool is available and we can use it
12973
    OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
12974 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12975
$as_echo "just compiled" >&6; }
12976 24 jeremybenn
  elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12977
    # We already found the complete path
12978
    ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12979 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12980
$as_echo "pre-installed in $ac_dir" >&6; }
12981 24 jeremybenn
  elif test "x$target" = "x$host"; then
12982
    # We can use an host tool
12983
    OBJDUMP_FOR_TARGET='$(OBJDUMP)'
12984 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12985
$as_echo "host tool" >&6; }
12986 24 jeremybenn
  else
12987
    # We need a cross tool
12988 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12989
$as_echo "pre-installed" >&6; }
12990 24 jeremybenn
  fi
12991
fi
12992
 
12993 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
12994
$as_echo_n "checking where to find the target ranlib... " >&6; }
12995 24 jeremybenn
if test "x${build}" != "x${host}" ; then
12996
  if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12997
    # We already found the complete path
12998
    ac_dir=`dirname $RANLIB_FOR_TARGET`
12999 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13000
$as_echo "pre-installed in $ac_dir" >&6; }
13001 24 jeremybenn
  else
13002
    # Canadian cross, just use what we found
13003 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13004
$as_echo "pre-installed" >&6; }
13005 24 jeremybenn
  fi
13006
else
13007
  ok=yes
13008
  case " ${configdirs} " in
13009
    *" binutils "*) ;;
13010
    *) ok=no ;;
13011
  esac
13012
 
13013
  if test $ok = yes; then
13014
    # An in-tree tool is available and we can use it
13015
    RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13016 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13017
$as_echo "just compiled" >&6; }
13018 24 jeremybenn
  elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13019
    # We already found the complete path
13020
    ac_dir=`dirname $RANLIB_FOR_TARGET`
13021 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13022
$as_echo "pre-installed in $ac_dir" >&6; }
13023 24 jeremybenn
  elif test "x$target" = "x$host"; then
13024
    # We can use an host tool
13025
    RANLIB_FOR_TARGET='$(RANLIB)'
13026 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13027
$as_echo "host tool" >&6; }
13028 24 jeremybenn
  else
13029
    # We need a cross tool
13030 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13031
$as_echo "pre-installed" >&6; }
13032 24 jeremybenn
  fi
13033
fi
13034
 
13035 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13036
$as_echo_n "checking where to find the target strip... " >&6; }
13037 24 jeremybenn
if test "x${build}" != "x${host}" ; then
13038
  if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13039
    # We already found the complete path
13040
    ac_dir=`dirname $STRIP_FOR_TARGET`
13041 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13042
$as_echo "pre-installed in $ac_dir" >&6; }
13043 24 jeremybenn
  else
13044
    # Canadian cross, just use what we found
13045 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13046
$as_echo "pre-installed" >&6; }
13047 24 jeremybenn
  fi
13048
else
13049
  ok=yes
13050
  case " ${configdirs} " in
13051
    *" binutils "*) ;;
13052
    *) ok=no ;;
13053
  esac
13054
 
13055
  if test $ok = yes; then
13056
    # An in-tree tool is available and we can use it
13057
    STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
13058 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13059
$as_echo "just compiled" >&6; }
13060 24 jeremybenn
  elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13061
    # We already found the complete path
13062
    ac_dir=`dirname $STRIP_FOR_TARGET`
13063 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13064
$as_echo "pre-installed in $ac_dir" >&6; }
13065 24 jeremybenn
  elif test "x$target" = "x$host"; then
13066
    # We can use an host tool
13067
    STRIP_FOR_TARGET='$(STRIP)'
13068 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13069
$as_echo "host tool" >&6; }
13070 24 jeremybenn
  else
13071
    # We need a cross tool
13072 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13073
$as_echo "pre-installed" >&6; }
13074 24 jeremybenn
  fi
13075
fi
13076
 
13077 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13078
$as_echo_n "checking where to find the target windres... " >&6; }
13079 24 jeremybenn
if test "x${build}" != "x${host}" ; then
13080
  if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13081
    # We already found the complete path
13082
    ac_dir=`dirname $WINDRES_FOR_TARGET`
13083 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13084
$as_echo "pre-installed in $ac_dir" >&6; }
13085 24 jeremybenn
  else
13086
    # Canadian cross, just use what we found
13087 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13088
$as_echo "pre-installed" >&6; }
13089 24 jeremybenn
  fi
13090
else
13091
  ok=yes
13092
  case " ${configdirs} " in
13093
    *" binutils "*) ;;
13094
    *) ok=no ;;
13095
  esac
13096
 
13097
  if test $ok = yes; then
13098
    # An in-tree tool is available and we can use it
13099
    WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13100 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13101
$as_echo "just compiled" >&6; }
13102 24 jeremybenn
  elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13103
    # We already found the complete path
13104
    ac_dir=`dirname $WINDRES_FOR_TARGET`
13105 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13106
$as_echo "pre-installed in $ac_dir" >&6; }
13107 24 jeremybenn
  elif test "x$target" = "x$host"; then
13108
    # We can use an host tool
13109
    WINDRES_FOR_TARGET='$(WINDRES)'
13110 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13111
$as_echo "host tool" >&6; }
13112 24 jeremybenn
  else
13113
    # We need a cross tool
13114 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13115
$as_echo "pre-installed" >&6; }
13116 24 jeremybenn
  fi
13117
fi
13118
 
13119 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13120
$as_echo_n "checking where to find the target windmc... " >&6; }
13121 24 jeremybenn
if test "x${build}" != "x${host}" ; then
13122
  if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13123
    # We already found the complete path
13124
    ac_dir=`dirname $WINDMC_FOR_TARGET`
13125 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13126
$as_echo "pre-installed in $ac_dir" >&6; }
13127 24 jeremybenn
  else
13128
    # Canadian cross, just use what we found
13129 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13130
$as_echo "pre-installed" >&6; }
13131 24 jeremybenn
  fi
13132
else
13133
  ok=yes
13134
  case " ${configdirs} " in
13135
    *" binutils "*) ;;
13136
    *) ok=no ;;
13137
  esac
13138
 
13139
  if test $ok = yes; then
13140
    # An in-tree tool is available and we can use it
13141
    WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13142 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13143
$as_echo "just compiled" >&6; }
13144 24 jeremybenn
  elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13145
    # We already found the complete path
13146
    ac_dir=`dirname $WINDMC_FOR_TARGET`
13147 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13148
$as_echo "pre-installed in $ac_dir" >&6; }
13149 24 jeremybenn
  elif test "x$target" = "x$host"; then
13150
    # We can use an host tool
13151
    WINDMC_FOR_TARGET='$(WINDMC)'
13152 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13153
$as_echo "host tool" >&6; }
13154 24 jeremybenn
  else
13155
    # We need a cross tool
13156 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13157
$as_echo "pre-installed" >&6; }
13158 24 jeremybenn
  fi
13159
fi
13160
 
13161
 
13162
 
13163
 
13164
 
13165
# Certain tools may need extra flags.
13166
AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13167
RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13168
NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13169
 
13170
# When building target libraries, except in a Canadian cross, we use
13171
# the same toolchain as the compiler we just built.
13172
COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13173
COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13174
COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13175
if test $host = $build; then
13176
  case " $configdirs " in
13177
    *" gcc "*)
13178
      COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13179
      COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13180
      COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13181
      ;;
13182
  esac
13183
fi
13184
 
13185
 
13186
 
13187
 
13188
 
13189 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13190
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13191
# Check whether --enable-maintainer-mode was given.
13192
if test "${enable_maintainer_mode+set}" = set; then :
13193
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13194 24 jeremybenn
else
13195
  USE_MAINTAINER_MODE=no
13196 225 jeremybenn
fi
13197 24 jeremybenn
 
13198 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13199
$as_echo "$USE_MAINTAINER_MODE" >&6; }
13200 24 jeremybenn
 
13201 225 jeremybenn
 
13202 24 jeremybenn
if test "$USE_MAINTAINER_MODE" = yes; then
13203
  MAINTAINER_MODE_TRUE=
13204
  MAINTAINER_MODE_FALSE='#'
13205
else
13206
  MAINTAINER_MODE_TRUE='#'
13207
  MAINTAINER_MODE_FALSE=
13208
fi
13209
MAINT=$MAINTAINER_MODE_TRUE
13210
 
13211
# ---------------------
13212
# GCC bootstrap support
13213
# ---------------------
13214
 
13215
# Stage specific cflags for build.
13216
stage1_cflags="-g"
13217
case $build in
13218
  vax-*-*)
13219
    case ${GCC} in
13220
      yes) stage1_cflags="-g -Wa,-J" ;;
13221
      *) stage1_cflags="-g -J" ;;
13222
    esac ;;
13223
esac
13224
 
13225
# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13226 225 jeremybenn
if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13227 24 jeremybenn
  saved_CFLAGS="$CFLAGS"
13228
 
13229
  # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13230
  CFLAGS="$CFLAGS -fkeep-inline-functions"
13231 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13232
$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13233
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 24 jeremybenn
/* end confdefs.h.  */
13235
 
13236
#if (__GNUC__ < 3) \
13237
    || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13238
                          || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13239
#error http://gcc.gnu.org/PR29382
13240
#endif
13241
 
13242
int
13243
main ()
13244
{
13245
 
13246
  ;
13247
  return 0;
13248
}
13249
_ACEOF
13250 225 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
13251
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13252
$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13253 24 jeremybenn
else
13254 225 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255
$as_echo "no" >&6; }
13256 24 jeremybenn
fi
13257 225 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 24 jeremybenn
 
13259
  CFLAGS="$saved_CFLAGS"
13260
fi
13261
 
13262
 
13263
 
13264
# Enable --enable-checking in stage1 of the compiler.
13265 225 jeremybenn
# Check whether --enable-stage1-checking was given.
13266
if test "${enable_stage1_checking+set}" = set; then :
13267
  enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13268 24 jeremybenn
else
13269
  if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13270
  stage1_checking=--enable-checking=yes,types
13271
else
13272
  stage1_checking=--enable-checking=$enable_checking,types
13273
fi
13274 225 jeremybenn
fi
13275 24 jeremybenn
 
13276
 
13277 225 jeremybenn
 
13278 24 jeremybenn
# Enable -Werror in bootstrap stage2 and later.
13279 225 jeremybenn
# Check whether --enable-werror was given.
13280
if test "${enable_werror+set}" = set; then :
13281
  enableval=$enable_werror;
13282 24 jeremybenn
else
13283
  if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
13284
  enable_werror=yes
13285
else
13286
  enable_werror=no
13287
fi
13288 225 jeremybenn
fi
13289
 
13290 24 jeremybenn
case ${enable_werror} in
13291
  yes) stage2_werror_flag="--enable-werror-always" ;;
13292
  *) stage2_werror_flag="" ;;
13293
esac
13294
 
13295
 
13296 225 jeremybenn
# Specify what files to not compare during bootstrap.
13297 24 jeremybenn
 
13298 225 jeremybenn
compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13299
case "$target" in
13300
  hppa*64*-*-hpux*) ;;
13301
  hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13302
esac
13303 24 jeremybenn
 
13304
 
13305 225 jeremybenn
ac_config_files="$ac_config_files Makefile"
13306 24 jeremybenn
 
13307
cat >confcache <<\_ACEOF
13308
# This file is a shell script that caches the results of configure
13309
# tests run on this system so they can be shared between configure
13310
# scripts and configure runs, see configure's option --config-cache.
13311
# It is not useful on other systems.  If it contains results you don't
13312
# want to keep, you may remove or edit it.
13313
#
13314
# config.status only pays attention to the cache file if you give it
13315
# the --recheck option to rerun configure.
13316
#
13317
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13318
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13319
# following values.
13320
 
13321
_ACEOF
13322
 
13323
# The following way of writing the cache mishandles newlines in values,
13324
# but we know of no workaround that is simple, portable, and efficient.
13325 225 jeremybenn
# So, we kill variables containing newlines.
13326 24 jeremybenn
# Ultrix sh set writes to stderr and can't be redirected directly,
13327
# and sets the high bit in the cache file unless we assign to the vars.
13328 225 jeremybenn
(
13329
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13330
    eval ac_val=\$$ac_var
13331
    case $ac_val in #(
13332
    *${as_nl}*)
13333
      case $ac_var in #(
13334
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13335
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13336
      esac
13337
      case $ac_var in #(
13338
      _ | IFS | as_nl) ;; #(
13339
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13340
      *) { eval $ac_var=; unset $ac_var;} ;;
13341
      esac ;;
13342
    esac
13343
  done
13344
 
13345 24 jeremybenn
  (set) 2>&1 |
13346 225 jeremybenn
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13347
    *${as_nl}ac_space=\ *)
13348
      # `set' does not quote correctly, so add quotes: double-quote
13349
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13350 24 jeremybenn
      sed -n \
13351
        "s/'/'\\\\''/g;
13352
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13353 225 jeremybenn
      ;; #(
13354 24 jeremybenn
    *)
13355
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13356 225 jeremybenn
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13357 24 jeremybenn
      ;;
13358 225 jeremybenn
    esac |
13359
    sort
13360
) |
13361 24 jeremybenn
  sed '
13362 225 jeremybenn
     /^ac_cv_env_/b end
13363 24 jeremybenn
     t clear
13364 225 jeremybenn
     :clear
13365 24 jeremybenn
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13366
     t end
13367 225 jeremybenn
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13368
     :end' >>confcache
13369
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13370
  if test -w "$cache_file"; then
13371
    test "x$cache_file" != "x/dev/null" &&
13372
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13373
$as_echo "$as_me: updating cache $cache_file" >&6;}
13374 24 jeremybenn
    cat confcache >$cache_file
13375
  else
13376 225 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13377
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13378 24 jeremybenn
  fi
13379
fi
13380
rm -f confcache
13381
 
13382
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13383
# Let make expand exec_prefix.
13384
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13385
 
13386
# Transform confdefs.h into DEFS.
13387
# Protect against shell expansion while executing Makefile rules.
13388
# Protect against Makefile macro expansion.
13389
#
13390
# If the first sed substitution is executed (which looks for macros that
13391 225 jeremybenn
# take arguments), then branch to the quote section.  Otherwise,
13392 24 jeremybenn
# look for a macro that doesn't take arguments.
13393 225 jeremybenn
ac_script='
13394
:mline
13395
/\\$/{
13396
 N
13397
 s,\\\n,,
13398
 b mline
13399
}
13400 24 jeremybenn
t clear
13401 225 jeremybenn
:clear
13402
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
13403 24 jeremybenn
t quote
13404 225 jeremybenn
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
13405 24 jeremybenn
t quote
13406 225 jeremybenn
b any
13407
:quote
13408
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13409
s/\[/\\&/g
13410
s/\]/\\&/g
13411
s/\$/$$/g
13412
H
13413
:any
13414
${
13415
        g
13416
        s/^\n//
13417
        s/\n/ /g
13418
        p
13419
}
13420
'
13421
DEFS=`sed -n "$ac_script" confdefs.h`
13422 24 jeremybenn
 
13423
 
13424
ac_libobjs=
13425
ac_ltlibobjs=
13426
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13427
  # 1. Remove the extension, and $U if already installed.
13428 225 jeremybenn
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13429
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13430
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13431
  #    will be set to the directory where LIBOBJS objects are built.
13432
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13433
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13434 24 jeremybenn
done
13435
LIBOBJS=$ac_libobjs
13436
 
13437
LTLIBOBJS=$ac_ltlibobjs
13438
 
13439
 
13440
 
13441
: ${CONFIG_STATUS=./config.status}
13442 225 jeremybenn
ac_write_fail=0
13443 24 jeremybenn
ac_clean_files_save=$ac_clean_files
13444
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13445 225 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13446
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13447
as_write_fail=0
13448
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13449 24 jeremybenn
#! $SHELL
13450
# Generated by $as_me.
13451
# Run this file to recreate the current configuration.
13452
# Compiler output produced by configure, useful for debugging
13453
# configure, is in config.log if it exists.
13454
 
13455
debug=false
13456
ac_cs_recheck=false
13457
ac_cs_silent=false
13458 225 jeremybenn
 
13459 24 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
13460 225 jeremybenn
export SHELL
13461
_ASEOF
13462
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13463
## -------------------- ##
13464
## M4sh Initialization. ##
13465
## -------------------- ##
13466 24 jeremybenn
 
13467 225 jeremybenn
# Be more Bourne compatible
13468
DUALCASE=1; export DUALCASE # for MKS sh
13469
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13470 24 jeremybenn
  emulate sh
13471
  NULLCMD=:
13472 225 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13473 24 jeremybenn
  # is contrary to our usage.  Disable this feature.
13474
  alias -g '${1+"$@"}'='"$@"'
13475 225 jeremybenn
  setopt NO_GLOB_SUBST
13476
else
13477
  case `(set -o) 2>/dev/null` in #(
13478
  *posix*) :
13479
    set -o posix ;; #(
13480
  *) :
13481
     ;;
13482
esac
13483 24 jeremybenn
fi
13484
 
13485 225 jeremybenn
 
13486
as_nl='
13487
'
13488
export as_nl
13489
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13490
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13491
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13492
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13493
# Prefer a ksh shell builtin over an external printf program on Solaris,
13494
# but without wasting forks for bash or zsh.
13495
if test -z "$BASH_VERSION$ZSH_VERSION" \
13496
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13497
  as_echo='print -r --'
13498
  as_echo_n='print -rn --'
13499
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13500
  as_echo='printf %s\n'
13501
  as_echo_n='printf %s'
13502 24 jeremybenn
else
13503 225 jeremybenn
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13504
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13505
    as_echo_n='/usr/ucb/echo -n'
13506
  else
13507
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13508
    as_echo_n_body='eval
13509
      arg=$1;
13510
      case $arg in #(
13511
      *"$as_nl"*)
13512
        expr "X$arg" : "X\\(.*\\)$as_nl";
13513
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13514
      esac;
13515
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13516
    '
13517
    export as_echo_n_body
13518
    as_echo_n='sh -c $as_echo_n_body as_echo'
13519
  fi
13520
  export as_echo_body
13521
  as_echo='sh -c $as_echo_body as_echo'
13522 24 jeremybenn
fi
13523
 
13524 225 jeremybenn
# The user is always right.
13525
if test "${PATH_SEPARATOR+set}" != set; then
13526
  PATH_SEPARATOR=:
13527
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13528
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13529
      PATH_SEPARATOR=';'
13530
  }
13531
fi
13532 24 jeremybenn
 
13533 225 jeremybenn
 
13534
# IFS
13535
# We need space, tab and new line, in precisely that order.  Quoting is
13536
# there to prevent editors from complaining about space-tab.
13537
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13538
# splitting by setting IFS to empty value.)
13539
IFS=" ""        $as_nl"
13540
 
13541
# Find who we are.  Look in the path if we contain no directory separator.
13542
case $0 in #((
13543
  *[\\/]* ) as_myself=$0 ;;
13544
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545
for as_dir in $PATH
13546
do
13547
  IFS=$as_save_IFS
13548
  test -z "$as_dir" && as_dir=.
13549
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13550
  done
13551
IFS=$as_save_IFS
13552
 
13553
     ;;
13554
esac
13555
# We did not find ourselves, most probably we were run as `sh COMMAND'
13556
# in which case we are not to be found in the path.
13557
if test "x$as_myself" = x; then
13558
  as_myself=$0
13559
fi
13560
if test ! -f "$as_myself"; then
13561
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13562
  exit 1
13563
fi
13564
 
13565
# Unset variables that we do not need and which cause bugs (e.g. in
13566
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13567
# suppresses any "Segmentation fault" message there.  '((' could
13568
# trigger a bug in pdksh 5.2.14.
13569
for as_var in BASH_ENV ENV MAIL MAILPATH
13570
do eval test x\${$as_var+set} = xset \
13571
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13572
done
13573 24 jeremybenn
PS1='$ '
13574
PS2='> '
13575
PS4='+ '
13576
 
13577
# NLS nuisances.
13578 225 jeremybenn
LC_ALL=C
13579
export LC_ALL
13580
LANGUAGE=C
13581
export LANGUAGE
13582
 
13583
# CDPATH.
13584
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13585
 
13586
 
13587
# as_fn_error ERROR [LINENO LOG_FD]
13588
# ---------------------------------
13589
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13590
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13591
# script with status $?, using 1 if that was 0.
13592
as_fn_error ()
13593
{
13594
  as_status=$?; test $as_status -eq 0 && as_status=1
13595
  if test "$3"; then
13596
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13597
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13598 24 jeremybenn
  fi
13599 225 jeremybenn
  $as_echo "$as_me: error: $1" >&2
13600
  as_fn_exit $as_status
13601
} # as_fn_error
13602 24 jeremybenn
 
13603 225 jeremybenn
 
13604
# as_fn_set_status STATUS
13605
# -----------------------
13606
# Set $? to STATUS, without forking.
13607
as_fn_set_status ()
13608
{
13609
  return $1
13610
} # as_fn_set_status
13611
 
13612
# as_fn_exit STATUS
13613
# -----------------
13614
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13615
as_fn_exit ()
13616
{
13617
  set +e
13618
  as_fn_set_status $1
13619
  exit $1
13620
} # as_fn_exit
13621
 
13622
# as_fn_unset VAR
13623
# ---------------
13624
# Portably unset VAR.
13625
as_fn_unset ()
13626
{
13627
  { eval $1=; unset $1;}
13628
}
13629
as_unset=as_fn_unset
13630
# as_fn_append VAR VALUE
13631
# ----------------------
13632
# Append the text in VALUE to the end of the definition contained in VAR. Take
13633
# advantage of any shell optimizations that allow amortized linear growth over
13634
# repeated appends, instead of the typical quadratic growth present in naive
13635
# implementations.
13636
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13637
  eval 'as_fn_append ()
13638
  {
13639
    eval $1+=\$2
13640
  }'
13641
else
13642
  as_fn_append ()
13643
  {
13644
    eval $1=\$$1\$2
13645
  }
13646
fi # as_fn_append
13647
 
13648
# as_fn_arith ARG...
13649
# ------------------
13650
# Perform arithmetic evaluation on the ARGs, and store the result in the
13651
# global $as_val. Take advantage of shells that can avoid forks. The arguments
13652
# must be portable across $(()) and expr.
13653
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13654
  eval 'as_fn_arith ()
13655
  {
13656
    as_val=$(( $* ))
13657
  }'
13658
else
13659
  as_fn_arith ()
13660
  {
13661
    as_val=`expr "$@" || test $? -eq 1`
13662
  }
13663
fi # as_fn_arith
13664
 
13665
 
13666
if expr a : '\(a\)' >/dev/null 2>&1 &&
13667
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13668 24 jeremybenn
  as_expr=expr
13669
else
13670
  as_expr=false
13671
fi
13672
 
13673 225 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13674 24 jeremybenn
  as_basename=basename
13675
else
13676
  as_basename=false
13677
fi
13678
 
13679 225 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13680
  as_dirname=dirname
13681
else
13682
  as_dirname=false
13683
fi
13684 24 jeremybenn
 
13685 225 jeremybenn
as_me=`$as_basename -- "$0" ||
13686 24 jeremybenn
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13687
         X"$0" : 'X\(//\)$' \| \
13688 225 jeremybenn
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13689
$as_echo X/"$0" |
13690
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13691
            s//\1/
13692
            q
13693
          }
13694
          /^X\/\(\/\/\)$/{
13695
            s//\1/
13696
            q
13697
          }
13698
          /^X\/\(\/\).*/{
13699
            s//\1/
13700
            q
13701
          }
13702
          s/.*/./; q'`
13703 24 jeremybenn
 
13704
# Avoid depending upon Character Ranges.
13705
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13706
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13707
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13708
as_cr_digits='0123456789'
13709
as_cr_alnum=$as_cr_Letters$as_cr_digits
13710
 
13711 225 jeremybenn
ECHO_C= ECHO_N= ECHO_T=
13712
case `echo -n x` in #(((((
13713
-n*)
13714
  case `echo 'xy\c'` in
13715
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13716
  xy)  ECHO_C='\c';;
13717
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13718
       ECHO_T=' ';;
13719
  esac;;
13720
*)
13721
  ECHO_N='-n';;
13722 24 jeremybenn
esac
13723
 
13724 225 jeremybenn
rm -f conf$$ conf$$.exe conf$$.file
13725
if test -d conf$$.dir; then
13726
  rm -f conf$$.dir/conf$$.file
13727 24 jeremybenn
else
13728 225 jeremybenn
  rm -f conf$$.dir
13729
  mkdir conf$$.dir 2>/dev/null
13730 24 jeremybenn
fi
13731 225 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
13732
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13733
    as_ln_s='ln -s'
13734
    # ... but there are two gotchas:
13735
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13736
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13737
    # In both cases, we have to default to `cp -p'.
13738
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13739
      as_ln_s='cp -p'
13740
  elif ln conf$$.file conf$$ 2>/dev/null; then
13741
    as_ln_s=ln
13742
  else
13743 24 jeremybenn
    as_ln_s='cp -p'
13744
  fi
13745
else
13746
  as_ln_s='cp -p'
13747
fi
13748 225 jeremybenn
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13749
rmdir conf$$.dir 2>/dev/null
13750 24 jeremybenn
 
13751 225 jeremybenn
 
13752
# as_fn_mkdir_p
13753
# -------------
13754
# Create "$as_dir" as a directory, including parents if necessary.
13755
as_fn_mkdir_p ()
13756
{
13757
 
13758
  case $as_dir in #(
13759
  -*) as_dir=./$as_dir;;
13760
  esac
13761
  test -d "$as_dir" || eval $as_mkdir_p || {
13762
    as_dirs=
13763
    while :; do
13764
      case $as_dir in #(
13765
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13766
      *) as_qdir=$as_dir;;
13767
      esac
13768
      as_dirs="'$as_qdir' $as_dirs"
13769
      as_dir=`$as_dirname -- "$as_dir" ||
13770
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13771
         X"$as_dir" : 'X\(//\)[^/]' \| \
13772
         X"$as_dir" : 'X\(//\)$' \| \
13773
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13774
$as_echo X"$as_dir" |
13775
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13776
            s//\1/
13777
            q
13778
          }
13779
          /^X\(\/\/\)[^/].*/{
13780
            s//\1/
13781
            q
13782
          }
13783
          /^X\(\/\/\)$/{
13784
            s//\1/
13785
            q
13786
          }
13787
          /^X\(\/\).*/{
13788
            s//\1/
13789
            q
13790
          }
13791
          s/.*/./; q'`
13792
      test -d "$as_dir" && break
13793
    done
13794
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13795
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13796
 
13797
 
13798
} # as_fn_mkdir_p
13799 24 jeremybenn
if mkdir -p . 2>/dev/null; then
13800 225 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
13801 24 jeremybenn
else
13802
  test -d ./-p && rmdir ./-p
13803
  as_mkdir_p=false
13804
fi
13805
 
13806 225 jeremybenn
if test -x / >/dev/null 2>&1; then
13807
  as_test_x='test -x'
13808
else
13809
  if ls -dL / >/dev/null 2>&1; then
13810
    as_ls_L_option=L
13811
  else
13812
    as_ls_L_option=
13813
  fi
13814
  as_test_x='
13815
    eval sh -c '\''
13816
      if test -d "$1"; then
13817
        test -d "$1/.";
13818
      else
13819
        case $1 in #(
13820
        -*)set "./$1";;
13821
        esac;
13822
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13823
        ???[sx]*):;;*)false;;esac;fi
13824
    '\'' sh
13825
  '
13826
fi
13827
as_executable_p=$as_test_x
13828 24 jeremybenn
 
13829
# Sed expression to map a string onto a valid CPP name.
13830
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13831
 
13832
# Sed expression to map a string onto a valid variable name.
13833
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13834
 
13835
 
13836
exec 6>&1
13837 225 jeremybenn
## ----------------------------------- ##
13838
## Main body of $CONFIG_STATUS script. ##
13839
## ----------------------------------- ##
13840
_ASEOF
13841
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13842 24 jeremybenn
 
13843 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13844
# Save the log message, to keep $0 and so on meaningful, and to
13845 24 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
13846 225 jeremybenn
# values after options handling.
13847
ac_log="
13848 24 jeremybenn
This file was extended by $as_me, which was
13849 225 jeremybenn
generated by GNU Autoconf 2.64.  Invocation command line was
13850 24 jeremybenn
 
13851
  CONFIG_FILES    = $CONFIG_FILES
13852
  CONFIG_HEADERS  = $CONFIG_HEADERS
13853
  CONFIG_LINKS    = $CONFIG_LINKS
13854
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13855
  $ $0 $@
13856
 
13857 225 jeremybenn
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13858
"
13859
 
13860 24 jeremybenn
_ACEOF
13861
 
13862 225 jeremybenn
case $ac_config_files in *"
13863
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13864
esac
13865 24 jeremybenn
 
13866
 
13867
 
13868 225 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13869
# Files that config.status was made for.
13870
config_files="$ac_config_files"
13871 24 jeremybenn
 
13872 225 jeremybenn
_ACEOF
13873 24 jeremybenn
 
13874 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13875 24 jeremybenn
ac_cs_usage="\
13876 225 jeremybenn
\`$as_me' instantiates files and other configuration actions
13877
from templates according to the current configuration.  Unless the files
13878
and actions are specified as TAGs, all are instantiated by default.
13879 24 jeremybenn
 
13880 225 jeremybenn
Usage: $0 [OPTION]... [TAG]...
13881 24 jeremybenn
 
13882
  -h, --help       print this help, then exit
13883 225 jeremybenn
  -V, --version    print version number and configuration settings, then exit
13884
  -q, --quiet, --silent
13885
                   do not print progress messages
13886 24 jeremybenn
  -d, --debug      don't remove temporary files
13887
      --recheck    update $as_me by reconfiguring in the same conditions
13888 225 jeremybenn
      --file=FILE[:TEMPLATE]
13889
                   instantiate the configuration file FILE
13890 24 jeremybenn
 
13891
Configuration files:
13892
$config_files
13893
 
13894 225 jeremybenn
Report bugs to the package provider."
13895
 
13896 24 jeremybenn
_ACEOF
13897 225 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13898 24 jeremybenn
ac_cs_version="\\
13899
config.status
13900 225 jeremybenn
configured by $0, generated by GNU Autoconf 2.64,
13901
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13902 24 jeremybenn
 
13903 225 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
13904 24 jeremybenn
This config.status script is free software; the Free Software Foundation
13905
gives unlimited permission to copy, distribute and modify it."
13906 225 jeremybenn
 
13907
ac_pwd='$ac_pwd'
13908
srcdir='$srcdir'
13909
INSTALL='$INSTALL'
13910
AWK='$AWK'
13911
test -n "\$AWK" || AWK=awk
13912 24 jeremybenn
_ACEOF
13913
 
13914 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13915
# The default lists apply if the user does not specify any file.
13916 24 jeremybenn
ac_need_defaults=:
13917
while test $# != 0
13918
do
13919
  case $1 in
13920
  --*=*)
13921 225 jeremybenn
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13922
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13923 24 jeremybenn
    ac_shift=:
13924
    ;;
13925 225 jeremybenn
  *)
13926 24 jeremybenn
    ac_option=$1
13927
    ac_optarg=$2
13928
    ac_shift=shift
13929
    ;;
13930
  esac
13931
 
13932
  case $ac_option in
13933
  # Handling of the options.
13934
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13935
    ac_cs_recheck=: ;;
13936 225 jeremybenn
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13937
    $as_echo "$ac_cs_version"; exit ;;
13938
  --debug | --debu | --deb | --de | --d | -d )
13939 24 jeremybenn
    debug=: ;;
13940
  --file | --fil | --fi | --f )
13941
    $ac_shift
13942 225 jeremybenn
    case $ac_optarg in
13943
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13944
    esac
13945
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13946 24 jeremybenn
    ac_need_defaults=false;;
13947 225 jeremybenn
  --he | --h |  --help | --hel | -h )
13948
    $as_echo "$ac_cs_usage"; exit ;;
13949 24 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13950
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13951
    ac_cs_silent=: ;;
13952
 
13953
  # This is an error.
13954 225 jeremybenn
  -*) as_fn_error "unrecognized option: \`$1'
13955
Try \`$0 --help' for more information." ;;
13956 24 jeremybenn
 
13957 225 jeremybenn
  *) as_fn_append ac_config_targets " $1"
13958
     ac_need_defaults=false ;;
13959 24 jeremybenn
 
13960
  esac
13961
  shift
13962
done
13963
 
13964
ac_configure_extra_args=
13965
 
13966
if $ac_cs_silent; then
13967
  exec 6>/dev/null
13968
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13969
fi
13970
 
13971
_ACEOF
13972 225 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13973 24 jeremybenn
if \$ac_cs_recheck; then
13974 225 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13975
  shift
13976
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13977
  CONFIG_SHELL='$SHELL'
13978
  export CONFIG_SHELL
13979
  exec "\$@"
13980 24 jeremybenn
fi
13981
 
13982
_ACEOF
13983 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13984
exec 5>>config.log
13985
{
13986
  echo
13987
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13988
## Running $as_me. ##
13989
_ASBOX
13990
  $as_echo "$ac_log"
13991
} >&5
13992 24 jeremybenn
 
13993 225 jeremybenn
_ACEOF
13994
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13995
_ACEOF
13996 24 jeremybenn
 
13997 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13998 24 jeremybenn
 
13999 225 jeremybenn
# Handling of arguments.
14000 24 jeremybenn
for ac_config_target in $ac_config_targets
14001
do
14002 225 jeremybenn
  case $ac_config_target in
14003
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14004
 
14005
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14006 24 jeremybenn
  esac
14007
done
14008
 
14009 225 jeremybenn
 
14010 24 jeremybenn
# If the user did not use the arguments to specify the items to instantiate,
14011
# then the envvar interface is used.  Set only those that are not.
14012
# We use the long form for the default assignment because of an extremely
14013
# bizarre bug on SunOS 4.1.3.
14014
if $ac_need_defaults; then
14015
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14016
fi
14017
 
14018
# Have a temporary directory for convenience.  Make it in the build tree
14019 225 jeremybenn
# simply because there is no reason against having it here, and in addition,
14020 24 jeremybenn
# creating and moving files from /tmp can sometimes cause problems.
14021 225 jeremybenn
# Hook for its removal unless debugging.
14022
# Note that there is a small window in which the directory will not be cleaned:
14023
# after its creation but before its name has been assigned to `$tmp'.
14024 24 jeremybenn
$debug ||
14025
{
14026 225 jeremybenn
  tmp=
14027
  trap 'exit_status=$?
14028
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14029
' 0
14030
  trap 'as_fn_exit 1' 1 2 13 15
14031 24 jeremybenn
}
14032
# Create a (secure) tmp directory for tmp files.
14033
 
14034
{
14035 225 jeremybenn
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14036 24 jeremybenn
  test -n "$tmp" && test -d "$tmp"
14037
}  ||
14038
{
14039 225 jeremybenn
  tmp=./conf$$-$RANDOM
14040
  (umask 077 && mkdir "$tmp")
14041
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14042 24 jeremybenn
 
14043 225 jeremybenn
# Set up the scripts for CONFIG_FILES section.
14044
# No need to generate them if there are no CONFIG_FILES.
14045
# This happens for instance with `./config.status config.h'.
14046
if test -n "$CONFIG_FILES"; then
14047
 
14048
if $AWK 'BEGIN { getline <"/dev/null" }' /dev/null; then
14049
  ac_cs_awk_getline=:
14050
  ac_cs_awk_pipe_init=
14051
  ac_cs_awk_read_file='
14052
      while ((getline aline < (F[key])) > 0)
14053
        print(aline)
14054
      close(F[key])'
14055
  ac_cs_awk_pipe_fini=
14056
else
14057
  ac_cs_awk_getline=false
14058
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14059
  ac_cs_awk_read_file='
14060
      print "|#_!!_#|"
14061
      print "cat " F[key] " &&"
14062
      '$ac_cs_awk_pipe_init
14063
  # The final `:' finishes the AND list.
14064
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14065
fi
14066
ac_cr=`echo X | tr X '\015'`
14067
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14068
# But we know of no other shell where ac_cr would be empty at this
14069
# point, so we can use a bashism as a fallback.
14070
if test "x$ac_cr" = x; then
14071
  eval ac_cr=\$\'\\r\'
14072
fi
14073
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
14074
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14075
  ac_cs_awk_cr='\r'
14076
else
14077
  ac_cs_awk_cr=$ac_cr
14078
fi
14079
 
14080
echo 'BEGIN {' >"$tmp/subs1.awk" &&
14081 24 jeremybenn
_ACEOF
14082
 
14083 225 jeremybenn
# Create commands to substitute file output variables.
14084
{
14085
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14086
  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14087
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14088
  echo "_ACAWK" &&
14089
  echo "_ACEOF"
14090
} >conf$$files.sh &&
14091
. ./conf$$files.sh ||
14092
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14093
rm -f conf$$files.sh
14094 24 jeremybenn
 
14095 225 jeremybenn
{
14096
  echo "cat >conf$$subs.awk <<_ACEOF" &&
14097
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14098
  echo "_ACEOF"
14099
} >conf$$subs.sh ||
14100
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14101
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14102
ac_delim='%!_!# '
14103
for ac_last_try in false false false false false :; do
14104
  . ./conf$$subs.sh ||
14105
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14106 24 jeremybenn
 
14107 225 jeremybenn
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14108
  if test $ac_delim_n = $ac_delim_num; then
14109
    break
14110
  elif $ac_last_try; then
14111
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14112
  else
14113
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14114
  fi
14115
done
14116
rm -f conf$$subs.sh
14117 24 jeremybenn
 
14118 225 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14119
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14120 24 jeremybenn
_ACEOF
14121 225 jeremybenn
sed -n '
14122
h
14123
s/^/S["/; s/!.*/"]=/
14124
p
14125
g
14126
s/^[^!]*!//
14127
:repl
14128
t repl
14129
s/'"$ac_delim"'$//
14130
t delim
14131
:nl
14132
h
14133
s/\(.\{148\}\).*/\1/
14134
t more1
14135
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14136
p
14137
n
14138
b repl
14139
:more1
14140
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14141
p
14142
g
14143
s/.\{148\}//
14144
t nl
14145
:delim
14146
h
14147
s/\(.\{148\}\).*/\1/
14148
t more2
14149
s/["\\]/\\&/g; s/^/"/; s/$/"/
14150
p
14151
b
14152
:more2
14153
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14154
p
14155
g
14156
s/.\{148\}//
14157
t delim
14158
' 
14159
/^[^""]/{
14160
  N
14161
  s/\n//
14162
}
14163
' >>$CONFIG_STATUS || ac_write_fail=1
14164
rm -f conf$$subs.awk
14165
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14166
_ACAWK
14167
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14168
  for (key in S) S_is_set[key] = 1
14169
  FS = ""
14170
  \$ac_cs_awk_pipe_init
14171
}
14172
{
14173
  line = $ 0
14174
  nfields = split(line, field, "@")
14175
  substed = 0
14176
  len = length(field[1])
14177
  for (i = 2; i < nfields; i++) {
14178
    key = field[i]
14179
    keylen = length(key)
14180
    if (S_is_set[key]) {
14181
      value = S[key]
14182
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14183
      len += length(value) + length(field[++i])
14184
      substed = 1
14185
    } else
14186
      len += 1 + keylen
14187
  }
14188
  if (nfields == 3 && !substed) {
14189
    key = field[2]
14190
    if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14191
      \$ac_cs_awk_read_file
14192
      next
14193
    }
14194
  }
14195
  print line
14196
}
14197
\$ac_cs_awk_pipe_fini
14198
_ACAWK
14199
_ACEOF
14200
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14201
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14202
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14203
else
14204
  cat
14205
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14206
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14207
_ACEOF
14208 24 jeremybenn
 
14209 225 jeremybenn
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14210
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14211
# trailing colons and then remove the whole line if VPATH becomes empty
14212
# (actually we leave an empty line to preserve line numbers).
14213
if test "x$srcdir" = x.; then
14214
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14215
s/:*\$(srcdir):*/:/
14216
s/:*\${srcdir}:*/:/
14217
s/:*@srcdir@:*/:/
14218
s/^\([^=]*=[     ]*\):*/\1/
14219
s/:*$//
14220
s/^[^=]*=[       ]*$//
14221
}'
14222
fi
14223
 
14224
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14225 24 jeremybenn
fi # test -n "$CONFIG_FILES"
14226
 
14227 225 jeremybenn
 
14228
eval set X "  :F $CONFIG_FILES      "
14229
shift
14230
for ac_tag
14231
do
14232
  case $ac_tag in
14233
  :[FHLC]) ac_mode=$ac_tag; continue;;
14234 24 jeremybenn
  esac
14235 225 jeremybenn
  case $ac_mode$ac_tag in
14236
  :[FHL]*:*);;
14237
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14238
  :[FH]-) ac_tag=-:-;;
14239
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14240
  esac
14241
  ac_save_IFS=$IFS
14242
  IFS=:
14243
  set x $ac_tag
14244
  IFS=$ac_save_IFS
14245
  shift
14246
  ac_file=$1
14247
  shift
14248 24 jeremybenn
 
14249 225 jeremybenn
  case $ac_mode in
14250
  :L) ac_source=$1;;
14251
  :[FH])
14252
    ac_file_inputs=
14253
    for ac_f
14254
    do
14255
      case $ac_f in
14256
      -) ac_f="$tmp/stdin";;
14257
      *) # Look for the file first in the build tree, then in the source tree
14258
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14259
         # because $ac_f cannot contain `:'.
14260
         test -f "$ac_f" ||
14261
           case $ac_f in
14262
           [\\/$]*) false;;
14263
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14264
           esac ||
14265
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14266
      esac
14267
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14268
      as_fn_append ac_file_inputs " '$ac_f'"
14269
    done
14270
 
14271
    # Let's still pretend it is `configure' which instantiates (i.e., don't
14272
    # use $as_me), people would be surprised to read:
14273
    #    /* config.h.  Generated by config.status.  */
14274
    configure_input='Generated from '`
14275
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14276
        `' by configure.'
14277
    if test x"$ac_file" != x-; then
14278
      configure_input="$ac_file.  $configure_input"
14279
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14280
$as_echo "$as_me: creating $ac_file" >&6;}
14281
    fi
14282
    # Neutralize special characters interpreted by sed in replacement strings.
14283
    case $configure_input in #(
14284
    *\&* | *\|* | *\\* )
14285
       ac_sed_conf_input=`$as_echo "$configure_input" |
14286
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14287
    *) ac_sed_conf_input=$configure_input;;
14288
    esac
14289
 
14290
    case $ac_tag in
14291
    *:-:* | *:-) cat >"$tmp/stdin" \
14292
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14293
    esac
14294
    ;;
14295
  esac
14296
 
14297
  ac_dir=`$as_dirname -- "$ac_file" ||
14298 24 jeremybenn
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14299
         X"$ac_file" : 'X\(//\)[^/]' \| \
14300
         X"$ac_file" : 'X\(//\)$' \| \
14301 225 jeremybenn
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14302
$as_echo X"$ac_file" |
14303
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14304
            s//\1/
14305
            q
14306
          }
14307
          /^X\(\/\/\)[^/].*/{
14308
            s//\1/
14309
            q
14310
          }
14311
          /^X\(\/\/\)$/{
14312
            s//\1/
14313
            q
14314
          }
14315
          /^X\(\/\).*/{
14316
            s//\1/
14317
            q
14318
          }
14319
          s/.*/./; q'`
14320
  as_dir="$ac_dir"; as_fn_mkdir_p
14321 24 jeremybenn
  ac_builddir=.
14322
 
14323 225 jeremybenn
case "$ac_dir" in
14324
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14325
*)
14326
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14327
  # A ".." for each directory in $ac_dir_suffix.
14328
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14329
  case $ac_top_builddir_sub in
14330
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14331
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14332
  esac ;;
14333
esac
14334
ac_abs_top_builddir=$ac_pwd
14335
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14336
# for backward compatibility:
14337
ac_top_builddir=$ac_top_build_prefix
14338 24 jeremybenn
 
14339
case $srcdir in
14340 225 jeremybenn
  .)  # We are building in place.
14341 24 jeremybenn
    ac_srcdir=.
14342 225 jeremybenn
    ac_top_srcdir=$ac_top_builddir_sub
14343
    ac_abs_top_srcdir=$ac_pwd ;;
14344
  [\\/]* | ?:[\\/]* )  # Absolute name.
14345 24 jeremybenn
    ac_srcdir=$srcdir$ac_dir_suffix;
14346 225 jeremybenn
    ac_top_srcdir=$srcdir
14347
    ac_abs_top_srcdir=$srcdir ;;
14348
  *) # Relative name.
14349
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14350
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14351
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14352 24 jeremybenn
esac
14353 225 jeremybenn
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14354 24 jeremybenn
 
14355
 
14356 225 jeremybenn
  case $ac_mode in
14357
  :F)
14358
  #
14359
  # CONFIG_FILE
14360
  #
14361 24 jeremybenn
 
14362
  case $INSTALL in
14363
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14364 225 jeremybenn
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14365 24 jeremybenn
  esac
14366 225 jeremybenn
_ACEOF
14367 24 jeremybenn
 
14368 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14369
# If the template does not know about datarootdir, expand it.
14370
# FIXME: This hack should be removed a few years after 2.60.
14371
ac_datarootdir_hack=; ac_datarootdir_seen=
14372
ac_sed_dataroot='
14373
/datarootdir/ {
14374
  p
14375
  q
14376
}
14377
/@datadir@/p
14378
/@docdir@/p
14379
/@infodir@/p
14380
/@localedir@/p
14381
/@mandir@/p'
14382
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14383
*datarootdir*) ac_datarootdir_seen=yes;;
14384
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14385
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14386
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14387
_ACEOF
14388
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14389
  ac_datarootdir_hack='
14390
  s&@datadir@&$datadir&g
14391
  s&@docdir@&$docdir&g
14392
  s&@infodir@&$infodir&g
14393
  s&@localedir@&$localedir&g
14394
  s&@mandir@&$mandir&g
14395
  s&\\\${datarootdir}&$datarootdir&g' ;;
14396
esac
14397
_ACEOF
14398 24 jeremybenn
 
14399 225 jeremybenn
# Neutralize VPATH when `$srcdir' = `.'.
14400
# Shell code in configure.ac might set extrasub.
14401
# FIXME: do we really want to maintain this feature?
14402
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14403
ac_sed_extra="$ac_vpsub
14404 24 jeremybenn
$extrasub
14405
_ACEOF
14406 225 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14407 24 jeremybenn
:t
14408
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14409 225 jeremybenn
s|@configure_input@|$ac_sed_conf_input|;t t
14410
s&@top_builddir@&$ac_top_builddir_sub&;t t
14411
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14412
s&@srcdir@&$ac_srcdir&;t t
14413
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14414
s&@top_srcdir@&$ac_top_srcdir&;t t
14415
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14416
s&@builddir@&$ac_builddir&;t t
14417
s&@abs_builddir@&$ac_abs_builddir&;t t
14418
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14419
s&@INSTALL@&$ac_INSTALL&;t t
14420
$ac_datarootdir_hack
14421
"
14422
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14423
if $ac_cs_awk_getline; then
14424
  $AWK -f "$tmp/subs.awk"
14425
else
14426
  $AWK -f "$tmp/subs.awk" | $SHELL
14427
fi >$tmp/out \
14428
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14429 24 jeremybenn
 
14430 225 jeremybenn
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14431
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14432
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14433
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14434
which seems to be undefined.  Please make sure it is defined." >&5
14435
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14436
which seems to be undefined.  Please make sure it is defined." >&2;}
14437 24 jeremybenn
 
14438 225 jeremybenn
  rm -f "$tmp/stdin"
14439
  case $ac_file in
14440
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14441
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14442
  esac \
14443
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14444
 ;;
14445 24 jeremybenn
 
14446 225 jeremybenn
 
14447
 
14448
  esac
14449
 
14450
done # for ac_tag
14451
 
14452
 
14453
as_fn_exit 0
14454 24 jeremybenn
_ACEOF
14455
ac_clean_files=$ac_clean_files_save
14456
 
14457 225 jeremybenn
test $ac_write_fail = 0 ||
14458
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14459 24 jeremybenn
 
14460 225 jeremybenn
 
14461 24 jeremybenn
# configure is writing to config.log, and then calls config.status.
14462
# config.status does its own redirection, appending to config.log.
14463
# Unfortunately, on DOS this fails, as config.log is still kept open
14464
# by configure, so config.status won't be able to write to it; its
14465
# output is simply discarded.  So we exec the FD to /dev/null,
14466
# effectively closing config.log, so it can be properly (re)opened and
14467
# appended to by config.status.  When coming back to configure, we
14468
# need to make the FD available again.
14469
if test "$no_create" != yes; then
14470
  ac_cs_success=:
14471
  ac_config_status_args=
14472
  test "$silent" = yes &&
14473
    ac_config_status_args="$ac_config_status_args --quiet"
14474
  exec 5>/dev/null
14475
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14476
  exec 5>>config.log
14477
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14478
  # would make configure fail if this is the last instruction.
14479 225 jeremybenn
  $ac_cs_success || as_fn_exit $?
14480 24 jeremybenn
fi
14481 225 jeremybenn
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14482
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14483
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14484
fi
14485 24 jeremybenn
 

powered by: WebSVN 2.1.0

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