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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [configure] - Blame information for rev 561

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

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