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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

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