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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 235 jeremybenn
# From configure.ac Id: configure.ac 1111 2010-08-03 11:31:36Z jeremy  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 346 jeremybenn
# Generated by GNU Autoconf 2.64 for or1ksim 0.5.0rc1.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 346 jeremybenn
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
10
# Foundation, Inc.
11
#
12 19 jeremybenn
# This configure script is free software; the Free Software Foundation
13
# gives unlimited permission to copy, distribute and modify it.
14 82 jeremybenn
#
15
# Copyright (C) 1999-2008 OpenCores
16
# Copyright (C) 2008, 2010 Embecosm Limited
17
#
18
# Contributor Jeremy Bennett 
19
#
20
# This file is part of OpenRISC 1000 Architectural Simulator.
21
#
22
# This program is free software; you can redistribute it and/or modify it
23
# under the terms of the GNU General Public License as published by the Free
24
# Software Foundation; either version 3 of the License, or (at your option)
25
# any later version.
26
#
27
# This program is distributed in the hope that it will be useful, but WITHOUT
28
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
29
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
30
# more details.
31
#
32
# You should have received a copy of the GNU General Public License along
33
# with this program.  If not, see .
34 346 jeremybenn
## -------------------- ##
35
## M4sh Initialization. ##
36
## -------------------- ##
37 19 jeremybenn
 
38
# Be more Bourne compatible
39
DUALCASE=1; export DUALCASE # for MKS sh
40 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41 19 jeremybenn
  emulate sh
42
  NULLCMD=:
43 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
44 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
45
  alias -g '${1+"$@"}'='"$@"'
46
  setopt NO_GLOB_SUBST
47
else
48 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
49
  *posix*) :
50
    set -o posix ;; #(
51
  *) :
52
     ;;
53 19 jeremybenn
esac
54
fi
55
 
56
 
57 82 jeremybenn
as_nl='
58
'
59
export as_nl
60
# Printing a long string crashes Solaris 7 /usr/bin/printf.
61
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
62
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
63
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
64 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
65
# but without wasting forks for bash or zsh.
66
if test -z "$BASH_VERSION$ZSH_VERSION" \
67
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
68
  as_echo='print -r --'
69
  as_echo_n='print -rn --'
70
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
71 82 jeremybenn
  as_echo='printf %s\n'
72
  as_echo_n='printf %s'
73
else
74
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
75
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
76
    as_echo_n='/usr/ucb/echo -n'
77 19 jeremybenn
  else
78 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
79
    as_echo_n_body='eval
80
      arg=$1;
81 346 jeremybenn
      case $arg in #(
82 82 jeremybenn
      *"$as_nl"*)
83
        expr "X$arg" : "X\\(.*\\)$as_nl";
84
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
85
      esac;
86
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
87
    '
88
    export as_echo_n_body
89
    as_echo_n='sh -c $as_echo_n_body as_echo'
90 19 jeremybenn
  fi
91 82 jeremybenn
  export as_echo_body
92
  as_echo='sh -c $as_echo_body as_echo'
93 19 jeremybenn
fi
94
 
95 82 jeremybenn
# The user is always right.
96
if test "${PATH_SEPARATOR+set}" != set; then
97
  PATH_SEPARATOR=:
98
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
99
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
100
      PATH_SEPARATOR=';'
101
  }
102
fi
103
 
104 19 jeremybenn
 
105
# IFS
106
# We need space, tab and new line, in precisely that order.  Quoting is
107
# there to prevent editors from complaining about space-tab.
108
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
109
# splitting by setting IFS to empty value.)
110
IFS=" ""        $as_nl"
111
 
112
# Find who we are.  Look in the path if we contain no directory separator.
113 346 jeremybenn
case $0 in #((
114 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
115
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116
for as_dir in $PATH
117
do
118
  IFS=$as_save_IFS
119
  test -z "$as_dir" && as_dir=.
120 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
  done
122 19 jeremybenn
IFS=$as_save_IFS
123
 
124
     ;;
125
esac
126
# We did not find ourselves, most probably we were run as `sh COMMAND'
127
# in which case we are not to be found in the path.
128
if test "x$as_myself" = x; then
129
  as_myself=$0
130
fi
131
if test ! -f "$as_myself"; then
132 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
133 346 jeremybenn
  exit 1
134 19 jeremybenn
fi
135
 
136 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
137
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
138
# suppresses any "Segmentation fault" message there.  '((' could
139
# trigger a bug in pdksh 5.2.14.
140
for as_var in BASH_ENV ENV MAIL MAILPATH
141
do eval test x\${$as_var+set} = xset \
142
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
143 19 jeremybenn
done
144
PS1='$ '
145
PS2='> '
146
PS4='+ '
147
 
148
# NLS nuisances.
149 82 jeremybenn
LC_ALL=C
150
export LC_ALL
151
LANGUAGE=C
152
export LANGUAGE
153 19 jeremybenn
 
154
# CDPATH.
155 346 jeremybenn
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
156 19 jeremybenn
 
157
if test "x$CONFIG_SHELL" = x; then
158 346 jeremybenn
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
159
  emulate sh
160
  NULLCMD=:
161
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
162
  # is contrary to our usage.  Disable this feature.
163
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
164
  setopt NO_GLOB_SUBST
165 19 jeremybenn
else
166 346 jeremybenn
  case \`(set -o) 2>/dev/null\` in #(
167
  *posix*) :
168
    set -o posix ;; #(
169
  *) :
170
     ;;
171
esac
172 19 jeremybenn
fi
173 346 jeremybenn
"
174
  as_required="as_fn_return () { (exit \$1); }
175
as_fn_success () { as_fn_return 0; }
176
as_fn_failure () { as_fn_return 1; }
177
as_fn_ret_success () { return 0; }
178
as_fn_ret_failure () { return 1; }
179 19 jeremybenn
 
180
exitcode=0
181 346 jeremybenn
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
182
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
183
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
184
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
185
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
186 19 jeremybenn
 
187
else
188 346 jeremybenn
  exitcode=1; echo positional parameters were not saved.
189 19 jeremybenn
fi
190 346 jeremybenn
test x\$exitcode = x0 || exit 1"
191
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
192
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
193
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
194
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
195
test \$(( 1 + 1 )) = 2 || exit 1"
196
  if (eval "$as_required") 2>/dev/null; then :
197
  as_have_required=yes
198 19 jeremybenn
else
199 346 jeremybenn
  as_have_required=no
200 19 jeremybenn
fi
201 346 jeremybenn
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
202 19 jeremybenn
 
203
else
204 346 jeremybenn
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
205
as_found=false
206 19 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
207
do
208
  IFS=$as_save_IFS
209
  test -z "$as_dir" && as_dir=.
210 346 jeremybenn
  as_found=:
211
  case $as_dir in #(
212 19 jeremybenn
         /*)
213
           for as_base in sh bash ksh sh5; do
214 346 jeremybenn
             # Try only shells that exist, to save several forks.
215
             as_shell=$as_dir/$as_base
216
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
217
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
218
  CONFIG_SHELL=$as_shell as_have_required=yes
219
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
220
  break 2
221
fi
222
fi
223 19 jeremybenn
           done;;
224
       esac
225 346 jeremybenn
  as_found=false
226 19 jeremybenn
done
227 346 jeremybenn
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
228
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
229
  CONFIG_SHELL=$SHELL as_have_required=yes
230
fi; }
231 19 jeremybenn
IFS=$as_save_IFS
232
 
233
 
234 346 jeremybenn
      if test "x$CONFIG_SHELL" != x; then :
235
  # We cannot yet assume a decent shell, so we have to provide a
236
        # neutralization value for shells without unset; and this also
237
        # works around shells that cannot unset nonexistent variables.
238
        BASH_ENV=/dev/null
239
        ENV=/dev/null
240
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
241
        export CONFIG_SHELL
242
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
243 19 jeremybenn
fi
244
 
245 346 jeremybenn
    if test x$as_have_required = xno; then :
246
  $as_echo "$0: This script requires a shell more modern than all"
247
  $as_echo "$0: the shells that I found on your system."
248
  if test x${ZSH_VERSION+set} = xset ; then
249
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
250
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
251
  else
252
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
253
$0: openrisc@opencores.org about your system, including any
254
$0: error possibly output before this message. Then install
255
$0: a modern shell, or manually run the script under such a
256
$0: shell if you do have one."
257
  fi
258
  exit 1
259 19 jeremybenn
fi
260
fi
261
fi
262 346 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
263
export SHELL
264
# Unset more variables known to interfere with behavior of common tools.
265
CLICOLOR_FORCE= GREP_OPTIONS=
266
unset CLICOLOR_FORCE GREP_OPTIONS
267 19 jeremybenn
 
268 346 jeremybenn
## --------------------- ##
269
## M4sh Shell Functions. ##
270
## --------------------- ##
271
# as_fn_unset VAR
272
# ---------------
273
# Portably unset VAR.
274
as_fn_unset ()
275
{
276
  { eval $1=; unset $1;}
277
}
278
as_unset=as_fn_unset
279 19 jeremybenn
 
280 346 jeremybenn
# as_fn_set_status STATUS
281
# -----------------------
282
# Set $? to STATUS, without forking.
283
as_fn_set_status ()
284
{
285
  return $1
286
} # as_fn_set_status
287 19 jeremybenn
 
288 346 jeremybenn
# as_fn_exit STATUS
289
# -----------------
290
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
291
as_fn_exit ()
292
{
293
  set +e
294
  as_fn_set_status $1
295
  exit $1
296
} # as_fn_exit
297 19 jeremybenn
 
298 346 jeremybenn
# as_fn_mkdir_p
299
# -------------
300
# Create "$as_dir" as a directory, including parents if necessary.
301
as_fn_mkdir_p ()
302
{
303 19 jeremybenn
 
304 346 jeremybenn
  case $as_dir in #(
305
  -*) as_dir=./$as_dir;;
306
  esac
307
  test -d "$as_dir" || eval $as_mkdir_p || {
308
    as_dirs=
309
    while :; do
310
      case $as_dir in #(
311
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312
      *) as_qdir=$as_dir;;
313
      esac
314
      as_dirs="'$as_qdir' $as_dirs"
315
      as_dir=`$as_dirname -- "$as_dir" ||
316
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
317
         X"$as_dir" : 'X\(//\)[^/]' \| \
318
         X"$as_dir" : 'X\(//\)$' \| \
319
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
320
$as_echo X"$as_dir" |
321
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322
            s//\1/
323
            q
324
          }
325
          /^X\(\/\/\)[^/].*/{
326
            s//\1/
327
            q
328
          }
329
          /^X\(\/\/\)$/{
330
            s//\1/
331
            q
332
          }
333
          /^X\(\/\).*/{
334
            s//\1/
335
            q
336
          }
337
          s/.*/./; q'`
338
      test -d "$as_dir" && break
339
    done
340
    test -z "$as_dirs" || eval "mkdir $as_dirs"
341
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
342 19 jeremybenn
 
343
 
344 346 jeremybenn
} # as_fn_mkdir_p
345
# as_fn_append VAR VALUE
346
# ----------------------
347
# Append the text in VALUE to the end of the definition contained in VAR. Take
348
# advantage of any shell optimizations that allow amortized linear growth over
349
# repeated appends, instead of the typical quadratic growth present in naive
350
# implementations.
351
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
352
  eval 'as_fn_append ()
353
  {
354
    eval $1+=\$2
355
  }'
356
else
357
  as_fn_append ()
358
  {
359
    eval $1=\$$1\$2
360
  }
361
fi # as_fn_append
362 19 jeremybenn
 
363 346 jeremybenn
# as_fn_arith ARG...
364
# ------------------
365
# Perform arithmetic evaluation on the ARGs, and store the result in the
366
# global $as_val. Take advantage of shells that can avoid forks. The arguments
367
# must be portable across $(()) and expr.
368
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
369
  eval 'as_fn_arith ()
370
  {
371
    as_val=$(( $* ))
372
  }'
373
else
374
  as_fn_arith ()
375
  {
376
    as_val=`expr "$@" || test $? -eq 1`
377
  }
378
fi # as_fn_arith
379 19 jeremybenn
 
380
 
381 346 jeremybenn
# as_fn_error ERROR [LINENO LOG_FD]
382
# ---------------------------------
383
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
384
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
385
# script with status $?, using 1 if that was 0.
386
as_fn_error ()
387
{
388
  as_status=$?; test $as_status -eq 0 && as_status=1
389
  if test "$3"; then
390
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
391
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
392
  fi
393
  $as_echo "$as_me: error: $1" >&2
394
  as_fn_exit $as_status
395
} # as_fn_error
396 19 jeremybenn
 
397 346 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
398
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
399
  as_expr=expr
400 19 jeremybenn
else
401 346 jeremybenn
  as_expr=false
402 19 jeremybenn
fi
403
 
404 346 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
405
  as_basename=basename
406 19 jeremybenn
else
407 346 jeremybenn
  as_basename=false
408 19 jeremybenn
fi
409
 
410 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
411
  as_dirname=dirname
412 19 jeremybenn
else
413 346 jeremybenn
  as_dirname=false
414 19 jeremybenn
fi
415
 
416 346 jeremybenn
as_me=`$as_basename -- "$0" ||
417
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
418
         X"$0" : 'X\(//\)$' \| \
419
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
420
$as_echo X/"$0" |
421
    sed '/^.*\/\([^/][^/]*\)\/*$/{
422
            s//\1/
423
            q
424
          }
425
          /^X\/\(\/\/\)$/{
426
            s//\1/
427
            q
428
          }
429
          /^X\/\(\/\).*/{
430
            s//\1/
431
            q
432
          }
433
          s/.*/./; q'`
434 19 jeremybenn
 
435 346 jeremybenn
# Avoid depending upon Character Ranges.
436
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
437
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
438
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
439
as_cr_digits='0123456789'
440
as_cr_alnum=$as_cr_Letters$as_cr_digits
441 19 jeremybenn
 
442
 
443 346 jeremybenn
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
444
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
445
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
446
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
447
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
448 19 jeremybenn
  sed -n '
449
    p
450
    /[$]LINENO/=
451
  ' <$as_myself |
452
    sed '
453
      s/[$]LINENO.*/&-/
454
      t lineno
455
      b
456
      :lineno
457
      N
458
      :loop
459
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460
      t loop
461
      s/-\n.*//
462
    ' >$as_me.lineno &&
463
  chmod +x "$as_me.lineno" ||
464 346 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
465 19 jeremybenn
 
466
  # Don't try to exec as it changes $[0], causing all sort of problems
467
  # (the dirname of $[0] is not the place where we might find the
468
  # original and so on.  Autoconf is especially sensitive to this).
469
  . "./$as_me.lineno"
470
  # Exit status is that of the last command.
471
  exit
472
}
473
 
474
ECHO_C= ECHO_N= ECHO_T=
475 346 jeremybenn
case `echo -n x` in #(((((
476 19 jeremybenn
-n*)
477 346 jeremybenn
  case `echo 'xy\c'` in
478 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479 346 jeremybenn
  xy)  ECHO_C='\c';;
480
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
481
       ECHO_T=' ';;
482 19 jeremybenn
  esac;;
483
*)
484
  ECHO_N='-n';;
485
esac
486
 
487
rm -f conf$$ conf$$.exe conf$$.file
488
if test -d conf$$.dir; then
489
  rm -f conf$$.dir/conf$$.file
490
else
491
  rm -f conf$$.dir
492 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
493 19 jeremybenn
fi
494 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
495
  if ln -s conf$$.file conf$$ 2>/dev/null; then
496
    as_ln_s='ln -s'
497
    # ... but there are two gotchas:
498
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500
    # In both cases, we have to default to `cp -p'.
501
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502
      as_ln_s='cp -p'
503
  elif ln conf$$.file conf$$ 2>/dev/null; then
504
    as_ln_s=ln
505
  else
506 19 jeremybenn
    as_ln_s='cp -p'
507 82 jeremybenn
  fi
508 19 jeremybenn
else
509
  as_ln_s='cp -p'
510
fi
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
513
 
514
if mkdir -p . 2>/dev/null; then
515 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
516 19 jeremybenn
else
517
  test -d ./-p && rmdir ./-p
518
  as_mkdir_p=false
519
fi
520
 
521
if test -x / >/dev/null 2>&1; then
522
  as_test_x='test -x'
523
else
524
  if ls -dL / >/dev/null 2>&1; then
525
    as_ls_L_option=L
526
  else
527
    as_ls_L_option=
528
  fi
529
  as_test_x='
530
    eval sh -c '\''
531
      if test -d "$1"; then
532 82 jeremybenn
        test -d "$1/.";
533 19 jeremybenn
      else
534 346 jeremybenn
        case $1 in #(
535 82 jeremybenn
        -*)set "./$1";;
536 19 jeremybenn
        esac;
537 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
538 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
539
    '\'' sh
540
  '
541
fi
542
as_executable_p=$as_test_x
543
 
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
 
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
 
550
 
551
 
552
# Check that we are running under the correct shell.
553
SHELL=${CONFIG_SHELL-/bin/sh}
554
 
555 82 jeremybenn
case X$lt_ECHO in
556 19 jeremybenn
X*--fallback-echo)
557
  # Remove one level of quotation (which was required for Make).
558 82 jeremybenn
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
559 19 jeremybenn
  ;;
560
esac
561
 
562 82 jeremybenn
ECHO=${lt_ECHO-echo}
563 19 jeremybenn
if test "X$1" = X--no-reexec; then
564
  # Discard the --no-reexec flag, and continue.
565
  shift
566
elif test "X$1" = X--fallback-echo; then
567
  # Avoid inline document here, it may be left over
568
  :
569 82 jeremybenn
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
570
  # Yippee, $ECHO works!
571 19 jeremybenn
  :
572
else
573
  # Restart under the correct shell.
574
  exec $SHELL "$0" --no-reexec ${1+"$@"}
575
fi
576
 
577
if test "X$1" = X--fallback-echo; then
578
  # used as fallback echo
579
  shift
580 82 jeremybenn
  cat <<_LT_EOF
581 19 jeremybenn
$*
582 82 jeremybenn
_LT_EOF
583 19 jeremybenn
  exit 0
584
fi
585
 
586
# The HP-UX ksh and POSIX shell print the target directory to stdout
587
# if CDPATH is set.
588
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
589
 
590 82 jeremybenn
if test -z "$lt_ECHO"; then
591
  if test "X${echo_test_string+set}" != Xset; then
592
    # find a string as large as possible, as long as the shell can cope with it
593
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
594
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
595
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
596
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
597
      then
598
        break
599
      fi
600
    done
601
  fi
602 19 jeremybenn
 
603 82 jeremybenn
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
604
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
605
     test "X$echo_testing_string" = "X$echo_test_string"; then
606
    :
607
  else
608
    # The Solaris, AIX, and Digital Unix default echo programs unquote
609
    # backslashes.  This makes it impossible to quote backslashes using
610
    #   echo "$something" | sed 's/\\/\\\\/g'
611
    #
612
    # So, first we look for a working echo in the user's PATH.
613 19 jeremybenn
 
614 82 jeremybenn
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
615
    for dir in $PATH /usr/ucb; do
616
      IFS="$lt_save_ifs"
617
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
618
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
619
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
620
         test "X$echo_testing_string" = "X$echo_test_string"; then
621
        ECHO="$dir/echo"
622
        break
623
      fi
624
    done
625 19 jeremybenn
    IFS="$lt_save_ifs"
626
 
627 82 jeremybenn
    if test "X$ECHO" = Xecho; then
628
      # We didn't find a better echo, so look for alternatives.
629
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
630
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
631
         test "X$echo_testing_string" = "X$echo_test_string"; then
632
        # This shell has a builtin print -r that does the trick.
633
        ECHO='print -r'
634
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
635
           test "X$CONFIG_SHELL" != X/bin/ksh; then
636
        # If we have ksh, try running configure again with it.
637
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
638
        export ORIGINAL_CONFIG_SHELL
639
        CONFIG_SHELL=/bin/ksh
640
        export CONFIG_SHELL
641
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
642
      else
643
        # Try using printf.
644
        ECHO='printf %s\n'
645
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
646
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
647 19 jeremybenn
           test "X$echo_testing_string" = "X$echo_test_string"; then
648 82 jeremybenn
          # Cool, printf works
649
          :
650
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651
             test "X$echo_testing_string" = 'X\t' &&
652
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653
             test "X$echo_testing_string" = "X$echo_test_string"; then
654
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
655
          export CONFIG_SHELL
656
          SHELL="$CONFIG_SHELL"
657
          export SHELL
658
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
659
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
660
             test "X$echo_testing_string" = 'X\t' &&
661
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
662
             test "X$echo_testing_string" = "X$echo_test_string"; then
663
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
664
        else
665
          # maybe with a smaller string...
666
          prev=:
667 19 jeremybenn
 
668 82 jeremybenn
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
669
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
670
            then
671
              break
672
            fi
673
            prev="$cmd"
674
          done
675
 
676
          if test "$prev" != 'sed 50q "$0"'; then
677
            echo_test_string=`eval $prev`
678
            export echo_test_string
679
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
680
          else
681
            # Oops.  We lost completely, so just stick with echo.
682
            ECHO=echo
683 19 jeremybenn
          fi
684 82 jeremybenn
        fi
685 19 jeremybenn
      fi
686
    fi
687
  fi
688
fi
689
 
690
# Copy echo and quote the copy suitably for passing to libtool from
691
# the Makefile, instead of quoting the original, which is used later.
692 82 jeremybenn
lt_ECHO=$ECHO
693
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
694
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
695 19 jeremybenn
fi
696
 
697
 
698
 
699
 
700 236 jeremybenn
exec 7<&0 &1
701 19 jeremybenn
 
702
# Name of the host.
703
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
704
# so uname gets run too.
705
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
706
 
707
#
708
# Initializations.
709
#
710
ac_default_prefix=/usr/local
711
ac_clean_files=
712
ac_config_libobj_dir=.
713
LIBOBJS=
714
cross_compiling=no
715
subdirs=
716
MFLAGS=
717
MAKEFLAGS=
718
 
719
# Identity of this package.
720
PACKAGE_NAME='or1ksim'
721
PACKAGE_TARNAME='or1ksim'
722 346 jeremybenn
PACKAGE_VERSION='0.5.0rc1'
723
PACKAGE_STRING='or1ksim 0.5.0rc1'
724 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
725 346 jeremybenn
PACKAGE_URL=''
726 19 jeremybenn
 
727
# Factoring default headers for most tests.
728
ac_includes_default="\
729
#include 
730
#ifdef HAVE_SYS_TYPES_H
731
# include 
732
#endif
733
#ifdef HAVE_SYS_STAT_H
734
# include 
735
#endif
736
#ifdef STDC_HEADERS
737
# include 
738
# include 
739
#else
740
# ifdef HAVE_STDLIB_H
741
#  include 
742
# endif
743
#endif
744
#ifdef HAVE_STRING_H
745
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
746
#  include 
747
# endif
748
# include 
749
#endif
750
#ifdef HAVE_STRINGS_H
751
# include 
752
#endif
753
#ifdef HAVE_INTTYPES_H
754
# include 
755
#endif
756
#ifdef HAVE_STDINT_H
757
# include 
758
#endif
759
#ifdef HAVE_UNISTD_H
760
# include 
761
#endif"
762
 
763 91 jeremybenn
ac_unique_file="cpu/or32/execute.c"
764
enable_option_checking=no
765 82 jeremybenn
ac_subst_vars='am__EXEEXT_FALSE
766
am__EXEEXT_TRUE
767
LTLIBOBJS
768
INCLUDES
769
TERMCAP_LIB
770
SUMVERSION
771
ARFLAGS
772
LOCAL_DEFS
773
LOCAL_LDFLAGS
774
LOCAL_CFLAGS
775
BUILD_DIR
776 96 jeremybenn
RUNTESTDEFAULTFLAGS
777 90 jeremybenn
DEJAGNU
778 82 jeremybenn
DYNAMIC_EXECUTION_FALSE
779
DYNAMIC_EXECUTION_TRUE
780
GENERATE_NEEDED_FALSE
781
GENERATE_NEEDED_TRUE
782
DEBUGFLAGS
783
USE_ARGDATE_FALSE
784
USE_ARGDATE_TRUE
785
USE_ARGREX_FALSE
786
USE_ARGREX_TRUE
787
USE_SYS_GETOPTLONG_FALSE
788
USE_SYS_GETOPTLONG_TRUE
789
POW_LIB
790
LIBOBJS
791
am__fastdepCCAS_FALSE
792
am__fastdepCCAS_TRUE
793
CCASDEPMODE
794
CCASFLAGS
795
CCAS
796
CPU_ARCH
797
am__fastdepCC_FALSE
798
am__fastdepCC_TRUE
799
CCDEPMODE
800
AMDEPBACKSLASH
801
AMDEP_FALSE
802
AMDEP_TRUE
803
am__quote
804
am__include
805
DEPDIR
806
am__untar
807
am__tar
808
AMTAR
809
am__leading_dot
810
SET_MAKE
811
AWK
812
mkdir_p
813
MKDIR_P
814
INSTALL_STRIP_PROGRAM
815
install_sh
816
MAKEINFO
817
AUTOHEADER
818
AUTOMAKE
819
AUTOCONF
820
ACLOCAL
821
VERSION
822
PACKAGE
823
CYGPATH_W
824
am__isrc
825
INSTALL_DATA
826
INSTALL_SCRIPT
827
INSTALL_PROGRAM
828
OTOOL64
829
OTOOL
830
LIPO
831
NMEDIT
832
DSYMUTIL
833
lt_ECHO
834 19 jeremybenn
RANLIB
835
STRIP
836 82 jeremybenn
AR
837
OBJDUMP
838
LN_S
839
NM
840
ac_ct_DUMPBIN
841
DUMPBIN
842
LD
843
FGREP
844
SED
845 19 jeremybenn
LIBTOOL
846 82 jeremybenn
target_os
847
target_vendor
848
target_cpu
849
target
850
host_os
851
host_vendor
852
host_cpu
853
host
854
build_os
855
build_vendor
856
build_cpu
857
build
858
subdirs
859 91 jeremybenn
EGREP
860
GREP
861
CPP
862
OBJEXT
863
EXEEXT
864
ac_ct_CC
865
CPPFLAGS
866
LDFLAGS
867
CFLAGS
868
CC
869 82 jeremybenn
target_alias
870
host_alias
871
build_alias
872
LIBS
873
ECHO_T
874
ECHO_N
875
ECHO_C
876
DEFS
877
mandir
878
localedir
879
libdir
880
psdir
881
pdfdir
882
dvidir
883
htmldir
884
infodir
885
docdir
886
oldincludedir
887
includedir
888
localstatedir
889
sharedstatedir
890
sysconfdir
891
datadir
892
datarootdir
893
libexecdir
894
sbindir
895
bindir
896
program_transform_name
897
prefix
898
exec_prefix
899 346 jeremybenn
PACKAGE_URL
900 82 jeremybenn
PACKAGE_BUGREPORT
901
PACKAGE_STRING
902
PACKAGE_VERSION
903
PACKAGE_TARNAME
904
PACKAGE_NAME
905
PATH_SEPARATOR
906
SHELL'
907 19 jeremybenn
ac_subst_files=''
908 82 jeremybenn
ac_user_opts='
909
enable_option_checking
910
enable_shared
911
enable_static
912
with_pic
913
enable_fast_install
914
with_gnu_ld
915
enable_libtool_lock
916
enable_dependency_tracking
917
enable_profiling
918
enable_execution
919
enable_ethphy
920 127 jeremybenn
enable_unsigned_xori
921 82 jeremybenn
enable_range_stats
922
enable_debug
923
'
924 19 jeremybenn
      ac_precious_vars='build_alias
925
host_alias
926
target_alias
927
CC
928
CFLAGS
929
LDFLAGS
930
LIBS
931
CPPFLAGS
932
CPP
933 82 jeremybenn
CCAS
934
CCASFLAGS'
935 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
936 19 jeremybenn
 
937
# Initialize some variables set by options.
938
ac_init_help=
939
ac_init_version=false
940 82 jeremybenn
ac_unrecognized_opts=
941
ac_unrecognized_sep=
942 19 jeremybenn
# The variables have the same names as the options, with
943
# dashes changed to underlines.
944
cache_file=/dev/null
945
exec_prefix=NONE
946
no_create=
947
no_recursion=
948
prefix=NONE
949
program_prefix=NONE
950
program_suffix=NONE
951
program_transform_name=s,x,x,
952
silent=
953
site=
954
srcdir=
955
verbose=
956
x_includes=NONE
957
x_libraries=NONE
958
 
959
# Installation directory options.
960
# These are left unexpanded so users can "make install exec_prefix=/foo"
961
# and all the variables that are supposed to be based on exec_prefix
962
# by default will actually change.
963
# Use braces instead of parens because sh, perl, etc. also accept them.
964
# (The list follows the same order as the GNU Coding Standards.)
965
bindir='${exec_prefix}/bin'
966
sbindir='${exec_prefix}/sbin'
967
libexecdir='${exec_prefix}/libexec'
968
datarootdir='${prefix}/share'
969
datadir='${datarootdir}'
970
sysconfdir='${prefix}/etc'
971
sharedstatedir='${prefix}/com'
972
localstatedir='${prefix}/var'
973
includedir='${prefix}/include'
974
oldincludedir='/usr/include'
975
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976
infodir='${datarootdir}/info'
977
htmldir='${docdir}'
978
dvidir='${docdir}'
979
pdfdir='${docdir}'
980
psdir='${docdir}'
981
libdir='${exec_prefix}/lib'
982
localedir='${datarootdir}/locale'
983
mandir='${datarootdir}/man'
984
 
985
ac_prev=
986
ac_dashdash=
987
for ac_option
988
do
989
  # If the previous option needs an argument, assign it.
990
  if test -n "$ac_prev"; then
991
    eval $ac_prev=\$ac_option
992
    ac_prev=
993
    continue
994
  fi
995
 
996
  case $ac_option in
997
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998
  *)    ac_optarg=yes ;;
999
  esac
1000
 
1001
  # Accept the important Cygnus configure options, so we can diagnose typos.
1002
 
1003
  case $ac_dashdash$ac_option in
1004
  --)
1005
    ac_dashdash=yes ;;
1006
 
1007
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008
    ac_prev=bindir ;;
1009
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010
    bindir=$ac_optarg ;;
1011
 
1012
  -build | --build | --buil | --bui | --bu)
1013
    ac_prev=build_alias ;;
1014
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015
    build_alias=$ac_optarg ;;
1016
 
1017
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1018
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019
    ac_prev=cache_file ;;
1020
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022
    cache_file=$ac_optarg ;;
1023
 
1024
  --config-cache | -C)
1025
    cache_file=config.cache ;;
1026
 
1027
  -datadir | --datadir | --datadi | --datad)
1028
    ac_prev=datadir ;;
1029
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030
    datadir=$ac_optarg ;;
1031
 
1032
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033
  | --dataroo | --dataro | --datar)
1034
    ac_prev=datarootdir ;;
1035
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037
    datarootdir=$ac_optarg ;;
1038
 
1039
  -disable-* | --disable-*)
1040 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 19 jeremybenn
    # Reject names that are not valid shell variable names.
1042 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 346 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
1044 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1045
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046
    case $ac_user_opts in
1047
      *"
1048
"enable_$ac_useropt"
1049
"*) ;;
1050
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051
         ac_unrecognized_sep=', ';;
1052
    esac
1053
    eval enable_$ac_useropt=no ;;
1054 19 jeremybenn
 
1055
  -docdir | --docdir | --docdi | --doc | --do)
1056
    ac_prev=docdir ;;
1057
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058
    docdir=$ac_optarg ;;
1059
 
1060
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061
    ac_prev=dvidir ;;
1062
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063
    dvidir=$ac_optarg ;;
1064
 
1065
  -enable-* | --enable-*)
1066 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 19 jeremybenn
    # Reject names that are not valid shell variable names.
1068 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 346 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
1070 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1071
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072
    case $ac_user_opts in
1073
      *"
1074
"enable_$ac_useropt"
1075
"*) ;;
1076
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077
         ac_unrecognized_sep=', ';;
1078
    esac
1079
    eval enable_$ac_useropt=\$ac_optarg ;;
1080 19 jeremybenn
 
1081
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083
  | --exec | --exe | --ex)
1084
    ac_prev=exec_prefix ;;
1085
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087
  | --exec=* | --exe=* | --ex=*)
1088
    exec_prefix=$ac_optarg ;;
1089
 
1090
  -gas | --gas | --ga | --g)
1091
    # Obsolete; use --with-gas.
1092
    with_gas=yes ;;
1093
 
1094
  -help | --help | --hel | --he | -h)
1095
    ac_init_help=long ;;
1096
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097
    ac_init_help=recursive ;;
1098
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099
    ac_init_help=short ;;
1100
 
1101
  -host | --host | --hos | --ho)
1102
    ac_prev=host_alias ;;
1103
  -host=* | --host=* | --hos=* | --ho=*)
1104
    host_alias=$ac_optarg ;;
1105
 
1106
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107
    ac_prev=htmldir ;;
1108
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109
  | --ht=*)
1110
    htmldir=$ac_optarg ;;
1111
 
1112
  -includedir | --includedir | --includedi | --included | --include \
1113
  | --includ | --inclu | --incl | --inc)
1114
    ac_prev=includedir ;;
1115
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1117
    includedir=$ac_optarg ;;
1118
 
1119
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1120
    ac_prev=infodir ;;
1121
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122
    infodir=$ac_optarg ;;
1123
 
1124
  -libdir | --libdir | --libdi | --libd)
1125
    ac_prev=libdir ;;
1126
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127
    libdir=$ac_optarg ;;
1128
 
1129
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130
  | --libexe | --libex | --libe)
1131
    ac_prev=libexecdir ;;
1132
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133
  | --libexe=* | --libex=* | --libe=*)
1134
    libexecdir=$ac_optarg ;;
1135
 
1136
  -localedir | --localedir | --localedi | --localed | --locale)
1137
    ac_prev=localedir ;;
1138
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139
    localedir=$ac_optarg ;;
1140
 
1141
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1142
  | --localstate | --localstat | --localsta | --localst | --locals)
1143
    ac_prev=localstatedir ;;
1144
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146
    localstatedir=$ac_optarg ;;
1147
 
1148
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149
    ac_prev=mandir ;;
1150
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151
    mandir=$ac_optarg ;;
1152
 
1153
  -nfp | --nfp | --nf)
1154
    # Obsolete; use --without-fp.
1155
    with_fp=no ;;
1156
 
1157
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158
  | --no-cr | --no-c | -n)
1159
    no_create=yes ;;
1160
 
1161
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163
    no_recursion=yes ;;
1164
 
1165
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167
  | --oldin | --oldi | --old | --ol | --o)
1168
    ac_prev=oldincludedir ;;
1169
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172
    oldincludedir=$ac_optarg ;;
1173
 
1174
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175
    ac_prev=prefix ;;
1176
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177
    prefix=$ac_optarg ;;
1178
 
1179
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180
  | --program-pre | --program-pr | --program-p)
1181
    ac_prev=program_prefix ;;
1182
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184
    program_prefix=$ac_optarg ;;
1185
 
1186
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187
  | --program-suf | --program-su | --program-s)
1188
    ac_prev=program_suffix ;;
1189
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191
    program_suffix=$ac_optarg ;;
1192
 
1193
  -program-transform-name | --program-transform-name \
1194
  | --program-transform-nam | --program-transform-na \
1195
  | --program-transform-n | --program-transform- \
1196
  | --program-transform | --program-transfor \
1197
  | --program-transfo | --program-transf \
1198
  | --program-trans | --program-tran \
1199
  | --progr-tra | --program-tr | --program-t)
1200
    ac_prev=program_transform_name ;;
1201
  -program-transform-name=* | --program-transform-name=* \
1202
  | --program-transform-nam=* | --program-transform-na=* \
1203
  | --program-transform-n=* | --program-transform-=* \
1204
  | --program-transform=* | --program-transfor=* \
1205
  | --program-transfo=* | --program-transf=* \
1206
  | --program-trans=* | --program-tran=* \
1207
  | --progr-tra=* | --program-tr=* | --program-t=*)
1208
    program_transform_name=$ac_optarg ;;
1209
 
1210
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211
    ac_prev=pdfdir ;;
1212
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213
    pdfdir=$ac_optarg ;;
1214
 
1215
  -psdir | --psdir | --psdi | --psd | --ps)
1216
    ac_prev=psdir ;;
1217
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218
    psdir=$ac_optarg ;;
1219
 
1220
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221
  | -silent | --silent | --silen | --sile | --sil)
1222
    silent=yes ;;
1223
 
1224
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225
    ac_prev=sbindir ;;
1226
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227
  | --sbi=* | --sb=*)
1228
    sbindir=$ac_optarg ;;
1229
 
1230
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232
  | --sharedst | --shareds | --shared | --share | --shar \
1233
  | --sha | --sh)
1234
    ac_prev=sharedstatedir ;;
1235
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238
  | --sha=* | --sh=*)
1239
    sharedstatedir=$ac_optarg ;;
1240
 
1241
  -site | --site | --sit)
1242
    ac_prev=site ;;
1243
  -site=* | --site=* | --sit=*)
1244
    site=$ac_optarg ;;
1245
 
1246
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247
    ac_prev=srcdir ;;
1248
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249
    srcdir=$ac_optarg ;;
1250
 
1251
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252
  | --syscon | --sysco | --sysc | --sys | --sy)
1253
    ac_prev=sysconfdir ;;
1254
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256
    sysconfdir=$ac_optarg ;;
1257
 
1258
  -target | --target | --targe | --targ | --tar | --ta | --t)
1259
    ac_prev=target_alias ;;
1260
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261
    target_alias=$ac_optarg ;;
1262
 
1263
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264
    verbose=yes ;;
1265
 
1266
  -version | --version | --versio | --versi | --vers | -V)
1267
    ac_init_version=: ;;
1268
 
1269
  -with-* | --with-*)
1270 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 19 jeremybenn
    # Reject names that are not valid shell variable names.
1272 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 346 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1274 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1275
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276
    case $ac_user_opts in
1277
      *"
1278
"with_$ac_useropt"
1279
"*) ;;
1280
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281
         ac_unrecognized_sep=', ';;
1282
    esac
1283
    eval with_$ac_useropt=\$ac_optarg ;;
1284 19 jeremybenn
 
1285
  -without-* | --without-*)
1286 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 19 jeremybenn
    # Reject names that are not valid shell variable names.
1288 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 346 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1290 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1291
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292
    case $ac_user_opts in
1293
      *"
1294
"with_$ac_useropt"
1295
"*) ;;
1296
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297
         ac_unrecognized_sep=', ';;
1298
    esac
1299
    eval with_$ac_useropt=no ;;
1300 19 jeremybenn
 
1301
  --x)
1302
    # Obsolete; use --with-x.
1303
    with_x=yes ;;
1304
 
1305
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306
  | --x-incl | --x-inc | --x-in | --x-i)
1307
    ac_prev=x_includes ;;
1308
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310
    x_includes=$ac_optarg ;;
1311
 
1312
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314
    ac_prev=x_libraries ;;
1315
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317
    x_libraries=$ac_optarg ;;
1318
 
1319 346 jeremybenn
  -*) as_fn_error "unrecognized option: \`$ac_option'
1320
Try \`$0 --help' for more information."
1321 19 jeremybenn
    ;;
1322
 
1323
  *=*)
1324
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325
    # Reject names that are not valid shell variable names.
1326 346 jeremybenn
    case $ac_envvar in #(
1327
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1328
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329
    esac
1330 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1331
    export $ac_envvar ;;
1332
 
1333
  *)
1334
    # FIXME: should be removed in autoconf 3.0.
1335 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339
    ;;
1340
 
1341
  esac
1342
done
1343
 
1344
if test -n "$ac_prev"; then
1345
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 346 jeremybenn
  as_fn_error "missing argument to $ac_option"
1347 19 jeremybenn
fi
1348
 
1349 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1350
  case $enable_option_checking in
1351
    no) ;;
1352 346 jeremybenn
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353 82 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354
  esac
1355
fi
1356
 
1357
# Check all directory arguments for consistency.
1358 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359
                datadir sysconfdir sharedstatedir localstatedir includedir \
1360
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361
                libdir localedir mandir
1362
do
1363
  eval ac_val=\$$ac_var
1364 82 jeremybenn
  # Remove trailing slashes.
1365 19 jeremybenn
  case $ac_val in
1366 82 jeremybenn
    */ )
1367
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368
      eval $ac_var=\$ac_val;;
1369
  esac
1370
  # Be sure to have absolute directory names.
1371
  case $ac_val in
1372 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1373
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374
  esac
1375 346 jeremybenn
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376 19 jeremybenn
done
1377
 
1378
# There might be people who depend on the old broken behavior: `$host'
1379
# used to hold the argument of --host etc.
1380
# FIXME: To remove some day.
1381
build=$build_alias
1382
host=$host_alias
1383
target=$target_alias
1384
 
1385
# FIXME: To remove some day.
1386
if test "x$host_alias" != x; then
1387
  if test "x$build_alias" = x; then
1388
    cross_compiling=maybe
1389 82 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1391
  elif test "x$build_alias" != "x$host_alias"; then
1392
    cross_compiling=yes
1393
  fi
1394
fi
1395
 
1396
ac_tool_prefix=
1397
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
 
1399
test "$silent" = yes && exec 6>/dev/null
1400
 
1401
 
1402
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403
ac_ls_di=`ls -di .` &&
1404
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405 346 jeremybenn
  as_fn_error "working directory cannot be determined"
1406 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 346 jeremybenn
  as_fn_error "pwd does not report name of working directory"
1408 19 jeremybenn
 
1409
 
1410
# Find the source files, if location was not specified.
1411
if test -z "$srcdir"; then
1412
  ac_srcdir_defaulted=yes
1413
  # Try the directory containing this script, then the parent directory.
1414 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1415
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416
         X"$as_myself" : 'X\(//\)[^/]' \| \
1417
         X"$as_myself" : 'X\(//\)$' \| \
1418
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419
$as_echo X"$as_myself" |
1420 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421
            s//\1/
1422
            q
1423
          }
1424
          /^X\(\/\/\)[^/].*/{
1425
            s//\1/
1426
            q
1427
          }
1428
          /^X\(\/\/\)$/{
1429
            s//\1/
1430
            q
1431
          }
1432
          /^X\(\/\).*/{
1433
            s//\1/
1434
            q
1435
          }
1436
          s/.*/./; q'`
1437
  srcdir=$ac_confdir
1438
  if test ! -r "$srcdir/$ac_unique_file"; then
1439
    srcdir=..
1440
  fi
1441
else
1442
  ac_srcdir_defaulted=no
1443
fi
1444
if test ! -r "$srcdir/$ac_unique_file"; then
1445
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446 346 jeremybenn
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1447 19 jeremybenn
fi
1448
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449
ac_abs_confdir=`(
1450 346 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451 19 jeremybenn
        pwd)`
1452
# When building in place, set srcdir=.
1453
if test "$ac_abs_confdir" = "$ac_pwd"; then
1454
  srcdir=.
1455
fi
1456
# Remove unnecessary trailing slashes from srcdir.
1457
# Double slashes in file names in object file debugging info
1458
# mess up M-x gdb in Emacs.
1459
case $srcdir in
1460
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461
esac
1462
for ac_var in $ac_precious_vars; do
1463
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464
  eval ac_env_${ac_var}_value=\$${ac_var}
1465
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467
done
1468
 
1469
#
1470
# Report the --help message.
1471
#
1472
if test "$ac_init_help" = "long"; then
1473
  # Omit some internal or obsolete options to make the list less imposing.
1474
  # This message is too long to be a string in the A/UX 3.1 sh.
1475
  cat <<_ACEOF
1476 346 jeremybenn
\`configure' configures or1ksim 0.5.0rc1 to adapt to many kinds of systems.
1477 19 jeremybenn
 
1478
Usage: $0 [OPTION]... [VAR=VALUE]...
1479
 
1480
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481
VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
 
1483
Defaults for the options are specified in brackets.
1484
 
1485
Configuration:
1486
  -h, --help              display this help and exit
1487
      --help=short        display options specific to this package
1488
      --help=recursive    display the short help of all the included packages
1489
  -V, --version           display version information and exit
1490
  -q, --quiet, --silent   do not print \`checking...' messages
1491
      --cache-file=FILE   cache test results in FILE [disabled]
1492
  -C, --config-cache      alias for \`--cache-file=config.cache'
1493
  -n, --no-create         do not create output files
1494
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
 
1496
Installation directories:
1497
  --prefix=PREFIX         install architecture-independent files in PREFIX
1498 82 jeremybenn
                          [$ac_default_prefix]
1499 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500 82 jeremybenn
                          [PREFIX]
1501 19 jeremybenn
 
1502
By default, \`make install' will install all the files in
1503
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505
for instance \`--prefix=\$HOME'.
1506
 
1507
For better control, use the options below.
1508
 
1509
Fine tuning of the installation directories:
1510 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1511
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1512
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1513
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1514
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1515
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1516
  --libdir=DIR            object code libraries [EPREFIX/lib]
1517
  --includedir=DIR        C header files [PREFIX/include]
1518
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1519
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1520
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1521
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1522
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1523
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1524
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1525
  --htmldir=DIR           html documentation [DOCDIR]
1526
  --dvidir=DIR            dvi documentation [DOCDIR]
1527
  --pdfdir=DIR            pdf documentation [DOCDIR]
1528
  --psdir=DIR             ps documentation [DOCDIR]
1529 19 jeremybenn
_ACEOF
1530
 
1531
  cat <<\_ACEOF
1532
 
1533
Program names:
1534
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1535
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1536
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1537
 
1538
System types:
1539
  --build=BUILD     configure for building on BUILD [guessed]
1540
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541
  --target=TARGET   configure for building compilers for TARGET [HOST]
1542
_ACEOF
1543
fi
1544
 
1545
if test -n "$ac_init_help"; then
1546
  case $ac_init_help in
1547 346 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 0.5.0rc1:";;
1548 19 jeremybenn
   esac
1549
  cat <<\_ACEOF
1550
 
1551
Optional Features:
1552 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1553 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1554
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1555
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1556
  --enable-static[=PKGS]  build static libraries [default=yes]
1557
  --enable-fast-install[=PKGS]
1558
                          optimize for fast installation [default=yes]
1559
  --disable-libtool-lock  avoid locking (might break parallel builds)
1560
  --disable-dependency-tracking  speeds up one-time build
1561
  --enable-dependency-tracking   do not reject slow dependency extractors
1562
  --enable-profiling      generate profiling code
1563
  --enable-execution Execution style to use (simple/complex/dynamic)
1564
  --enable-ethphy    compiles sim with ethernet phy support
1565 127 jeremybenn
  --enable-unsigned-xori    l.xori immediate operand treated as unsigned
1566 19 jeremybenn
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1567
  --enable-debug          enable library debugging symbols
1568
 
1569
Optional Packages:
1570
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1571
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1572
  --with-pic              try to use only PIC/non-PIC objects [default=use
1573
                          both]
1574 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1575 19 jeremybenn
 
1576
Some influential environment variables:
1577
  CC          C compiler command
1578
  CFLAGS      C compiler flags
1579
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1580
              nonstandard directory 
1581
  LIBS        libraries to pass to the linker, e.g. -l
1582 236 jeremybenn
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1583 19 jeremybenn
              you have headers in a nonstandard directory 
1584
  CPP         C preprocessor
1585 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1586
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1587 19 jeremybenn
 
1588
Use these variables to override the choices made by `configure' or to help
1589
it to find libraries and programs with nonstandard names/locations.
1590
 
1591
Report bugs to .
1592
_ACEOF
1593
ac_status=$?
1594
fi
1595
 
1596
if test "$ac_init_help" = "recursive"; then
1597
  # If there are subdirs, report their specific --help.
1598
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 82 jeremybenn
    test -d "$ac_dir" ||
1600
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601
      continue
1602 19 jeremybenn
    ac_builddir=.
1603
 
1604
case "$ac_dir" in
1605
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606
*)
1607 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1609 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 19 jeremybenn
  case $ac_top_builddir_sub in
1611
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613
  esac ;;
1614
esac
1615
ac_abs_top_builddir=$ac_pwd
1616
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617
# for backward compatibility:
1618
ac_top_builddir=$ac_top_build_prefix
1619
 
1620
case $srcdir in
1621
  .)  # We are building in place.
1622
    ac_srcdir=.
1623
    ac_top_srcdir=$ac_top_builddir_sub
1624
    ac_abs_top_srcdir=$ac_pwd ;;
1625
  [\\/]* | ?:[\\/]* )  # Absolute name.
1626
    ac_srcdir=$srcdir$ac_dir_suffix;
1627
    ac_top_srcdir=$srcdir
1628
    ac_abs_top_srcdir=$srcdir ;;
1629
  *) # Relative name.
1630
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1632
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633
esac
1634
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
 
1636
    cd "$ac_dir" || { ac_status=$?; continue; }
1637
    # Check for guested configure.
1638
    if test -f "$ac_srcdir/configure.gnu"; then
1639
      echo &&
1640
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641
    elif test -f "$ac_srcdir/configure"; then
1642
      echo &&
1643
      $SHELL "$ac_srcdir/configure" --help=recursive
1644
    else
1645 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 19 jeremybenn
    fi || ac_status=$?
1647
    cd "$ac_pwd" || { ac_status=$?; break; }
1648
  done
1649
fi
1650
 
1651
test -n "$ac_init_help" && exit $ac_status
1652
if $ac_init_version; then
1653
  cat <<\_ACEOF
1654 346 jeremybenn
or1ksim configure 0.5.0rc1
1655
generated by GNU Autoconf 2.64
1656 19 jeremybenn
 
1657 346 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
1658 19 jeremybenn
This configure script is free software; the Free Software Foundation
1659
gives unlimited permission to copy, distribute and modify it.
1660 82 jeremybenn
 
1661
Copyright (C) 1999-2008 OpenCores
1662
Copyright (C) 2008, 2010 Embecosm Limited
1663
 
1664
Contributor Jeremy Bennett 
1665
 
1666
This file is part of OpenRISC 1000 Architectural Simulator.
1667
 
1668
This program is free software; you can redistribute it and/or modify it
1669
under the terms of the GNU General Public License as published by the Free
1670
Software Foundation; either version 3 of the License, or (at your option)
1671
any later version.
1672
 
1673
This program is distributed in the hope that it will be useful, but WITHOUT
1674
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1675
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1676
more details.
1677
 
1678
You should have received a copy of the GNU General Public License along
1679
with this program.  If not, see .
1680 19 jeremybenn
_ACEOF
1681
  exit
1682
fi
1683 346 jeremybenn
 
1684
## ------------------------ ##
1685
## Autoconf initialization. ##
1686
## ------------------------ ##
1687
 
1688
# ac_fn_c_try_compile LINENO
1689
# --------------------------
1690
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1691
ac_fn_c_try_compile ()
1692
{
1693
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694
  rm -f conftest.$ac_objext
1695
  if { { ac_try="$ac_compile"
1696
case "(($ac_try" in
1697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698
  *) ac_try_echo=$ac_try;;
1699
esac
1700
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701
$as_echo "$ac_try_echo"; } >&5
1702
  (eval "$ac_compile") 2>conftest.err
1703
  ac_status=$?
1704
  if test -s conftest.err; then
1705
    grep -v '^ *+' conftest.err >conftest.er1
1706
    cat conftest.er1 >&5
1707
    mv -f conftest.er1 conftest.err
1708
  fi
1709
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710
  test $ac_status = 0; } && {
1711
         test -z "$ac_c_werror_flag" ||
1712
         test ! -s conftest.err
1713
       } && test -s conftest.$ac_objext; then :
1714
  ac_retval=0
1715
else
1716
  $as_echo "$as_me: failed program was:" >&5
1717
sed 's/^/| /' conftest.$ac_ext >&5
1718
 
1719
        ac_retval=1
1720
fi
1721
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
  return $ac_retval
1723
 
1724
} # ac_fn_c_try_compile
1725
 
1726
# ac_fn_c_try_cpp LINENO
1727
# ----------------------
1728
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729
ac_fn_c_try_cpp ()
1730
{
1731
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1733
case "(($ac_try" in
1734
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735
  *) ac_try_echo=$ac_try;;
1736
esac
1737
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738
$as_echo "$ac_try_echo"; } >&5
1739
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740
  ac_status=$?
1741
  if test -s conftest.err; then
1742
    grep -v '^ *+' conftest.err >conftest.er1
1743
    cat conftest.er1 >&5
1744
    mv -f conftest.er1 conftest.err
1745
  fi
1746
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747
  test $ac_status = 0; } >/dev/null && {
1748
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749
         test ! -s conftest.err
1750
       }; then :
1751
  ac_retval=0
1752
else
1753
  $as_echo "$as_me: failed program was:" >&5
1754
sed 's/^/| /' conftest.$ac_ext >&5
1755
 
1756
    ac_retval=1
1757
fi
1758
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759
  return $ac_retval
1760
 
1761
} # ac_fn_c_try_cpp
1762
 
1763
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764
# -------------------------------------------------------
1765
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766
# the include files in INCLUDES and setting the cache variable VAR
1767
# accordingly.
1768
ac_fn_c_check_header_mongrel ()
1769
{
1770
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773
$as_echo_n "checking for $2... " >&6; }
1774
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775
  $as_echo_n "(cached) " >&6
1776
fi
1777
eval ac_res=\$$3
1778
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779
$as_echo "$ac_res" >&6; }
1780
else
1781
  # Is the header compilable?
1782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783
$as_echo_n "checking $2 usability... " >&6; }
1784
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785
/* end confdefs.h.  */
1786
$4
1787
#include <$2>
1788
_ACEOF
1789
if ac_fn_c_try_compile "$LINENO"; then :
1790
  ac_header_compiler=yes
1791
else
1792
  ac_header_compiler=no
1793
fi
1794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796
$as_echo "$ac_header_compiler" >&6; }
1797
 
1798
# Is the header present?
1799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800
$as_echo_n "checking $2 presence... " >&6; }
1801
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802
/* end confdefs.h.  */
1803
#include <$2>
1804
_ACEOF
1805
if ac_fn_c_try_cpp "$LINENO"; then :
1806
  ac_header_preproc=yes
1807
else
1808
  ac_header_preproc=no
1809
fi
1810
rm -f conftest.err conftest.$ac_ext
1811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812
$as_echo "$ac_header_preproc" >&6; }
1813
 
1814
# So?  What about this header?
1815
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816
  yes:no: )
1817
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821
    ;;
1822
  no:yes:* )
1823
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1826
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1827
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1830
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1831
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833
( cat <<\_ASBOX
1834
## ------------------------------------- ##
1835
## Report this to openrisc@opencores.org ##
1836
## ------------------------------------- ##
1837
_ASBOX
1838
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1839
    ;;
1840
esac
1841
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842
$as_echo_n "checking for $2... " >&6; }
1843
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844
  $as_echo_n "(cached) " >&6
1845
else
1846
  eval "$3=\$ac_header_compiler"
1847
fi
1848
eval ac_res=\$$3
1849
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850
$as_echo "$ac_res" >&6; }
1851
fi
1852
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853
 
1854
} # ac_fn_c_check_header_mongrel
1855
 
1856
# ac_fn_c_try_run LINENO
1857
# ----------------------
1858
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859
# that executables *can* be run.
1860
ac_fn_c_try_run ()
1861
{
1862
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863
  if { { ac_try="$ac_link"
1864
case "(($ac_try" in
1865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866
  *) ac_try_echo=$ac_try;;
1867
esac
1868
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869
$as_echo "$ac_try_echo"; } >&5
1870
  (eval "$ac_link") 2>&5
1871
  ac_status=$?
1872
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874
  { { case "(($ac_try" in
1875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876
  *) ac_try_echo=$ac_try;;
1877
esac
1878
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879
$as_echo "$ac_try_echo"; } >&5
1880
  (eval "$ac_try") 2>&5
1881
  ac_status=$?
1882
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883
  test $ac_status = 0; }; }; then :
1884
  ac_retval=0
1885
else
1886
  $as_echo "$as_me: program exited with status $ac_status" >&5
1887
       $as_echo "$as_me: failed program was:" >&5
1888
sed 's/^/| /' conftest.$ac_ext >&5
1889
 
1890
       ac_retval=$ac_status
1891
fi
1892
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894
  return $ac_retval
1895
 
1896
} # ac_fn_c_try_run
1897
 
1898
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899
# -------------------------------------------------------
1900
# Tests whether HEADER exists and can be compiled using the include files in
1901
# INCLUDES, setting the cache variable VAR accordingly.
1902
ac_fn_c_check_header_compile ()
1903
{
1904
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906
$as_echo_n "checking for $2... " >&6; }
1907
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908
  $as_echo_n "(cached) " >&6
1909
else
1910
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911
/* end confdefs.h.  */
1912
$4
1913
#include <$2>
1914
_ACEOF
1915
if ac_fn_c_try_compile "$LINENO"; then :
1916
  eval "$3=yes"
1917
else
1918
  eval "$3=no"
1919
fi
1920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921
fi
1922
eval ac_res=\$$3
1923
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924
$as_echo "$ac_res" >&6; }
1925
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926
 
1927
} # ac_fn_c_check_header_compile
1928
 
1929
# ac_fn_c_try_link LINENO
1930
# -----------------------
1931
# Try to link conftest.$ac_ext, and return whether this succeeded.
1932
ac_fn_c_try_link ()
1933
{
1934
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935
  rm -f conftest.$ac_objext conftest$ac_exeext
1936
  if { { ac_try="$ac_link"
1937
case "(($ac_try" in
1938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939
  *) ac_try_echo=$ac_try;;
1940
esac
1941
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942
$as_echo "$ac_try_echo"; } >&5
1943
  (eval "$ac_link") 2>conftest.err
1944
  ac_status=$?
1945
  if test -s conftest.err; then
1946
    grep -v '^ *+' conftest.err >conftest.er1
1947
    cat conftest.er1 >&5
1948
    mv -f conftest.er1 conftest.err
1949
  fi
1950
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951
  test $ac_status = 0; } && {
1952
         test -z "$ac_c_werror_flag" ||
1953
         test ! -s conftest.err
1954
       } && test -s conftest$ac_exeext && {
1955
         test "$cross_compiling" = yes ||
1956
         $as_test_x conftest$ac_exeext
1957
       }; then :
1958
  ac_retval=0
1959
else
1960
  $as_echo "$as_me: failed program was:" >&5
1961
sed 's/^/| /' conftest.$ac_ext >&5
1962
 
1963
        ac_retval=1
1964
fi
1965
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967
  # interfere with the next link command; also delete a directory that is
1968
  # left behind by Apple's compiler.  We do this before executing the actions.
1969
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
  return $ac_retval
1972
 
1973
} # ac_fn_c_try_link
1974
 
1975
# ac_fn_c_check_func LINENO FUNC VAR
1976
# ----------------------------------
1977
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1978
ac_fn_c_check_func ()
1979
{
1980
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982
$as_echo_n "checking for $2... " >&6; }
1983
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984
  $as_echo_n "(cached) " >&6
1985
else
1986
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987
/* end confdefs.h.  */
1988
/* Define $2 to an innocuous variant, in case  declares $2.
1989
   For example, HP-UX 11i  declares gettimeofday.  */
1990
#define $2 innocuous_$2
1991
 
1992
/* System header to define __stub macros and hopefully few prototypes,
1993
    which can conflict with char $2 (); below.
1994
    Prefer  to  if __STDC__ is defined, since
1995
     exists even on freestanding compilers.  */
1996
 
1997
#ifdef __STDC__
1998
# include 
1999
#else
2000
# include 
2001
#endif
2002
 
2003
#undef $2
2004
 
2005
/* Override any GCC internal prototype to avoid an error.
2006
   Use char because int might match the return type of a GCC
2007
   builtin and then its argument prototype would still apply.  */
2008
#ifdef __cplusplus
2009
extern "C"
2010
#endif
2011
char $2 ();
2012
/* The GNU C library defines this for functions which it implements
2013
    to always fail with ENOSYS.  Some functions are actually named
2014
    something starting with __ and the normal name is an alias.  */
2015
#if defined __stub_$2 || defined __stub___$2
2016
choke me
2017
#endif
2018
 
2019
int
2020
main ()
2021
{
2022
return $2 ();
2023
  ;
2024
  return 0;
2025
}
2026
_ACEOF
2027
if ac_fn_c_try_link "$LINENO"; then :
2028
  eval "$3=yes"
2029
else
2030
  eval "$3=no"
2031
fi
2032
rm -f core conftest.err conftest.$ac_objext \
2033
    conftest$ac_exeext conftest.$ac_ext
2034
fi
2035
eval ac_res=\$$3
2036
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037
$as_echo "$ac_res" >&6; }
2038
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039
 
2040
} # ac_fn_c_check_func
2041
 
2042
# ac_fn_c_check_decl LINENO SYMBOL VAR
2043
# ------------------------------------
2044
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2045
ac_fn_c_check_decl ()
2046
{
2047
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2049
$as_echo_n "checking whether $2 is declared... " >&6; }
2050
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2051
  $as_echo_n "(cached) " >&6
2052
else
2053
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054
/* end confdefs.h.  */
2055
$4
2056
int
2057
main ()
2058
{
2059
#ifndef $2
2060
  (void) $2;
2061
#endif
2062
 
2063
  ;
2064
  return 0;
2065
}
2066
_ACEOF
2067
if ac_fn_c_try_compile "$LINENO"; then :
2068
  eval "$3=yes"
2069
else
2070
  eval "$3=no"
2071
fi
2072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073
fi
2074
eval ac_res=\$$3
2075
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076
$as_echo "$ac_res" >&6; }
2077
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078
 
2079
} # ac_fn_c_check_decl
2080
 
2081
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082
# -------------------------------------------
2083
# Tests whether TYPE exists after having included INCLUDES, setting cache
2084
# variable VAR accordingly.
2085
ac_fn_c_check_type ()
2086
{
2087
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089
$as_echo_n "checking for $2... " >&6; }
2090
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091
  $as_echo_n "(cached) " >&6
2092
else
2093
  eval "$3=no"
2094
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095
/* end confdefs.h.  */
2096
$4
2097
int
2098
main ()
2099
{
2100
if (sizeof ($2))
2101
         return 0;
2102
  ;
2103
  return 0;
2104
}
2105
_ACEOF
2106
if ac_fn_c_try_compile "$LINENO"; then :
2107
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108
/* end confdefs.h.  */
2109
$4
2110
int
2111
main ()
2112
{
2113
if (sizeof (($2)))
2114
            return 0;
2115
  ;
2116
  return 0;
2117
}
2118
_ACEOF
2119
if ac_fn_c_try_compile "$LINENO"; then :
2120
 
2121
else
2122
  eval "$3=yes"
2123
fi
2124
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125
fi
2126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127
fi
2128
eval ac_res=\$$3
2129
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130
$as_echo "$ac_res" >&6; }
2131
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132
 
2133
} # ac_fn_c_check_type
2134
 
2135
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2136
# --------------------------------------------
2137
# Tries to find the compile-time value of EXPR in a program that includes
2138
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2139
# computed
2140
ac_fn_c_compute_int ()
2141
{
2142
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143
  if test "$cross_compiling" = yes; then
2144
    # Depending upon the size, compute the lo and hi bounds.
2145
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146
/* end confdefs.h.  */
2147
$4
2148
int
2149
main ()
2150
{
2151
static int test_array [1 - 2 * !(($2) >= 0)];
2152
test_array [0] = 0
2153
 
2154
  ;
2155
  return 0;
2156
}
2157
_ACEOF
2158
if ac_fn_c_try_compile "$LINENO"; then :
2159
  ac_lo=0 ac_mid=0
2160
  while :; do
2161
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162
/* end confdefs.h.  */
2163
$4
2164
int
2165
main ()
2166
{
2167
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2168
test_array [0] = 0
2169
 
2170
  ;
2171
  return 0;
2172
}
2173
_ACEOF
2174
if ac_fn_c_try_compile "$LINENO"; then :
2175
  ac_hi=$ac_mid; break
2176
else
2177
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2178
                        if test $ac_lo -le $ac_mid; then
2179
                          ac_lo= ac_hi=
2180
                          break
2181
                        fi
2182
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2183
fi
2184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185
  done
2186
else
2187
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188
/* end confdefs.h.  */
2189
$4
2190
int
2191
main ()
2192
{
2193
static int test_array [1 - 2 * !(($2) < 0)];
2194
test_array [0] = 0
2195
 
2196
  ;
2197
  return 0;
2198
}
2199
_ACEOF
2200
if ac_fn_c_try_compile "$LINENO"; then :
2201
  ac_hi=-1 ac_mid=-1
2202
  while :; do
2203
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204
/* end confdefs.h.  */
2205
$4
2206
int
2207
main ()
2208
{
2209
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2210
test_array [0] = 0
2211
 
2212
  ;
2213
  return 0;
2214
}
2215
_ACEOF
2216
if ac_fn_c_try_compile "$LINENO"; then :
2217
  ac_lo=$ac_mid; break
2218
else
2219
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2220
                        if test $ac_mid -le $ac_hi; then
2221
                          ac_lo= ac_hi=
2222
                          break
2223
                        fi
2224
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2225
fi
2226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227
  done
2228
else
2229
  ac_lo= ac_hi=
2230
fi
2231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232
fi
2233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234
# Binary search between lo and hi bounds.
2235
while test "x$ac_lo" != "x$ac_hi"; do
2236
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2237
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238
/* end confdefs.h.  */
2239
$4
2240
int
2241
main ()
2242
{
2243
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2244
test_array [0] = 0
2245
 
2246
  ;
2247
  return 0;
2248
}
2249
_ACEOF
2250
if ac_fn_c_try_compile "$LINENO"; then :
2251
  ac_hi=$ac_mid
2252
else
2253
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2254
fi
2255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256
done
2257
case $ac_lo in #((
2258
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2259
'') ac_retval=1 ;;
2260
esac
2261
  else
2262
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263
/* end confdefs.h.  */
2264
$4
2265
static long int longval () { return $2; }
2266
static unsigned long int ulongval () { return $2; }
2267
#include 
2268
#include 
2269
int
2270
main ()
2271
{
2272
 
2273
  FILE *f = fopen ("conftest.val", "w");
2274
  if (! f)
2275
    return 1;
2276
  if (($2) < 0)
2277
    {
2278
      long int i = longval ();
2279
      if (i != ($2))
2280
        return 1;
2281
      fprintf (f, "%ld", i);
2282
    }
2283
  else
2284
    {
2285
      unsigned long int i = ulongval ();
2286
      if (i != ($2))
2287
        return 1;
2288
      fprintf (f, "%lu", i);
2289
    }
2290
  /* Do not output a trailing newline, as this causes \r\n confusion
2291
     on some platforms.  */
2292
  return ferror (f) || fclose (f) != 0;
2293
 
2294
  ;
2295
  return 0;
2296
}
2297
_ACEOF
2298
if ac_fn_c_try_run "$LINENO"; then :
2299
  echo >>conftest.val; read $3 
2300
else
2301
  ac_retval=1
2302
fi
2303
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2304
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2305
rm -f conftest.val
2306
 
2307
  fi
2308
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2309
  return $ac_retval
2310
 
2311
} # ac_fn_c_compute_int
2312 19 jeremybenn
cat >config.log <<_ACEOF
2313
This file contains any messages produced by compilers while
2314
running configure, to aid debugging if configure makes a mistake.
2315
 
2316 346 jeremybenn
It was created by or1ksim $as_me 0.5.0rc1, which was
2317
generated by GNU Autoconf 2.64.  Invocation command line was
2318 19 jeremybenn
 
2319
  $ $0 $@
2320
 
2321
_ACEOF
2322
exec 5>>config.log
2323
{
2324
cat <<_ASUNAME
2325
## --------- ##
2326
## Platform. ##
2327
## --------- ##
2328
 
2329
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2330
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2331
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2332
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2333
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2334
 
2335
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2336
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2337
 
2338
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2339
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2340
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2341
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2342
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2343
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2344
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2345
 
2346
_ASUNAME
2347
 
2348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349
for as_dir in $PATH
2350
do
2351
  IFS=$as_save_IFS
2352
  test -z "$as_dir" && as_dir=.
2353 346 jeremybenn
    $as_echo "PATH: $as_dir"
2354
  done
2355 19 jeremybenn
IFS=$as_save_IFS
2356
 
2357
} >&5
2358
 
2359
cat >&5 <<_ACEOF
2360
 
2361
 
2362
## ----------- ##
2363
## Core tests. ##
2364
## ----------- ##
2365
 
2366
_ACEOF
2367
 
2368
 
2369
# Keep a trace of the command line.
2370
# Strip out --no-create and --no-recursion so they do not pile up.
2371
# Strip out --silent because we don't want to record it for future runs.
2372
# Also quote any args containing shell meta-characters.
2373
# Make two passes to allow for proper duplicate-argument suppression.
2374
ac_configure_args=
2375
ac_configure_args0=
2376
ac_configure_args1=
2377
ac_must_keep_next=false
2378
for ac_pass in 1 2
2379
do
2380
  for ac_arg
2381
  do
2382
    case $ac_arg in
2383
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2384
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2385
    | -silent | --silent | --silen | --sile | --sil)
2386
      continue ;;
2387
    *\'*)
2388 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2389 19 jeremybenn
    esac
2390
    case $ac_pass in
2391 346 jeremybenn
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2392 19 jeremybenn
    2)
2393 346 jeremybenn
      as_fn_append ac_configure_args1 " '$ac_arg'"
2394 19 jeremybenn
      if test $ac_must_keep_next = true; then
2395
        ac_must_keep_next=false # Got value, back to normal.
2396
      else
2397
        case $ac_arg in
2398
          *=* | --config-cache | -C | -disable-* | --disable-* \
2399
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2400
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2401
          | -with-* | --with-* | -without-* | --without-* | --x)
2402
            case "$ac_configure_args0 " in
2403
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2404
            esac
2405
            ;;
2406
          -* ) ac_must_keep_next=true ;;
2407
        esac
2408
      fi
2409 346 jeremybenn
      as_fn_append ac_configure_args " '$ac_arg'"
2410 19 jeremybenn
      ;;
2411
    esac
2412
  done
2413
done
2414 346 jeremybenn
{ ac_configure_args0=; unset ac_configure_args0;}
2415
{ ac_configure_args1=; unset ac_configure_args1;}
2416 19 jeremybenn
 
2417
# When interrupted or exit'd, cleanup temporary files, and complete
2418
# config.log.  We remove comments because anyway the quotes in there
2419
# would cause problems or look ugly.
2420
# WARNING: Use '\'' to represent an apostrophe within the trap.
2421
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2422
trap 'exit_status=$?
2423
  # Save into config.log some information that might help in debugging.
2424
  {
2425
    echo
2426
 
2427
    cat <<\_ASBOX
2428
## ---------------- ##
2429
## Cache variables. ##
2430
## ---------------- ##
2431
_ASBOX
2432
    echo
2433
    # The following way of writing the cache mishandles newlines in values,
2434
(
2435
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2436
    eval ac_val=\$$ac_var
2437
    case $ac_val in #(
2438
    *${as_nl}*)
2439
      case $ac_var in #(
2440 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2441 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2442 19 jeremybenn
      esac
2443
      case $ac_var in #(
2444
      _ | IFS | as_nl) ;; #(
2445 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2446 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
2447 19 jeremybenn
      esac ;;
2448
    esac
2449
  done
2450
  (set) 2>&1 |
2451
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2452
    *${as_nl}ac_space=\ *)
2453
      sed -n \
2454
        "s/'\''/'\''\\\\'\'''\''/g;
2455
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2456
      ;; #(
2457
    *)
2458
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2459
      ;;
2460
    esac |
2461
    sort
2462
)
2463
    echo
2464
 
2465
    cat <<\_ASBOX
2466
## ----------------- ##
2467
## Output variables. ##
2468
## ----------------- ##
2469
_ASBOX
2470
    echo
2471
    for ac_var in $ac_subst_vars
2472
    do
2473
      eval ac_val=\$$ac_var
2474
      case $ac_val in
2475 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2476 19 jeremybenn
      esac
2477 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
2478 19 jeremybenn
    done | sort
2479
    echo
2480
 
2481
    if test -n "$ac_subst_files"; then
2482
      cat <<\_ASBOX
2483
## ------------------- ##
2484
## File substitutions. ##
2485
## ------------------- ##
2486
_ASBOX
2487
      echo
2488
      for ac_var in $ac_subst_files
2489
      do
2490
        eval ac_val=\$$ac_var
2491
        case $ac_val in
2492 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 19 jeremybenn
        esac
2494 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
2495 19 jeremybenn
      done | sort
2496
      echo
2497
    fi
2498
 
2499
    if test -s confdefs.h; then
2500
      cat <<\_ASBOX
2501
## ----------- ##
2502
## confdefs.h. ##
2503
## ----------- ##
2504
_ASBOX
2505
      echo
2506
      cat confdefs.h
2507
      echo
2508
    fi
2509
    test "$ac_signal" != 0 &&
2510 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
2511
    $as_echo "$as_me: exit $exit_status"
2512 19 jeremybenn
  } >&5
2513
  rm -f core *.core core.conftest.* &&
2514
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2515
    exit $exit_status
2516
' 0
2517
for ac_signal in 1 2 13 15; do
2518 346 jeremybenn
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2519 19 jeremybenn
done
2520
ac_signal=0
2521
 
2522
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2523
rm -f -r conftest* confdefs.h
2524
 
2525 346 jeremybenn
$as_echo "/* confdefs.h */" > confdefs.h
2526
 
2527 19 jeremybenn
# Predefined preprocessor variables.
2528
 
2529
cat >>confdefs.h <<_ACEOF
2530
#define PACKAGE_NAME "$PACKAGE_NAME"
2531
_ACEOF
2532
 
2533
cat >>confdefs.h <<_ACEOF
2534
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2535
_ACEOF
2536
 
2537
cat >>confdefs.h <<_ACEOF
2538
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2539
_ACEOF
2540
 
2541
cat >>confdefs.h <<_ACEOF
2542
#define PACKAGE_STRING "$PACKAGE_STRING"
2543
_ACEOF
2544
 
2545
cat >>confdefs.h <<_ACEOF
2546
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2547
_ACEOF
2548
 
2549 346 jeremybenn
cat >>confdefs.h <<_ACEOF
2550
#define PACKAGE_URL "$PACKAGE_URL"
2551
_ACEOF
2552 19 jeremybenn
 
2553 346 jeremybenn
 
2554 19 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2555 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
2556
ac_site_file1=NONE
2557
ac_site_file2=NONE
2558 19 jeremybenn
if test -n "$CONFIG_SITE"; then
2559 82 jeremybenn
  ac_site_file1=$CONFIG_SITE
2560 19 jeremybenn
elif test "x$prefix" != xNONE; then
2561 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
2562
  ac_site_file2=$prefix/etc/config.site
2563 19 jeremybenn
else
2564 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
2565
  ac_site_file2=$ac_default_prefix/etc/config.site
2566 19 jeremybenn
fi
2567 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2568 19 jeremybenn
do
2569 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
2570 236 jeremybenn
  if test -r "$ac_site_file"; then
2571 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2572 82 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2573 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2574
    . "$ac_site_file"
2575
  fi
2576
done
2577
 
2578
if test -r "$cache_file"; then
2579 236 jeremybenn
  # Some versions of bash will fail to source /dev/null (special
2580
  # files actually), so we avoid doing that.
2581
  if test -f "$cache_file"; then
2582 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2583 82 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2584 19 jeremybenn
    case $cache_file in
2585
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2586
      *)                      . "./$cache_file";;
2587
    esac
2588
  fi
2589
else
2590 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2591 82 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2592 19 jeremybenn
  >$cache_file
2593
fi
2594
 
2595
# Check that the precious variables saved in the cache have kept the same
2596
# value.
2597
ac_cache_corrupted=false
2598
for ac_var in $ac_precious_vars; do
2599
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2600
  eval ac_new_set=\$ac_env_${ac_var}_set
2601
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2602
  eval ac_new_val=\$ac_env_${ac_var}_value
2603
  case $ac_old_set,$ac_new_set in
2604
    set,)
2605 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2606 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2607 19 jeremybenn
      ac_cache_corrupted=: ;;
2608
    ,set)
2609 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2610 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2611 19 jeremybenn
      ac_cache_corrupted=: ;;
2612
    ,);;
2613
    *)
2614
      if test "x$ac_old_val" != "x$ac_new_val"; then
2615 82 jeremybenn
        # differences in whitespace do not lead to failure.
2616
        ac_old_val_w=`echo x $ac_old_val`
2617
        ac_new_val_w=`echo x $ac_new_val`
2618
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2619 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2620 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2621
          ac_cache_corrupted=:
2622
        else
2623 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2624 82 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2625
          eval $ac_var=\$ac_old_val
2626
        fi
2627 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2628 82 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2629 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2630 82 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2631 19 jeremybenn
      fi;;
2632
  esac
2633
  # Pass precious variables to config.status.
2634
  if test "$ac_new_set" = set; then
2635
    case $ac_new_val in
2636 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2637 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2638
    esac
2639
    case " $ac_configure_args " in
2640
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2641 346 jeremybenn
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2642 19 jeremybenn
    esac
2643
  fi
2644
done
2645
if $ac_cache_corrupted; then
2646 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2649 82 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2650 346 jeremybenn
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2651 19 jeremybenn
fi
2652 346 jeremybenn
## -------------------- ##
2653
## Main body of script. ##
2654
## -------------------- ##
2655 19 jeremybenn
 
2656
ac_ext=c
2657
ac_cpp='$CPP $CPPFLAGS'
2658
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661
 
2662
 
2663
 
2664 82 jeremybenn
 
2665 91 jeremybenn
# Generically use extensions such as _GNU_SOURCE if available.
2666 19 jeremybenn
ac_ext=c
2667
ac_cpp='$CPP $CPPFLAGS'
2668
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671
if test -n "$ac_tool_prefix"; then
2672
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2673
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2674 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2676 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2677 82 jeremybenn
  $as_echo_n "(cached) " >&6
2678 19 jeremybenn
else
2679
  if test -n "$CC"; then
2680
  ac_cv_prog_CC="$CC" # Let the user override the test.
2681
else
2682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683
for as_dir in $PATH
2684
do
2685
  IFS=$as_save_IFS
2686
  test -z "$as_dir" && as_dir=.
2687 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2688 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2690 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 19 jeremybenn
    break 2
2692
  fi
2693
done
2694 346 jeremybenn
  done
2695 19 jeremybenn
IFS=$as_save_IFS
2696
 
2697
fi
2698
fi
2699
CC=$ac_cv_prog_CC
2700
if test -n "$CC"; then
2701 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 82 jeremybenn
$as_echo "$CC" >&6; }
2703 19 jeremybenn
else
2704 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 82 jeremybenn
$as_echo "no" >&6; }
2706 19 jeremybenn
fi
2707
 
2708
 
2709
fi
2710
if test -z "$ac_cv_prog_CC"; then
2711
  ac_ct_CC=$CC
2712
  # Extract the first word of "gcc", so it can be a program name with args.
2713
set dummy gcc; ac_word=$2
2714 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2716 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2717 82 jeremybenn
  $as_echo_n "(cached) " >&6
2718 19 jeremybenn
else
2719
  if test -n "$ac_ct_CC"; then
2720
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2721
else
2722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723
for as_dir in $PATH
2724
do
2725
  IFS=$as_save_IFS
2726
  test -z "$as_dir" && as_dir=.
2727 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2728 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729
    ac_cv_prog_ac_ct_CC="gcc"
2730 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 19 jeremybenn
    break 2
2732
  fi
2733
done
2734 346 jeremybenn
  done
2735 19 jeremybenn
IFS=$as_save_IFS
2736
 
2737
fi
2738
fi
2739
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2740
if test -n "$ac_ct_CC"; then
2741 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2742 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2743 19 jeremybenn
else
2744 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 82 jeremybenn
$as_echo "no" >&6; }
2746 19 jeremybenn
fi
2747
 
2748
  if test "x$ac_ct_CC" = x; then
2749
    CC=""
2750
  else
2751
    case $cross_compiling:$ac_tool_warned in
2752
yes:)
2753 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755 19 jeremybenn
ac_tool_warned=yes ;;
2756
esac
2757
    CC=$ac_ct_CC
2758
  fi
2759
else
2760
  CC="$ac_cv_prog_CC"
2761
fi
2762
 
2763
if test -z "$CC"; then
2764
          if test -n "$ac_tool_prefix"; then
2765
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2766
set dummy ${ac_tool_prefix}cc; ac_word=$2
2767 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2769 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2770 82 jeremybenn
  $as_echo_n "(cached) " >&6
2771 19 jeremybenn
else
2772
  if test -n "$CC"; then
2773
  ac_cv_prog_CC="$CC" # Let the user override the test.
2774
else
2775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776
for as_dir in $PATH
2777
do
2778
  IFS=$as_save_IFS
2779
  test -z "$as_dir" && as_dir=.
2780 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2781 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2783 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 19 jeremybenn
    break 2
2785
  fi
2786
done
2787 346 jeremybenn
  done
2788 19 jeremybenn
IFS=$as_save_IFS
2789
 
2790
fi
2791
fi
2792
CC=$ac_cv_prog_CC
2793
if test -n "$CC"; then
2794 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 82 jeremybenn
$as_echo "$CC" >&6; }
2796 19 jeremybenn
else
2797 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 82 jeremybenn
$as_echo "no" >&6; }
2799 19 jeremybenn
fi
2800
 
2801
 
2802
  fi
2803
fi
2804
if test -z "$CC"; then
2805
  # Extract the first word of "cc", so it can be a program name with args.
2806
set dummy cc; ac_word=$2
2807 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2809 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2810 82 jeremybenn
  $as_echo_n "(cached) " >&6
2811 19 jeremybenn
else
2812
  if test -n "$CC"; then
2813
  ac_cv_prog_CC="$CC" # Let the user override the test.
2814
else
2815
  ac_prog_rejected=no
2816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817
for as_dir in $PATH
2818
do
2819
  IFS=$as_save_IFS
2820
  test -z "$as_dir" && as_dir=.
2821 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2822 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2824
       ac_prog_rejected=yes
2825
       continue
2826
     fi
2827
    ac_cv_prog_CC="cc"
2828 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 19 jeremybenn
    break 2
2830
  fi
2831
done
2832 346 jeremybenn
  done
2833 19 jeremybenn
IFS=$as_save_IFS
2834
 
2835
if test $ac_prog_rejected = yes; then
2836
  # We found a bogon in the path, so make sure we never use it.
2837
  set dummy $ac_cv_prog_CC
2838
  shift
2839
  if test $# != 0; then
2840
    # We chose a different compiler from the bogus one.
2841
    # However, it has the same basename, so the bogon will be chosen
2842
    # first if we set CC to just the basename; use the full file name.
2843
    shift
2844
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2845
  fi
2846
fi
2847
fi
2848
fi
2849
CC=$ac_cv_prog_CC
2850
if test -n "$CC"; then
2851 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 82 jeremybenn
$as_echo "$CC" >&6; }
2853 19 jeremybenn
else
2854 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 82 jeremybenn
$as_echo "no" >&6; }
2856 19 jeremybenn
fi
2857
 
2858
 
2859
fi
2860
if test -z "$CC"; then
2861
  if test -n "$ac_tool_prefix"; then
2862
  for ac_prog in cl.exe
2863
  do
2864
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2865
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2866 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2868 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2869 82 jeremybenn
  $as_echo_n "(cached) " >&6
2870 19 jeremybenn
else
2871
  if test -n "$CC"; then
2872
  ac_cv_prog_CC="$CC" # Let the user override the test.
2873
else
2874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875
for as_dir in $PATH
2876
do
2877
  IFS=$as_save_IFS
2878
  test -z "$as_dir" && as_dir=.
2879 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2880 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2882 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 19 jeremybenn
    break 2
2884
  fi
2885
done
2886 346 jeremybenn
  done
2887 19 jeremybenn
IFS=$as_save_IFS
2888
 
2889
fi
2890
fi
2891
CC=$ac_cv_prog_CC
2892
if test -n "$CC"; then
2893 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894 82 jeremybenn
$as_echo "$CC" >&6; }
2895 19 jeremybenn
else
2896 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 82 jeremybenn
$as_echo "no" >&6; }
2898 19 jeremybenn
fi
2899
 
2900
 
2901
    test -n "$CC" && break
2902
  done
2903
fi
2904
if test -z "$CC"; then
2905
  ac_ct_CC=$CC
2906
  for ac_prog in cl.exe
2907
do
2908
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2909
set dummy $ac_prog; ac_word=$2
2910 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2912 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2913 82 jeremybenn
  $as_echo_n "(cached) " >&6
2914 19 jeremybenn
else
2915
  if test -n "$ac_ct_CC"; then
2916
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917
else
2918
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919
for as_dir in $PATH
2920
do
2921
  IFS=$as_save_IFS
2922
  test -z "$as_dir" && as_dir=.
2923 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2924 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925
    ac_cv_prog_ac_ct_CC="$ac_prog"
2926 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 19 jeremybenn
    break 2
2928
  fi
2929
done
2930 346 jeremybenn
  done
2931 19 jeremybenn
IFS=$as_save_IFS
2932
 
2933
fi
2934
fi
2935
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936
if test -n "$ac_ct_CC"; then
2937 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2938 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2939 19 jeremybenn
else
2940 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 82 jeremybenn
$as_echo "no" >&6; }
2942 19 jeremybenn
fi
2943
 
2944
 
2945
  test -n "$ac_ct_CC" && break
2946
done
2947
 
2948
  if test "x$ac_ct_CC" = x; then
2949
    CC=""
2950
  else
2951
    case $cross_compiling:$ac_tool_warned in
2952
yes:)
2953 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955 19 jeremybenn
ac_tool_warned=yes ;;
2956
esac
2957
    CC=$ac_ct_CC
2958
  fi
2959
fi
2960
 
2961
fi
2962
 
2963
 
2964 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 346 jeremybenn
as_fn_error "no acceptable C compiler found in \$PATH
2967
See \`config.log' for more details." "$LINENO" 5; }
2968 19 jeremybenn
 
2969
# Provide some information about the compiler.
2970 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2971 82 jeremybenn
set X $ac_compile
2972
ac_compiler=$2
2973 346 jeremybenn
for ac_option in --version -v -V -qversion; do
2974
  { { ac_try="$ac_compiler $ac_option >&5"
2975 19 jeremybenn
case "(($ac_try" in
2976
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977
  *) ac_try_echo=$ac_try;;
2978
esac
2979 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980
$as_echo "$ac_try_echo"; } >&5
2981
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2982 19 jeremybenn
  ac_status=$?
2983 346 jeremybenn
  if test -s conftest.err; then
2984
    sed '10a\
2985
... rest of stderr output deleted ...
2986
         10q' conftest.err >conftest.er1
2987
    cat conftest.er1 >&5
2988
    rm -f conftest.er1 conftest.err
2989
  fi
2990
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991
  test $ac_status = 0; }
2992
done
2993 19 jeremybenn
 
2994 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 19 jeremybenn
/* end confdefs.h.  */
2996 346 jeremybenn
#include 
2997 19 jeremybenn
int
2998
main ()
2999
{
3000 346 jeremybenn
FILE *f = fopen ("conftest.out", "w");
3001
 return ferror (f) || fclose (f) != 0;
3002 19 jeremybenn
 
3003
  ;
3004
  return 0;
3005
}
3006
_ACEOF
3007
ac_clean_files_save=$ac_clean_files
3008 346 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3009 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
3010
# It will help us diagnose broken compilers, and finding out an intuition
3011
# of exeext.
3012 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3013 236 jeremybenn
$as_echo_n "checking for C compiler default output file name... " >&6; }
3014 82 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3015
 
3016
# The possible output files:
3017
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3018
 
3019 19 jeremybenn
ac_rmfiles=
3020
for ac_file in $ac_files
3021
do
3022
  case $ac_file in
3023 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3024 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3025
  esac
3026
done
3027
rm -f $ac_rmfiles
3028
 
3029 346 jeremybenn
if { { ac_try="$ac_link_default"
3030 19 jeremybenn
case "(($ac_try" in
3031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032
  *) ac_try_echo=$ac_try;;
3033
esac
3034 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035
$as_echo "$ac_try_echo"; } >&5
3036 19 jeremybenn
  (eval "$ac_link_default") 2>&5
3037
  ac_status=$?
3038 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039
  test $ac_status = 0; }; then :
3040 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3041
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3042
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3043
# so that the user can short-circuit this test for compilers unknown to
3044
# Autoconf.
3045
for ac_file in $ac_files ''
3046
do
3047
  test -f "$ac_file" || continue
3048
  case $ac_file in
3049 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3050 19 jeremybenn
        ;;
3051
    [ab].out )
3052
        # We found the default executable, but exeext='' is most
3053
        # certainly right.
3054
        break;;
3055
    *.* )
3056 346 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3057 19 jeremybenn
        then :; else
3058
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059
        fi
3060
        # We set ac_cv_exeext here because the later test for it is not
3061
        # safe: cross compilers may not add the suffix if given an `-o'
3062
        # argument, so we may need to know it at that point already.
3063
        # Even if this section looks crufty: it has the advantage of
3064
        # actually working.
3065
        break;;
3066
    * )
3067
        break;;
3068
  esac
3069
done
3070
test "$ac_cv_exeext" = no && ac_cv_exeext=
3071
 
3072
else
3073
  ac_file=''
3074
fi
3075 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3076 236 jeremybenn
$as_echo "$ac_file" >&6; }
3077 346 jeremybenn
if test -z "$ac_file"; then :
3078 236 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3079 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3080
 
3081 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 346 jeremybenn
{ as_fn_set_status 77
3084
as_fn_error "C compiler cannot create executables
3085
See \`config.log' for more details." "$LINENO" 5; }; }
3086 19 jeremybenn
fi
3087
ac_exeext=$ac_cv_exeext
3088
 
3089 236 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
3090
# the compiler is broken, or we cross compile.
3091 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3092 236 jeremybenn
$as_echo_n "checking whether the C compiler works... " >&6; }
3093
# If not cross compiling, check that we can run a simple program.
3094
if test "$cross_compiling" != yes; then
3095
  if { ac_try='./$ac_file'
3096 346 jeremybenn
  { { case "(($ac_try" in
3097 236 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098
  *) ac_try_echo=$ac_try;;
3099
esac
3100 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101
$as_echo "$ac_try_echo"; } >&5
3102 236 jeremybenn
  (eval "$ac_try") 2>&5
3103
  ac_status=$?
3104 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105
  test $ac_status = 0; }; }; then
3106 236 jeremybenn
    cross_compiling=no
3107
  else
3108
    if test "$cross_compiling" = maybe; then
3109
        cross_compiling=yes
3110
    else
3111 346 jeremybenn
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112 236 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113 346 jeremybenn
as_fn_error "cannot run C compiled programs.
3114 236 jeremybenn
If you meant to cross compile, use \`--host'.
3115 346 jeremybenn
See \`config.log' for more details." "$LINENO" 5; }
3116 236 jeremybenn
    fi
3117
  fi
3118
fi
3119 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120 236 jeremybenn
$as_echo "yes" >&6; }
3121
 
3122 346 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3123 19 jeremybenn
ac_clean_files=$ac_clean_files_save
3124 236 jeremybenn
# Check that the compiler produces executables we can run.  If not, either
3125
# the compiler is broken, or we cross compile.
3126 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3127 236 jeremybenn
$as_echo_n "checking whether we are cross compiling... " >&6; }
3128 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3129 236 jeremybenn
$as_echo "$cross_compiling" >&6; }
3130
 
3131 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3132 82 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
3133 346 jeremybenn
if { { ac_try="$ac_link"
3134 19 jeremybenn
case "(($ac_try" in
3135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136
  *) ac_try_echo=$ac_try;;
3137
esac
3138 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139
$as_echo "$ac_try_echo"; } >&5
3140 19 jeremybenn
  (eval "$ac_link") 2>&5
3141
  ac_status=$?
3142 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143
  test $ac_status = 0; }; then :
3144 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3145
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3146
# work properly (i.e., refer to `conftest.exe'), while it won't with
3147
# `rm'.
3148
for ac_file in conftest.exe conftest conftest.*; do
3149
  test -f "$ac_file" || continue
3150
  case $ac_file in
3151 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3152 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153
          break;;
3154
    * ) break;;
3155
  esac
3156
done
3157
else
3158 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 346 jeremybenn
as_fn_error "cannot compute suffix of executables: cannot compile and link
3161
See \`config.log' for more details." "$LINENO" 5; }
3162 19 jeremybenn
fi
3163 236 jeremybenn
rm -f conftest$ac_cv_exeext
3164 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3165 82 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
3166 19 jeremybenn
 
3167
rm -f conftest.$ac_ext
3168
EXEEXT=$ac_cv_exeext
3169
ac_exeext=$EXEEXT
3170 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3171 82 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
3172 346 jeremybenn
if test "${ac_cv_objext+set}" = set; then :
3173 82 jeremybenn
  $as_echo_n "(cached) " >&6
3174 19 jeremybenn
else
3175 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 19 jeremybenn
/* end confdefs.h.  */
3177
 
3178
int
3179
main ()
3180
{
3181
 
3182
  ;
3183
  return 0;
3184
}
3185
_ACEOF
3186
rm -f conftest.o conftest.obj
3187 346 jeremybenn
if { { ac_try="$ac_compile"
3188 19 jeremybenn
case "(($ac_try" in
3189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190
  *) ac_try_echo=$ac_try;;
3191
esac
3192 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193
$as_echo "$ac_try_echo"; } >&5
3194 19 jeremybenn
  (eval "$ac_compile") 2>&5
3195
  ac_status=$?
3196 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197
  test $ac_status = 0; }; then :
3198 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3199
  test -f "$ac_file" || continue;
3200
  case $ac_file in
3201 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3202 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3203
       break;;
3204
  esac
3205
done
3206
else
3207 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3208 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3209
 
3210 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212 346 jeremybenn
as_fn_error "cannot compute suffix of object files: cannot compile
3213
See \`config.log' for more details." "$LINENO" 5; }
3214 19 jeremybenn
fi
3215
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3216
fi
3217 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3218 82 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
3219 19 jeremybenn
OBJEXT=$ac_cv_objext
3220
ac_objext=$OBJEXT
3221 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3222 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3223 346 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3224 82 jeremybenn
  $as_echo_n "(cached) " >&6
3225 19 jeremybenn
else
3226 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 19 jeremybenn
/* end confdefs.h.  */
3228
 
3229
int
3230
main ()
3231
{
3232
#ifndef __GNUC__
3233
       choke me
3234
#endif
3235
 
3236
  ;
3237
  return 0;
3238
}
3239
_ACEOF
3240 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3241 19 jeremybenn
  ac_compiler_gnu=yes
3242
else
3243 346 jeremybenn
  ac_compiler_gnu=no
3244 19 jeremybenn
fi
3245
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3247
 
3248
fi
3249 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3250 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3251
if test $ac_compiler_gnu = yes; then
3252
  GCC=yes
3253
else
3254
  GCC=
3255
fi
3256 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
3257
ac_save_CFLAGS=$CFLAGS
3258 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3259 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3260 346 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then :
3261 82 jeremybenn
  $as_echo_n "(cached) " >&6
3262 19 jeremybenn
else
3263
  ac_save_c_werror_flag=$ac_c_werror_flag
3264
   ac_c_werror_flag=yes
3265
   ac_cv_prog_cc_g=no
3266
   CFLAGS="-g"
3267 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 19 jeremybenn
/* end confdefs.h.  */
3269
 
3270
int
3271
main ()
3272
{
3273
 
3274
  ;
3275
  return 0;
3276
}
3277
_ACEOF
3278 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3279 19 jeremybenn
  ac_cv_prog_cc_g=yes
3280
else
3281 346 jeremybenn
  CFLAGS=""
3282
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 19 jeremybenn
/* end confdefs.h.  */
3284
 
3285
int
3286
main ()
3287
{
3288
 
3289
  ;
3290
  return 0;
3291
}
3292
_ACEOF
3293 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3294
 
3295 236 jeremybenn
else
3296 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
3297 19 jeremybenn
         CFLAGS="-g"
3298 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 19 jeremybenn
/* end confdefs.h.  */
3300
 
3301
int
3302
main ()
3303
{
3304
 
3305
  ;
3306
  return 0;
3307
}
3308
_ACEOF
3309 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3310 19 jeremybenn
  ac_cv_prog_cc_g=yes
3311
fi
3312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313
fi
3314
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315
fi
3316
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317
   ac_c_werror_flag=$ac_save_c_werror_flag
3318
fi
3319 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3320 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
3321 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
3322
  CFLAGS=$ac_save_CFLAGS
3323
elif test $ac_cv_prog_cc_g = yes; then
3324
  if test "$GCC" = yes; then
3325
    CFLAGS="-g -O2"
3326
  else
3327
    CFLAGS="-g"
3328
  fi
3329
else
3330
  if test "$GCC" = yes; then
3331
    CFLAGS="-O2"
3332
  else
3333
    CFLAGS=
3334
  fi
3335
fi
3336 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3337 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3338 346 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3339 82 jeremybenn
  $as_echo_n "(cached) " >&6
3340 19 jeremybenn
else
3341
  ac_cv_prog_cc_c89=no
3342
ac_save_CC=$CC
3343 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 19 jeremybenn
/* end confdefs.h.  */
3345
#include 
3346
#include 
3347
#include 
3348
#include 
3349
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3350
struct buf { int x; };
3351
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3352
static char *e (p, i)
3353
     char **p;
3354
     int i;
3355
{
3356
  return p[i];
3357
}
3358
static char *f (char * (*g) (char **, int), char **p, ...)
3359
{
3360
  char *s;
3361
  va_list v;
3362
  va_start (v,p);
3363
  s = g (p, va_arg (v,int));
3364
  va_end (v);
3365
  return s;
3366
}
3367
 
3368
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3369
   function prototypes and stuff, but not '\xHH' hex character constants.
3370
   These don't provoke an error unfortunately, instead are silently treated
3371
   as 'x'.  The following induces an error, until -std is added to get
3372
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3373
   array size at least.  It's necessary to write '\x00'==0 to get something
3374
   that's true only with -std.  */
3375
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3376
 
3377
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3378
   inside strings and character constants.  */
3379
#define FOO(x) 'x'
3380
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3381
 
3382
int test (int i, double x);
3383
struct s1 {int (*f) (int a);};
3384
struct s2 {int (*f) (double a);};
3385
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3386
int argc;
3387
char **argv;
3388
int
3389
main ()
3390
{
3391
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3392
  ;
3393
  return 0;
3394
}
3395
_ACEOF
3396
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3397
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3398
do
3399
  CC="$ac_save_CC $ac_arg"
3400 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
3401 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3402
fi
3403
rm -f core conftest.err conftest.$ac_objext
3404
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3405
done
3406
rm -f conftest.$ac_ext
3407
CC=$ac_save_CC
3408
 
3409
fi
3410
# AC_CACHE_VAL
3411
case "x$ac_cv_prog_cc_c89" in
3412
  x)
3413 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3414 82 jeremybenn
$as_echo "none needed" >&6; } ;;
3415 19 jeremybenn
  xno)
3416 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3417 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
3418 19 jeremybenn
  *)
3419
    CC="$CC $ac_cv_prog_cc_c89"
3420 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3421 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3422 19 jeremybenn
esac
3423 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
3424 19 jeremybenn
 
3425 346 jeremybenn
fi
3426 19 jeremybenn
 
3427
ac_ext=c
3428
ac_cpp='$CPP $CPPFLAGS'
3429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432
 
3433 91 jeremybenn
 
3434
ac_ext=c
3435
ac_cpp='$CPP $CPPFLAGS'
3436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3440 91 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3441
# On Suns, sometimes $CPP names a directory.
3442
if test -n "$CPP" && test -d "$CPP"; then
3443
  CPP=
3444
fi
3445
if test -z "$CPP"; then
3446 346 jeremybenn
  if test "${ac_cv_prog_CPP+set}" = set; then :
3447 82 jeremybenn
  $as_echo_n "(cached) " >&6
3448 19 jeremybenn
else
3449 91 jeremybenn
      # Double quotes because CPP needs to be expanded
3450
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3451
    do
3452
      ac_preproc_ok=false
3453
for ac_c_preproc_warn_flag in '' yes
3454 19 jeremybenn
do
3455 91 jeremybenn
  # Use a header file that comes with gcc, so configuring glibc
3456
  # with a fresh cross-compiler works.
3457
  # Prefer  to  if __STDC__ is defined, since
3458
  #  exists even on freestanding compilers.
3459
  # On the NeXT, cc -E runs the code through the compiler's parser,
3460
  # not just through cpp. "Syntax error" is here to catch this case.
3461 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 91 jeremybenn
/* end confdefs.h.  */
3463
#ifdef __STDC__
3464
# include 
3465
#else
3466
# include 
3467
#endif
3468
                     Syntax error
3469
_ACEOF
3470 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3471
 
3472 236 jeremybenn
else
3473 91 jeremybenn
  # Broken: fails on valid input.
3474
continue
3475
fi
3476
rm -f conftest.err conftest.$ac_ext
3477
 
3478
  # OK, works on sane cases.  Now check whether nonexistent headers
3479
  # can be detected and how.
3480 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 91 jeremybenn
/* end confdefs.h.  */
3482
#include 
3483
_ACEOF
3484 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3485 91 jeremybenn
  # Broken: success on invalid input.
3486
continue
3487 82 jeremybenn
else
3488 91 jeremybenn
  # Passes both tests.
3489
ac_preproc_ok=:
3490
break
3491 82 jeremybenn
fi
3492 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3493
 
3494
done
3495
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3496
rm -f conftest.err conftest.$ac_ext
3497 346 jeremybenn
if $ac_preproc_ok; then :
3498 91 jeremybenn
  break
3499 19 jeremybenn
fi
3500
 
3501 91 jeremybenn
    done
3502
    ac_cv_prog_CPP=$CPP
3503 19 jeremybenn
 
3504 91 jeremybenn
fi
3505
  CPP=$ac_cv_prog_CPP
3506
else
3507
  ac_cv_prog_CPP=$CPP
3508
fi
3509 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3510 91 jeremybenn
$as_echo "$CPP" >&6; }
3511
ac_preproc_ok=false
3512
for ac_c_preproc_warn_flag in '' yes
3513
do
3514
  # Use a header file that comes with gcc, so configuring glibc
3515
  # with a fresh cross-compiler works.
3516
  # Prefer  to  if __STDC__ is defined, since
3517
  #  exists even on freestanding compilers.
3518
  # On the NeXT, cc -E runs the code through the compiler's parser,
3519
  # not just through cpp. "Syntax error" is here to catch this case.
3520 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 91 jeremybenn
/* end confdefs.h.  */
3522
#ifdef __STDC__
3523
# include 
3524
#else
3525
# include 
3526
#endif
3527
                     Syntax error
3528
_ACEOF
3529 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3530
 
3531 236 jeremybenn
else
3532 91 jeremybenn
  # Broken: fails on valid input.
3533
continue
3534
fi
3535
rm -f conftest.err conftest.$ac_ext
3536 82 jeremybenn
 
3537 91 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3538
  # can be detected and how.
3539 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 91 jeremybenn
/* end confdefs.h.  */
3541
#include 
3542
_ACEOF
3543 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3544 91 jeremybenn
  # Broken: success on invalid input.
3545
continue
3546
else
3547
  # Passes both tests.
3548
ac_preproc_ok=:
3549
break
3550
fi
3551
rm -f conftest.err conftest.$ac_ext
3552 82 jeremybenn
 
3553 91 jeremybenn
done
3554
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555
rm -f conftest.err conftest.$ac_ext
3556 346 jeremybenn
if $ac_preproc_ok; then :
3557
 
3558 91 jeremybenn
else
3559 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 91 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 346 jeremybenn
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3562
See \`config.log' for more details." "$LINENO" 5; }
3563 91 jeremybenn
fi
3564 82 jeremybenn
 
3565 91 jeremybenn
ac_ext=c
3566
ac_cpp='$CPP $CPPFLAGS'
3567
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 82 jeremybenn
 
3571
 
3572 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3573 82 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3574 346 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then :
3575 82 jeremybenn
  $as_echo_n "(cached) " >&6
3576 19 jeremybenn
else
3577 82 jeremybenn
  if test -z "$GREP"; then
3578 19 jeremybenn
  ac_path_GREP_found=false
3579 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3580
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3582
do
3583
  IFS=$as_save_IFS
3584
  test -z "$as_dir" && as_dir=.
3585 346 jeremybenn
    for ac_prog in grep ggrep; do
3586 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3587
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3588
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3589
# Check for GNU ac_path_GREP and select it if it is found.
3590 19 jeremybenn
  # Check for GNU $ac_path_GREP
3591
case `"$ac_path_GREP" --version 2>&1` in
3592
*GNU*)
3593
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3594
*)
3595
  ac_count=0
3596 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3597 19 jeremybenn
  while :
3598
  do
3599
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3600
    mv "conftest.tmp" "conftest.in"
3601
    cp "conftest.in" "conftest.nl"
3602 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3603 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3604
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3605 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3606 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3607
      # Best one so far, save it but keep looking for a better one
3608
      ac_cv_path_GREP="$ac_path_GREP"
3609
      ac_path_GREP_max=$ac_count
3610
    fi
3611
    # 10*(2^10) chars as input seems more than enough
3612
    test $ac_count -gt 10 && break
3613
  done
3614
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3615
esac
3616
 
3617 82 jeremybenn
      $ac_path_GREP_found && break 3
3618
    done
3619 19 jeremybenn
  done
3620 346 jeremybenn
  done
3621 19 jeremybenn
IFS=$as_save_IFS
3622 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3623 346 jeremybenn
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3624 82 jeremybenn
  fi
3625 19 jeremybenn
else
3626
  ac_cv_path_GREP=$GREP
3627
fi
3628
 
3629
fi
3630 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3631 82 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3632 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3633
 
3634
 
3635 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3636 82 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3637 346 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then :
3638 82 jeremybenn
  $as_echo_n "(cached) " >&6
3639 19 jeremybenn
else
3640
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3641
   then ac_cv_path_EGREP="$GREP -E"
3642
   else
3643 82 jeremybenn
     if test -z "$EGREP"; then
3644 19 jeremybenn
  ac_path_EGREP_found=false
3645 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3646
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3648
do
3649
  IFS=$as_save_IFS
3650
  test -z "$as_dir" && as_dir=.
3651 346 jeremybenn
    for ac_prog in egrep; do
3652 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3653
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3654
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3655
# Check for GNU ac_path_EGREP and select it if it is found.
3656 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3657
case `"$ac_path_EGREP" --version 2>&1` in
3658
*GNU*)
3659
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3660
*)
3661
  ac_count=0
3662 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3663 19 jeremybenn
  while :
3664
  do
3665
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3666
    mv "conftest.tmp" "conftest.in"
3667
    cp "conftest.in" "conftest.nl"
3668 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3669 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3670
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3671 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3672 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3673
      # Best one so far, save it but keep looking for a better one
3674
      ac_cv_path_EGREP="$ac_path_EGREP"
3675
      ac_path_EGREP_max=$ac_count
3676
    fi
3677
    # 10*(2^10) chars as input seems more than enough
3678
    test $ac_count -gt 10 && break
3679
  done
3680
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3681
esac
3682
 
3683 82 jeremybenn
      $ac_path_EGREP_found && break 3
3684
    done
3685 19 jeremybenn
  done
3686 346 jeremybenn
  done
3687 19 jeremybenn
IFS=$as_save_IFS
3688 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3689 346 jeremybenn
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3690 82 jeremybenn
  fi
3691
else
3692
  ac_cv_path_EGREP=$EGREP
3693 19 jeremybenn
fi
3694
 
3695 82 jeremybenn
   fi
3696 19 jeremybenn
fi
3697 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3698 82 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3699
 EGREP="$ac_cv_path_EGREP"
3700 19 jeremybenn
 
3701 82 jeremybenn
 
3702 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3703 91 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
3704 346 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then :
3705 91 jeremybenn
  $as_echo_n "(cached) " >&6
3706
else
3707 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 91 jeremybenn
/* end confdefs.h.  */
3709
#include 
3710
#include 
3711
#include 
3712
#include 
3713
 
3714
int
3715
main ()
3716
{
3717
 
3718
  ;
3719
  return 0;
3720
}
3721
_ACEOF
3722 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3723 91 jeremybenn
  ac_cv_header_stdc=yes
3724
else
3725 346 jeremybenn
  ac_cv_header_stdc=no
3726 91 jeremybenn
fi
3727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728
 
3729
if test $ac_cv_header_stdc = yes; then
3730
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3731 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 91 jeremybenn
/* end confdefs.h.  */
3733
#include 
3734
 
3735
_ACEOF
3736
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
3738
 
3739 91 jeremybenn
else
3740
  ac_cv_header_stdc=no
3741
fi
3742
rm -f conftest*
3743
 
3744
fi
3745
 
3746
if test $ac_cv_header_stdc = yes; then
3747
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3748 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 91 jeremybenn
/* end confdefs.h.  */
3750
#include 
3751
 
3752
_ACEOF
3753
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3754 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
3755
 
3756 91 jeremybenn
else
3757
  ac_cv_header_stdc=no
3758
fi
3759
rm -f conftest*
3760
 
3761
fi
3762
 
3763
if test $ac_cv_header_stdc = yes; then
3764
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3765 346 jeremybenn
  if test "$cross_compiling" = yes; then :
3766 91 jeremybenn
  :
3767
else
3768 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 91 jeremybenn
/* end confdefs.h.  */
3770
#include 
3771
#include 
3772
#if ((' ' & 0x0FF) == 0x020)
3773
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3774
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3775
#else
3776
# define ISLOWER(c) \
3777
                   (('a' <= (c) && (c) <= 'i') \
3778
                     || ('j' <= (c) && (c) <= 'r') \
3779
                     || ('s' <= (c) && (c) <= 'z'))
3780
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3781
#endif
3782
 
3783
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3784
int
3785
main ()
3786
{
3787
  int i;
3788
  for (i = 0; i < 256; i++)
3789
    if (XOR (islower (i), ISLOWER (i))
3790
        || toupper (i) != TOUPPER (i))
3791
      return 2;
3792
  return 0;
3793
}
3794
_ACEOF
3795 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
3796
 
3797 236 jeremybenn
else
3798 346 jeremybenn
  ac_cv_header_stdc=no
3799 91 jeremybenn
fi
3800 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3801
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3802 91 jeremybenn
fi
3803
 
3804
fi
3805
fi
3806 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3807 91 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
3808
if test $ac_cv_header_stdc = yes; then
3809
 
3810 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3811 91 jeremybenn
 
3812
fi
3813
 
3814
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3815
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3816
                  inttypes.h stdint.h unistd.h
3817 346 jeremybenn
do :
3818
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3819
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3820
"
3821
eval as_val=\$$as_ac_Header
3822
   if test "x$as_val" = x""yes; then :
3823 91 jeremybenn
  cat >>confdefs.h <<_ACEOF
3824
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3825
_ACEOF
3826
 
3827
fi
3828
 
3829
done
3830
 
3831
 
3832
 
3833 346 jeremybenn
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3834
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3835 91 jeremybenn
  MINIX=yes
3836
else
3837
  MINIX=
3838
fi
3839
 
3840
 
3841
  if test "$MINIX" = yes; then
3842
 
3843 346 jeremybenn
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3844 91 jeremybenn
 
3845
 
3846 346 jeremybenn
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3847 91 jeremybenn
 
3848
 
3849 346 jeremybenn
$as_echo "#define _MINIX 1" >>confdefs.h
3850 91 jeremybenn
 
3851
  fi
3852
 
3853
 
3854 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3855 91 jeremybenn
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3856 346 jeremybenn
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3857 91 jeremybenn
  $as_echo_n "(cached) " >&6
3858
else
3859 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 91 jeremybenn
/* end confdefs.h.  */
3861
 
3862
#         define __EXTENSIONS__ 1
3863
          $ac_includes_default
3864
int
3865
main ()
3866
{
3867
 
3868
  ;
3869
  return 0;
3870
}
3871
_ACEOF
3872 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3873 91 jeremybenn
  ac_cv_safe_to_define___extensions__=yes
3874
else
3875 346 jeremybenn
  ac_cv_safe_to_define___extensions__=no
3876 91 jeremybenn
fi
3877
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878
fi
3879 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3880 91 jeremybenn
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3881
  test $ac_cv_safe_to_define___extensions__ = yes &&
3882 346 jeremybenn
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3883 91 jeremybenn
 
3884 346 jeremybenn
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3885 91 jeremybenn
 
3886 346 jeremybenn
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3887 91 jeremybenn
 
3888 346 jeremybenn
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3889 91 jeremybenn
 
3890 346 jeremybenn
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3891 91 jeremybenn
 
3892
 
3893
 
3894
# Check we have the execute source file present for sanity. Specify a separate
3895
# config for the testsuite OR1K specific programs, since we'll need different
3896
# tool chain there (the OpenRISC one, rather than the native one).
3897
 
3898
ac_aux_dir=
3899
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3900 346 jeremybenn
  for ac_t in install-sh install.sh shtool; do
3901
    if test -f "$ac_dir/$ac_t"; then
3902
      ac_aux_dir=$ac_dir
3903
      ac_install_sh="$ac_aux_dir/$ac_t -c"
3904
      break 2
3905
    fi
3906
  done
3907 91 jeremybenn
done
3908
if test -z "$ac_aux_dir"; then
3909 346 jeremybenn
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3910 91 jeremybenn
fi
3911
 
3912
# These three variables are undocumented and unsupported,
3913
# and are intended to be withdrawn in a future Autoconf release.
3914
# They can cause serious problems if a builder's source tree is in a directory
3915
# whose full name contains unusual characters.
3916
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3917
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3918
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3919
 
3920
 
3921
 
3922
 
3923
subdirs="$subdirs testsuite/test-code-or1k"
3924
 
3925
 
3926
# Make sure we can run config.sub.
3927
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3928 346 jeremybenn
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3929 91 jeremybenn
 
3930 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3931 91 jeremybenn
$as_echo_n "checking build system type... " >&6; }
3932 346 jeremybenn
if test "${ac_cv_build+set}" = set; then :
3933 91 jeremybenn
  $as_echo_n "(cached) " >&6
3934
else
3935
  ac_build_alias=$build_alias
3936
test "x$ac_build_alias" = x &&
3937
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3938
test "x$ac_build_alias" = x &&
3939 346 jeremybenn
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3940 91 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3941 346 jeremybenn
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3942 91 jeremybenn
 
3943
fi
3944 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3945 91 jeremybenn
$as_echo "$ac_cv_build" >&6; }
3946
case $ac_cv_build in
3947
*-*-*) ;;
3948 346 jeremybenn
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3949 91 jeremybenn
esac
3950
build=$ac_cv_build
3951
ac_save_IFS=$IFS; IFS='-'
3952
set x $ac_cv_build
3953
shift
3954
build_cpu=$1
3955
build_vendor=$2
3956
shift; shift
3957
# Remember, the first character of IFS is used to create $*,
3958
# except with old shells:
3959
build_os=$*
3960
IFS=$ac_save_IFS
3961
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3962
 
3963
 
3964 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3965 91 jeremybenn
$as_echo_n "checking host system type... " >&6; }
3966 346 jeremybenn
if test "${ac_cv_host+set}" = set; then :
3967 91 jeremybenn
  $as_echo_n "(cached) " >&6
3968
else
3969
  if test "x$host_alias" = x; then
3970
  ac_cv_host=$ac_cv_build
3971
else
3972
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3973 346 jeremybenn
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3974 91 jeremybenn
fi
3975
 
3976
fi
3977 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3978 91 jeremybenn
$as_echo "$ac_cv_host" >&6; }
3979
case $ac_cv_host in
3980
*-*-*) ;;
3981 346 jeremybenn
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3982 91 jeremybenn
esac
3983
host=$ac_cv_host
3984
ac_save_IFS=$IFS; IFS='-'
3985
set x $ac_cv_host
3986
shift
3987
host_cpu=$1
3988
host_vendor=$2
3989
shift; shift
3990
# Remember, the first character of IFS is used to create $*,
3991
# except with old shells:
3992
host_os=$*
3993
IFS=$ac_save_IFS
3994
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3995
 
3996
 
3997 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3998 91 jeremybenn
$as_echo_n "checking target system type... " >&6; }
3999 346 jeremybenn
if test "${ac_cv_target+set}" = set; then :
4000 91 jeremybenn
  $as_echo_n "(cached) " >&6
4001
else
4002
  if test "x$target_alias" = x; then
4003
  ac_cv_target=$ac_cv_host
4004
else
4005
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4006 346 jeremybenn
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4007 91 jeremybenn
fi
4008
 
4009
fi
4010 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4011 91 jeremybenn
$as_echo "$ac_cv_target" >&6; }
4012
case $ac_cv_target in
4013
*-*-*) ;;
4014 346 jeremybenn
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4015 91 jeremybenn
esac
4016
target=$ac_cv_target
4017
ac_save_IFS=$IFS; IFS='-'
4018
set x $ac_cv_target
4019
shift
4020
target_cpu=$1
4021
target_vendor=$2
4022
shift; shift
4023
# Remember, the first character of IFS is used to create $*,
4024
# except with old shells:
4025
target_os=$*
4026
IFS=$ac_save_IFS
4027
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4028
 
4029
 
4030
# The aliases save the names the user supplied, while $host etc.
4031
# will get canonicalized.
4032
test -n "$target_alias" &&
4033
  test "$program_prefix$program_suffix$program_transform_name" = \
4034
    NONENONEs,x,x, &&
4035
  program_prefix=${target_alias}-
4036
case `pwd` in
4037
  *\ * | *\     *)
4038 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4039 91 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4040
esac
4041
 
4042
 
4043
 
4044 96 jeremybenn
macro_version='2.2.6b'
4045
macro_revision='1.3017'
4046 91 jeremybenn
 
4047
 
4048
 
4049
 
4050
 
4051
 
4052
 
4053
 
4054
 
4055
 
4056
 
4057
 
4058
 
4059
ltmain="$ac_aux_dir/ltmain.sh"
4060
 
4061 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4062 91 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4063 346 jeremybenn
if test "${ac_cv_path_SED+set}" = set; then :
4064 91 jeremybenn
  $as_echo_n "(cached) " >&6
4065
else
4066
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4067
     for ac_i in 1 2 3 4 5 6 7; do
4068
       ac_script="$ac_script$as_nl$ac_script"
4069
     done
4070
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4071 346 jeremybenn
     { ac_script=; unset ac_script;}
4072 91 jeremybenn
     if test -z "$SED"; then
4073
  ac_path_SED_found=false
4074
  # Loop through the user's path and test for each of PROGNAME-LIST
4075
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076
for as_dir in $PATH
4077
do
4078
  IFS=$as_save_IFS
4079
  test -z "$as_dir" && as_dir=.
4080 346 jeremybenn
    for ac_prog in sed gsed; do
4081 91 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4082
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4083
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4084
# Check for GNU ac_path_SED and select it if it is found.
4085
  # Check for GNU $ac_path_SED
4086
case `"$ac_path_SED" --version 2>&1` in
4087
*GNU*)
4088
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4089
*)
4090
  ac_count=0
4091
  $as_echo_n 0123456789 >"conftest.in"
4092
  while :
4093
  do
4094
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4095
    mv "conftest.tmp" "conftest.in"
4096
    cp "conftest.in" "conftest.nl"
4097
    $as_echo '' >> "conftest.nl"
4098
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4099
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4100 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4101 91 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4102
      # Best one so far, save it but keep looking for a better one
4103
      ac_cv_path_SED="$ac_path_SED"
4104
      ac_path_SED_max=$ac_count
4105
    fi
4106
    # 10*(2^10) chars as input seems more than enough
4107
    test $ac_count -gt 10 && break
4108
  done
4109
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4110
esac
4111
 
4112
      $ac_path_SED_found && break 3
4113
    done
4114
  done
4115 346 jeremybenn
  done
4116 91 jeremybenn
IFS=$as_save_IFS
4117
  if test -z "$ac_cv_path_SED"; then
4118 346 jeremybenn
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4119 91 jeremybenn
  fi
4120
else
4121
  ac_cv_path_SED=$SED
4122
fi
4123
 
4124
fi
4125 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4126 91 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
4127
 SED="$ac_cv_path_SED"
4128
  rm -f conftest.sed
4129
 
4130
test -z "$SED" && SED=sed
4131
Xsed="$SED -e 1s/^X//"
4132
 
4133
 
4134
 
4135
 
4136
 
4137
 
4138
 
4139
 
4140
 
4141
 
4142
 
4143 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4144 82 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
4145 346 jeremybenn
if test "${ac_cv_path_FGREP+set}" = set; then :
4146 82 jeremybenn
  $as_echo_n "(cached) " >&6
4147 19 jeremybenn
else
4148 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4149
   then ac_cv_path_FGREP="$GREP -F"
4150
   else
4151
     if test -z "$FGREP"; then
4152
  ac_path_FGREP_found=false
4153
  # Loop through the user's path and test for each of PROGNAME-LIST
4154
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156
do
4157
  IFS=$as_save_IFS
4158
  test -z "$as_dir" && as_dir=.
4159 346 jeremybenn
    for ac_prog in fgrep; do
4160 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4161
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4162
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4163
# Check for GNU ac_path_FGREP and select it if it is found.
4164
  # Check for GNU $ac_path_FGREP
4165
case `"$ac_path_FGREP" --version 2>&1` in
4166
*GNU*)
4167
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4168
*)
4169
  ac_count=0
4170
  $as_echo_n 0123456789 >"conftest.in"
4171
  while :
4172
  do
4173
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4174
    mv "conftest.tmp" "conftest.in"
4175
    cp "conftest.in" "conftest.nl"
4176
    $as_echo 'FGREP' >> "conftest.nl"
4177
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4180 82 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4181
      # Best one so far, save it but keep looking for a better one
4182
      ac_cv_path_FGREP="$ac_path_FGREP"
4183
      ac_path_FGREP_max=$ac_count
4184
    fi
4185
    # 10*(2^10) chars as input seems more than enough
4186
    test $ac_count -gt 10 && break
4187
  done
4188
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189
esac
4190
 
4191
      $ac_path_FGREP_found && break 3
4192
    done
4193
  done
4194 346 jeremybenn
  done
4195 82 jeremybenn
IFS=$as_save_IFS
4196
  if test -z "$ac_cv_path_FGREP"; then
4197 346 jeremybenn
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198 82 jeremybenn
  fi
4199
else
4200
  ac_cv_path_FGREP=$FGREP
4201 19 jeremybenn
fi
4202
 
4203
   fi
4204
fi
4205 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4206 82 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
4207
 FGREP="$ac_cv_path_FGREP"
4208 19 jeremybenn
 
4209
 
4210 82 jeremybenn
test -z "$GREP" && GREP=grep
4211 19 jeremybenn
 
4212 82 jeremybenn
 
4213
 
4214
 
4215
 
4216
 
4217
 
4218
 
4219
 
4220
 
4221
 
4222
 
4223
 
4224
 
4225
 
4226
 
4227
 
4228
 
4229
 
4230 19 jeremybenn
# Check whether --with-gnu-ld was given.
4231 346 jeremybenn
if test "${with_gnu_ld+set}" = set; then :
4232 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4233
else
4234
  with_gnu_ld=no
4235
fi
4236
 
4237
ac_prog=ld
4238
if test "$GCC" = yes; then
4239
  # Check if gcc -print-prog-name=ld gives a path.
4240 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4241 82 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
4242 19 jeremybenn
  case $host in
4243
  *-*-mingw*)
4244
    # gcc leaves a trailing carriage return which upsets mingw
4245
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4246
  *)
4247
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4248
  esac
4249
  case $ac_prog in
4250
    # Accept absolute paths.
4251
    [\\/]* | ?:[\\/]*)
4252
      re_direlt='/[^/][^/]*/\.\./'
4253
      # Canonicalize the pathname of ld
4254 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4255
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4256
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4257 19 jeremybenn
      done
4258
      test -z "$LD" && LD="$ac_prog"
4259
      ;;
4260
  "")
4261
    # If it fails, then pretend we aren't using GCC.
4262
    ac_prog=ld
4263
    ;;
4264
  *)
4265
    # If it is relative, then search for the first ld in PATH.
4266
    with_gnu_ld=unknown
4267
    ;;
4268
  esac
4269
elif test "$with_gnu_ld" = yes; then
4270 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4271 82 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
4272 19 jeremybenn
else
4273 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4274 82 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
4275 19 jeremybenn
fi
4276 346 jeremybenn
if test "${lt_cv_path_LD+set}" = set; then :
4277 82 jeremybenn
  $as_echo_n "(cached) " >&6
4278 19 jeremybenn
else
4279
  if test -z "$LD"; then
4280
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4281
  for ac_dir in $PATH; do
4282
    IFS="$lt_save_ifs"
4283
    test -z "$ac_dir" && ac_dir=.
4284
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4285
      lt_cv_path_LD="$ac_dir/$ac_prog"
4286
      # Check to see if the program is GNU ld.  I'd rather use --version,
4287
      # but apparently some variants of GNU ld only accept -v.
4288
      # Break only if it was the GNU/non-GNU ld that we prefer.
4289
      case `"$lt_cv_path_LD" -v 2>&1 
4290
      *GNU* | *'with BFD'*)
4291
        test "$with_gnu_ld" != no && break
4292
        ;;
4293
      *)
4294
        test "$with_gnu_ld" != yes && break
4295
        ;;
4296
      esac
4297
    fi
4298
  done
4299
  IFS="$lt_save_ifs"
4300
else
4301
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4302
fi
4303
fi
4304
 
4305
LD="$lt_cv_path_LD"
4306
if test -n "$LD"; then
4307 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4308 82 jeremybenn
$as_echo "$LD" >&6; }
4309 19 jeremybenn
else
4310 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 82 jeremybenn
$as_echo "no" >&6; }
4312 19 jeremybenn
fi
4313 346 jeremybenn
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4315 82 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4316 346 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4317 82 jeremybenn
  $as_echo_n "(cached) " >&6
4318 19 jeremybenn
else
4319
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4320
case `$LD -v 2>&1 
4321
*GNU* | *'with BFD'*)
4322
  lt_cv_prog_gnu_ld=yes
4323
  ;;
4324
*)
4325
  lt_cv_prog_gnu_ld=no
4326
  ;;
4327
esac
4328
fi
4329 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4330 82 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4331 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4332
 
4333
 
4334
 
4335 82 jeremybenn
 
4336
 
4337
 
4338
 
4339
 
4340
 
4341 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4342 82 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4343 346 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then :
4344 82 jeremybenn
  $as_echo_n "(cached) " >&6
4345 19 jeremybenn
else
4346
  if test -n "$NM"; then
4347
  # Let the user override the test.
4348
  lt_cv_path_NM="$NM"
4349
else
4350
  lt_nm_to_check="${ac_tool_prefix}nm"
4351
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4352
    lt_nm_to_check="$lt_nm_to_check nm"
4353
  fi
4354
  for lt_tmp_nm in $lt_nm_to_check; do
4355
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4356
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4357
      IFS="$lt_save_ifs"
4358
      test -z "$ac_dir" && ac_dir=.
4359
      tmp_nm="$ac_dir/$lt_tmp_nm"
4360
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4361
        # Check to see if the nm accepts a BSD-compat flag.
4362
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4363
        #   nm: unknown option "B" ignored
4364
        # Tru64's nm complains that /dev/null is an invalid object file
4365
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4366
        */dev/null* | *'Invalid file or object type'*)
4367
          lt_cv_path_NM="$tmp_nm -B"
4368
          break
4369
          ;;
4370
        *)
4371
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4372
          */dev/null*)
4373
            lt_cv_path_NM="$tmp_nm -p"
4374
            break
4375
            ;;
4376
          *)
4377
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4378
            continue # so that we can try to find one that supports BSD flags
4379
            ;;
4380
          esac
4381
          ;;
4382
        esac
4383
      fi
4384
    done
4385
    IFS="$lt_save_ifs"
4386
  done
4387 82 jeremybenn
  : ${lt_cv_path_NM=no}
4388 19 jeremybenn
fi
4389
fi
4390 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4391 82 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
4392
if test "$lt_cv_path_NM" != "no"; then
4393
  NM="$lt_cv_path_NM"
4394
else
4395
  # Didn't find any BSD compatible name lister, look for dumpbin.
4396
  if test -n "$ac_tool_prefix"; then
4397
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4398
  do
4399
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4400
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4401 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4403 346 jeremybenn
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4404 82 jeremybenn
  $as_echo_n "(cached) " >&6
4405
else
4406
  if test -n "$DUMPBIN"; then
4407
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4408
else
4409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410
for as_dir in $PATH
4411
do
4412
  IFS=$as_save_IFS
4413
  test -z "$as_dir" && as_dir=.
4414 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4415 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4417 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 82 jeremybenn
    break 2
4419
  fi
4420
done
4421 346 jeremybenn
  done
4422 82 jeremybenn
IFS=$as_save_IFS
4423 19 jeremybenn
 
4424 82 jeremybenn
fi
4425
fi
4426
DUMPBIN=$ac_cv_prog_DUMPBIN
4427
if test -n "$DUMPBIN"; then
4428 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4429 82 jeremybenn
$as_echo "$DUMPBIN" >&6; }
4430
else
4431 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 82 jeremybenn
$as_echo "no" >&6; }
4433
fi
4434
 
4435
 
4436
    test -n "$DUMPBIN" && break
4437
  done
4438
fi
4439
if test -z "$DUMPBIN"; then
4440
  ac_ct_DUMPBIN=$DUMPBIN
4441
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4442
do
4443
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4444
set dummy $ac_prog; ac_word=$2
4445 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4447 346 jeremybenn
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4448 82 jeremybenn
  $as_echo_n "(cached) " >&6
4449
else
4450
  if test -n "$ac_ct_DUMPBIN"; then
4451
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4452
else
4453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454
for as_dir in $PATH
4455
do
4456
  IFS=$as_save_IFS
4457
  test -z "$as_dir" && as_dir=.
4458 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4459 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4461 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 82 jeremybenn
    break 2
4463
  fi
4464
done
4465 346 jeremybenn
  done
4466 82 jeremybenn
IFS=$as_save_IFS
4467
 
4468
fi
4469
fi
4470
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4471
if test -n "$ac_ct_DUMPBIN"; then
4472 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4473 82 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
4474
else
4475 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 82 jeremybenn
$as_echo "no" >&6; }
4477
fi
4478
 
4479
 
4480
  test -n "$ac_ct_DUMPBIN" && break
4481
done
4482
 
4483
  if test "x$ac_ct_DUMPBIN" = x; then
4484
    DUMPBIN=":"
4485
  else
4486
    case $cross_compiling:$ac_tool_warned in
4487
yes:)
4488 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4489 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4490
ac_tool_warned=yes ;;
4491
esac
4492
    DUMPBIN=$ac_ct_DUMPBIN
4493
  fi
4494
fi
4495
 
4496
 
4497
  if test "$DUMPBIN" != ":"; then
4498
    NM="$DUMPBIN"
4499
  fi
4500
fi
4501
test -z "$NM" && NM=nm
4502
 
4503
 
4504
 
4505
 
4506
 
4507
 
4508 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4509 82 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4510 346 jeremybenn
if test "${lt_cv_nm_interface+set}" = set; then :
4511 82 jeremybenn
  $as_echo_n "(cached) " >&6
4512
else
4513
  lt_cv_nm_interface="BSD nm"
4514
  echo "int some_variable = 0;" > conftest.$ac_ext
4515 346 jeremybenn
  (eval echo "\"\$as_me:4515: $ac_compile\"" >&5)
4516 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4517
  cat conftest.err >&5
4518 346 jeremybenn
  (eval echo "\"\$as_me:4518: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4519 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4520
  cat conftest.err >&5
4521 346 jeremybenn
  (eval echo "\"\$as_me:4521: output\"" >&5)
4522 82 jeremybenn
  cat conftest.out >&5
4523
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4524
    lt_cv_nm_interface="MS dumpbin"
4525
  fi
4526
  rm -f conftest*
4527
fi
4528 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4529 82 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
4530
 
4531 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4532 82 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
4533 19 jeremybenn
LN_S=$as_ln_s
4534
if test "$LN_S" = "ln -s"; then
4535 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4536 82 jeremybenn
$as_echo "yes" >&6; }
4537 19 jeremybenn
else
4538 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4539 82 jeremybenn
$as_echo "no, using $LN_S" >&6; }
4540 19 jeremybenn
fi
4541
 
4542 82 jeremybenn
# find the maximum length of command line arguments
4543 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4544 82 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4545 346 jeremybenn
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4546 82 jeremybenn
  $as_echo_n "(cached) " >&6
4547
else
4548
    i=0
4549
  teststring="ABCD"
4550
 
4551
  case $build_os in
4552
  msdosdjgpp*)
4553
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4554
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4555
    # during glob expansion).  Even if it were fixed, the result of this
4556
    # check would be larger than it should be.
4557
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4558
    ;;
4559
 
4560
  gnu*)
4561
    # Under GNU Hurd, this test is not required because there is
4562
    # no limit to the length of command line arguments.
4563
    # Libtool will interpret -1 as no limit whatsoever
4564
    lt_cv_sys_max_cmd_len=-1;
4565
    ;;
4566
 
4567
  cygwin* | mingw* | cegcc*)
4568
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4569
    # about 5 minutes as the teststring grows exponentially.
4570
    # Worse, since 9x/ME are not pre-emptively multitasking,
4571
    # you end up with a "frozen" computer, even though with patience
4572
    # the test eventually succeeds (with a max line length of 256k).
4573
    # Instead, let's just punt: use the minimum linelength reported by
4574
    # all of the supported platforms: 8192 (on NT/2K/XP).
4575
    lt_cv_sys_max_cmd_len=8192;
4576
    ;;
4577
 
4578
  amigaos*)
4579
    # On AmigaOS with pdksh, this test takes hours, literally.
4580
    # So we just punt and use a minimum line length of 8192.
4581
    lt_cv_sys_max_cmd_len=8192;
4582
    ;;
4583
 
4584
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4585
    # This has been around since 386BSD, at least.  Likely further.
4586
    if test -x /sbin/sysctl; then
4587
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4588
    elif test -x /usr/sbin/sysctl; then
4589
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4590
    else
4591
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4592
    fi
4593
    # And add a safety zone
4594
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4596
    ;;
4597
 
4598
  interix*)
4599
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4600
    lt_cv_sys_max_cmd_len=196608
4601
    ;;
4602
 
4603
  osf*)
4604
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4605
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4606
    # nice to cause kernel panics so lets avoid the loop below.
4607
    # First set a reasonable default.
4608
    lt_cv_sys_max_cmd_len=16384
4609
    #
4610
    if test -x /sbin/sysconfig; then
4611
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4612
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4613
      esac
4614
    fi
4615
    ;;
4616
  sco3.2v5*)
4617
    lt_cv_sys_max_cmd_len=102400
4618
    ;;
4619
  sysv5* | sco5v6* | sysv4.2uw2*)
4620
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4621
    if test -n "$kargmax"; then
4622
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4623
    else
4624
      lt_cv_sys_max_cmd_len=32768
4625
    fi
4626
    ;;
4627
  *)
4628
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4629
    if test -n "$lt_cv_sys_max_cmd_len"; then
4630
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4631
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4632
    else
4633
      # Make teststring a little bigger before we do anything with it.
4634
      # a 1K string should be a reasonable start.
4635
      for i in 1 2 3 4 5 6 7 8 ; do
4636
        teststring=$teststring$teststring
4637
      done
4638
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4639
      # If test is not a shell built-in, we'll probably end up computing a
4640
      # maximum length that is only half of the actual maximum length, but
4641
      # we can't tell.
4642
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4643
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4644
              test $i != 17 # 1/2 MB should be enough
4645
      do
4646
        i=`expr $i + 1`
4647
        teststring=$teststring$teststring
4648
      done
4649
      # Only check the string length outside the loop.
4650
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4651
      teststring=
4652
      # Add a significant safety factor because C++ compilers can tack on
4653
      # massive amounts of additional arguments before passing them to the
4654
      # linker.  It appears as though 1/2 is a usable value.
4655
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4656
    fi
4657
    ;;
4658
  esac
4659
 
4660
fi
4661
 
4662
if test -n $lt_cv_sys_max_cmd_len ; then
4663 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4664 82 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4665
else
4666 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4667 82 jeremybenn
$as_echo "none" >&6; }
4668
fi
4669
max_cmd_len=$lt_cv_sys_max_cmd_len
4670
 
4671
 
4672
 
4673
 
4674
 
4675
 
4676
: ${CP="cp -f"}
4677
: ${MV="mv -f"}
4678
: ${RM="rm -f"}
4679
 
4680 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4681 82 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4682
# Try some XSI features
4683
xsi_shell=no
4684
( _lt_dummy="a/b/c"
4685
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4686
      = c,a/b,, \
4687
    && eval 'test $(( 1 + 1 )) -eq 2 \
4688
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4689
  && xsi_shell=yes
4690 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4691 82 jeremybenn
$as_echo "$xsi_shell" >&6; }
4692
 
4693
 
4694 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4695 82 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4696
lt_shell_append=no
4697
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4698
    >/dev/null 2>&1 \
4699
  && lt_shell_append=yes
4700 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4701 82 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4702
 
4703
 
4704
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4705
  lt_unset=unset
4706
else
4707
  lt_unset=false
4708
fi
4709
 
4710
 
4711
 
4712
 
4713
 
4714
# test EBCDIC or ASCII
4715
case `echo X|tr X '\101'` in
4716
 A) # ASCII based system
4717
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4718
  lt_SP2NL='tr \040 \012'
4719
  lt_NL2SP='tr \015\012 \040\040'
4720
  ;;
4721
 *) # EBCDIC based system
4722
  lt_SP2NL='tr \100 \n'
4723
  lt_NL2SP='tr \r\n \100\100'
4724
  ;;
4725
esac
4726
 
4727
 
4728
 
4729
 
4730
 
4731
 
4732
 
4733
 
4734
 
4735 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4736 82 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4737 346 jeremybenn
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4738 82 jeremybenn
  $as_echo_n "(cached) " >&6
4739
else
4740
  lt_cv_ld_reload_flag='-r'
4741
fi
4742 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4743 82 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4744
reload_flag=$lt_cv_ld_reload_flag
4745
case $reload_flag in
4746
"" | " "*) ;;
4747
*) reload_flag=" $reload_flag" ;;
4748
esac
4749
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4750
case $host_os in
4751
  darwin*)
4752
    if test "$GCC" = yes; then
4753
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4754
    else
4755
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4756
    fi
4757
    ;;
4758
esac
4759
 
4760
 
4761
 
4762
 
4763
 
4764
 
4765
 
4766
 
4767
 
4768
if test -n "$ac_tool_prefix"; then
4769
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4770
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4771 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4773 346 jeremybenn
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4774 82 jeremybenn
  $as_echo_n "(cached) " >&6
4775
else
4776
  if test -n "$OBJDUMP"; then
4777
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4778
else
4779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780
for as_dir in $PATH
4781
do
4782
  IFS=$as_save_IFS
4783
  test -z "$as_dir" && as_dir=.
4784 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4785 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4787 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 82 jeremybenn
    break 2
4789
  fi
4790
done
4791 346 jeremybenn
  done
4792 82 jeremybenn
IFS=$as_save_IFS
4793
 
4794
fi
4795
fi
4796
OBJDUMP=$ac_cv_prog_OBJDUMP
4797
if test -n "$OBJDUMP"; then
4798 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4799 82 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4800
else
4801 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 82 jeremybenn
$as_echo "no" >&6; }
4803
fi
4804
 
4805
 
4806
fi
4807
if test -z "$ac_cv_prog_OBJDUMP"; then
4808
  ac_ct_OBJDUMP=$OBJDUMP
4809
  # Extract the first word of "objdump", so it can be a program name with args.
4810
set dummy objdump; ac_word=$2
4811 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4813 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4814 82 jeremybenn
  $as_echo_n "(cached) " >&6
4815
else
4816
  if test -n "$ac_ct_OBJDUMP"; then
4817
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4818
else
4819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820
for as_dir in $PATH
4821
do
4822
  IFS=$as_save_IFS
4823
  test -z "$as_dir" && as_dir=.
4824 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4825 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4827 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 82 jeremybenn
    break 2
4829
  fi
4830
done
4831 346 jeremybenn
  done
4832 82 jeremybenn
IFS=$as_save_IFS
4833
 
4834
fi
4835
fi
4836
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4837
if test -n "$ac_ct_OBJDUMP"; then
4838 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4839 82 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4840
else
4841 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 82 jeremybenn
$as_echo "no" >&6; }
4843
fi
4844
 
4845
  if test "x$ac_ct_OBJDUMP" = x; then
4846
    OBJDUMP="false"
4847
  else
4848
    case $cross_compiling:$ac_tool_warned in
4849
yes:)
4850 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4851 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4852
ac_tool_warned=yes ;;
4853
esac
4854
    OBJDUMP=$ac_ct_OBJDUMP
4855
  fi
4856
else
4857
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4858
fi
4859
 
4860
test -z "$OBJDUMP" && OBJDUMP=objdump
4861
 
4862
 
4863
 
4864
 
4865
 
4866
 
4867
 
4868
 
4869
 
4870 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4871 82 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4872 346 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4873 82 jeremybenn
  $as_echo_n "(cached) " >&6
4874 19 jeremybenn
else
4875
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4876
lt_cv_file_magic_test_file=
4877
lt_cv_deplibs_check_method='unknown'
4878
# Need to set the preceding variable on all platforms that support
4879
# interlibrary dependencies.
4880
# 'none' -- dependencies not supported.
4881
# `unknown' -- same as none, but documents that we really don't know.
4882
# 'pass_all' -- all dependencies passed with no checks.
4883
# 'test_compile' -- check by making test program.
4884
# 'file_magic [[regex]]' -- check by looking for files in library path
4885
# which responds to the $file_magic_cmd with a given extended regex.
4886
# If you have `file' or equivalent on your system and you're not sure
4887
# whether `pass_all' will *always* work, you probably want this one.
4888
 
4889
case $host_os in
4890 82 jeremybenn
aix[4-9]*)
4891 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4892
  ;;
4893
 
4894
beos*)
4895
  lt_cv_deplibs_check_method=pass_all
4896
  ;;
4897
 
4898
bsdi[45]*)
4899
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4900
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4901
  lt_cv_file_magic_test_file=/shlib/libc.so
4902
  ;;
4903
 
4904
cygwin*)
4905
  # func_win32_libid is a shell function defined in ltmain.sh
4906
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4907
  lt_cv_file_magic_cmd='func_win32_libid'
4908
  ;;
4909
 
4910
mingw* | pw32*)
4911
  # Base MSYS/MinGW do not provide the 'file' command needed by
4912
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4913
  # unless we find 'file', for example because we are cross-compiling.
4914
  if ( file / ) >/dev/null 2>&1; then
4915
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4916
    lt_cv_file_magic_cmd='func_win32_libid'
4917
  else
4918
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4919
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4920
  fi
4921
  ;;
4922
 
4923 82 jeremybenn
cegcc)
4924
  # use the weaker test based on 'objdump'. See mingw*.
4925
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4926
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4927
  ;;
4928
 
4929 19 jeremybenn
darwin* | rhapsody*)
4930
  lt_cv_deplibs_check_method=pass_all
4931
  ;;
4932
 
4933
freebsd* | dragonfly*)
4934 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4935 19 jeremybenn
    case $host_cpu in
4936
    i*86 )
4937
      # Not sure whether the presence of OpenBSD here was a mistake.
4938
      # Let's accept both of them until this is cleared up.
4939
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4940
      lt_cv_file_magic_cmd=/usr/bin/file
4941
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4942
      ;;
4943
    esac
4944
  else
4945
    lt_cv_deplibs_check_method=pass_all
4946
  fi
4947
  ;;
4948
 
4949
gnu*)
4950
  lt_cv_deplibs_check_method=pass_all
4951
  ;;
4952
 
4953
hpux10.20* | hpux11*)
4954
  lt_cv_file_magic_cmd=/usr/bin/file
4955
  case $host_cpu in
4956
  ia64*)
4957
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4958
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4959
    ;;
4960
  hppa*64*)
4961
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4962
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4963
    ;;
4964
  *)
4965
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4966
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4967
    ;;
4968
  esac
4969
  ;;
4970
 
4971
interix[3-9]*)
4972
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4973
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4974
  ;;
4975
 
4976
irix5* | irix6* | nonstopux*)
4977
  case $LD in
4978
  *-32|*"-32 ") libmagic=32-bit;;
4979
  *-n32|*"-n32 ") libmagic=N32;;
4980
  *-64|*"-64 ") libmagic=64-bit;;
4981
  *) libmagic=never-match;;
4982
  esac
4983
  lt_cv_deplibs_check_method=pass_all
4984
  ;;
4985
 
4986
# This must be Linux ELF.
4987
linux* | k*bsd*-gnu)
4988
  lt_cv_deplibs_check_method=pass_all
4989
  ;;
4990
 
4991 93 jeremybenn
netbsd* | netbsdelf*-gnu)
4992 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4993 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4994
  else
4995
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4996
  fi
4997
  ;;
4998
 
4999
newos6*)
5000
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5001
  lt_cv_file_magic_cmd=/usr/bin/file
5002
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5003
  ;;
5004
 
5005 82 jeremybenn
*nto* | *qnx*)
5006
  lt_cv_deplibs_check_method=pass_all
5007 19 jeremybenn
  ;;
5008
 
5009
openbsd*)
5010 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5011 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5012
  else
5013
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5014
  fi
5015
  ;;
5016
 
5017
osf3* | osf4* | osf5*)
5018
  lt_cv_deplibs_check_method=pass_all
5019
  ;;
5020
 
5021
rdos*)
5022
  lt_cv_deplibs_check_method=pass_all
5023
  ;;
5024
 
5025
solaris*)
5026
  lt_cv_deplibs_check_method=pass_all
5027
  ;;
5028
 
5029 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5030
  lt_cv_deplibs_check_method=pass_all
5031
  ;;
5032
 
5033 19 jeremybenn
sysv4 | sysv4.3*)
5034
  case $host_vendor in
5035
  motorola)
5036
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5037
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5038
    ;;
5039
  ncr)
5040
    lt_cv_deplibs_check_method=pass_all
5041
    ;;
5042
  sequent)
5043
    lt_cv_file_magic_cmd='/bin/file'
5044
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5045
    ;;
5046
  sni)
5047
    lt_cv_file_magic_cmd='/bin/file'
5048
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5049
    lt_cv_file_magic_test_file=/lib/libc.so
5050
    ;;
5051
  siemens)
5052
    lt_cv_deplibs_check_method=pass_all
5053
    ;;
5054
  pc)
5055
    lt_cv_deplibs_check_method=pass_all
5056
    ;;
5057
  esac
5058
  ;;
5059
 
5060 82 jeremybenn
tpf*)
5061 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5062
  ;;
5063
esac
5064
 
5065
fi
5066 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5067 82 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5068 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5069
deplibs_check_method=$lt_cv_deplibs_check_method
5070
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5071
 
5072
 
5073
 
5074
 
5075 82 jeremybenn
 
5076
 
5077
 
5078
 
5079
 
5080
 
5081
 
5082
 
5083
if test -n "$ac_tool_prefix"; then
5084
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5085
set dummy ${ac_tool_prefix}ar; ac_word=$2
5086 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5088 346 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then :
5089 82 jeremybenn
  $as_echo_n "(cached) " >&6
5090
else
5091
  if test -n "$AR"; then
5092
  ac_cv_prog_AR="$AR" # Let the user override the test.
5093
else
5094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095
for as_dir in $PATH
5096
do
5097
  IFS=$as_save_IFS
5098
  test -z "$as_dir" && as_dir=.
5099 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5100 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5102 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 82 jeremybenn
    break 2
5104
  fi
5105
done
5106 346 jeremybenn
  done
5107 82 jeremybenn
IFS=$as_save_IFS
5108
 
5109
fi
5110
fi
5111
AR=$ac_cv_prog_AR
5112
if test -n "$AR"; then
5113 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5114 82 jeremybenn
$as_echo "$AR" >&6; }
5115
else
5116 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 82 jeremybenn
$as_echo "no" >&6; }
5118
fi
5119
 
5120
 
5121
fi
5122
if test -z "$ac_cv_prog_AR"; then
5123
  ac_ct_AR=$AR
5124
  # Extract the first word of "ar", so it can be a program name with args.
5125
set dummy ar; ac_word=$2
5126 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5128 346 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5129 82 jeremybenn
  $as_echo_n "(cached) " >&6
5130
else
5131
  if test -n "$ac_ct_AR"; then
5132
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5133
else
5134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135
for as_dir in $PATH
5136
do
5137
  IFS=$as_save_IFS
5138
  test -z "$as_dir" && as_dir=.
5139 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5140 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141
    ac_cv_prog_ac_ct_AR="ar"
5142 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 82 jeremybenn
    break 2
5144
  fi
5145
done
5146 346 jeremybenn
  done
5147 82 jeremybenn
IFS=$as_save_IFS
5148
 
5149
fi
5150
fi
5151
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5152
if test -n "$ac_ct_AR"; then
5153 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5154 82 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
5155
else
5156 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 82 jeremybenn
$as_echo "no" >&6; }
5158
fi
5159
 
5160
  if test "x$ac_ct_AR" = x; then
5161
    AR="false"
5162
  else
5163
    case $cross_compiling:$ac_tool_warned in
5164
yes:)
5165 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5166 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167
ac_tool_warned=yes ;;
5168
esac
5169
    AR=$ac_ct_AR
5170
  fi
5171
else
5172
  AR="$ac_cv_prog_AR"
5173
fi
5174
 
5175
test -z "$AR" && AR=ar
5176
test -z "$AR_FLAGS" && AR_FLAGS=cru
5177
 
5178
 
5179
 
5180
 
5181
 
5182
 
5183
 
5184
 
5185
 
5186
 
5187
 
5188
if test -n "$ac_tool_prefix"; then
5189
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5190
set dummy ${ac_tool_prefix}strip; ac_word=$2
5191 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5193 346 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
5194 82 jeremybenn
  $as_echo_n "(cached) " >&6
5195
else
5196
  if test -n "$STRIP"; then
5197
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5198
else
5199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200
for as_dir in $PATH
5201
do
5202
  IFS=$as_save_IFS
5203
  test -z "$as_dir" && as_dir=.
5204 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5205 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5207 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 82 jeremybenn
    break 2
5209
  fi
5210
done
5211 346 jeremybenn
  done
5212 82 jeremybenn
IFS=$as_save_IFS
5213
 
5214
fi
5215
fi
5216
STRIP=$ac_cv_prog_STRIP
5217
if test -n "$STRIP"; then
5218 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5219 82 jeremybenn
$as_echo "$STRIP" >&6; }
5220
else
5221 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 82 jeremybenn
$as_echo "no" >&6; }
5223
fi
5224
 
5225
 
5226
fi
5227
if test -z "$ac_cv_prog_STRIP"; then
5228
  ac_ct_STRIP=$STRIP
5229
  # Extract the first word of "strip", so it can be a program name with args.
5230
set dummy strip; ac_word=$2
5231 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5233 346 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5234 82 jeremybenn
  $as_echo_n "(cached) " >&6
5235
else
5236
  if test -n "$ac_ct_STRIP"; then
5237
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5238
else
5239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240
for as_dir in $PATH
5241
do
5242
  IFS=$as_save_IFS
5243
  test -z "$as_dir" && as_dir=.
5244 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5245 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246
    ac_cv_prog_ac_ct_STRIP="strip"
5247 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 82 jeremybenn
    break 2
5249
  fi
5250
done
5251 346 jeremybenn
  done
5252 82 jeremybenn
IFS=$as_save_IFS
5253
 
5254
fi
5255
fi
5256
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5257
if test -n "$ac_ct_STRIP"; then
5258 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5259 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
5260
else
5261 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 82 jeremybenn
$as_echo "no" >&6; }
5263
fi
5264
 
5265
  if test "x$ac_ct_STRIP" = x; then
5266
    STRIP=":"
5267
  else
5268
    case $cross_compiling:$ac_tool_warned in
5269
yes:)
5270 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272
ac_tool_warned=yes ;;
5273
esac
5274
    STRIP=$ac_ct_STRIP
5275
  fi
5276
else
5277
  STRIP="$ac_cv_prog_STRIP"
5278
fi
5279
 
5280
test -z "$STRIP" && STRIP=:
5281
 
5282
 
5283
 
5284
 
5285
 
5286
 
5287
if test -n "$ac_tool_prefix"; then
5288
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5289
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5290 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5292 346 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5293 82 jeremybenn
  $as_echo_n "(cached) " >&6
5294
else
5295
  if test -n "$RANLIB"; then
5296
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5297
else
5298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299
for as_dir in $PATH
5300
do
5301
  IFS=$as_save_IFS
5302
  test -z "$as_dir" && as_dir=.
5303 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5304 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5306 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 82 jeremybenn
    break 2
5308
  fi
5309
done
5310 346 jeremybenn
  done
5311 82 jeremybenn
IFS=$as_save_IFS
5312
 
5313
fi
5314
fi
5315
RANLIB=$ac_cv_prog_RANLIB
5316
if test -n "$RANLIB"; then
5317 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5318 82 jeremybenn
$as_echo "$RANLIB" >&6; }
5319
else
5320 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 82 jeremybenn
$as_echo "no" >&6; }
5322
fi
5323
 
5324
 
5325
fi
5326
if test -z "$ac_cv_prog_RANLIB"; then
5327
  ac_ct_RANLIB=$RANLIB
5328
  # Extract the first word of "ranlib", so it can be a program name with args.
5329
set dummy ranlib; ac_word=$2
5330 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5332 346 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5333 82 jeremybenn
  $as_echo_n "(cached) " >&6
5334
else
5335
  if test -n "$ac_ct_RANLIB"; then
5336
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5337
else
5338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339
for as_dir in $PATH
5340
do
5341
  IFS=$as_save_IFS
5342
  test -z "$as_dir" && as_dir=.
5343 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5344 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5346 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 82 jeremybenn
    break 2
5348
  fi
5349
done
5350 346 jeremybenn
  done
5351 82 jeremybenn
IFS=$as_save_IFS
5352
 
5353
fi
5354
fi
5355
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5356
if test -n "$ac_ct_RANLIB"; then
5357 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5358 82 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5359
else
5360 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 82 jeremybenn
$as_echo "no" >&6; }
5362
fi
5363
 
5364
  if test "x$ac_ct_RANLIB" = x; then
5365
    RANLIB=":"
5366
  else
5367
    case $cross_compiling:$ac_tool_warned in
5368
yes:)
5369 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5370 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5371
ac_tool_warned=yes ;;
5372
esac
5373
    RANLIB=$ac_ct_RANLIB
5374
  fi
5375
else
5376
  RANLIB="$ac_cv_prog_RANLIB"
5377
fi
5378
 
5379
test -z "$RANLIB" && RANLIB=:
5380
 
5381
 
5382
 
5383
 
5384
 
5385
 
5386
# Determine commands to create old-style static archives.
5387
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5388
old_postinstall_cmds='chmod 644 $oldlib'
5389
old_postuninstall_cmds=
5390
 
5391
if test -n "$RANLIB"; then
5392
  case $host_os in
5393
  openbsd*)
5394
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5395
    ;;
5396
  *)
5397
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5398
    ;;
5399
  esac
5400
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5401
fi
5402
 
5403
 
5404
 
5405
 
5406
 
5407
 
5408
 
5409
 
5410
 
5411
 
5412
 
5413
 
5414
 
5415
 
5416
 
5417
 
5418
 
5419
 
5420
 
5421
 
5422
 
5423
 
5424
 
5425
 
5426
 
5427
 
5428
 
5429
 
5430
 
5431
 
5432
 
5433
 
5434
 
5435
 
5436 19 jeremybenn
# If no C compiler was specified, use CC.
5437
LTCC=${LTCC-"$CC"}
5438
 
5439
# If no C compiler flags were specified, use CFLAGS.
5440
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5441
 
5442
# Allow CC to be a program name with arguments.
5443
compiler=$CC
5444
 
5445
 
5446 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
5447 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5448 82 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5449 346 jeremybenn
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5450 82 jeremybenn
  $as_echo_n "(cached) " >&6
5451
else
5452
 
5453
# These are sane defaults that work on at least a few old systems.
5454
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5455
 
5456
# Character class describing NM global symbol codes.
5457
symcode='[BCDEGRST]'
5458
 
5459
# Regexp to match symbols that can be accessed directly from C.
5460
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5461
 
5462
# Define system-specific variables.
5463
case $host_os in
5464
aix*)
5465
  symcode='[BCDT]'
5466
  ;;
5467
cygwin* | mingw* | pw32* | cegcc*)
5468
  symcode='[ABCDGISTW]'
5469
  ;;
5470
hpux*)
5471
  if test "$host_cpu" = ia64; then
5472
    symcode='[ABCDEGRST]'
5473
  fi
5474
  ;;
5475
irix* | nonstopux*)
5476
  symcode='[BCDEGRST]'
5477
  ;;
5478
osf*)
5479
  symcode='[BCDEGQRST]'
5480
  ;;
5481
solaris*)
5482
  symcode='[BDRT]'
5483
  ;;
5484
sco3.2v5*)
5485
  symcode='[DT]'
5486
  ;;
5487
sysv4.2uw2*)
5488
  symcode='[DT]'
5489
  ;;
5490
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5491
  symcode='[ABDT]'
5492
  ;;
5493
sysv4)
5494
  symcode='[DFNSTU]'
5495
  ;;
5496
esac
5497
 
5498
# If we're using GNU nm, then use its standard symbol codes.
5499
case `$NM -V 2>&1` in
5500
*GNU* | *'with BFD'*)
5501
  symcode='[ABCDGIRSTW]' ;;
5502
esac
5503
 
5504
# Transform an extracted symbol line into a proper C declaration.
5505
# Some systems (esp. on ia64) link data and code symbols differently,
5506
# so use this general approach.
5507
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5508
 
5509
# Transform an extracted symbol line into symbol name and symbol address
5510
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5511
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5512
 
5513
# Handle CRLF in mingw tool chain
5514
opt_cr=
5515
case $build_os in
5516
mingw*)
5517
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5518
  ;;
5519
esac
5520
 
5521
# Try without a prefix underscore, then with it.
5522
for ac_symprfx in "" "_"; do
5523
 
5524
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5525
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5526
 
5527
  # Write the raw and C identifiers.
5528
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5529
    # Fake it for dumpbin and say T for any non-static function
5530
    # and D for any global variable.
5531
    # Also find C++ and __fastcall symbols from MSVC++,
5532
    # which start with @ or ?.
5533
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5534
"     {last_section=section; section=\$ 3};"\
5535
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5536
"     \$ 0!~/External *\|/{next};"\
5537
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5538
"     {if(hide[section]) next};"\
5539
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5540
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5541
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5542
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5543
"     ' prfx=^$ac_symprfx"
5544
  else
5545
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5546
  fi
5547
 
5548
  # Check to see that the pipe works correctly.
5549
  pipe_works=no
5550
 
5551
  rm -f conftest*
5552
  cat > conftest.$ac_ext <<_LT_EOF
5553
#ifdef __cplusplus
5554
extern "C" {
5555
#endif
5556
char nm_test_var;
5557
void nm_test_func(void);
5558
void nm_test_func(void){}
5559
#ifdef __cplusplus
5560
}
5561
#endif
5562
int main(){nm_test_var='a';nm_test_func();return(0);}
5563
_LT_EOF
5564
 
5565 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5566 82 jeremybenn
  (eval $ac_compile) 2>&5
5567
  ac_status=$?
5568 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5569
  test $ac_status = 0; }; then
5570 82 jeremybenn
    # Now try to grab the symbols.
5571
    nlist=conftest.nm
5572 346 jeremybenn
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5573 82 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5574
  ac_status=$?
5575 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576
  test $ac_status = 0; } && test -s "$nlist"; then
5577 82 jeremybenn
      # Try sorting and uniquifying the output.
5578
      if sort "$nlist" | uniq > "$nlist"T; then
5579
        mv -f "$nlist"T "$nlist"
5580
      else
5581
        rm -f "$nlist"T
5582
      fi
5583
 
5584
      # Make sure that we snagged all the symbols we need.
5585
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5586
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5587
          cat <<_LT_EOF > conftest.$ac_ext
5588
#ifdef __cplusplus
5589
extern "C" {
5590
#endif
5591
 
5592
_LT_EOF
5593
          # Now generate the symbol file.
5594
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5595
 
5596
          cat <<_LT_EOF >> conftest.$ac_ext
5597
 
5598
/* The mapping between symbol names and symbols.  */
5599
const struct {
5600
  const char *name;
5601
  void       *address;
5602
}
5603
lt__PROGRAM__LTX_preloaded_symbols[] =
5604
{
5605
  { "@PROGRAM@", (void *) 0 },
5606
_LT_EOF
5607
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5608
          cat <<\_LT_EOF >> conftest.$ac_ext
5609
  {0, (void *) 0}
5610
};
5611
 
5612
/* This works around a problem in FreeBSD linker */
5613
#ifdef FREEBSD_WORKAROUND
5614
static const void *lt_preloaded_setup() {
5615
  return lt__PROGRAM__LTX_preloaded_symbols;
5616
}
5617
#endif
5618
 
5619
#ifdef __cplusplus
5620
}
5621
#endif
5622
_LT_EOF
5623
          # Now try linking the two files.
5624
          mv conftest.$ac_objext conftstm.$ac_objext
5625
          lt_save_LIBS="$LIBS"
5626
          lt_save_CFLAGS="$CFLAGS"
5627
          LIBS="conftstm.$ac_objext"
5628
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5629 346 jeremybenn
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5630 82 jeremybenn
  (eval $ac_link) 2>&5
5631
  ac_status=$?
5632 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5634 82 jeremybenn
            pipe_works=yes
5635
          fi
5636
          LIBS="$lt_save_LIBS"
5637
          CFLAGS="$lt_save_CFLAGS"
5638
        else
5639
          echo "cannot find nm_test_func in $nlist" >&5
5640
        fi
5641
      else
5642
        echo "cannot find nm_test_var in $nlist" >&5
5643
      fi
5644
    else
5645
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5646
    fi
5647
  else
5648
    echo "$progname: failed program was:" >&5
5649
    cat conftest.$ac_ext >&5
5650
  fi
5651
  rm -rf conftest* conftst*
5652
 
5653
  # Do not use the global_symbol_pipe unless it works.
5654
  if test "$pipe_works" = yes; then
5655
    break
5656
  else
5657
    lt_cv_sys_global_symbol_pipe=
5658
  fi
5659
done
5660
 
5661
fi
5662
 
5663
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5664
  lt_cv_sys_global_symbol_to_cdecl=
5665
fi
5666
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5667 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5668 82 jeremybenn
$as_echo "failed" >&6; }
5669
else
5670 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5671 82 jeremybenn
$as_echo "ok" >&6; }
5672
fi
5673
 
5674
 
5675
 
5676
 
5677
 
5678
 
5679
 
5680
 
5681
 
5682
 
5683
 
5684
 
5685
 
5686
 
5687
 
5688
 
5689
 
5690
 
5691
 
5692
 
5693
 
5694
 
5695 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5696 346 jeremybenn
if test "${enable_libtool_lock+set}" = set; then :
5697 19 jeremybenn
  enableval=$enable_libtool_lock;
5698
fi
5699
 
5700
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5701
 
5702
# Some flags need to be propagated to the compiler or linker for good
5703
# libtool support.
5704
case $host in
5705
ia64-*-hpux*)
5706
  # Find out which ABI we are using.
5707
  echo 'int i;' > conftest.$ac_ext
5708 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5709 19 jeremybenn
  (eval $ac_compile) 2>&5
5710
  ac_status=$?
5711 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712
  test $ac_status = 0; }; then
5713 19 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5714 82 jeremybenn
      *ELF-32*)
5715
        HPUX_IA64_MODE="32"
5716
        ;;
5717
      *ELF-64*)
5718
        HPUX_IA64_MODE="64"
5719
        ;;
5720 19 jeremybenn
    esac
5721
  fi
5722
  rm -rf conftest*
5723
  ;;
5724
*-*-irix6*)
5725
  # Find out which ABI we are using.
5726 346 jeremybenn
  echo '#line 5726 "configure"' > conftest.$ac_ext
5727
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5728 19 jeremybenn
  (eval $ac_compile) 2>&5
5729
  ac_status=$?
5730 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731
  test $ac_status = 0; }; then
5732 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5733
      case `/usr/bin/file conftest.$ac_objext` in
5734
        *32-bit*)
5735
          LD="${LD-ld} -melf32bsmip"
5736
          ;;
5737
        *N32*)
5738
          LD="${LD-ld} -melf32bmipn32"
5739
          ;;
5740
        *64-bit*)
5741
          LD="${LD-ld} -melf64bmip"
5742
        ;;
5743
      esac
5744
    else
5745
      case `/usr/bin/file conftest.$ac_objext` in
5746
        *32-bit*)
5747
          LD="${LD-ld} -32"
5748
          ;;
5749
        *N32*)
5750
          LD="${LD-ld} -n32"
5751
          ;;
5752
        *64-bit*)
5753
          LD="${LD-ld} -64"
5754
          ;;
5755
      esac
5756
    fi
5757 19 jeremybenn
  fi
5758
  rm -rf conftest*
5759
  ;;
5760
 
5761
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5762 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5763 19 jeremybenn
  # Find out which ABI we are using.
5764
  echo 'int i;' > conftest.$ac_ext
5765 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5766 19 jeremybenn
  (eval $ac_compile) 2>&5
5767
  ac_status=$?
5768 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769
  test $ac_status = 0; }; then
5770 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5771 82 jeremybenn
      *32-bit*)
5772
        case $host in
5773
          x86_64-*kfreebsd*-gnu)
5774
            LD="${LD-ld} -m elf_i386_fbsd"
5775
            ;;
5776
          x86_64-*linux*)
5777
            LD="${LD-ld} -m elf_i386"
5778
            ;;
5779
          ppc64-*linux*|powerpc64-*linux*)
5780
            LD="${LD-ld} -m elf32ppclinux"
5781
            ;;
5782
          s390x-*linux*)
5783
            LD="${LD-ld} -m elf_s390"
5784
            ;;
5785
          sparc64-*linux*)
5786
            LD="${LD-ld} -m elf32_sparc"
5787
            ;;
5788
        esac
5789
        ;;
5790
      *64-bit*)
5791
        case $host in
5792
          x86_64-*kfreebsd*-gnu)
5793
            LD="${LD-ld} -m elf_x86_64_fbsd"
5794
            ;;
5795
          x86_64-*linux*)
5796
            LD="${LD-ld} -m elf_x86_64"
5797
            ;;
5798
          ppc*-*linux*|powerpc*-*linux*)
5799
            LD="${LD-ld} -m elf64ppc"
5800
            ;;
5801
          s390*-*linux*|s390*-*tpf*)
5802
            LD="${LD-ld} -m elf64_s390"
5803
            ;;
5804
          sparc*-*linux*)
5805
            LD="${LD-ld} -m elf64_sparc"
5806
            ;;
5807
        esac
5808
        ;;
5809 19 jeremybenn
    esac
5810
  fi
5811
  rm -rf conftest*
5812
  ;;
5813
 
5814
*-*-sco3.2v5*)
5815
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5816
  SAVE_CFLAGS="$CFLAGS"
5817
  CFLAGS="$CFLAGS -belf"
5818 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5819 82 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5820 346 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5821 82 jeremybenn
  $as_echo_n "(cached) " >&6
5822 19 jeremybenn
else
5823
  ac_ext=c
5824
ac_cpp='$CPP $CPPFLAGS'
5825
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828
 
5829 346 jeremybenn
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 19 jeremybenn
/* end confdefs.h.  */
5831
 
5832
int
5833
main ()
5834
{
5835
 
5836
  ;
5837
  return 0;
5838
}
5839
_ACEOF
5840 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5841 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5842
else
5843 346 jeremybenn
  lt_cv_cc_needs_belf=no
5844 19 jeremybenn
fi
5845 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5846
    conftest$ac_exeext conftest.$ac_ext
5847 19 jeremybenn
     ac_ext=c
5848
ac_cpp='$CPP $CPPFLAGS'
5849
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5852
 
5853
fi
5854 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5855 82 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5856 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5857
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5858
    CFLAGS="$SAVE_CFLAGS"
5859
  fi
5860
  ;;
5861
sparc*-*solaris*)
5862
  # Find out which ABI we are using.
5863
  echo 'int i;' > conftest.$ac_ext
5864 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5865 19 jeremybenn
  (eval $ac_compile) 2>&5
5866
  ac_status=$?
5867 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5868
  test $ac_status = 0; }; then
5869 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5870
    *64-bit*)
5871
      case $lt_cv_prog_gnu_ld in
5872
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5873 82 jeremybenn
      *)
5874
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5875
          LD="${LD-ld} -64"
5876
        fi
5877
        ;;
5878 19 jeremybenn
      esac
5879
      ;;
5880
    esac
5881
  fi
5882
  rm -rf conftest*
5883
  ;;
5884 82 jeremybenn
esac
5885 19 jeremybenn
 
5886 82 jeremybenn
need_locks="$enable_libtool_lock"
5887 19 jeremybenn
 
5888 82 jeremybenn
 
5889
  case $host_os in
5890
    rhapsody* | darwin*)
5891
    if test -n "$ac_tool_prefix"; then
5892
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5893
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5894 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5896 346 jeremybenn
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5897 82 jeremybenn
  $as_echo_n "(cached) " >&6
5898
else
5899
  if test -n "$DSYMUTIL"; then
5900
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5901
else
5902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903
for as_dir in $PATH
5904
do
5905
  IFS=$as_save_IFS
5906
  test -z "$as_dir" && as_dir=.
5907 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5908 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5910 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 82 jeremybenn
    break 2
5912
  fi
5913
done
5914 346 jeremybenn
  done
5915 82 jeremybenn
IFS=$as_save_IFS
5916
 
5917
fi
5918
fi
5919
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5920
if test -n "$DSYMUTIL"; then
5921 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5922 82 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5923
else
5924 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 82 jeremybenn
$as_echo "no" >&6; }
5926
fi
5927
 
5928
 
5929
fi
5930
if test -z "$ac_cv_prog_DSYMUTIL"; then
5931
  ac_ct_DSYMUTIL=$DSYMUTIL
5932
  # Extract the first word of "dsymutil", so it can be a program name with args.
5933
set dummy dsymutil; ac_word=$2
5934 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5936 346 jeremybenn
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5937 82 jeremybenn
  $as_echo_n "(cached) " >&6
5938
else
5939
  if test -n "$ac_ct_DSYMUTIL"; then
5940
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5941
else
5942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943
for as_dir in $PATH
5944
do
5945
  IFS=$as_save_IFS
5946
  test -z "$as_dir" && as_dir=.
5947 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5948 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5950 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 82 jeremybenn
    break 2
5952
  fi
5953
done
5954 346 jeremybenn
  done
5955 82 jeremybenn
IFS=$as_save_IFS
5956
 
5957
fi
5958
fi
5959
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5960
if test -n "$ac_ct_DSYMUTIL"; then
5961 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5962 82 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5963
else
5964 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 82 jeremybenn
$as_echo "no" >&6; }
5966
fi
5967
 
5968
  if test "x$ac_ct_DSYMUTIL" = x; then
5969
    DSYMUTIL=":"
5970
  else
5971
    case $cross_compiling:$ac_tool_warned in
5972
yes:)
5973 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975
ac_tool_warned=yes ;;
5976 19 jeremybenn
esac
5977 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
5978
  fi
5979
else
5980
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5981
fi
5982 19 jeremybenn
 
5983 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
5984
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5985
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5986 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5988 346 jeremybenn
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5989 82 jeremybenn
  $as_echo_n "(cached) " >&6
5990
else
5991
  if test -n "$NMEDIT"; then
5992
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5993
else
5994
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995
for as_dir in $PATH
5996
do
5997
  IFS=$as_save_IFS
5998
  test -z "$as_dir" && as_dir=.
5999 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6000 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6002 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 82 jeremybenn
    break 2
6004
  fi
6005
done
6006 346 jeremybenn
  done
6007 82 jeremybenn
IFS=$as_save_IFS
6008 19 jeremybenn
 
6009 82 jeremybenn
fi
6010
fi
6011
NMEDIT=$ac_cv_prog_NMEDIT
6012
if test -n "$NMEDIT"; then
6013 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6014 82 jeremybenn
$as_echo "$NMEDIT" >&6; }
6015
else
6016 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 82 jeremybenn
$as_echo "no" >&6; }
6018
fi
6019 19 jeremybenn
 
6020 82 jeremybenn
 
6021
fi
6022
if test -z "$ac_cv_prog_NMEDIT"; then
6023
  ac_ct_NMEDIT=$NMEDIT
6024
  # Extract the first word of "nmedit", so it can be a program name with args.
6025
set dummy nmedit; ac_word=$2
6026 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6028 346 jeremybenn
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6029 82 jeremybenn
  $as_echo_n "(cached) " >&6
6030
else
6031
  if test -n "$ac_ct_NMEDIT"; then
6032
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6033
else
6034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035
for as_dir in $PATH
6036
do
6037
  IFS=$as_save_IFS
6038
  test -z "$as_dir" && as_dir=.
6039 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6040 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6042 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 82 jeremybenn
    break 2
6044
  fi
6045
done
6046 346 jeremybenn
  done
6047 82 jeremybenn
IFS=$as_save_IFS
6048
 
6049
fi
6050
fi
6051
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6052
if test -n "$ac_ct_NMEDIT"; then
6053 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6054 82 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
6055
else
6056 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 82 jeremybenn
$as_echo "no" >&6; }
6058
fi
6059
 
6060
  if test "x$ac_ct_NMEDIT" = x; then
6061
    NMEDIT=":"
6062
  else
6063
    case $cross_compiling:$ac_tool_warned in
6064
yes:)
6065 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067
ac_tool_warned=yes ;;
6068
esac
6069
    NMEDIT=$ac_ct_NMEDIT
6070
  fi
6071
else
6072
  NMEDIT="$ac_cv_prog_NMEDIT"
6073
fi
6074
 
6075
    if test -n "$ac_tool_prefix"; then
6076
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6077
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6078 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6080 346 jeremybenn
if test "${ac_cv_prog_LIPO+set}" = set; then :
6081 82 jeremybenn
  $as_echo_n "(cached) " >&6
6082
else
6083
  if test -n "$LIPO"; then
6084
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6085
else
6086
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087
for as_dir in $PATH
6088
do
6089
  IFS=$as_save_IFS
6090
  test -z "$as_dir" && as_dir=.
6091 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6092 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6094 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 82 jeremybenn
    break 2
6096
  fi
6097
done
6098 346 jeremybenn
  done
6099 82 jeremybenn
IFS=$as_save_IFS
6100
 
6101
fi
6102
fi
6103
LIPO=$ac_cv_prog_LIPO
6104
if test -n "$LIPO"; then
6105 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6106 82 jeremybenn
$as_echo "$LIPO" >&6; }
6107
else
6108 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 82 jeremybenn
$as_echo "no" >&6; }
6110
fi
6111
 
6112
 
6113
fi
6114
if test -z "$ac_cv_prog_LIPO"; then
6115
  ac_ct_LIPO=$LIPO
6116
  # Extract the first word of "lipo", so it can be a program name with args.
6117
set dummy lipo; ac_word=$2
6118 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6120 346 jeremybenn
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6121 82 jeremybenn
  $as_echo_n "(cached) " >&6
6122
else
6123
  if test -n "$ac_ct_LIPO"; then
6124
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6125
else
6126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127
for as_dir in $PATH
6128
do
6129
  IFS=$as_save_IFS
6130
  test -z "$as_dir" && as_dir=.
6131 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6132 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133
    ac_cv_prog_ac_ct_LIPO="lipo"
6134 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 82 jeremybenn
    break 2
6136
  fi
6137
done
6138 346 jeremybenn
  done
6139 82 jeremybenn
IFS=$as_save_IFS
6140
 
6141
fi
6142
fi
6143
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6144
if test -n "$ac_ct_LIPO"; then
6145 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6146 82 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6147
else
6148 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 82 jeremybenn
$as_echo "no" >&6; }
6150
fi
6151
 
6152
  if test "x$ac_ct_LIPO" = x; then
6153
    LIPO=":"
6154
  else
6155
    case $cross_compiling:$ac_tool_warned in
6156
yes:)
6157 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6158 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6159
ac_tool_warned=yes ;;
6160
esac
6161
    LIPO=$ac_ct_LIPO
6162
  fi
6163
else
6164
  LIPO="$ac_cv_prog_LIPO"
6165
fi
6166
 
6167
    if test -n "$ac_tool_prefix"; then
6168
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6169
set dummy ${ac_tool_prefix}otool; ac_word=$2
6170 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6172 346 jeremybenn
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6173 82 jeremybenn
  $as_echo_n "(cached) " >&6
6174
else
6175
  if test -n "$OTOOL"; then
6176
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6177
else
6178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179
for as_dir in $PATH
6180
do
6181
  IFS=$as_save_IFS
6182
  test -z "$as_dir" && as_dir=.
6183 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6184 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6186 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 82 jeremybenn
    break 2
6188
  fi
6189
done
6190 346 jeremybenn
  done
6191 82 jeremybenn
IFS=$as_save_IFS
6192
 
6193
fi
6194
fi
6195
OTOOL=$ac_cv_prog_OTOOL
6196
if test -n "$OTOOL"; then
6197 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6198 82 jeremybenn
$as_echo "$OTOOL" >&6; }
6199
else
6200 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 82 jeremybenn
$as_echo "no" >&6; }
6202
fi
6203
 
6204
 
6205
fi
6206
if test -z "$ac_cv_prog_OTOOL"; then
6207
  ac_ct_OTOOL=$OTOOL
6208
  # Extract the first word of "otool", so it can be a program name with args.
6209
set dummy otool; ac_word=$2
6210 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6212 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6213 82 jeremybenn
  $as_echo_n "(cached) " >&6
6214
else
6215
  if test -n "$ac_ct_OTOOL"; then
6216
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6217
else
6218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219
for as_dir in $PATH
6220
do
6221
  IFS=$as_save_IFS
6222
  test -z "$as_dir" && as_dir=.
6223 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6224 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225
    ac_cv_prog_ac_ct_OTOOL="otool"
6226 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 82 jeremybenn
    break 2
6228
  fi
6229
done
6230 346 jeremybenn
  done
6231 82 jeremybenn
IFS=$as_save_IFS
6232
 
6233
fi
6234
fi
6235
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6236
if test -n "$ac_ct_OTOOL"; then
6237 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6238 82 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6239
else
6240 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 82 jeremybenn
$as_echo "no" >&6; }
6242
fi
6243
 
6244
  if test "x$ac_ct_OTOOL" = x; then
6245
    OTOOL=":"
6246
  else
6247
    case $cross_compiling:$ac_tool_warned in
6248
yes:)
6249 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251
ac_tool_warned=yes ;;
6252
esac
6253
    OTOOL=$ac_ct_OTOOL
6254
  fi
6255
else
6256
  OTOOL="$ac_cv_prog_OTOOL"
6257
fi
6258
 
6259
    if test -n "$ac_tool_prefix"; then
6260
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6261
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6262 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6264 346 jeremybenn
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6265 82 jeremybenn
  $as_echo_n "(cached) " >&6
6266
else
6267
  if test -n "$OTOOL64"; then
6268
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6269
else
6270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271
for as_dir in $PATH
6272
do
6273
  IFS=$as_save_IFS
6274
  test -z "$as_dir" && as_dir=.
6275 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6276 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6277
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6278 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 82 jeremybenn
    break 2
6280
  fi
6281
done
6282 346 jeremybenn
  done
6283 82 jeremybenn
IFS=$as_save_IFS
6284
 
6285
fi
6286
fi
6287
OTOOL64=$ac_cv_prog_OTOOL64
6288
if test -n "$OTOOL64"; then
6289 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6290 82 jeremybenn
$as_echo "$OTOOL64" >&6; }
6291
else
6292 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 82 jeremybenn
$as_echo "no" >&6; }
6294
fi
6295
 
6296
 
6297
fi
6298
if test -z "$ac_cv_prog_OTOOL64"; then
6299
  ac_ct_OTOOL64=$OTOOL64
6300
  # Extract the first word of "otool64", so it can be a program name with args.
6301
set dummy otool64; ac_word=$2
6302 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6304 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6305 82 jeremybenn
  $as_echo_n "(cached) " >&6
6306
else
6307
  if test -n "$ac_ct_OTOOL64"; then
6308
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6309
else
6310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311
for as_dir in $PATH
6312
do
6313
  IFS=$as_save_IFS
6314
  test -z "$as_dir" && as_dir=.
6315 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6316 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6318 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 82 jeremybenn
    break 2
6320
  fi
6321
done
6322 346 jeremybenn
  done
6323 82 jeremybenn
IFS=$as_save_IFS
6324
 
6325
fi
6326
fi
6327
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6328
if test -n "$ac_ct_OTOOL64"; then
6329 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6330 82 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6331
else
6332 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 82 jeremybenn
$as_echo "no" >&6; }
6334
fi
6335
 
6336
  if test "x$ac_ct_OTOOL64" = x; then
6337
    OTOOL64=":"
6338
  else
6339
    case $cross_compiling:$ac_tool_warned in
6340
yes:)
6341 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343
ac_tool_warned=yes ;;
6344
esac
6345
    OTOOL64=$ac_ct_OTOOL64
6346
  fi
6347
else
6348
  OTOOL64="$ac_cv_prog_OTOOL64"
6349
fi
6350
 
6351
 
6352
 
6353
 
6354
 
6355
 
6356
 
6357
 
6358
 
6359
 
6360
 
6361
 
6362
 
6363
 
6364
 
6365
 
6366
 
6367
 
6368
 
6369
 
6370
 
6371
 
6372
 
6373
 
6374
 
6375
 
6376
 
6377 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6378 82 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
6379 346 jeremybenn
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6380 82 jeremybenn
  $as_echo_n "(cached) " >&6
6381
else
6382
  lt_cv_apple_cc_single_mod=no
6383
      if test -z "${LT_MULTI_MODULE}"; then
6384
        # By default we will add the -single_module flag. You can override
6385
        # by either setting the environment variable LT_MULTI_MODULE
6386
        # non-empty at configure time, or by adding -multi_module to the
6387
        # link flags.
6388
        rm -rf libconftest.dylib*
6389
        echo "int foo(void){return 1;}" > conftest.c
6390
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6391
-dynamiclib -Wl,-single_module conftest.c" >&5
6392
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6393
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6394
        _lt_result=$?
6395
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6396
          lt_cv_apple_cc_single_mod=yes
6397
        else
6398
          cat conftest.err >&5
6399
        fi
6400
        rm -rf libconftest.dylib*
6401
        rm -f conftest.*
6402
      fi
6403
fi
6404 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6405 82 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6406 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6407 82 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6408 346 jeremybenn
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6409 82 jeremybenn
  $as_echo_n "(cached) " >&6
6410
else
6411
  lt_cv_ld_exported_symbols_list=no
6412
      save_LDFLAGS=$LDFLAGS
6413
      echo "_main" > conftest.sym
6414
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6415 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 82 jeremybenn
/* end confdefs.h.  */
6417
 
6418
int
6419
main ()
6420
{
6421
 
6422
  ;
6423
  return 0;
6424
}
6425
_ACEOF
6426 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
6427 82 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6428
else
6429 346 jeremybenn
  lt_cv_ld_exported_symbols_list=no
6430 82 jeremybenn
fi
6431 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
6432
    conftest$ac_exeext conftest.$ac_ext
6433 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
6434
 
6435
fi
6436 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6437 82 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6438
    case $host_os in
6439
    rhapsody* | darwin1.[012])
6440
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6441
    darwin1.*)
6442
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6443
    darwin*) # darwin 5.x on
6444
      # if running on 10.5 or later, the deployment target defaults
6445
      # to the OS version, if on x86, and 10.4, the deployment
6446
      # target defaults to 10.4. Don't you love it?
6447
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6448
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6449
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6450
        10.[012]*)
6451
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6452
        10.*)
6453
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6454
      esac
6455
    ;;
6456
  esac
6457
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6458
      _lt_dar_single_mod='$single_module'
6459
    fi
6460
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6461
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6462
    else
6463
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6464
    fi
6465
    if test "$DSYMUTIL" != ":"; then
6466
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6467
    else
6468
      _lt_dsymutil=
6469
    fi
6470
    ;;
6471
  esac
6472
 
6473 19 jeremybenn
for ac_header in dlfcn.h
6474 346 jeremybenn
do :
6475
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6476
"
6477
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6478 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6479 346 jeremybenn
#define HAVE_DLFCN_H 1
6480 19 jeremybenn
_ACEOF
6481
 
6482
fi
6483
 
6484
done
6485
 
6486
 
6487
 
6488 82 jeremybenn
# Set options
6489 19 jeremybenn
 
6490
 
6491
 
6492 82 jeremybenn
        enable_dlopen=no
6493 19 jeremybenn
 
6494
 
6495 82 jeremybenn
  enable_win32_dll=no
6496 19 jeremybenn
 
6497
 
6498 82 jeremybenn
            # Check whether --enable-shared was given.
6499 346 jeremybenn
if test "${enable_shared+set}" = set; then :
6500 82 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6501
    case $enableval in
6502
    yes) enable_shared=yes ;;
6503
    no) enable_shared=no ;;
6504
    *)
6505
      enable_shared=no
6506
      # Look at the argument we got.  We use all the common list separators.
6507
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6508
      for pkg in $enableval; do
6509
        IFS="$lt_save_ifs"
6510
        if test "X$pkg" = "X$p"; then
6511
          enable_shared=yes
6512
        fi
6513
      done
6514
      IFS="$lt_save_ifs"
6515
      ;;
6516
    esac
6517 19 jeremybenn
else
6518 82 jeremybenn
  enable_shared=yes
6519 19 jeremybenn
fi
6520
 
6521
 
6522
 
6523
 
6524
 
6525
 
6526
 
6527
 
6528
 
6529 82 jeremybenn
  # Check whether --enable-static was given.
6530 346 jeremybenn
if test "${enable_static+set}" = set; then :
6531 82 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6532
    case $enableval in
6533
    yes) enable_static=yes ;;
6534
    no) enable_static=no ;;
6535
    *)
6536
     enable_static=no
6537
      # Look at the argument we got.  We use all the common list separators.
6538
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6539
      for pkg in $enableval; do
6540
        IFS="$lt_save_ifs"
6541
        if test "X$pkg" = "X$p"; then
6542
          enable_static=yes
6543
        fi
6544
      done
6545
      IFS="$lt_save_ifs"
6546
      ;;
6547
    esac
6548 19 jeremybenn
else
6549 82 jeremybenn
  enable_static=yes
6550 19 jeremybenn
fi
6551
 
6552
 
6553
 
6554
 
6555
 
6556
 
6557
 
6558
 
6559
 
6560
 
6561 82 jeremybenn
# Check whether --with-pic was given.
6562 346 jeremybenn
if test "${with_pic+set}" = set; then :
6563 82 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6564 19 jeremybenn
else
6565 82 jeremybenn
  pic_mode=default
6566 19 jeremybenn
fi
6567
 
6568
 
6569 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6570 19 jeremybenn
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577 82 jeremybenn
  # Check whether --enable-fast-install was given.
6578 346 jeremybenn
if test "${enable_fast_install+set}" = set; then :
6579 82 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6580
    case $enableval in
6581
    yes) enable_fast_install=yes ;;
6582
    no) enable_fast_install=no ;;
6583
    *)
6584
      enable_fast_install=no
6585
      # Look at the argument we got.  We use all the common list separators.
6586
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6587
      for pkg in $enableval; do
6588
        IFS="$lt_save_ifs"
6589
        if test "X$pkg" = "X$p"; then
6590
          enable_fast_install=yes
6591
        fi
6592
      done
6593
      IFS="$lt_save_ifs"
6594
      ;;
6595
    esac
6596 19 jeremybenn
else
6597 82 jeremybenn
  enable_fast_install=yes
6598 19 jeremybenn
fi
6599
 
6600
 
6601
 
6602
 
6603
 
6604
 
6605
 
6606
 
6607
 
6608
 
6609
 
6610 82 jeremybenn
# This can be used to rebuild libtool when needed
6611
LIBTOOL_DEPS="$ltmain"
6612 19 jeremybenn
 
6613 82 jeremybenn
# Always use our own libtool.
6614
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6615 19 jeremybenn
 
6616
 
6617
 
6618
 
6619
 
6620
 
6621
 
6622
 
6623
 
6624
 
6625
 
6626
 
6627
 
6628
 
6629
 
6630
 
6631
 
6632
 
6633
 
6634
 
6635
 
6636
 
6637
 
6638
 
6639
 
6640 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6641 19 jeremybenn
 
6642
 
6643
 
6644
 
6645
 
6646
 
6647
 
6648
 
6649
 
6650
 
6651
 
6652
 
6653
 
6654
 
6655 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6656
   setopt NO_GLOB_SUBST
6657 19 jeremybenn
fi
6658
 
6659 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6660 82 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6661 346 jeremybenn
if test "${lt_cv_objdir+set}" = set; then :
6662 82 jeremybenn
  $as_echo_n "(cached) " >&6
6663 19 jeremybenn
else
6664
  rm -f .libs 2>/dev/null
6665
mkdir .libs 2>/dev/null
6666
if test -d .libs; then
6667
  lt_cv_objdir=.libs
6668
else
6669
  # MS-DOS does not allow filenames that begin with a dot.
6670
  lt_cv_objdir=_libs
6671
fi
6672
rmdir .libs 2>/dev/null
6673
fi
6674 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6675 82 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6676 19 jeremybenn
objdir=$lt_cv_objdir
6677
 
6678
 
6679
 
6680
 
6681
 
6682 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6683
#define LT_OBJDIR "$lt_cv_objdir/"
6684
_ACEOF
6685
 
6686
 
6687
 
6688
 
6689
 
6690
 
6691
 
6692
 
6693
 
6694
 
6695
 
6696
 
6697
 
6698
 
6699
 
6700
 
6701
 
6702 19 jeremybenn
case $host_os in
6703
aix3*)
6704
  # AIX sometimes has problems with the GCC collect2 program.  For some
6705
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6706
  # vanish in a puff of smoke.
6707
  if test "X${COLLECT_NAMES+set}" != Xset; then
6708
    COLLECT_NAMES=
6709
    export COLLECT_NAMES
6710
  fi
6711
  ;;
6712
esac
6713
 
6714
# Sed substitution that helps us do robust quoting.  It backslashifies
6715
# metacharacters that are still active within double-quoted strings.
6716 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6717 19 jeremybenn
 
6718
# Same as above, but do not quote variable references.
6719 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6720 19 jeremybenn
 
6721
# Sed substitution to delay expansion of an escaped shell variable in a
6722
# double_quote_subst'ed string.
6723
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6724
 
6725 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6726
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6727
 
6728 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6729
no_glob_subst='s/\*/\\\*/g'
6730
 
6731
# Global variables:
6732 82 jeremybenn
ofile=libtool
6733 19 jeremybenn
can_build_shared=yes
6734
 
6735
# All known linkers require a `.a' archive for static linking (except MSVC,
6736
# which needs '.lib').
6737
libext=a
6738 82 jeremybenn
 
6739 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6740
 
6741
old_CC="$CC"
6742
old_CFLAGS="$CFLAGS"
6743
 
6744
# Set sane defaults for various variables
6745
test -z "$CC" && CC=cc
6746
test -z "$LTCC" && LTCC=$CC
6747
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6748
test -z "$LD" && LD=ld
6749
test -z "$ac_objext" && ac_objext=o
6750
 
6751
for cc_temp in $compiler""; do
6752
  case $cc_temp in
6753
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6754
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6755
    \-*) ;;
6756
    *) break;;
6757
  esac
6758
done
6759 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6760 19 jeremybenn
 
6761
 
6762
# Only perform the check for file, if the check method requires it
6763 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6764 19 jeremybenn
case $deplibs_check_method in
6765
file_magic*)
6766
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6767 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6768 82 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6769 346 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6770 82 jeremybenn
  $as_echo_n "(cached) " >&6
6771 19 jeremybenn
else
6772
  case $MAGIC_CMD in
6773
[\\/*] |  ?:[\\/]*)
6774
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6775
  ;;
6776
*)
6777
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6778
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6779
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6780
  for ac_dir in $ac_dummy; do
6781
    IFS="$lt_save_ifs"
6782
    test -z "$ac_dir" && ac_dir=.
6783
    if test -f $ac_dir/${ac_tool_prefix}file; then
6784
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6785
      if test -n "$file_magic_test_file"; then
6786
        case $deplibs_check_method in
6787
        "file_magic "*)
6788
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6789
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6790
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6791
            $EGREP "$file_magic_regex" > /dev/null; then
6792
            :
6793
          else
6794 82 jeremybenn
            cat <<_LT_EOF 1>&2
6795 19 jeremybenn
 
6796
*** Warning: the command libtool uses to detect shared libraries,
6797
*** $file_magic_cmd, produces output that libtool cannot recognize.
6798
*** The result is that libtool may fail to recognize shared libraries
6799
*** as such.  This will affect the creation of libtool libraries that
6800
*** depend on shared libraries, but programs linked with such libtool
6801
*** libraries will work regardless of this problem.  Nevertheless, you
6802
*** may want to report the problem to your system manager and/or to
6803
*** bug-libtool@gnu.org
6804
 
6805 82 jeremybenn
_LT_EOF
6806 19 jeremybenn
          fi ;;
6807
        esac
6808
      fi
6809
      break
6810
    fi
6811
  done
6812
  IFS="$lt_save_ifs"
6813
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6814
  ;;
6815
esac
6816
fi
6817
 
6818
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6819
if test -n "$MAGIC_CMD"; then
6820 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6821 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6822 19 jeremybenn
else
6823 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 82 jeremybenn
$as_echo "no" >&6; }
6825 19 jeremybenn
fi
6826
 
6827 82 jeremybenn
 
6828
 
6829
 
6830
 
6831 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6832
  if test -n "$ac_tool_prefix"; then
6833 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6834 82 jeremybenn
$as_echo_n "checking for file... " >&6; }
6835 346 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6836 82 jeremybenn
  $as_echo_n "(cached) " >&6
6837 19 jeremybenn
else
6838
  case $MAGIC_CMD in
6839
[\\/*] |  ?:[\\/]*)
6840
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6841
  ;;
6842
*)
6843
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6844
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6845
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6846
  for ac_dir in $ac_dummy; do
6847
    IFS="$lt_save_ifs"
6848
    test -z "$ac_dir" && ac_dir=.
6849
    if test -f $ac_dir/file; then
6850
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6851
      if test -n "$file_magic_test_file"; then
6852
        case $deplibs_check_method in
6853
        "file_magic "*)
6854
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6855
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6856
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6857
            $EGREP "$file_magic_regex" > /dev/null; then
6858
            :
6859
          else
6860 82 jeremybenn
            cat <<_LT_EOF 1>&2
6861 19 jeremybenn
 
6862
*** Warning: the command libtool uses to detect shared libraries,
6863
*** $file_magic_cmd, produces output that libtool cannot recognize.
6864
*** The result is that libtool may fail to recognize shared libraries
6865
*** as such.  This will affect the creation of libtool libraries that
6866
*** depend on shared libraries, but programs linked with such libtool
6867
*** libraries will work regardless of this problem.  Nevertheless, you
6868
*** may want to report the problem to your system manager and/or to
6869
*** bug-libtool@gnu.org
6870
 
6871 82 jeremybenn
_LT_EOF
6872 19 jeremybenn
          fi ;;
6873
        esac
6874
      fi
6875
      break
6876
    fi
6877
  done
6878
  IFS="$lt_save_ifs"
6879
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6880
  ;;
6881
esac
6882
fi
6883
 
6884
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6885
if test -n "$MAGIC_CMD"; then
6886 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6887 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6888 19 jeremybenn
else
6889 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 82 jeremybenn
$as_echo "no" >&6; }
6891 19 jeremybenn
fi
6892
 
6893 82 jeremybenn
 
6894 19 jeremybenn
  else
6895
    MAGIC_CMD=:
6896
  fi
6897
fi
6898
 
6899
  fi
6900
  ;;
6901
esac
6902
 
6903 82 jeremybenn
# Use C for the default configuration in the libtool script
6904 19 jeremybenn
 
6905
lt_save_CC="$CC"
6906
ac_ext=c
6907
ac_cpp='$CPP $CPPFLAGS'
6908
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911
 
6912
 
6913
# Source file extension for C test sources.
6914
ac_ext=c
6915
 
6916
# Object file extension for compiled C test sources.
6917
objext=o
6918
objext=$objext
6919
 
6920
# Code to be used in simple compile tests
6921
lt_simple_compile_test_code="int some_variable = 0;"
6922
 
6923
# Code to be used in simple link tests
6924
lt_simple_link_test_code='int main(){return(0);}'
6925
 
6926
 
6927 82 jeremybenn
 
6928
 
6929
 
6930
 
6931
 
6932 19 jeremybenn
# If no C compiler was specified, use CC.
6933
LTCC=${LTCC-"$CC"}
6934
 
6935
# If no C compiler flags were specified, use CFLAGS.
6936
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937
 
6938
# Allow CC to be a program name with arguments.
6939
compiler=$CC
6940
 
6941 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
6942
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6943
compiler_DEFAULT=$CC
6944 19 jeremybenn
 
6945
# save warnings/boilerplate of simple test code
6946
ac_outfile=conftest.$ac_objext
6947
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6948
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6949
_lt_compiler_boilerplate=`cat conftest.err`
6950 82 jeremybenn
$RM conftest*
6951 19 jeremybenn
 
6952
ac_outfile=conftest.$ac_objext
6953
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6954
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6955
_lt_linker_boilerplate=`cat conftest.err`
6956 82 jeremybenn
$RM -r conftest*
6957 19 jeremybenn
 
6958
 
6959 82 jeremybenn
## CAVEAT EMPTOR:
6960
## There is no encapsulation within the following macros, do not change
6961
## the running order or otherwise move them around unless you know exactly
6962
## what you are doing...
6963
if test -n "$compiler"; then
6964 19 jeremybenn
 
6965
lt_prog_compiler_no_builtin_flag=
6966
 
6967
if test "$GCC" = yes; then
6968
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6969
 
6970 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6971 82 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6972 346 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6973 82 jeremybenn
  $as_echo_n "(cached) " >&6
6974 19 jeremybenn
else
6975
  lt_cv_prog_compiler_rtti_exceptions=no
6976 82 jeremybenn
   ac_outfile=conftest.$ac_objext
6977 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6978
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6979
   # Insert the option either (1) after the last *FLAGS variable, or
6980
   # (2) before a word containing "conftest.", or (3) at the end.
6981
   # Note that $ac_compile itself does not contain backslashes and begins
6982
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6983
   # The option is referenced via a variable to avoid confusing sed.
6984
   lt_compile=`echo "$ac_compile" | $SED \
6985
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6986
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6987
   -e 's:$: $lt_compiler_flag:'`
6988 346 jeremybenn
   (eval echo "\"\$as_me:6988: $lt_compile\"" >&5)
6989 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6990
   ac_status=$?
6991
   cat conftest.err >&5
6992 346 jeremybenn
   echo "$as_me:6992: \$? = $ac_status" >&5
6993 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
6994
     # The compiler can only warn and ignore the option if not recognized
6995
     # So say no if there are warnings other than the usual output.
6996 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6997 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6998
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6999
       lt_cv_prog_compiler_rtti_exceptions=yes
7000
     fi
7001
   fi
7002 82 jeremybenn
   $RM conftest*
7003 19 jeremybenn
 
7004
fi
7005 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7006 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7007 19 jeremybenn
 
7008
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7009
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7010
else
7011
    :
7012
fi
7013
 
7014
fi
7015
 
7016 82 jeremybenn
 
7017
 
7018
 
7019
 
7020
 
7021
  lt_prog_compiler_wl=
7022 19 jeremybenn
lt_prog_compiler_pic=
7023
lt_prog_compiler_static=
7024
 
7025 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7026 82 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7027 19 jeremybenn
 
7028
  if test "$GCC" = yes; then
7029
    lt_prog_compiler_wl='-Wl,'
7030
    lt_prog_compiler_static='-static'
7031
 
7032
    case $host_os in
7033
      aix*)
7034
      # All AIX code is PIC.
7035
      if test "$host_cpu" = ia64; then
7036
        # AIX 5 now supports IA64 processor
7037
        lt_prog_compiler_static='-Bstatic'
7038
      fi
7039
      ;;
7040
 
7041
    amigaos*)
7042 82 jeremybenn
      case $host_cpu in
7043
      powerpc)
7044
            # see comment about AmigaOS4 .so support
7045
            lt_prog_compiler_pic='-fPIC'
7046
        ;;
7047
      m68k)
7048
            # FIXME: we need at least 68020 code to build shared libraries, but
7049
            # adding the `-m68020' flag to GCC prevents building anything better,
7050
            # like `-m68040'.
7051
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7052
        ;;
7053
      esac
7054 19 jeremybenn
      ;;
7055
 
7056
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7057
      # PIC is the default for these OSes.
7058
      ;;
7059
 
7060 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7061 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7062
      # built for inclusion in a dll (and should export symbols for example).
7063
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7064
      # (--disable-auto-import) libraries
7065
      lt_prog_compiler_pic='-DDLL_EXPORT'
7066
      ;;
7067
 
7068
    darwin* | rhapsody*)
7069
      # PIC is the default on this platform
7070
      # Common symbols not allowed in MH_DYLIB files
7071
      lt_prog_compiler_pic='-fno-common'
7072
      ;;
7073
 
7074 82 jeremybenn
    hpux*)
7075
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7076
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7077
      # sets the default TLS model and affects inlining.
7078
      case $host_cpu in
7079
      hppa*64*)
7080
        # +Z the default
7081
        ;;
7082
      *)
7083
        lt_prog_compiler_pic='-fPIC'
7084
        ;;
7085
      esac
7086
      ;;
7087
 
7088 19 jeremybenn
    interix[3-9]*)
7089
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7090
      # Instead, we relocate shared libraries at runtime.
7091
      ;;
7092
 
7093
    msdosdjgpp*)
7094
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7095
      # on systems that don't support them.
7096
      lt_prog_compiler_can_build_shared=no
7097
      enable_shared=no
7098
      ;;
7099
 
7100 82 jeremybenn
    *nto* | *qnx*)
7101
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7102
      # it will coredump.
7103
      lt_prog_compiler_pic='-fPIC -shared'
7104
      ;;
7105
 
7106 19 jeremybenn
    sysv4*MP*)
7107
      if test -d /usr/nec; then
7108
        lt_prog_compiler_pic=-Kconform_pic
7109
      fi
7110
      ;;
7111
 
7112
    *)
7113
      lt_prog_compiler_pic='-fPIC'
7114
      ;;
7115
    esac
7116
  else
7117
    # PORTME Check for flag to pass linker flags through the system compiler.
7118
    case $host_os in
7119
    aix*)
7120
      lt_prog_compiler_wl='-Wl,'
7121
      if test "$host_cpu" = ia64; then
7122
        # AIX 5 now supports IA64 processor
7123
        lt_prog_compiler_static='-Bstatic'
7124
      else
7125
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7126
      fi
7127
      ;;
7128
 
7129 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7130 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7131
      # built for inclusion in a dll (and should export symbols for example).
7132
      lt_prog_compiler_pic='-DDLL_EXPORT'
7133
      ;;
7134
 
7135
    hpux9* | hpux10* | hpux11*)
7136
      lt_prog_compiler_wl='-Wl,'
7137
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7138
      # not for PA HP-UX.
7139
      case $host_cpu in
7140
      hppa*64*|ia64*)
7141
        # +Z the default
7142
        ;;
7143
      *)
7144
        lt_prog_compiler_pic='+Z'
7145
        ;;
7146
      esac
7147
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7148
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7149
      ;;
7150
 
7151
    irix5* | irix6* | nonstopux*)
7152
      lt_prog_compiler_wl='-Wl,'
7153
      # PIC (with -KPIC) is the default.
7154
      lt_prog_compiler_static='-non_shared'
7155
      ;;
7156
 
7157
    linux* | k*bsd*-gnu)
7158
      case $cc_basename in
7159 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7160
      ecc*)
7161 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7162
        lt_prog_compiler_pic='-KPIC'
7163
        lt_prog_compiler_static='-static'
7164
        ;;
7165 82 jeremybenn
      # icc used to be incompatible with GCC.
7166
      # ICC 10 doesn't accept -KPIC any more.
7167
      icc* | ifort*)
7168
        lt_prog_compiler_wl='-Wl,'
7169
        lt_prog_compiler_pic='-fPIC'
7170
        lt_prog_compiler_static='-static'
7171
        ;;
7172
      # Lahey Fortran 8.1.
7173
      lf95*)
7174
        lt_prog_compiler_wl='-Wl,'
7175
        lt_prog_compiler_pic='--shared'
7176
        lt_prog_compiler_static='--static'
7177
        ;;
7178 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7179
        # Portland Group compilers (*not* the Pentium gcc compiler,
7180
        # which looks to be a dead project)
7181
        lt_prog_compiler_wl='-Wl,'
7182
        lt_prog_compiler_pic='-fpic'
7183
        lt_prog_compiler_static='-Bstatic'
7184
        ;;
7185
      ccc*)
7186
        lt_prog_compiler_wl='-Wl,'
7187
        # All Alpha code is PIC.
7188
        lt_prog_compiler_static='-non_shared'
7189
        ;;
7190 82 jeremybenn
      xl*)
7191
        # IBM XL C 8.0/Fortran 10.1 on PPC
7192
        lt_prog_compiler_wl='-Wl,'
7193
        lt_prog_compiler_pic='-qpic'
7194
        lt_prog_compiler_static='-qstaticlink'
7195
        ;;
7196 19 jeremybenn
      *)
7197 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7198 19 jeremybenn
        *Sun\ C*)
7199
          # Sun C 5.9
7200
          lt_prog_compiler_pic='-KPIC'
7201
          lt_prog_compiler_static='-Bstatic'
7202
          lt_prog_compiler_wl='-Wl,'
7203
          ;;
7204
        *Sun\ F*)
7205
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7206
          lt_prog_compiler_pic='-KPIC'
7207
          lt_prog_compiler_static='-Bstatic'
7208
          lt_prog_compiler_wl=''
7209
          ;;
7210
        esac
7211
        ;;
7212
      esac
7213
      ;;
7214
 
7215 82 jeremybenn
    newsos6)
7216
      lt_prog_compiler_pic='-KPIC'
7217
      lt_prog_compiler_static='-Bstatic'
7218
      ;;
7219
 
7220
    *nto* | *qnx*)
7221
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7222
      # it will coredump.
7223
      lt_prog_compiler_pic='-fPIC -shared'
7224
      ;;
7225
 
7226 19 jeremybenn
    osf3* | osf4* | osf5*)
7227
      lt_prog_compiler_wl='-Wl,'
7228
      # All OSF/1 code is PIC.
7229
      lt_prog_compiler_static='-non_shared'
7230
      ;;
7231
 
7232
    rdos*)
7233
      lt_prog_compiler_static='-non_shared'
7234
      ;;
7235
 
7236
    solaris*)
7237
      lt_prog_compiler_pic='-KPIC'
7238
      lt_prog_compiler_static='-Bstatic'
7239
      case $cc_basename in
7240
      f77* | f90* | f95*)
7241
        lt_prog_compiler_wl='-Qoption ld ';;
7242
      *)
7243
        lt_prog_compiler_wl='-Wl,';;
7244
      esac
7245
      ;;
7246
 
7247
    sunos4*)
7248
      lt_prog_compiler_wl='-Qoption ld '
7249
      lt_prog_compiler_pic='-PIC'
7250
      lt_prog_compiler_static='-Bstatic'
7251
      ;;
7252
 
7253
    sysv4 | sysv4.2uw2* | sysv4.3*)
7254
      lt_prog_compiler_wl='-Wl,'
7255
      lt_prog_compiler_pic='-KPIC'
7256
      lt_prog_compiler_static='-Bstatic'
7257
      ;;
7258
 
7259
    sysv4*MP*)
7260
      if test -d /usr/nec ;then
7261
        lt_prog_compiler_pic='-Kconform_pic'
7262
        lt_prog_compiler_static='-Bstatic'
7263
      fi
7264
      ;;
7265
 
7266
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7267
      lt_prog_compiler_wl='-Wl,'
7268
      lt_prog_compiler_pic='-KPIC'
7269
      lt_prog_compiler_static='-Bstatic'
7270
      ;;
7271
 
7272
    unicos*)
7273
      lt_prog_compiler_wl='-Wl,'
7274
      lt_prog_compiler_can_build_shared=no
7275
      ;;
7276
 
7277
    uts4*)
7278
      lt_prog_compiler_pic='-pic'
7279
      lt_prog_compiler_static='-Bstatic'
7280
      ;;
7281
 
7282
    *)
7283
      lt_prog_compiler_can_build_shared=no
7284
      ;;
7285
    esac
7286
  fi
7287
 
7288 82 jeremybenn
case $host_os in
7289
  # For platforms which do not support PIC, -DPIC is meaningless:
7290
  *djgpp*)
7291
    lt_prog_compiler_pic=
7292
    ;;
7293
  *)
7294
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7295
    ;;
7296
esac
7297 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7298 82 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
7299 19 jeremybenn
 
7300 82 jeremybenn
 
7301
 
7302
 
7303
 
7304
 
7305 19 jeremybenn
#
7306
# Check to make sure the PIC flag actually works.
7307
#
7308
if test -n "$lt_prog_compiler_pic"; then
7309 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7310 82 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7311 346 jeremybenn
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7312 82 jeremybenn
  $as_echo_n "(cached) " >&6
7313 19 jeremybenn
else
7314 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7315
   ac_outfile=conftest.$ac_objext
7316 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7317
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7318
   # Insert the option either (1) after the last *FLAGS variable, or
7319
   # (2) before a word containing "conftest.", or (3) at the end.
7320
   # Note that $ac_compile itself does not contain backslashes and begins
7321
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7322
   # The option is referenced via a variable to avoid confusing sed.
7323
   lt_compile=`echo "$ac_compile" | $SED \
7324
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7325
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7326
   -e 's:$: $lt_compiler_flag:'`
7327 346 jeremybenn
   (eval echo "\"\$as_me:7327: $lt_compile\"" >&5)
7328 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7329
   ac_status=$?
7330
   cat conftest.err >&5
7331 346 jeremybenn
   echo "$as_me:7331: \$? = $ac_status" >&5
7332 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7333
     # The compiler can only warn and ignore the option if not recognized
7334
     # So say no if there are warnings other than the usual output.
7335 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7336 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7337
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7338 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7339 19 jeremybenn
     fi
7340
   fi
7341 82 jeremybenn
   $RM conftest*
7342 19 jeremybenn
 
7343
fi
7344 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7345 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7346 19 jeremybenn
 
7347 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7348 19 jeremybenn
    case $lt_prog_compiler_pic in
7349
     "" | " "*) ;;
7350
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7351
     esac
7352
else
7353
    lt_prog_compiler_pic=
7354
     lt_prog_compiler_can_build_shared=no
7355
fi
7356
 
7357
fi
7358
 
7359 82 jeremybenn
 
7360
 
7361
 
7362
 
7363
 
7364 19 jeremybenn
#
7365
# Check to make sure the static flag actually works.
7366
#
7367
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7368 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7369 82 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7370 346 jeremybenn
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7371 82 jeremybenn
  $as_echo_n "(cached) " >&6
7372 19 jeremybenn
else
7373 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7374 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7375
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7376
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7377
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7378
     # The linker can only warn and ignore the option if not recognized
7379
     # So say no if there are warnings
7380
     if test -s conftest.err; then
7381
       # Append any errors to the config.log.
7382
       cat conftest.err 1>&5
7383 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7384 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7385
       if diff conftest.exp conftest.er2 >/dev/null; then
7386 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7387 19 jeremybenn
       fi
7388
     else
7389 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7390 19 jeremybenn
     fi
7391
   fi
7392 82 jeremybenn
   $RM -r conftest*
7393 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7394
 
7395
fi
7396 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7397 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7398 19 jeremybenn
 
7399 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7400 19 jeremybenn
    :
7401
else
7402
    lt_prog_compiler_static=
7403
fi
7404
 
7405
 
7406 82 jeremybenn
 
7407
 
7408
 
7409
 
7410
 
7411 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7412 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7413 346 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7414 82 jeremybenn
  $as_echo_n "(cached) " >&6
7415 19 jeremybenn
else
7416
  lt_cv_prog_compiler_c_o=no
7417 82 jeremybenn
   $RM -r conftest 2>/dev/null
7418 19 jeremybenn
   mkdir conftest
7419
   cd conftest
7420
   mkdir out
7421
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7422
 
7423
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7424
   # Insert the option either (1) after the last *FLAGS variable, or
7425
   # (2) before a word containing "conftest.", or (3) at the end.
7426
   # Note that $ac_compile itself does not contain backslashes and begins
7427
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7428
   lt_compile=`echo "$ac_compile" | $SED \
7429
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7430
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7431
   -e 's:$: $lt_compiler_flag:'`
7432 346 jeremybenn
   (eval echo "\"\$as_me:7432: $lt_compile\"" >&5)
7433 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7434
   ac_status=$?
7435
   cat out/conftest.err >&5
7436 346 jeremybenn
   echo "$as_me:7436: \$? = $ac_status" >&5
7437 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7438
   then
7439
     # The compiler can only warn and ignore the option if not recognized
7440
     # So say no if there are warnings
7441 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7442 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7443
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7444
       lt_cv_prog_compiler_c_o=yes
7445
     fi
7446
   fi
7447
   chmod u+w . 2>&5
7448 82 jeremybenn
   $RM conftest*
7449 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7450
   # template instantiation
7451 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7452
   $RM out/* && rmdir out
7453 19 jeremybenn
   cd ..
7454 82 jeremybenn
   $RM -r conftest
7455
   $RM conftest*
7456 19 jeremybenn
 
7457
fi
7458 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7459 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7460 19 jeremybenn
 
7461
 
7462 82 jeremybenn
 
7463
 
7464
 
7465
 
7466 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7467 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7468 346 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7469 82 jeremybenn
  $as_echo_n "(cached) " >&6
7470
else
7471
  lt_cv_prog_compiler_c_o=no
7472
   $RM -r conftest 2>/dev/null
7473
   mkdir conftest
7474
   cd conftest
7475
   mkdir out
7476
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7477
 
7478
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7479
   # Insert the option either (1) after the last *FLAGS variable, or
7480
   # (2) before a word containing "conftest.", or (3) at the end.
7481
   # Note that $ac_compile itself does not contain backslashes and begins
7482
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7483
   lt_compile=`echo "$ac_compile" | $SED \
7484
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7485
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7486
   -e 's:$: $lt_compiler_flag:'`
7487 346 jeremybenn
   (eval echo "\"\$as_me:7487: $lt_compile\"" >&5)
7488 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7489
   ac_status=$?
7490
   cat out/conftest.err >&5
7491 346 jeremybenn
   echo "$as_me:7491: \$? = $ac_status" >&5
7492 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7493
   then
7494
     # The compiler can only warn and ignore the option if not recognized
7495
     # So say no if there are warnings
7496
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7497
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7498
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7499
       lt_cv_prog_compiler_c_o=yes
7500
     fi
7501
   fi
7502
   chmod u+w . 2>&5
7503
   $RM conftest*
7504
   # SGI C++ compiler will create directory out/ii_files/ for
7505
   # template instantiation
7506
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7507
   $RM out/* && rmdir out
7508
   cd ..
7509
   $RM -r conftest
7510
   $RM conftest*
7511
 
7512
fi
7513 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7514 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7515
 
7516
 
7517
 
7518
 
7519 19 jeremybenn
hard_links="nottested"
7520
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7521
  # do not overwrite the value of need_locks provided by the user
7522 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7523 82 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7524 19 jeremybenn
  hard_links=yes
7525 82 jeremybenn
  $RM conftest*
7526 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7527
  touch conftest.a
7528
  ln conftest.a conftest.b 2>&5 || hard_links=no
7529
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7530 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7531 82 jeremybenn
$as_echo "$hard_links" >&6; }
7532 19 jeremybenn
  if test "$hard_links" = no; then
7533 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7534 82 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7535 19 jeremybenn
    need_locks=warn
7536
  fi
7537
else
7538
  need_locks=no
7539
fi
7540
 
7541
 
7542 82 jeremybenn
 
7543
 
7544
 
7545
 
7546 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7547 82 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7548
 
7549 19 jeremybenn
  runpath_var=
7550
  allow_undefined_flag=
7551 82 jeremybenn
  always_export_symbols=no
7552 19 jeremybenn
  archive_cmds=
7553
  archive_expsym_cmds=
7554 82 jeremybenn
  compiler_needs_object=no
7555
  enable_shared_with_static_runtimes=no
7556 19 jeremybenn
  export_dynamic_flag_spec=
7557 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7558
  hardcode_automatic=no
7559
  hardcode_direct=no
7560
  hardcode_direct_absolute=no
7561 19 jeremybenn
  hardcode_libdir_flag_spec=
7562
  hardcode_libdir_flag_spec_ld=
7563
  hardcode_libdir_separator=
7564
  hardcode_minus_L=no
7565
  hardcode_shlibpath_var=unsupported
7566 82 jeremybenn
  inherit_rpath=no
7567 19 jeremybenn
  link_all_deplibs=unknown
7568
  module_cmds=
7569
  module_expsym_cmds=
7570 82 jeremybenn
  old_archive_from_new_cmds=
7571
  old_archive_from_expsyms_cmds=
7572
  thread_safe_flag_spec=
7573
  whole_archive_flag_spec=
7574 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7575
  # included in the symbol list
7576
  include_expsyms=
7577
  # exclude_expsyms can be an extended regexp of symbols to exclude
7578
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7579
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7580
  # as well as any symbol that contains `d'.
7581 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7582 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7583
  # platforms (ab)use it in PIC code, but their linkers get confused if
7584
  # the symbol is explicitly referenced.  Since portable code cannot
7585
  # rely on this symbol name, it's probably fine to never include it in
7586
  # preloaded symbol tables.
7587 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7588 19 jeremybenn
  extract_expsyms_cmds=
7589
 
7590
  case $host_os in
7591 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7592 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7593
    # When not using gcc, we currently assume that we are using
7594
    # Microsoft Visual C++.
7595
    if test "$GCC" != yes; then
7596
      with_gnu_ld=no
7597
    fi
7598
    ;;
7599
  interix*)
7600
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7601
    with_gnu_ld=yes
7602
    ;;
7603
  openbsd*)
7604
    with_gnu_ld=no
7605
    ;;
7606 93 jeremybenn
  linux* | k*bsd*-gnu)
7607
    link_all_deplibs=no
7608
    ;;
7609 19 jeremybenn
  esac
7610
 
7611
  ld_shlibs=yes
7612
  if test "$with_gnu_ld" = yes; then
7613
    # If archive_cmds runs LD, not CC, wlarc should be empty
7614
    wlarc='${wl}'
7615
 
7616
    # Set some defaults for GNU ld with shared library support. These
7617
    # are reset later if shared libraries are not supported. Putting them
7618
    # here allows them to be overridden if necessary.
7619
    runpath_var=LD_RUN_PATH
7620 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7621 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7622
    # ancient GNU ld didn't support --whole-archive et. al.
7623 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7624
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7625
    else
7626
      whole_archive_flag_spec=
7627 19 jeremybenn
    fi
7628
    supports_anon_versioning=no
7629 82 jeremybenn
    case `$LD -v 2>&1` in
7630 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7631
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7632
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7633
      *\ 2.11.*) ;; # other 2.11 versions
7634
      *) supports_anon_versioning=yes ;;
7635
    esac
7636
 
7637
    # See if GNU ld supports shared libraries.
7638
    case $host_os in
7639 82 jeremybenn
    aix[3-9]*)
7640 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7641
      if test "$host_cpu" != ia64; then
7642
        ld_shlibs=no
7643 82 jeremybenn
        cat <<_LT_EOF 1>&2
7644 19 jeremybenn
 
7645
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7646
*** to be unable to reliably create shared libraries on AIX.
7647
*** Therefore, libtool is disabling shared libraries support.  If you
7648
*** really care for shared libraries, you may want to modify your PATH
7649
*** so that a non-GNU linker is found, and then restart.
7650
 
7651 82 jeremybenn
_LT_EOF
7652 19 jeremybenn
      fi
7653
      ;;
7654
 
7655
    amigaos*)
7656 82 jeremybenn
      case $host_cpu in
7657
      powerpc)
7658
            # see comment about AmigaOS4 .so support
7659
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660
            archive_expsym_cmds=''
7661
        ;;
7662
      m68k)
7663
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7664
            hardcode_libdir_flag_spec='-L$libdir'
7665
            hardcode_minus_L=yes
7666
        ;;
7667
      esac
7668 19 jeremybenn
      ;;
7669
 
7670
    beos*)
7671 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7672 19 jeremybenn
        allow_undefined_flag=unsupported
7673
        # Joseph Beckenbach  says some releases of gcc
7674
        # support --undefined.  This deserves some investigation.  FIXME
7675
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7676
      else
7677
        ld_shlibs=no
7678
      fi
7679
      ;;
7680
 
7681 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7682
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7683 19 jeremybenn
      # as there is no search path for DLLs.
7684
      hardcode_libdir_flag_spec='-L$libdir'
7685
      allow_undefined_flag=unsupported
7686
      always_export_symbols=no
7687
      enable_shared_with_static_runtimes=yes
7688 82 jeremybenn
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7689 19 jeremybenn
 
7690 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7691 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7692
        # If the export-symbols file already is a .def file (1st line
7693
        # is EXPORTS), use it as is; otherwise, prepend...
7694
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7695
          cp $export_symbols $output_objdir/$soname.def;
7696
        else
7697
          echo EXPORTS > $output_objdir/$soname.def;
7698
          cat $export_symbols >> $output_objdir/$soname.def;
7699
        fi~
7700
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7701
      else
7702
        ld_shlibs=no
7703
      fi
7704
      ;;
7705
 
7706
    interix[3-9]*)
7707
      hardcode_direct=no
7708
      hardcode_shlibpath_var=no
7709
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7710
      export_dynamic_flag_spec='${wl}-E'
7711
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7712
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7713
      # default) and relocated if they conflict, which is a slow very memory
7714
      # consuming and fragmenting process.  To avoid this, we pick a random,
7715
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7716
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7717
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7718
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7719
      ;;
7720
 
7721 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7722
      tmp_diet=no
7723
      if test "$host_os" = linux-dietlibc; then
7724
        case $cc_basename in
7725
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7726
        esac
7727
      fi
7728
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7729
         && test "$tmp_diet" = no
7730
      then
7731 19 jeremybenn
        tmp_addflag=
7732 82 jeremybenn
        tmp_sharedflag='-shared'
7733 19 jeremybenn
        case $cc_basename,$host_cpu in
7734 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7735
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7736 19 jeremybenn
          tmp_addflag=' $pic_flag'
7737
          ;;
7738
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7739 82 jeremybenn
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7740 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7741 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7742 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7743
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7744
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7745
        ifc* | ifort*)                  # Intel Fortran compiler
7746
          tmp_addflag=' -nofor_main' ;;
7747 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7748
          whole_archive_flag_spec=
7749
          tmp_sharedflag='--shared' ;;
7750
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7751
          tmp_sharedflag='-qmkshrobj'
7752
          tmp_addflag= ;;
7753 19 jeremybenn
        esac
7754
        case `$CC -V 2>&1 | sed 5q` in
7755
        *Sun\ C*)                       # Sun C 5.9
7756 82 jeremybenn
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7757
          compiler_needs_object=yes
7758 19 jeremybenn
          tmp_sharedflag='-G' ;;
7759
        *Sun\ F*)                       # Sun Fortran 8.3
7760
          tmp_sharedflag='-G' ;;
7761
        esac
7762
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7763
 
7764 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7765
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7766
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7767
            echo "local: *; };" >> $output_objdir/$libname.ver~
7768
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7769
        fi
7770
 
7771
        case $cc_basename in
7772
        xlf*)
7773
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7774
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7775
          hardcode_libdir_flag_spec=
7776
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7777
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7778
          if test "x$supports_anon_versioning" = xyes; then
7779
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7780
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7781
              echo "local: *; };" >> $output_objdir/$libname.ver~
7782
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7783
          fi
7784
          ;;
7785
        esac
7786 19 jeremybenn
      else
7787 82 jeremybenn
        ld_shlibs=no
7788 19 jeremybenn
      fi
7789
      ;;
7790
 
7791 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7792 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7793 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7794
        wlarc=
7795
      else
7796
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7797
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7798
      fi
7799
      ;;
7800
 
7801
    solaris*)
7802 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7803 19 jeremybenn
        ld_shlibs=no
7804 82 jeremybenn
        cat <<_LT_EOF 1>&2
7805 19 jeremybenn
 
7806
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7807
*** create shared libraries on Solaris systems.  Therefore, libtool
7808
*** is disabling shared libraries support.  We urge you to upgrade GNU
7809
*** binutils to release 2.9.1 or newer.  Another option is to modify
7810
*** your PATH or compiler configuration so that the native linker is
7811
*** used, and then restart.
7812
 
7813 82 jeremybenn
_LT_EOF
7814
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7815 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7817
      else
7818
        ld_shlibs=no
7819
      fi
7820
      ;;
7821
 
7822
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7823
      case `$LD -v 2>&1` in
7824
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7825
        ld_shlibs=no
7826
        cat <<_LT_EOF 1>&2
7827
 
7828
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7829
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7830
*** is disabling shared libraries support.  We urge you to upgrade GNU
7831
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7832
*** your PATH or compiler configuration so that the native linker is
7833
*** used, and then restart.
7834
 
7835
_LT_EOF
7836
        ;;
7837
        *)
7838 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7839
          # use absolute paths for naming shared libraries, and exclude the
7840
          # DT_RUNPATH tag from executables and libraries.  But doing so
7841
          # requires that you compile everything twice, which is a pain.
7842
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7843
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7844
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7845
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7846 19 jeremybenn
          else
7847
            ld_shlibs=no
7848
          fi
7849
        ;;
7850
      esac
7851
      ;;
7852
 
7853
    sunos4*)
7854
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7855
      wlarc=
7856
      hardcode_direct=yes
7857
      hardcode_shlibpath_var=no
7858
      ;;
7859
 
7860
    *)
7861 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7862 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7863
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7864
      else
7865
        ld_shlibs=no
7866
      fi
7867
      ;;
7868
    esac
7869
 
7870
    if test "$ld_shlibs" = no; then
7871
      runpath_var=
7872
      hardcode_libdir_flag_spec=
7873
      export_dynamic_flag_spec=
7874
      whole_archive_flag_spec=
7875
    fi
7876
  else
7877
    # PORTME fill in a description of your system's linker (not GNU ld)
7878
    case $host_os in
7879
    aix3*)
7880
      allow_undefined_flag=unsupported
7881
      always_export_symbols=yes
7882
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7883
      # Note: this linker hardcodes the directories in LIBPATH if there
7884
      # are no directories specified by -L.
7885
      hardcode_minus_L=yes
7886
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7887
        # Neither direct hardcoding nor static linking is supported with a
7888
        # broken collect2.
7889
        hardcode_direct=unsupported
7890
      fi
7891
      ;;
7892
 
7893 82 jeremybenn
    aix[4-9]*)
7894 19 jeremybenn
      if test "$host_cpu" = ia64; then
7895
        # On IA64, the linker does run time linking by default, so we don't
7896
        # have to do anything special.
7897
        aix_use_runtimelinking=no
7898
        exp_sym_flag='-Bexport'
7899
        no_entry_flag=""
7900
      else
7901
        # If we're using GNU nm, then we don't want the "-C" option.
7902
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7903 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7904
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7905 19 jeremybenn
        else
7906 82 jeremybenn
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7907 19 jeremybenn
        fi
7908
        aix_use_runtimelinking=no
7909
 
7910
        # Test if we are trying to use run time linking or normal
7911
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7912
        # need to do runtime linking.
7913 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7914 19 jeremybenn
          for ld_flag in $LDFLAGS; do
7915 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7916
            aix_use_runtimelinking=yes
7917
            break
7918
          fi
7919 19 jeremybenn
          done
7920
          ;;
7921
        esac
7922
 
7923
        exp_sym_flag='-bexport'
7924
        no_entry_flag='-bnoentry'
7925
      fi
7926
 
7927
      # When large executables or shared objects are built, AIX ld can
7928
      # have problems creating the table of contents.  If linking a library
7929
      # or program results in "error TOC overflow" add -mminimal-toc to
7930
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7931
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7932
 
7933
      archive_cmds=''
7934
      hardcode_direct=yes
7935 82 jeremybenn
      hardcode_direct_absolute=yes
7936 19 jeremybenn
      hardcode_libdir_separator=':'
7937
      link_all_deplibs=yes
7938 82 jeremybenn
      file_list_spec='${wl}-f,'
7939 19 jeremybenn
 
7940
      if test "$GCC" = yes; then
7941
        case $host_os in aix4.[012]|aix4.[012].*)
7942
        # We only want to do this on AIX 4.2 and lower, the check
7943
        # below for broken collect2 doesn't work under 4.3+
7944
          collect2name=`${CC} -print-prog-name=collect2`
7945 82 jeremybenn
          if test -f "$collect2name" &&
7946
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7947 19 jeremybenn
          then
7948 82 jeremybenn
          # We have reworked collect2
7949
          :
7950 19 jeremybenn
          else
7951 82 jeremybenn
          # We have old collect2
7952
          hardcode_direct=unsupported
7953
          # It fails to find uninstalled libraries when the uninstalled
7954
          # path is not listed in the libpath.  Setting hardcode_minus_L
7955
          # to unsupported forces relinking
7956
          hardcode_minus_L=yes
7957
          hardcode_libdir_flag_spec='-L$libdir'
7958
          hardcode_libdir_separator=
7959 19 jeremybenn
          fi
7960
          ;;
7961
        esac
7962
        shared_flag='-shared'
7963
        if test "$aix_use_runtimelinking" = yes; then
7964
          shared_flag="$shared_flag "'${wl}-G'
7965
        fi
7966 93 jeremybenn
        link_all_deplibs=no
7967 19 jeremybenn
      else
7968
        # not using gcc
7969
        if test "$host_cpu" = ia64; then
7970 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7971
        # chokes on -Wl,-G. The following line is correct:
7972 19 jeremybenn
          shared_flag='-G'
7973
        else
7974
          if test "$aix_use_runtimelinking" = yes; then
7975
            shared_flag='${wl}-G'
7976
          else
7977
            shared_flag='${wl}-bM:SRE'
7978
          fi
7979
        fi
7980
      fi
7981
 
7982 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
7983 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
7984
      # underscore (_), so it is better to generate a list of symbols to export.
7985
      always_export_symbols=yes
7986
      if test "$aix_use_runtimelinking" = yes; then
7987
        # Warning - without using the other runtime loading flags (-brtl),
7988
        # -berok will link without error, but may produce a broken library.
7989
        allow_undefined_flag='-berok'
7990 82 jeremybenn
        # Determine the default libpath from the value encoded in an
7991
        # empty executable.
7992 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 19 jeremybenn
/* end confdefs.h.  */
7994
 
7995
int
7996
main ()
7997
{
7998
 
7999
  ;
8000
  return 0;
8001
}
8002
_ACEOF
8003 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8004 19 jeremybenn
 
8005
lt_aix_libpath_sed='
8006
    /Import File Strings/,/^$/ {
8007
        /^0/ {
8008
            s/^0  *\(.*\)$/\1/
8009
            p
8010
        }
8011
    }'
8012
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8013
# Check for a 64-bit object if we didn't find anything.
8014
if test -z "$aix_libpath"; then
8015
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8016
fi
8017
fi
8018 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8019
    conftest$ac_exeext conftest.$ac_ext
8020 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8021
 
8022 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8023
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8024
      else
8025 19 jeremybenn
        if test "$host_cpu" = ia64; then
8026
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8027
          allow_undefined_flag="-z nodefs"
8028
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8029
        else
8030 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8031
         # empty executable.
8032 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 19 jeremybenn
/* end confdefs.h.  */
8034
 
8035
int
8036
main ()
8037
{
8038
 
8039
  ;
8040
  return 0;
8041
}
8042
_ACEOF
8043 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8044 19 jeremybenn
 
8045
lt_aix_libpath_sed='
8046
    /Import File Strings/,/^$/ {
8047
        /^0/ {
8048
            s/^0  *\(.*\)$/\1/
8049
            p
8050
        }
8051
    }'
8052
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8053
# Check for a 64-bit object if we didn't find anything.
8054
if test -z "$aix_libpath"; then
8055
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8056
fi
8057
fi
8058 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8059
    conftest$ac_exeext conftest.$ac_ext
8060 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8061
 
8062
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8063
          # Warning - without using the other run time loading flags,
8064
          # -berok will link without error, but may produce a broken library.
8065
          no_undefined_flag=' ${wl}-bernotok'
8066
          allow_undefined_flag=' ${wl}-berok'
8067
          # Exported symbols can be pulled into shared objects from archives
8068
          whole_archive_flag_spec='$convenience'
8069
          archive_cmds_need_lc=yes
8070
          # This is similar to how AIX traditionally builds its shared libraries.
8071
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8072
        fi
8073
      fi
8074
      ;;
8075
 
8076
    amigaos*)
8077 82 jeremybenn
      case $host_cpu in
8078
      powerpc)
8079
            # see comment about AmigaOS4 .so support
8080
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8081
            archive_expsym_cmds=''
8082
        ;;
8083
      m68k)
8084
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8085
            hardcode_libdir_flag_spec='-L$libdir'
8086
            hardcode_minus_L=yes
8087
        ;;
8088
      esac
8089 19 jeremybenn
      ;;
8090
 
8091
    bsdi[45]*)
8092
      export_dynamic_flag_spec=-rdynamic
8093
      ;;
8094
 
8095 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8096 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8097
      # Microsoft Visual C++.
8098
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8099
      # no search path for DLLs.
8100
      hardcode_libdir_flag_spec=' '
8101
      allow_undefined_flag=unsupported
8102
      # Tell ltmain to make .lib files, not .a files.
8103
      libext=lib
8104
      # Tell ltmain to make .dll files, not .so files.
8105
      shrext_cmds=".dll"
8106
      # FIXME: Setting linknames here is a bad hack.
8107 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8108 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8109 82 jeremybenn
      old_archive_from_new_cmds='true'
8110 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8111
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8112
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8113
      enable_shared_with_static_runtimes=yes
8114
      ;;
8115
 
8116
    darwin* | rhapsody*)
8117 82 jeremybenn
 
8118
 
8119
  archive_cmds_need_lc=no
8120
  hardcode_direct=no
8121
  hardcode_automatic=yes
8122
  hardcode_shlibpath_var=unsupported
8123
  whole_archive_flag_spec=''
8124
  link_all_deplibs=yes
8125
  allow_undefined_flag="$_lt_dar_allow_undefined"
8126
  case $cc_basename in
8127
     ifort*) _lt_dar_can_shared=yes ;;
8128
     *) _lt_dar_can_shared=$GCC ;;
8129
  esac
8130
  if test "$_lt_dar_can_shared" = "yes"; then
8131
    output_verbose_link_cmd=echo
8132
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8133
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8134
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8135
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8136
 
8137
  else
8138
  ld_shlibs=no
8139
  fi
8140
 
8141 19 jeremybenn
      ;;
8142
 
8143
    dgux*)
8144
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8145
      hardcode_libdir_flag_spec='-L$libdir'
8146
      hardcode_shlibpath_var=no
8147
      ;;
8148
 
8149
    freebsd1*)
8150
      ld_shlibs=no
8151
      ;;
8152
 
8153
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8154
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8155
    # does not break anything, and helps significantly (at the cost of a little
8156
    # extra space).
8157
    freebsd2.2*)
8158
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8159
      hardcode_libdir_flag_spec='-R$libdir'
8160
      hardcode_direct=yes
8161
      hardcode_shlibpath_var=no
8162
      ;;
8163
 
8164
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8165
    freebsd2*)
8166
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8167
      hardcode_direct=yes
8168
      hardcode_minus_L=yes
8169
      hardcode_shlibpath_var=no
8170
      ;;
8171
 
8172
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8173
    freebsd* | dragonfly*)
8174
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8175
      hardcode_libdir_flag_spec='-R$libdir'
8176
      hardcode_direct=yes
8177
      hardcode_shlibpath_var=no
8178
      ;;
8179
 
8180
    hpux9*)
8181
      if test "$GCC" = yes; then
8182 82 jeremybenn
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8183 19 jeremybenn
      else
8184 82 jeremybenn
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8185 19 jeremybenn
      fi
8186
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8187
      hardcode_libdir_separator=:
8188
      hardcode_direct=yes
8189
 
8190
      # hardcode_minus_L: Not really in the search PATH,
8191
      # but as the default location of the library.
8192
      hardcode_minus_L=yes
8193
      export_dynamic_flag_spec='${wl}-E'
8194
      ;;
8195
 
8196
    hpux10*)
8197
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8198
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8199
      else
8200
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8201
      fi
8202
      if test "$with_gnu_ld" = no; then
8203
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8204 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8205 19 jeremybenn
        hardcode_libdir_separator=:
8206
        hardcode_direct=yes
8207 82 jeremybenn
        hardcode_direct_absolute=yes
8208 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8209
        # hardcode_minus_L: Not really in the search PATH,
8210
        # but as the default location of the library.
8211
        hardcode_minus_L=yes
8212
      fi
8213
      ;;
8214
 
8215
    hpux11*)
8216
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8217
        case $host_cpu in
8218
        hppa*64*)
8219
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8220
          ;;
8221
        ia64*)
8222 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8223 19 jeremybenn
          ;;
8224
        *)
8225
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8226
          ;;
8227
        esac
8228
      else
8229
        case $host_cpu in
8230
        hppa*64*)
8231
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8232
          ;;
8233
        ia64*)
8234
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8235
          ;;
8236
        *)
8237
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8238
          ;;
8239
        esac
8240
      fi
8241
      if test "$with_gnu_ld" = no; then
8242
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8243
        hardcode_libdir_separator=:
8244
 
8245
        case $host_cpu in
8246
        hppa*64*|ia64*)
8247
          hardcode_direct=no
8248
          hardcode_shlibpath_var=no
8249
          ;;
8250
        *)
8251
          hardcode_direct=yes
8252 82 jeremybenn
          hardcode_direct_absolute=yes
8253 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8254
 
8255
          # hardcode_minus_L: Not really in the search PATH,
8256
          # but as the default location of the library.
8257
          hardcode_minus_L=yes
8258
          ;;
8259
        esac
8260
      fi
8261
      ;;
8262
 
8263
    irix5* | irix6* | nonstopux*)
8264
      if test "$GCC" = yes; then
8265 82 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8266
        # Try to use the -exported_symbol ld option, if it does not
8267
        # work, assume that -exports_file does not work either and
8268
        # implicitly export all symbols.
8269
        save_LDFLAGS="$LDFLAGS"
8270
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8271 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272
/* end confdefs.h.  */
8273 82 jeremybenn
int foo(void) {}
8274
_ACEOF
8275 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8276 82 jeremybenn
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8277
 
8278
fi
8279 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8280
    conftest$ac_exeext conftest.$ac_ext
8281 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
8282 19 jeremybenn
      else
8283 82 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8284
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8285 19 jeremybenn
      fi
8286 82 jeremybenn
      archive_cmds_need_lc='no'
8287 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8288
      hardcode_libdir_separator=:
8289 82 jeremybenn
      inherit_rpath=yes
8290 19 jeremybenn
      link_all_deplibs=yes
8291
      ;;
8292
 
8293 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
8294 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8295 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8296
      else
8297
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8298
      fi
8299
      hardcode_libdir_flag_spec='-R$libdir'
8300
      hardcode_direct=yes
8301
      hardcode_shlibpath_var=no
8302
      ;;
8303
 
8304
    newsos6)
8305
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8306
      hardcode_direct=yes
8307
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8308
      hardcode_libdir_separator=:
8309
      hardcode_shlibpath_var=no
8310
      ;;
8311
 
8312 82 jeremybenn
    *nto* | *qnx*)
8313
      ;;
8314
 
8315 19 jeremybenn
    openbsd*)
8316
      if test -f /usr/libexec/ld.so; then
8317
        hardcode_direct=yes
8318
        hardcode_shlibpath_var=no
8319 82 jeremybenn
        hardcode_direct_absolute=yes
8320
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8321 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8322
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8323
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8324
          export_dynamic_flag_spec='${wl}-E'
8325
        else
8326
          case $host_os in
8327
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8328
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8329
             hardcode_libdir_flag_spec='-R$libdir'
8330
             ;;
8331
           *)
8332
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8333
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8334
             ;;
8335
          esac
8336 82 jeremybenn
        fi
8337 19 jeremybenn
      else
8338
        ld_shlibs=no
8339
      fi
8340
      ;;
8341
 
8342
    os2*)
8343
      hardcode_libdir_flag_spec='-L$libdir'
8344
      hardcode_minus_L=yes
8345
      allow_undefined_flag=unsupported
8346 82 jeremybenn
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8347
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8348 19 jeremybenn
      ;;
8349
 
8350
    osf3*)
8351
      if test "$GCC" = yes; then
8352
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8353 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8354 19 jeremybenn
      else
8355
        allow_undefined_flag=' -expect_unresolved \*'
8356 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8357 19 jeremybenn
      fi
8358 82 jeremybenn
      archive_cmds_need_lc='no'
8359 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8360
      hardcode_libdir_separator=:
8361
      ;;
8362
 
8363
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8364
      if test "$GCC" = yes; then
8365
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8366 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8367 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8368
      else
8369
        allow_undefined_flag=' -expect_unresolved \*'
8370 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8371
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8372
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8373 19 jeremybenn
 
8374
        # Both c and cxx compiler support -rpath directly
8375
        hardcode_libdir_flag_spec='-rpath $libdir'
8376
      fi
8377 82 jeremybenn
      archive_cmds_need_lc='no'
8378 19 jeremybenn
      hardcode_libdir_separator=:
8379
      ;;
8380
 
8381
    solaris*)
8382 82 jeremybenn
      no_undefined_flag=' -z defs'
8383 19 jeremybenn
      if test "$GCC" = yes; then
8384
        wlarc='${wl}'
8385 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8386
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8387
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8388 19 jeremybenn
      else
8389 82 jeremybenn
        case `$CC -V 2>&1` in
8390
        *"Compilers 5.0"*)
8391
          wlarc=''
8392
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8393
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8394
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8395
          ;;
8396
        *)
8397
          wlarc='${wl}'
8398
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8399
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8400
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8401
          ;;
8402
        esac
8403 19 jeremybenn
      fi
8404
      hardcode_libdir_flag_spec='-R$libdir'
8405
      hardcode_shlibpath_var=no
8406
      case $host_os in
8407
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8408
      *)
8409
        # The compiler driver will combine and reorder linker options,
8410
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8411
        # but is careful enough not to reorder.
8412 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8413 19 jeremybenn
        if test "$GCC" = yes; then
8414
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8415
        else
8416
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8417
        fi
8418
        ;;
8419
      esac
8420
      link_all_deplibs=yes
8421
      ;;
8422
 
8423
    sunos4*)
8424
      if test "x$host_vendor" = xsequent; then
8425
        # Use $CC to link under sequent, because it throws in some extra .o
8426
        # files that make .init and .fini sections work.
8427
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8428
      else
8429
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8430
      fi
8431
      hardcode_libdir_flag_spec='-L$libdir'
8432
      hardcode_direct=yes
8433
      hardcode_minus_L=yes
8434
      hardcode_shlibpath_var=no
8435
      ;;
8436
 
8437
    sysv4)
8438
      case $host_vendor in
8439
        sni)
8440
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8441
          hardcode_direct=yes # is this really true???
8442
        ;;
8443
        siemens)
8444
          ## LD is ld it makes a PLAMLIB
8445
          ## CC just makes a GrossModule.
8446
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8447
          reload_cmds='$CC -r -o $output$reload_objs'
8448
          hardcode_direct=no
8449
        ;;
8450
        motorola)
8451
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8452
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8453
        ;;
8454
      esac
8455
      runpath_var='LD_RUN_PATH'
8456
      hardcode_shlibpath_var=no
8457
      ;;
8458
 
8459
    sysv4.3*)
8460
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8461
      hardcode_shlibpath_var=no
8462
      export_dynamic_flag_spec='-Bexport'
8463
      ;;
8464
 
8465
    sysv4*MP*)
8466
      if test -d /usr/nec; then
8467
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468
        hardcode_shlibpath_var=no
8469
        runpath_var=LD_RUN_PATH
8470
        hardcode_runpath_var=yes
8471
        ld_shlibs=yes
8472
      fi
8473
      ;;
8474
 
8475
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8476
      no_undefined_flag='${wl}-z,text'
8477
      archive_cmds_need_lc=no
8478
      hardcode_shlibpath_var=no
8479
      runpath_var='LD_RUN_PATH'
8480
 
8481
      if test "$GCC" = yes; then
8482
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8483
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8484
      else
8485
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8486
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8487
      fi
8488
      ;;
8489
 
8490
    sysv5* | sco3.2v5* | sco5v6*)
8491
      # Note: We can NOT use -z defs as we might desire, because we do not
8492
      # link with -lc, and that would cause any symbols used from libc to
8493
      # always be unresolved, which means just about no library would
8494
      # ever link correctly.  If we're not using GNU ld we use -z text
8495
      # though, which does catch some bad symbols but isn't as heavy-handed
8496
      # as -z defs.
8497
      no_undefined_flag='${wl}-z,text'
8498
      allow_undefined_flag='${wl}-z,nodefs'
8499
      archive_cmds_need_lc=no
8500
      hardcode_shlibpath_var=no
8501 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8502 19 jeremybenn
      hardcode_libdir_separator=':'
8503
      link_all_deplibs=yes
8504
      export_dynamic_flag_spec='${wl}-Bexport'
8505
      runpath_var='LD_RUN_PATH'
8506
 
8507
      if test "$GCC" = yes; then
8508 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8509
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510 19 jeremybenn
      else
8511 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 19 jeremybenn
      fi
8514
      ;;
8515
 
8516
    uts4*)
8517
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8518
      hardcode_libdir_flag_spec='-L$libdir'
8519
      hardcode_shlibpath_var=no
8520
      ;;
8521
 
8522
    *)
8523
      ld_shlibs=no
8524
      ;;
8525
    esac
8526 82 jeremybenn
 
8527
    if test x$host_vendor = xsni; then
8528
      case $host in
8529
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8530
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8531
        ;;
8532
      esac
8533
    fi
8534 19 jeremybenn
  fi
8535
 
8536 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8537 82 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8538 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8539
 
8540 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8541
 
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
 
8552
 
8553
 
8554
 
8555
 
8556 19 jeremybenn
#
8557
# Do we need to explicitly link libc?
8558
#
8559
case "x$archive_cmds_need_lc" in
8560
x|xyes)
8561
  # Assume -lc should be added
8562
  archive_cmds_need_lc=yes
8563
 
8564
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8565
    case $archive_cmds in
8566
    *'~'*)
8567
      # FIXME: we may have to deal with multi-command sequences.
8568
      ;;
8569
    '$CC '*)
8570
      # Test whether the compiler implicitly links with -lc since on some
8571
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8572
      # to ld, don't add -lc before -lgcc.
8573 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8574 82 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8575
      $RM conftest*
8576 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577
 
8578 346 jeremybenn
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8579 19 jeremybenn
  (eval $ac_compile) 2>&5
8580
  ac_status=$?
8581 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8582
  test $ac_status = 0; } 2>conftest.err; then
8583 19 jeremybenn
        soname=conftest
8584
        lib=conftest
8585
        libobjs=conftest.$ac_objext
8586
        deplibs=
8587
        wl=$lt_prog_compiler_wl
8588
        pic_flag=$lt_prog_compiler_pic
8589
        compiler_flags=-v
8590
        linker_flags=-v
8591
        verstring=
8592
        output_objdir=.
8593
        libname=conftest
8594
        lt_save_allow_undefined_flag=$allow_undefined_flag
8595
        allow_undefined_flag=
8596 346 jeremybenn
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8597 82 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8598 19 jeremybenn
  ac_status=$?
8599 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8600
  test $ac_status = 0; }
8601 19 jeremybenn
        then
8602
          archive_cmds_need_lc=no
8603
        else
8604
          archive_cmds_need_lc=yes
8605
        fi
8606
        allow_undefined_flag=$lt_save_allow_undefined_flag
8607
      else
8608
        cat conftest.err 1>&5
8609
      fi
8610 82 jeremybenn
      $RM conftest*
8611 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8612 82 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8613 19 jeremybenn
      ;;
8614
    esac
8615
  fi
8616
  ;;
8617
esac
8618
 
8619
 
8620 82 jeremybenn
 
8621
 
8622
 
8623
 
8624
 
8625
 
8626
 
8627
 
8628
 
8629
 
8630
 
8631
 
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
 
8641
 
8642
 
8643
 
8644
 
8645
 
8646
 
8647
 
8648
 
8649
 
8650
 
8651
 
8652
 
8653
 
8654
 
8655
 
8656
 
8657
 
8658
 
8659
 
8660
 
8661
 
8662
 
8663
 
8664
 
8665
 
8666
 
8667
 
8668
 
8669
 
8670
 
8671
 
8672
 
8673
 
8674
 
8675
 
8676
 
8677
 
8678
 
8679
 
8680
 
8681
 
8682
 
8683
 
8684
 
8685
 
8686
 
8687
 
8688
 
8689
 
8690
 
8691
 
8692
 
8693
 
8694
 
8695
 
8696
 
8697
 
8698
 
8699
 
8700
 
8701
 
8702
 
8703
 
8704
 
8705
 
8706
 
8707
 
8708
 
8709
 
8710
 
8711
 
8712
 
8713
 
8714
 
8715
 
8716
 
8717
 
8718
 
8719
 
8720
 
8721
 
8722
 
8723
 
8724
 
8725
 
8726
 
8727
 
8728
 
8729
 
8730
 
8731
 
8732
 
8733
 
8734
 
8735
 
8736
 
8737
 
8738
 
8739
 
8740
 
8741
 
8742
 
8743
 
8744
 
8745
 
8746
 
8747
 
8748
 
8749
 
8750
 
8751
 
8752
 
8753
 
8754
 
8755
 
8756
 
8757
 
8758
 
8759
 
8760
 
8761
 
8762
 
8763
 
8764
 
8765
 
8766
 
8767
 
8768
 
8769
 
8770
 
8771
 
8772
 
8773
 
8774
 
8775 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8776 82 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8777
 
8778 19 jeremybenn
if test "$GCC" = yes; then
8779
  case $host_os in
8780
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8781
    *) lt_awk_arg="/^libraries:/" ;;
8782
  esac
8783
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8784 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8785 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
8786
    # otherwise default to the standard path separator (i.e. ":") - it is
8787
    # assumed that no part of a normal pathname contains ";" but that should
8788
    # okay in the real world where ";" in dirpaths is itself problematic.
8789 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8790 19 jeremybenn
  else
8791 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8792 19 jeremybenn
  fi
8793
  # Ok, now we have the path, separated by spaces, we can step through it
8794
  # and add multilib dir if necessary.
8795
  lt_tmp_lt_search_path_spec=
8796
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8797
  for lt_sys_path in $lt_search_path_spec; do
8798
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8799
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8800
    else
8801
      test -d "$lt_sys_path" && \
8802
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8803
    fi
8804
  done
8805 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8806 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
8807
  lt_foo="";
8808
  lt_count=0;
8809
  for (lt_i = NF; lt_i > 0; lt_i--) {
8810
    if ($lt_i != "" && $lt_i != ".") {
8811
      if ($lt_i == "..") {
8812
        lt_count++;
8813
      } else {
8814
        if (lt_count == 0) {
8815
          lt_foo="/" $lt_i lt_foo;
8816
        } else {
8817
          lt_count--;
8818
        }
8819
      }
8820
    }
8821
  }
8822
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8823
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8824
}'`
8825 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8826 19 jeremybenn
else
8827
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8828
fi
8829 82 jeremybenn
library_names_spec=
8830
libname_spec='lib$name'
8831
soname_spec=
8832
shrext_cmds=".so"
8833
postinstall_cmds=
8834
postuninstall_cmds=
8835
finish_cmds=
8836
finish_eval=
8837
shlibpath_var=
8838
shlibpath_overrides_runpath=unknown
8839
version_type=none
8840
dynamic_linker="$host_os ld.so"
8841
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8842 19 jeremybenn
need_lib_prefix=unknown
8843
hardcode_into_libs=no
8844
 
8845
# when you set need_version to no, make sure it does not cause -set_version
8846
# flags to be left without arguments
8847
need_version=unknown
8848
 
8849
case $host_os in
8850
aix3*)
8851
  version_type=linux
8852
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8853
  shlibpath_var=LIBPATH
8854
 
8855
  # AIX 3 has no versioning support, so we append a major version to the name.
8856
  soname_spec='${libname}${release}${shared_ext}$major'
8857
  ;;
8858
 
8859 82 jeremybenn
aix[4-9]*)
8860 19 jeremybenn
  version_type=linux
8861
  need_lib_prefix=no
8862
  need_version=no
8863
  hardcode_into_libs=yes
8864
  if test "$host_cpu" = ia64; then
8865
    # AIX 5 supports IA64
8866
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8867
    shlibpath_var=LD_LIBRARY_PATH
8868
  else
8869
    # With GCC up to 2.95.x, collect2 would create an import file
8870
    # for dependence libraries.  The import file would start with
8871
    # the line `#! .'.  This would cause the generated library to
8872
    # depend on `.', always an invalid library.  This was fixed in
8873
    # development snapshots of GCC prior to 3.0.
8874
    case $host_os in
8875
      aix4 | aix4.[01] | aix4.[01].*)
8876
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8877
           echo ' yes '
8878 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8879 19 jeremybenn
        :
8880
      else
8881
        can_build_shared=no
8882
      fi
8883
      ;;
8884
    esac
8885
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8886
    # soname into executable. Probably we can add versioning support to
8887
    # collect2, so additional links can be useful in future.
8888
    if test "$aix_use_runtimelinking" = yes; then
8889
      # If using run time linking (on AIX 4.2 or later) use lib.so
8890
      # instead of lib.a to let people know that these are not
8891
      # typical AIX shared libraries.
8892
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893
    else
8894
      # We preserve .a as extension for shared libraries through AIX4.2
8895
      # and later when we are not doing run time linking.
8896
      library_names_spec='${libname}${release}.a $libname.a'
8897
      soname_spec='${libname}${release}${shared_ext}$major'
8898
    fi
8899
    shlibpath_var=LIBPATH
8900
  fi
8901
  ;;
8902
 
8903
amigaos*)
8904 82 jeremybenn
  case $host_cpu in
8905
  powerpc)
8906
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8907
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8908
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909
    ;;
8910
  m68k)
8911
    library_names_spec='$libname.ixlibrary $libname.a'
8912
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8913
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8914
    ;;
8915
  esac
8916 19 jeremybenn
  ;;
8917
 
8918
beos*)
8919
  library_names_spec='${libname}${shared_ext}'
8920
  dynamic_linker="$host_os ld.so"
8921
  shlibpath_var=LIBRARY_PATH
8922
  ;;
8923
 
8924
bsdi[45]*)
8925
  version_type=linux
8926
  need_version=no
8927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928
  soname_spec='${libname}${release}${shared_ext}$major'
8929
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8930
  shlibpath_var=LD_LIBRARY_PATH
8931
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8932
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8933
  # the default ld.so.conf also contains /usr/contrib/lib and
8934
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8935
  # libtool to hard-code these into programs
8936
  ;;
8937
 
8938 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
8939 19 jeremybenn
  version_type=windows
8940
  shrext_cmds=".dll"
8941
  need_version=no
8942
  need_lib_prefix=no
8943
 
8944
  case $GCC,$host_os in
8945 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8946 19 jeremybenn
    library_names_spec='$libname.dll.a'
8947
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8948
    postinstall_cmds='base_file=`basename \${file}`~
8949 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8950 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
8951
      test -d \$dldir || mkdir -p \$dldir~
8952
      $install_prog $dir/$dlname \$dldir/$dlname~
8953 82 jeremybenn
      chmod a+x \$dldir/$dlname~
8954
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8955
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8956
      fi'
8957 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8958
      dlpath=$dir/\$dldll~
8959 82 jeremybenn
       $RM \$dlpath'
8960 19 jeremybenn
    shlibpath_overrides_runpath=yes
8961
 
8962
    case $host_os in
8963
    cygwin*)
8964
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8965
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8966
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8967
      ;;
8968 82 jeremybenn
    mingw* | cegcc*)
8969 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
8970
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8971 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8972
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8973 19 jeremybenn
        # It is most probably a Windows format PATH printed by
8974
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8975
        # path with ; separators, and with drive letters. We can handle the
8976
        # drive letters (cygwin fileutils understands them), so leave them,
8977
        # especially as we might pass files found there to a mingw objdump,
8978
        # which wouldn't understand a cygwinified path. Ahh.
8979 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8980 19 jeremybenn
      else
8981 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8982 19 jeremybenn
      fi
8983
      ;;
8984
    pw32*)
8985
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8986
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8987
      ;;
8988
    esac
8989
    ;;
8990
 
8991
  *)
8992
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8993
    ;;
8994
  esac
8995
  dynamic_linker='Win32 ld.exe'
8996
  # FIXME: first we should search . and the directory the executable is in
8997
  shlibpath_var=PATH
8998
  ;;
8999
 
9000
darwin* | rhapsody*)
9001
  dynamic_linker="$host_os dyld"
9002
  version_type=darwin
9003
  need_lib_prefix=no
9004
  need_version=no
9005 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9006 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9007
  shlibpath_overrides_runpath=yes
9008
  shlibpath_var=DYLD_LIBRARY_PATH
9009
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9010
 
9011
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9012
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9013
  ;;
9014
 
9015
dgux*)
9016
  version_type=linux
9017
  need_lib_prefix=no
9018
  need_version=no
9019
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9020
  soname_spec='${libname}${release}${shared_ext}$major'
9021
  shlibpath_var=LD_LIBRARY_PATH
9022
  ;;
9023
 
9024
freebsd1*)
9025
  dynamic_linker=no
9026
  ;;
9027
 
9028
freebsd* | dragonfly*)
9029
  # DragonFly does not have aout.  When/if they implement a new
9030
  # versioning mechanism, adjust this.
9031
  if test -x /usr/bin/objformat; then
9032
    objformat=`/usr/bin/objformat`
9033
  else
9034
    case $host_os in
9035
    freebsd[123]*) objformat=aout ;;
9036
    *) objformat=elf ;;
9037
    esac
9038
  fi
9039
  version_type=freebsd-$objformat
9040
  case $version_type in
9041
    freebsd-elf*)
9042
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9043
      need_version=no
9044
      need_lib_prefix=no
9045
      ;;
9046
    freebsd-*)
9047
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9048
      need_version=yes
9049
      ;;
9050
  esac
9051
  shlibpath_var=LD_LIBRARY_PATH
9052
  case $host_os in
9053
  freebsd2*)
9054
    shlibpath_overrides_runpath=yes
9055
    ;;
9056
  freebsd3.[01]* | freebsdelf3.[01]*)
9057
    shlibpath_overrides_runpath=yes
9058
    hardcode_into_libs=yes
9059
    ;;
9060
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9061
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9062
    shlibpath_overrides_runpath=no
9063
    hardcode_into_libs=yes
9064
    ;;
9065
  *) # from 4.6 on, and DragonFly
9066
    shlibpath_overrides_runpath=yes
9067
    hardcode_into_libs=yes
9068
    ;;
9069
  esac
9070
  ;;
9071
 
9072
gnu*)
9073
  version_type=linux
9074
  need_lib_prefix=no
9075
  need_version=no
9076
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9077
  soname_spec='${libname}${release}${shared_ext}$major'
9078
  shlibpath_var=LD_LIBRARY_PATH
9079
  hardcode_into_libs=yes
9080
  ;;
9081
 
9082
hpux9* | hpux10* | hpux11*)
9083
  # Give a soname corresponding to the major version so that dld.sl refuses to
9084
  # link against other versions.
9085
  version_type=sunos
9086
  need_lib_prefix=no
9087
  need_version=no
9088
  case $host_cpu in
9089
  ia64*)
9090
    shrext_cmds='.so'
9091
    hardcode_into_libs=yes
9092
    dynamic_linker="$host_os dld.so"
9093
    shlibpath_var=LD_LIBRARY_PATH
9094
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9095
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096
    soname_spec='${libname}${release}${shared_ext}$major'
9097
    if test "X$HPUX_IA64_MODE" = X32; then
9098
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9099
    else
9100
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9101
    fi
9102
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9103
    ;;
9104 82 jeremybenn
  hppa*64*)
9105 19 jeremybenn
    shrext_cmds='.sl'
9106 82 jeremybenn
    hardcode_into_libs=yes
9107 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9108 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9109
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9110
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111
    soname_spec='${libname}${release}${shared_ext}$major'
9112
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9113
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9114
    ;;
9115
  *)
9116
    shrext_cmds='.sl'
9117
    dynamic_linker="$host_os dld.sl"
9118 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9119
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9120
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121
    soname_spec='${libname}${release}${shared_ext}$major'
9122
    ;;
9123
  esac
9124
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9125
  postinstall_cmds='chmod 555 $lib'
9126
  ;;
9127
 
9128
interix[3-9]*)
9129
  version_type=linux
9130
  need_lib_prefix=no
9131
  need_version=no
9132
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9133
  soname_spec='${libname}${release}${shared_ext}$major'
9134
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9135
  shlibpath_var=LD_LIBRARY_PATH
9136
  shlibpath_overrides_runpath=no
9137
  hardcode_into_libs=yes
9138
  ;;
9139
 
9140
irix5* | irix6* | nonstopux*)
9141
  case $host_os in
9142
    nonstopux*) version_type=nonstopux ;;
9143
    *)
9144
        if test "$lt_cv_prog_gnu_ld" = yes; then
9145
                version_type=linux
9146
        else
9147
                version_type=irix
9148
        fi ;;
9149
  esac
9150
  need_lib_prefix=no
9151
  need_version=no
9152
  soname_spec='${libname}${release}${shared_ext}$major'
9153
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9154
  case $host_os in
9155
  irix5* | nonstopux*)
9156
    libsuff= shlibsuff=
9157
    ;;
9158
  *)
9159
    case $LD in # libtool.m4 will add one of these switches to LD
9160
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9161
      libsuff= shlibsuff= libmagic=32-bit;;
9162
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9163
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9164
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9165
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9166
    *) libsuff= shlibsuff= libmagic=never-match;;
9167
    esac
9168
    ;;
9169
  esac
9170
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9171
  shlibpath_overrides_runpath=no
9172
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9173
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9174
  hardcode_into_libs=yes
9175
  ;;
9176
 
9177
# No shared lib support for Linux oldld, aout, or coff.
9178
linux*oldld* | linux*aout* | linux*coff*)
9179
  dynamic_linker=no
9180
  ;;
9181
 
9182
# This must be Linux ELF.
9183
linux* | k*bsd*-gnu)
9184
  version_type=linux
9185
  need_lib_prefix=no
9186
  need_version=no
9187
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188
  soname_spec='${libname}${release}${shared_ext}$major'
9189
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9190
  shlibpath_var=LD_LIBRARY_PATH
9191
  shlibpath_overrides_runpath=no
9192 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9193
  save_LDFLAGS=$LDFLAGS
9194
  save_libdir=$libdir
9195
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9196
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9197 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 82 jeremybenn
/* end confdefs.h.  */
9199
 
9200
int
9201
main ()
9202
{
9203
 
9204
  ;
9205
  return 0;
9206
}
9207
_ACEOF
9208 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9209
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9210 82 jeremybenn
  shlibpath_overrides_runpath=yes
9211
fi
9212
fi
9213 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9214
    conftest$ac_exeext conftest.$ac_ext
9215 82 jeremybenn
  LDFLAGS=$save_LDFLAGS
9216
  libdir=$save_libdir
9217
 
9218 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9219
  # Some rework will be needed to allow for fast_install
9220
  # before this can be enabled.
9221
  hardcode_into_libs=yes
9222
 
9223
  # Append ld.so.conf contents to the search path
9224
  if test -f /etc/ld.so.conf; then
9225 82 jeremybenn
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9226 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9227 19 jeremybenn
  fi
9228
 
9229
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9230
  # powerpc, because MkLinux only supported shared libraries with the
9231
  # GNU dynamic linker.  Since this was broken with cross compilers,
9232
  # most powerpc-linux boxes support dynamic linking these days and
9233
  # people can always --disable-shared, the test was removed, and we
9234
  # assume the GNU/Linux dynamic linker is in use.
9235
  dynamic_linker='GNU/Linux ld.so'
9236
  ;;
9237
 
9238 93 jeremybenn
netbsdelf*-gnu)
9239
  version_type=linux
9240
  need_lib_prefix=no
9241
  need_version=no
9242
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9243
  soname_spec='${libname}${release}${shared_ext}$major'
9244
  shlibpath_var=LD_LIBRARY_PATH
9245
  shlibpath_overrides_runpath=no
9246
  hardcode_into_libs=yes
9247
  dynamic_linker='NetBSD ld.elf_so'
9248
  ;;
9249
 
9250 19 jeremybenn
netbsd*)
9251
  version_type=sunos
9252
  need_lib_prefix=no
9253
  need_version=no
9254 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9255 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9256
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9257
    dynamic_linker='NetBSD (a.out) ld.so'
9258
  else
9259
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9260
    soname_spec='${libname}${release}${shared_ext}$major'
9261
    dynamic_linker='NetBSD ld.elf_so'
9262
  fi
9263
  shlibpath_var=LD_LIBRARY_PATH
9264
  shlibpath_overrides_runpath=yes
9265
  hardcode_into_libs=yes
9266
  ;;
9267
 
9268
newsos6)
9269
  version_type=linux
9270
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271
  shlibpath_var=LD_LIBRARY_PATH
9272
  shlibpath_overrides_runpath=yes
9273
  ;;
9274
 
9275 82 jeremybenn
*nto* | *qnx*)
9276
  version_type=qnx
9277 19 jeremybenn
  need_lib_prefix=no
9278
  need_version=no
9279
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280
  soname_spec='${libname}${release}${shared_ext}$major'
9281
  shlibpath_var=LD_LIBRARY_PATH
9282 82 jeremybenn
  shlibpath_overrides_runpath=no
9283
  hardcode_into_libs=yes
9284
  dynamic_linker='ldqnx.so'
9285 19 jeremybenn
  ;;
9286
 
9287
openbsd*)
9288
  version_type=sunos
9289
  sys_lib_dlsearch_path_spec="/usr/lib"
9290
  need_lib_prefix=no
9291
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9292
  case $host_os in
9293 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9294
    *)                          need_version=no  ;;
9295 19 jeremybenn
  esac
9296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9298
  shlibpath_var=LD_LIBRARY_PATH
9299 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9300 19 jeremybenn
    case $host_os in
9301
      openbsd2.[89] | openbsd2.[89].*)
9302
        shlibpath_overrides_runpath=no
9303
        ;;
9304
      *)
9305
        shlibpath_overrides_runpath=yes
9306
        ;;
9307
      esac
9308
  else
9309
    shlibpath_overrides_runpath=yes
9310
  fi
9311
  ;;
9312
 
9313
os2*)
9314
  libname_spec='$name'
9315
  shrext_cmds=".dll"
9316
  need_lib_prefix=no
9317
  library_names_spec='$libname${shared_ext} $libname.a'
9318
  dynamic_linker='OS/2 ld.exe'
9319
  shlibpath_var=LIBPATH
9320
  ;;
9321
 
9322
osf3* | osf4* | osf5*)
9323
  version_type=osf
9324
  need_lib_prefix=no
9325
  need_version=no
9326
  soname_spec='${libname}${release}${shared_ext}$major'
9327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328
  shlibpath_var=LD_LIBRARY_PATH
9329
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9330
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9331
  ;;
9332
 
9333
rdos*)
9334
  dynamic_linker=no
9335
  ;;
9336
 
9337
solaris*)
9338
  version_type=linux
9339
  need_lib_prefix=no
9340
  need_version=no
9341
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342
  soname_spec='${libname}${release}${shared_ext}$major'
9343
  shlibpath_var=LD_LIBRARY_PATH
9344
  shlibpath_overrides_runpath=yes
9345
  hardcode_into_libs=yes
9346
  # ldd complains unless libraries are executable
9347
  postinstall_cmds='chmod +x $lib'
9348
  ;;
9349
 
9350
sunos4*)
9351
  version_type=sunos
9352
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9353
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9354
  shlibpath_var=LD_LIBRARY_PATH
9355
  shlibpath_overrides_runpath=yes
9356
  if test "$with_gnu_ld" = yes; then
9357
    need_lib_prefix=no
9358
  fi
9359
  need_version=yes
9360
  ;;
9361
 
9362
sysv4 | sysv4.3*)
9363
  version_type=linux
9364
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365
  soname_spec='${libname}${release}${shared_ext}$major'
9366
  shlibpath_var=LD_LIBRARY_PATH
9367
  case $host_vendor in
9368
    sni)
9369
      shlibpath_overrides_runpath=no
9370
      need_lib_prefix=no
9371
      runpath_var=LD_RUN_PATH
9372
      ;;
9373
    siemens)
9374
      need_lib_prefix=no
9375
      ;;
9376
    motorola)
9377
      need_lib_prefix=no
9378
      need_version=no
9379
      shlibpath_overrides_runpath=no
9380
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9381
      ;;
9382
  esac
9383
  ;;
9384
 
9385
sysv4*MP*)
9386
  if test -d /usr/nec ;then
9387
    version_type=linux
9388
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9389
    soname_spec='$libname${shared_ext}.$major'
9390
    shlibpath_var=LD_LIBRARY_PATH
9391
  fi
9392
  ;;
9393
 
9394
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9395
  version_type=freebsd-elf
9396
  need_lib_prefix=no
9397
  need_version=no
9398
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9399
  soname_spec='${libname}${release}${shared_ext}$major'
9400
  shlibpath_var=LD_LIBRARY_PATH
9401 82 jeremybenn
  shlibpath_overrides_runpath=yes
9402 19 jeremybenn
  hardcode_into_libs=yes
9403
  if test "$with_gnu_ld" = yes; then
9404
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9405
  else
9406
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9407
    case $host_os in
9408
      sco3.2v5*)
9409
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9410
        ;;
9411
    esac
9412
  fi
9413
  sys_lib_dlsearch_path_spec='/usr/lib'
9414
  ;;
9415
 
9416 82 jeremybenn
tpf*)
9417
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9418
  version_type=linux
9419
  need_lib_prefix=no
9420
  need_version=no
9421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9422
  shlibpath_var=LD_LIBRARY_PATH
9423
  shlibpath_overrides_runpath=no
9424
  hardcode_into_libs=yes
9425
  ;;
9426
 
9427 19 jeremybenn
uts4*)
9428
  version_type=linux
9429
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430
  soname_spec='${libname}${release}${shared_ext}$major'
9431
  shlibpath_var=LD_LIBRARY_PATH
9432
  ;;
9433
 
9434
*)
9435
  dynamic_linker=no
9436
  ;;
9437
esac
9438 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9439 82 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9440 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9441
 
9442
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9443
if test "$GCC" = yes; then
9444
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9445
fi
9446
 
9447 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9448
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9449
fi
9450
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9451
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9452
fi
9453
 
9454
 
9455
 
9456
 
9457
 
9458
 
9459
 
9460
 
9461
 
9462
 
9463
 
9464
 
9465
 
9466
 
9467
 
9468
 
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
 
9478
 
9479
 
9480
 
9481
 
9482
 
9483
 
9484
 
9485
 
9486
 
9487
 
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
9537
 
9538
 
9539
 
9540 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9541 82 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9542 19 jeremybenn
hardcode_action=
9543 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9544
   test -n "$runpath_var" ||
9545 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9546
 
9547 82 jeremybenn
  # We can hardcode non-existent directories.
9548 19 jeremybenn
  if test "$hardcode_direct" != no &&
9549
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9550
     # have to relink, otherwise we might link with an installed library
9551
     # when we should be linking with a yet-to-be-installed one
9552 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9553 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9554
    # Linking always hardcodes the temporary library directory.
9555
    hardcode_action=relink
9556
  else
9557
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9558
    hardcode_action=immediate
9559
  fi
9560
else
9561
  # We cannot hardcode anything, or else we can only hardcode existing
9562
  # directories.
9563
  hardcode_action=unsupported
9564
fi
9565 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9566 82 jeremybenn
$as_echo "$hardcode_action" >&6; }
9567 19 jeremybenn
 
9568 82 jeremybenn
if test "$hardcode_action" = relink ||
9569
   test "$inherit_rpath" = yes; then
9570 19 jeremybenn
  # Fast installation is not supported
9571
  enable_fast_install=no
9572
elif test "$shlibpath_overrides_runpath" = yes ||
9573
     test "$enable_shared" = no; then
9574
  # Fast installation is not necessary
9575
  enable_fast_install=needless
9576
fi
9577
 
9578
 
9579 82 jeremybenn
 
9580
 
9581
 
9582
 
9583
  if test "x$enable_dlopen" != xyes; then
9584 19 jeremybenn
  enable_dlopen=unknown
9585
  enable_dlopen_self=unknown
9586
  enable_dlopen_self_static=unknown
9587
else
9588
  lt_cv_dlopen=no
9589
  lt_cv_dlopen_libs=
9590
 
9591
  case $host_os in
9592
  beos*)
9593
    lt_cv_dlopen="load_add_on"
9594
    lt_cv_dlopen_libs=
9595
    lt_cv_dlopen_self=yes
9596
    ;;
9597
 
9598 82 jeremybenn
  mingw* | pw32* | cegcc*)
9599 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9600
    lt_cv_dlopen_libs=
9601 82 jeremybenn
    ;;
9602 19 jeremybenn
 
9603
  cygwin*)
9604
    lt_cv_dlopen="dlopen"
9605
    lt_cv_dlopen_libs=
9606 82 jeremybenn
    ;;
9607 19 jeremybenn
 
9608
  darwin*)
9609
  # if libdl is installed we need to link against it
9610 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9611 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9612 346 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9613 82 jeremybenn
  $as_echo_n "(cached) " >&6
9614 19 jeremybenn
else
9615
  ac_check_lib_save_LIBS=$LIBS
9616
LIBS="-ldl  $LIBS"
9617 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 19 jeremybenn
/* end confdefs.h.  */
9619
 
9620
/* Override any GCC internal prototype to avoid an error.
9621
   Use char because int might match the return type of a GCC
9622
   builtin and then its argument prototype would still apply.  */
9623
#ifdef __cplusplus
9624
extern "C"
9625
#endif
9626
char dlopen ();
9627
int
9628
main ()
9629
{
9630
return dlopen ();
9631
  ;
9632
  return 0;
9633
}
9634
_ACEOF
9635 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9636 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9637
else
9638 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9639 19 jeremybenn
fi
9640 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9641
    conftest$ac_exeext conftest.$ac_ext
9642 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9643
fi
9644 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9645 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9646 346 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9647 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9648
else
9649
 
9650
    lt_cv_dlopen="dyld"
9651
    lt_cv_dlopen_libs=
9652
    lt_cv_dlopen_self=yes
9653
 
9654
fi
9655
 
9656 82 jeremybenn
    ;;
9657 19 jeremybenn
 
9658
  *)
9659 346 jeremybenn
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9660
if test "x$ac_cv_func_shl_load" = x""yes; then :
9661 19 jeremybenn
  lt_cv_dlopen="shl_load"
9662
else
9663 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9664 82 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9665 346 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9666 82 jeremybenn
  $as_echo_n "(cached) " >&6
9667 19 jeremybenn
else
9668
  ac_check_lib_save_LIBS=$LIBS
9669
LIBS="-ldld  $LIBS"
9670 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 19 jeremybenn
/* end confdefs.h.  */
9672
 
9673
/* Override any GCC internal prototype to avoid an error.
9674
   Use char because int might match the return type of a GCC
9675
   builtin and then its argument prototype would still apply.  */
9676
#ifdef __cplusplus
9677
extern "C"
9678
#endif
9679
char shl_load ();
9680
int
9681
main ()
9682
{
9683
return shl_load ();
9684
  ;
9685
  return 0;
9686
}
9687
_ACEOF
9688 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9689 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9690
else
9691 346 jeremybenn
  ac_cv_lib_dld_shl_load=no
9692 19 jeremybenn
fi
9693 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9694
    conftest$ac_exeext conftest.$ac_ext
9695 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9696
fi
9697 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9698 82 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9699 346 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9700 82 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9701 19 jeremybenn
else
9702 346 jeremybenn
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9703
if test "x$ac_cv_func_dlopen" = x""yes; then :
9704 19 jeremybenn
  lt_cv_dlopen="dlopen"
9705
else
9706 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9707 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9708 346 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9709 82 jeremybenn
  $as_echo_n "(cached) " >&6
9710 19 jeremybenn
else
9711
  ac_check_lib_save_LIBS=$LIBS
9712
LIBS="-ldl  $LIBS"
9713 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 19 jeremybenn
/* end confdefs.h.  */
9715
 
9716
/* Override any GCC internal prototype to avoid an error.
9717
   Use char because int might match the return type of a GCC
9718
   builtin and then its argument prototype would still apply.  */
9719
#ifdef __cplusplus
9720
extern "C"
9721
#endif
9722
char dlopen ();
9723
int
9724
main ()
9725
{
9726
return dlopen ();
9727
  ;
9728
  return 0;
9729
}
9730
_ACEOF
9731 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9732 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9733
else
9734 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9735 19 jeremybenn
fi
9736 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9737
    conftest$ac_exeext conftest.$ac_ext
9738 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9739
fi
9740 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9741 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9742 346 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9743 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9744
else
9745 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9746 82 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9747 346 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9748 82 jeremybenn
  $as_echo_n "(cached) " >&6
9749 19 jeremybenn
else
9750
  ac_check_lib_save_LIBS=$LIBS
9751
LIBS="-lsvld  $LIBS"
9752 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 19 jeremybenn
/* end confdefs.h.  */
9754
 
9755
/* Override any GCC internal prototype to avoid an error.
9756
   Use char because int might match the return type of a GCC
9757
   builtin and then its argument prototype would still apply.  */
9758
#ifdef __cplusplus
9759
extern "C"
9760
#endif
9761
char dlopen ();
9762
int
9763
main ()
9764
{
9765
return dlopen ();
9766
  ;
9767
  return 0;
9768
}
9769
_ACEOF
9770 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9771 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9772
else
9773 346 jeremybenn
  ac_cv_lib_svld_dlopen=no
9774 19 jeremybenn
fi
9775 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9776
    conftest$ac_exeext conftest.$ac_ext
9777 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9778
fi
9779 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9780 82 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9781 346 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9782 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9783
else
9784 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9785 82 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9786 346 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9787 82 jeremybenn
  $as_echo_n "(cached) " >&6
9788 19 jeremybenn
else
9789
  ac_check_lib_save_LIBS=$LIBS
9790
LIBS="-ldld  $LIBS"
9791 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792 19 jeremybenn
/* end confdefs.h.  */
9793
 
9794
/* Override any GCC internal prototype to avoid an error.
9795
   Use char because int might match the return type of a GCC
9796
   builtin and then its argument prototype would still apply.  */
9797
#ifdef __cplusplus
9798
extern "C"
9799
#endif
9800
char dld_link ();
9801
int
9802
main ()
9803
{
9804
return dld_link ();
9805
  ;
9806
  return 0;
9807
}
9808
_ACEOF
9809 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9810 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9811
else
9812 346 jeremybenn
  ac_cv_lib_dld_dld_link=no
9813 19 jeremybenn
fi
9814 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9815
    conftest$ac_exeext conftest.$ac_ext
9816 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9817
fi
9818 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9819 82 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9820 346 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9821 82 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9822 19 jeremybenn
fi
9823
 
9824
 
9825
fi
9826
 
9827
 
9828
fi
9829
 
9830
 
9831
fi
9832
 
9833
 
9834
fi
9835
 
9836
 
9837
fi
9838
 
9839
    ;;
9840
  esac
9841
 
9842
  if test "x$lt_cv_dlopen" != xno; then
9843
    enable_dlopen=yes
9844
  else
9845
    enable_dlopen=no
9846
  fi
9847
 
9848
  case $lt_cv_dlopen in
9849
  dlopen)
9850
    save_CPPFLAGS="$CPPFLAGS"
9851
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9852
 
9853
    save_LDFLAGS="$LDFLAGS"
9854
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9855
 
9856
    save_LIBS="$LIBS"
9857
    LIBS="$lt_cv_dlopen_libs $LIBS"
9858
 
9859 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9860 82 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9861 346 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then :
9862 82 jeremybenn
  $as_echo_n "(cached) " >&6
9863 19 jeremybenn
else
9864
          if test "$cross_compiling" = yes; then :
9865
  lt_cv_dlopen_self=cross
9866
else
9867
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9868
  lt_status=$lt_dlunknown
9869 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
9870 346 jeremybenn
#line 9870 "configure"
9871 19 jeremybenn
#include "confdefs.h"
9872
 
9873
#if HAVE_DLFCN_H
9874
#include 
9875
#endif
9876
 
9877
#include 
9878
 
9879
#ifdef RTLD_GLOBAL
9880
#  define LT_DLGLOBAL           RTLD_GLOBAL
9881
#else
9882
#  ifdef DL_GLOBAL
9883
#    define LT_DLGLOBAL         DL_GLOBAL
9884
#  else
9885
#    define LT_DLGLOBAL         0
9886
#  endif
9887
#endif
9888
 
9889
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9890
   find out it does not work in some platform. */
9891
#ifndef LT_DLLAZY_OR_NOW
9892
#  ifdef RTLD_LAZY
9893
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9894
#  else
9895
#    ifdef DL_LAZY
9896
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9897
#    else
9898
#      ifdef RTLD_NOW
9899
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9900
#      else
9901
#        ifdef DL_NOW
9902
#          define LT_DLLAZY_OR_NOW      DL_NOW
9903
#        else
9904
#          define LT_DLLAZY_OR_NOW      0
9905
#        endif
9906
#      endif
9907
#    endif
9908
#  endif
9909
#endif
9910
 
9911
void fnord() { int i=42;}
9912
int main ()
9913
{
9914
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9915
  int status = $lt_dlunknown;
9916
 
9917
  if (self)
9918
    {
9919
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9920
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9921
      /* dlclose (self); */
9922
    }
9923
  else
9924
    puts (dlerror ());
9925
 
9926 82 jeremybenn
  return status;
9927 19 jeremybenn
}
9928 82 jeremybenn
_LT_EOF
9929 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9930 19 jeremybenn
  (eval $ac_link) 2>&5
9931
  ac_status=$?
9932 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9933
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9934 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9935
    lt_status=$?
9936
    case x$lt_status in
9937
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9938
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9939
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9940
    esac
9941
  else :
9942
    # compilation failed
9943
    lt_cv_dlopen_self=no
9944
  fi
9945
fi
9946
rm -fr conftest*
9947
 
9948
 
9949
fi
9950 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9951 82 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
9952 19 jeremybenn
 
9953
    if test "x$lt_cv_dlopen_self" = xyes; then
9954
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9955 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9956 82 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9957 346 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then :
9958 82 jeremybenn
  $as_echo_n "(cached) " >&6
9959 19 jeremybenn
else
9960
          if test "$cross_compiling" = yes; then :
9961
  lt_cv_dlopen_self_static=cross
9962
else
9963
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9964
  lt_status=$lt_dlunknown
9965 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
9966 346 jeremybenn
#line 9966 "configure"
9967 19 jeremybenn
#include "confdefs.h"
9968
 
9969
#if HAVE_DLFCN_H
9970
#include 
9971
#endif
9972
 
9973
#include 
9974
 
9975
#ifdef RTLD_GLOBAL
9976
#  define LT_DLGLOBAL           RTLD_GLOBAL
9977
#else
9978
#  ifdef DL_GLOBAL
9979
#    define LT_DLGLOBAL         DL_GLOBAL
9980
#  else
9981
#    define LT_DLGLOBAL         0
9982
#  endif
9983
#endif
9984
 
9985
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9986
   find out it does not work in some platform. */
9987
#ifndef LT_DLLAZY_OR_NOW
9988
#  ifdef RTLD_LAZY
9989
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9990
#  else
9991
#    ifdef DL_LAZY
9992
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9993
#    else
9994
#      ifdef RTLD_NOW
9995
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9996
#      else
9997
#        ifdef DL_NOW
9998
#          define LT_DLLAZY_OR_NOW      DL_NOW
9999
#        else
10000
#          define LT_DLLAZY_OR_NOW      0
10001
#        endif
10002
#      endif
10003
#    endif
10004
#  endif
10005
#endif
10006
 
10007
void fnord() { int i=42;}
10008
int main ()
10009
{
10010
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10011
  int status = $lt_dlunknown;
10012
 
10013
  if (self)
10014
    {
10015
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10016
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10017
      /* dlclose (self); */
10018
    }
10019
  else
10020
    puts (dlerror ());
10021
 
10022 82 jeremybenn
  return status;
10023 19 jeremybenn
}
10024 82 jeremybenn
_LT_EOF
10025 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10026 19 jeremybenn
  (eval $ac_link) 2>&5
10027
  ac_status=$?
10028 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10029
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10030 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10031
    lt_status=$?
10032
    case x$lt_status in
10033
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10034
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10035
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10036
    esac
10037
  else :
10038
    # compilation failed
10039
    lt_cv_dlopen_self_static=no
10040
  fi
10041
fi
10042
rm -fr conftest*
10043
 
10044
 
10045
fi
10046 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10047 82 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10048 19 jeremybenn
    fi
10049
 
10050
    CPPFLAGS="$save_CPPFLAGS"
10051
    LDFLAGS="$save_LDFLAGS"
10052
    LIBS="$save_LIBS"
10053
    ;;
10054
  esac
10055
 
10056
  case $lt_cv_dlopen_self in
10057
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10058
  *) enable_dlopen_self=unknown ;;
10059
  esac
10060
 
10061
  case $lt_cv_dlopen_self_static in
10062
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10063
  *) enable_dlopen_self_static=unknown ;;
10064
  esac
10065
fi
10066
 
10067
 
10068
 
10069
 
10070
 
10071
 
10072
 
10073
 
10074
 
10075
 
10076
 
10077
 
10078
 
10079
 
10080
 
10081
 
10082
 
10083 82 jeremybenn
striplib=
10084
old_striplib=
10085 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10086 82 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10087
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10088
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10089
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10090 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10091 82 jeremybenn
$as_echo "yes" >&6; }
10092
else
10093
# FIXME - insert some real tests, host_os isn't really good enough
10094 19 jeremybenn
  case $host_os in
10095 82 jeremybenn
  darwin*)
10096
    if test -n "$STRIP" ; then
10097
      striplib="$STRIP -x"
10098
      old_striplib="$STRIP -S"
10099 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10100 82 jeremybenn
$as_echo "yes" >&6; }
10101 19 jeremybenn
    else
10102 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 82 jeremybenn
$as_echo "no" >&6; }
10104 19 jeremybenn
    fi
10105
    ;;
10106
  *)
10107 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 82 jeremybenn
$as_echo "no" >&6; }
10109 19 jeremybenn
    ;;
10110
  esac
10111
fi
10112
 
10113
 
10114
 
10115
 
10116
 
10117
 
10118
 
10119
 
10120
 
10121
 
10122
 
10123
 
10124 82 jeremybenn
  # Report which library types will actually be built
10125 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10126 82 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10127 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10128 82 jeremybenn
$as_echo "$can_build_shared" >&6; }
10129 19 jeremybenn
 
10130 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10131 82 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
10132
  test "$can_build_shared" = "no" && enable_shared=no
10133 19 jeremybenn
 
10134 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10135
  # are all built from PIC.
10136 19 jeremybenn
  case $host_os in
10137 82 jeremybenn
  aix3*)
10138 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10139 82 jeremybenn
    if test -n "$RANLIB"; then
10140
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10141
      postinstall_cmds='$RANLIB $lib'
10142 19 jeremybenn
    fi
10143
    ;;
10144
 
10145 82 jeremybenn
  aix[4-9]*)
10146
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10147
      test "$enable_shared" = yes && enable_static=no
10148 19 jeremybenn
    fi
10149
    ;;
10150
  esac
10151 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10152 82 jeremybenn
$as_echo "$enable_shared" >&6; }
10153 19 jeremybenn
 
10154 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10155 82 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
10156
  # Make sure either enable_shared or enable_static is yes.
10157
  test "$enable_shared" = yes || enable_static=yes
10158 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10159 82 jeremybenn
$as_echo "$enable_static" >&6; }
10160 19 jeremybenn
 
10161
 
10162
 
10163
 
10164
fi
10165
ac_ext=c
10166
ac_cpp='$CPP $CPPFLAGS'
10167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10170
 
10171
CC="$lt_save_CC"
10172
 
10173
 
10174
 
10175
 
10176
 
10177
 
10178
 
10179
 
10180
 
10181
 
10182
 
10183
 
10184
 
10185 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10186 19 jeremybenn
 
10187
 
10188
 
10189
 
10190 82 jeremybenn
# Only expand once:
10191 19 jeremybenn
 
10192
 
10193 82 jeremybenn
am__api_version='1.11'
10194 19 jeremybenn
 
10195
# Find a good install program.  We prefer a C program (faster),
10196
# so one script is as good as another.  But avoid the broken or
10197
# incompatible versions:
10198
# SysV /etc/install, /usr/sbin/install
10199
# SunOS /usr/etc/install
10200
# IRIX /sbin/install
10201
# AIX /bin/install
10202
# AmigaOS /C/install, which installs bootblocks on floppy discs
10203
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10204
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10205
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10206
# OS/2's system install, which has a completely different semantic
10207
# ./install, which can be erroneously created by make from ./install.sh.
10208 82 jeremybenn
# Reject install programs that cannot install multiple files.
10209 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10210 82 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10211 19 jeremybenn
if test -z "$INSTALL"; then
10212 346 jeremybenn
if test "${ac_cv_path_install+set}" = set; then :
10213 82 jeremybenn
  $as_echo_n "(cached) " >&6
10214 19 jeremybenn
else
10215
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216
for as_dir in $PATH
10217
do
10218
  IFS=$as_save_IFS
10219
  test -z "$as_dir" && as_dir=.
10220 346 jeremybenn
    # Account for people who put trailing slashes in PATH elements.
10221
case $as_dir/ in #((
10222
  ./ | .// | /[cC]/* | \
10223 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10224 346 jeremybenn
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10225 19 jeremybenn
  /usr/ucb/* ) ;;
10226
  *)
10227
    # OSF1 and SCO ODT 3.0 have their own names for install.
10228
    # Don't use installbsd from OSF since it installs stuff as root
10229
    # by default.
10230
    for ac_prog in ginstall scoinst install; do
10231
      for ac_exec_ext in '' $ac_executable_extensions; do
10232
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10233
          if test $ac_prog = install &&
10234
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10235
            # AIX install.  It has an incompatible calling convention.
10236
            :
10237
          elif test $ac_prog = install &&
10238
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10239
            # program-specific install script used by HP pwplus--don't use.
10240
            :
10241
          else
10242 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10243
            echo one > conftest.one
10244
            echo two > conftest.two
10245
            mkdir conftest.dir
10246
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10247
              test -s conftest.one && test -s conftest.two &&
10248
              test -s conftest.dir/conftest.one &&
10249
              test -s conftest.dir/conftest.two
10250
            then
10251
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10252
              break 3
10253
            fi
10254 19 jeremybenn
          fi
10255
        fi
10256
      done
10257
    done
10258
    ;;
10259
esac
10260 82 jeremybenn
 
10261 346 jeremybenn
  done
10262 19 jeremybenn
IFS=$as_save_IFS
10263
 
10264 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10265 19 jeremybenn
 
10266
fi
10267
  if test "${ac_cv_path_install+set}" = set; then
10268
    INSTALL=$ac_cv_path_install
10269
  else
10270
    # As a last resort, use the slow shell script.  Don't cache a
10271
    # value for INSTALL within a source directory, because that will
10272
    # break other packages using the cache if that directory is
10273
    # removed, or if the value is a relative name.
10274
    INSTALL=$ac_install_sh
10275
  fi
10276
fi
10277 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10278 82 jeremybenn
$as_echo "$INSTALL" >&6; }
10279 19 jeremybenn
 
10280
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10281
# It thinks the first close brace ends the variable substitution.
10282
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10283
 
10284
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10285
 
10286
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10287
 
10288 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10289 82 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
10290 19 jeremybenn
# Just in case
10291
sleep 1
10292
echo timestamp > conftest.file
10293 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10294
# name.  Accept space and tab only in the latter.
10295
am_lf='
10296
'
10297
case `pwd` in
10298
  *[\\\"\#\$\&\'\`$am_lf]*)
10299 346 jeremybenn
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
10300 82 jeremybenn
esac
10301
case $srcdir in
10302
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10303 346 jeremybenn
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
10304 82 jeremybenn
esac
10305
 
10306 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10307
# arguments.  Must try -L first in case configure is actually a
10308
# symlink; some systems play weird games with the mod time of symlinks
10309
# (eg FreeBSD returns the mod time of the symlink's containing
10310
# directory).
10311
if (
10312 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10313 19 jeremybenn
   if test "$*" = "X"; then
10314
      # -L didn't work.
10315 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10316 19 jeremybenn
   fi
10317
   rm -f conftest.file
10318
   if test "$*" != "X $srcdir/configure conftest.file" \
10319
      && test "$*" != "X conftest.file $srcdir/configure"; then
10320
 
10321
      # If neither matched, then we have a broken ls.  This can happen
10322
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10323
      # broken ls alias from the environment.  This has actually
10324
      # happened.  Such a system could not be considered "sane".
10325 346 jeremybenn
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
10326
alias in your environment" "$LINENO" 5
10327 19 jeremybenn
   fi
10328
 
10329
   test "$2" = conftest.file
10330
   )
10331
then
10332
   # Ok.
10333
   :
10334
else
10335 346 jeremybenn
   as_fn_error "newly created file is older than distributed files!
10336
Check your system clock" "$LINENO" 5
10337 19 jeremybenn
fi
10338 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10339 82 jeremybenn
$as_echo "yes" >&6; }
10340 19 jeremybenn
test "$program_prefix" != NONE &&
10341
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10342
# Use a double $ so make ignores it.
10343
test "$program_suffix" != NONE &&
10344
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10345 82 jeremybenn
# Double any \ or $.
10346 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10347 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10348
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10349 19 jeremybenn
 
10350
# expand $ac_aux_dir to an absolute path
10351
am_aux_dir=`cd $ac_aux_dir && pwd`
10352
 
10353 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10354
  case $am_aux_dir in
10355
  *\ * | *\     *)
10356
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10357
  *)
10358
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10359
  esac
10360
fi
10361 19 jeremybenn
# Use eval to expand $SHELL
10362
if eval "$MISSING --run true"; then
10363
  am_missing_run="$MISSING --run "
10364
else
10365
  am_missing_run=
10366 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10367 82 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10368 19 jeremybenn
fi
10369
 
10370 82 jeremybenn
if test x"${install_sh}" != xset; then
10371
  case $am_aux_dir in
10372
  *\ * | *\     *)
10373
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10374
  *)
10375
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10376
  esac
10377
fi
10378
 
10379
# Installed binaries are usually stripped using `strip' when the user
10380
# run `make install-strip'.  However `strip' might not be the right
10381
# tool to use in cross-compilation environments, therefore Automake
10382
# will honor the `STRIP' environment variable to overrule this program.
10383
if test "$cross_compiling" != no; then
10384
  if test -n "$ac_tool_prefix"; then
10385
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10386
set dummy ${ac_tool_prefix}strip; ac_word=$2
10387 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10388 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10389 346 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
10390 82 jeremybenn
  $as_echo_n "(cached) " >&6
10391
else
10392
  if test -n "$STRIP"; then
10393
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10394
else
10395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396
for as_dir in $PATH
10397
do
10398
  IFS=$as_save_IFS
10399
  test -z "$as_dir" && as_dir=.
10400 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10401 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10403 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 82 jeremybenn
    break 2
10405
  fi
10406
done
10407 346 jeremybenn
  done
10408 82 jeremybenn
IFS=$as_save_IFS
10409
 
10410
fi
10411
fi
10412
STRIP=$ac_cv_prog_STRIP
10413
if test -n "$STRIP"; then
10414 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10415 82 jeremybenn
$as_echo "$STRIP" >&6; }
10416
else
10417 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418 82 jeremybenn
$as_echo "no" >&6; }
10419
fi
10420
 
10421
 
10422
fi
10423
if test -z "$ac_cv_prog_STRIP"; then
10424
  ac_ct_STRIP=$STRIP
10425
  # Extract the first word of "strip", so it can be a program name with args.
10426
set dummy strip; ac_word=$2
10427 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10429 346 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10430 82 jeremybenn
  $as_echo_n "(cached) " >&6
10431
else
10432
  if test -n "$ac_ct_STRIP"; then
10433
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10434
else
10435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436
for as_dir in $PATH
10437
do
10438
  IFS=$as_save_IFS
10439
  test -z "$as_dir" && as_dir=.
10440 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10441 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10442
    ac_cv_prog_ac_ct_STRIP="strip"
10443 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 82 jeremybenn
    break 2
10445
  fi
10446
done
10447 346 jeremybenn
  done
10448 82 jeremybenn
IFS=$as_save_IFS
10449
 
10450
fi
10451
fi
10452
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10453
if test -n "$ac_ct_STRIP"; then
10454 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10455 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
10456
else
10457 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 82 jeremybenn
$as_echo "no" >&6; }
10459
fi
10460
 
10461
  if test "x$ac_ct_STRIP" = x; then
10462
    STRIP=":"
10463
  else
10464
    case $cross_compiling:$ac_tool_warned in
10465
yes:)
10466 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10467 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10468
ac_tool_warned=yes ;;
10469
esac
10470
    STRIP=$ac_ct_STRIP
10471
  fi
10472
else
10473
  STRIP="$ac_cv_prog_STRIP"
10474
fi
10475
 
10476
fi
10477
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10478
 
10479 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10480 82 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10481 19 jeremybenn
if test -z "$MKDIR_P"; then
10482 346 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then :
10483 82 jeremybenn
  $as_echo_n "(cached) " >&6
10484 19 jeremybenn
else
10485
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10487
do
10488
  IFS=$as_save_IFS
10489
  test -z "$as_dir" && as_dir=.
10490 346 jeremybenn
    for ac_prog in mkdir gmkdir; do
10491 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10492
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10493
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10494
             'mkdir (GNU coreutils) '* | \
10495
             'mkdir (coreutils) '* | \
10496
             'mkdir (fileutils) '4.1*)
10497
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10498
               break 3;;
10499
           esac
10500
         done
10501
       done
10502 346 jeremybenn
  done
10503 19 jeremybenn
IFS=$as_save_IFS
10504
 
10505
fi
10506
 
10507
  if test "${ac_cv_path_mkdir+set}" = set; then
10508
    MKDIR_P="$ac_cv_path_mkdir -p"
10509
  else
10510
    # As a last resort, use the slow shell script.  Don't cache a
10511
    # value for MKDIR_P within a source directory, because that will
10512
    # break other packages using the cache if that directory is
10513
    # removed, or if the value is a relative name.
10514 236 jeremybenn
    test -d ./--version && rmdir ./--version
10515 19 jeremybenn
    MKDIR_P="$ac_install_sh -d"
10516
  fi
10517
fi
10518 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10519 82 jeremybenn
$as_echo "$MKDIR_P" >&6; }
10520 19 jeremybenn
 
10521
mkdir_p="$MKDIR_P"
10522
case $mkdir_p in
10523
  [\\/$]* | ?:[\\/]*) ;;
10524
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10525
esac
10526
 
10527
for ac_prog in gawk mawk nawk awk
10528
do
10529
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10530
set dummy $ac_prog; ac_word=$2
10531 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10533 346 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then :
10534 82 jeremybenn
  $as_echo_n "(cached) " >&6
10535 19 jeremybenn
else
10536
  if test -n "$AWK"; then
10537
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10538
else
10539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540
for as_dir in $PATH
10541
do
10542
  IFS=$as_save_IFS
10543
  test -z "$as_dir" && as_dir=.
10544 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10545 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10546
    ac_cv_prog_AWK="$ac_prog"
10547 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 19 jeremybenn
    break 2
10549
  fi
10550
done
10551 346 jeremybenn
  done
10552 19 jeremybenn
IFS=$as_save_IFS
10553
 
10554
fi
10555
fi
10556
AWK=$ac_cv_prog_AWK
10557
if test -n "$AWK"; then
10558 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10559 82 jeremybenn
$as_echo "$AWK" >&6; }
10560 19 jeremybenn
else
10561 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 82 jeremybenn
$as_echo "no" >&6; }
10563 19 jeremybenn
fi
10564
 
10565
 
10566
  test -n "$AWK" && break
10567
done
10568
 
10569 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10570 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10571
set x ${MAKE-make}
10572
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10573 346 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10574 82 jeremybenn
  $as_echo_n "(cached) " >&6
10575 19 jeremybenn
else
10576
  cat >conftest.make <<\_ACEOF
10577
SHELL = /bin/sh
10578
all:
10579
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10580
_ACEOF
10581
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10582
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10583
  *@@@%%%=?*=@@@%%%*)
10584
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10585
  *)
10586
    eval ac_cv_prog_make_${ac_make}_set=no;;
10587
esac
10588
rm -f conftest.make
10589
fi
10590
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10591 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10592 82 jeremybenn
$as_echo "yes" >&6; }
10593 19 jeremybenn
  SET_MAKE=
10594
else
10595 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 82 jeremybenn
$as_echo "no" >&6; }
10597 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
10598
fi
10599
 
10600
rm -rf .tst 2>/dev/null
10601
mkdir .tst 2>/dev/null
10602
if test -d .tst; then
10603
  am__leading_dot=.
10604
else
10605
  am__leading_dot=_
10606
fi
10607
rmdir .tst 2>/dev/null
10608
 
10609
DEPDIR="${am__leading_dot}deps"
10610
 
10611
ac_config_commands="$ac_config_commands depfiles"
10612
 
10613
 
10614
am_make=${MAKE-make}
10615
cat > confinc << 'END'
10616
am__doit:
10617 82 jeremybenn
        @echo this is the am__doit target
10618 19 jeremybenn
.PHONY: am__doit
10619
END
10620
# If we don't find an include directive, just comment out the code.
10621 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10622 82 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10623 19 jeremybenn
am__include="#"
10624
am__quote=
10625
_am_result=none
10626
# First try GNU make style include.
10627
echo "include confinc" > confmf
10628 82 jeremybenn
# Ignore all kinds of additional output from `make'.
10629
case `$am_make -s -f confmf 2> /dev/null` in #(
10630
*the\ am__doit\ target*)
10631
  am__include=include
10632
  am__quote=
10633
  _am_result=GNU
10634
  ;;
10635
esac
10636 19 jeremybenn
# Now try BSD make style include.
10637
if test "$am__include" = "#"; then
10638
   echo '.include "confinc"' > confmf
10639 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
10640
   *the\ am__doit\ target*)
10641
     am__include=.include
10642
     am__quote="\""
10643
     _am_result=BSD
10644
     ;;
10645
   esac
10646 19 jeremybenn
fi
10647
 
10648
 
10649 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10650 82 jeremybenn
$as_echo "$_am_result" >&6; }
10651 19 jeremybenn
rm -f confinc confmf
10652
 
10653
# Check whether --enable-dependency-tracking was given.
10654 346 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then :
10655 19 jeremybenn
  enableval=$enable_dependency_tracking;
10656
fi
10657
 
10658
if test "x$enable_dependency_tracking" != xno; then
10659
  am_depcomp="$ac_aux_dir/depcomp"
10660
  AMDEPBACKSLASH='\'
10661
fi
10662
 if test "x$enable_dependency_tracking" != xno; then
10663
  AMDEP_TRUE=
10664
  AMDEP_FALSE='#'
10665
else
10666
  AMDEP_TRUE='#'
10667
  AMDEP_FALSE=
10668
fi
10669
 
10670
 
10671
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10672
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10673
  # is not polluted with repeated "-I."
10674
  am__isrc=' -I$(srcdir)'
10675
  # test to see if srcdir already configured
10676
  if test -f $srcdir/config.status; then
10677 346 jeremybenn
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10678 19 jeremybenn
  fi
10679
fi
10680
 
10681
# test whether we have cygpath
10682
if test -z "$CYGPATH_W"; then
10683
  if (cygpath --version) >/dev/null 2>/dev/null; then
10684
    CYGPATH_W='cygpath -w'
10685
  else
10686
    CYGPATH_W=echo
10687
  fi
10688
fi
10689
 
10690
 
10691
# Define the identity of the package.
10692
 PACKAGE='or1ksim'
10693 346 jeremybenn
 VERSION='0.5.0rc1'
10694 19 jeremybenn
 
10695
 
10696
cat >>confdefs.h <<_ACEOF
10697
#define PACKAGE "$PACKAGE"
10698
_ACEOF
10699
 
10700
 
10701
cat >>confdefs.h <<_ACEOF
10702
#define VERSION "$VERSION"
10703
_ACEOF
10704
 
10705
# Some tools Automake needs.
10706
 
10707
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10708
 
10709
 
10710
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10711
 
10712
 
10713
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10714
 
10715
 
10716
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10717
 
10718
 
10719
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10720
 
10721
# We need awk for the "check" target.  The system "awk" is bad on
10722
# some platforms.
10723
# Always define AMTAR for backward compatibility.
10724
 
10725
AMTAR=${AMTAR-"${am_missing_run}tar"}
10726
 
10727
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10728
 
10729
 
10730
 
10731
 
10732
depcc="$CC"   am_compiler_list=
10733
 
10734 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10735 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10736 346 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10737 82 jeremybenn
  $as_echo_n "(cached) " >&6
10738 19 jeremybenn
else
10739
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10740
  # We make a subdir and do the tests there.  Otherwise we can end up
10741
  # making bogus files that we don't know about and never remove.  For
10742
  # instance it was reported that on HP-UX the gcc test will end up
10743
  # making a dummy file named `D' -- because `-MD' means `put the output
10744
  # in D'.
10745
  mkdir conftest.dir
10746
  # Copy depcomp to subdir because otherwise we won't find it if we're
10747
  # using a relative directory.
10748
  cp "$am_depcomp" conftest.dir
10749
  cd conftest.dir
10750
  # We will build objects and dependencies in a subdirectory because
10751
  # it helps to detect inapplicable dependency modes.  For instance
10752
  # both Tru64's cc and ICC support -MD to output dependencies as a
10753
  # side effect of compilation, but ICC will put the dependencies in
10754
  # the current directory while Tru64 will put them in the object
10755
  # directory.
10756
  mkdir sub
10757
 
10758
  am_cv_CC_dependencies_compiler_type=none
10759
  if test "$am_compiler_list" = ""; then
10760
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10761
  fi
10762 82 jeremybenn
  am__universal=false
10763
  case " $depcc " in #(
10764
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10765
     esac
10766
 
10767 19 jeremybenn
  for depmode in $am_compiler_list; do
10768
    # Setup a source with many dependencies, because some compilers
10769
    # like to wrap large dependency lists on column 80 (with \), and
10770
    # we should not choose a depcomp mode which is confused by this.
10771
    #
10772
    # We need to recreate these files for each test, as the compiler may
10773
    # overwrite some of them when testing with obscure command lines.
10774
    # This happens at least with the AIX C compiler.
10775
    : > sub/conftest.c
10776
    for i in 1 2 3 4 5 6; do
10777
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10778
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10779
      # Solaris 8's {/usr,}/bin/sh.
10780
      touch sub/conftst$i.h
10781
    done
10782
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10783
 
10784 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10785
    # mode.  It turns out that the SunPro C++ compiler does not properly
10786
    # handle `-M -o', and we need to detect this.  Also, some Intel
10787
    # versions had trouble with output in subdirs
10788
    am__obj=sub/conftest.${OBJEXT-o}
10789
    am__minus_obj="-o $am__obj"
10790 19 jeremybenn
    case $depmode in
10791 82 jeremybenn
    gcc)
10792
      # This depmode causes a compiler race in universal mode.
10793
      test "$am__universal" = false || continue
10794
      ;;
10795 19 jeremybenn
    nosideeffect)
10796
      # after this tag, mechanisms are not by side-effect, so they'll
10797
      # only be used when explicitly requested
10798
      if test "x$enable_dependency_tracking" = xyes; then
10799
        continue
10800
      else
10801
        break
10802
      fi
10803
      ;;
10804 82 jeremybenn
    msvisualcpp | msvcmsys)
10805
      # This compiler won't grok `-c -o', but also, the minuso test has
10806
      # not run yet.  These depmodes are late enough in the game, and
10807
      # so weak that their functioning should not be impacted.
10808
      am__obj=conftest.${OBJEXT-o}
10809
      am__minus_obj=
10810
      ;;
10811 19 jeremybenn
    none) break ;;
10812
    esac
10813
    if depmode=$depmode \
10814 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
10815 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10816 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10817 19 jeremybenn
         >/dev/null 2>conftest.err &&
10818
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10819
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10820 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10821 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10822
      # icc doesn't choke on unknown options, it will just issue warnings
10823
      # or remarks (even with -Werror).  So we grep stderr for any message
10824
      # that says an option was ignored or not supported.
10825
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10826
      #   icc: Command line warning: ignoring option '-M'; no argument required
10827
      # The diagnosis changed in icc 8.0:
10828
      #   icc: Command line remark: option '-MP' not supported
10829
      if (grep 'ignoring option' conftest.err ||
10830
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10831
        am_cv_CC_dependencies_compiler_type=$depmode
10832
        break
10833
      fi
10834
    fi
10835
  done
10836
 
10837
  cd ..
10838
  rm -rf conftest.dir
10839
else
10840
  am_cv_CC_dependencies_compiler_type=none
10841
fi
10842
 
10843
fi
10844 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10845 82 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10846 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10847
 
10848
 if
10849
  test "x$enable_dependency_tracking" != xno \
10850
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10851
  am__fastdepCC_TRUE=
10852
  am__fastdepCC_FALSE='#'
10853
else
10854
  am__fastdepCC_TRUE='#'
10855
  am__fastdepCC_FALSE=
10856
fi
10857
 
10858
 
10859
 
10860 91 jeremybenn
 
10861 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
10862
 
10863
 
10864
 
10865
 
10866
# make sure we are using a recent autoconf version
10867
 
10868
 
10869
# yuck.
10870
case "$target_cpu" in
10871
or32*)  CPU_ARCH=or32;
10872
        ARCH_ISA=OR32;
10873
 
10874 346 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10875 82 jeremybenn
;;
10876
dlx*)   CPU_ARCH=dlx;
10877
        ARCH_ISA=DLX;;
10878 346 jeremybenn
*)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
10879 82 jeremybenn
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
10880
        CPU_ARCH=or32;
10881
        ARCH_ISA=OR32;
10882
 
10883 346 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10884 82 jeremybenn
;;
10885
esac
10886
 
10887
# determine endianism from target CPU name. If it has "little" in the name,
10888
# then its litte endian, otherwise its big endian (default for OR1K)
10889
case "$target_cpu" in
10890
*little*)
10891 346 jeremybenn
$as_echo "#define OR32_LITTLE_ENDIAN 1" >>confdefs.h
10892 82 jeremybenn
;;
10893
       *)
10894 346 jeremybenn
$as_echo "#define OR32_BIG_ENDIAN 1" >>confdefs.h
10895 82 jeremybenn
;;
10896
esac
10897
 
10898
 
10899
 
10900 236 jeremybenn
# Set the CFLAGS we want. We put the user flags last, so that if the user
10901
# changes the optimization level, that will take precedence.
10902
CFLAGS="-g -Wall -Werror -O2 -D$ARCH_ISA $CFLAGS"
10903 82 jeremybenn
 
10904
# By default we simply use the C compiler to build assembly code.
10905
 
10906
test "${CCAS+set}" = set || CCAS=$CC
10907
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10908
 
10909
 
10910
 
10911
depcc="$CCAS"   am_compiler_list=
10912
 
10913 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10914 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10915 346 jeremybenn
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10916 82 jeremybenn
  $as_echo_n "(cached) " >&6
10917 19 jeremybenn
else
10918
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10919
  # We make a subdir and do the tests there.  Otherwise we can end up
10920
  # making bogus files that we don't know about and never remove.  For
10921
  # instance it was reported that on HP-UX the gcc test will end up
10922
  # making a dummy file named `D' -- because `-MD' means `put the output
10923
  # in D'.
10924
  mkdir conftest.dir
10925
  # Copy depcomp to subdir because otherwise we won't find it if we're
10926
  # using a relative directory.
10927
  cp "$am_depcomp" conftest.dir
10928
  cd conftest.dir
10929
  # We will build objects and dependencies in a subdirectory because
10930
  # it helps to detect inapplicable dependency modes.  For instance
10931
  # both Tru64's cc and ICC support -MD to output dependencies as a
10932
  # side effect of compilation, but ICC will put the dependencies in
10933
  # the current directory while Tru64 will put them in the object
10934
  # directory.
10935
  mkdir sub
10936
 
10937 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
10938 19 jeremybenn
  if test "$am_compiler_list" = ""; then
10939
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10940
  fi
10941 82 jeremybenn
  am__universal=false
10942
 
10943
 
10944 19 jeremybenn
  for depmode in $am_compiler_list; do
10945
    # Setup a source with many dependencies, because some compilers
10946
    # like to wrap large dependency lists on column 80 (with \), and
10947
    # we should not choose a depcomp mode which is confused by this.
10948
    #
10949
    # We need to recreate these files for each test, as the compiler may
10950
    # overwrite some of them when testing with obscure command lines.
10951
    # This happens at least with the AIX C compiler.
10952
    : > sub/conftest.c
10953
    for i in 1 2 3 4 5 6; do
10954
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10955
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10956
      # Solaris 8's {/usr,}/bin/sh.
10957
      touch sub/conftst$i.h
10958
    done
10959
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10960
 
10961 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10962
    # mode.  It turns out that the SunPro C++ compiler does not properly
10963
    # handle `-M -o', and we need to detect this.  Also, some Intel
10964
    # versions had trouble with output in subdirs
10965
    am__obj=sub/conftest.${OBJEXT-o}
10966
    am__minus_obj="-o $am__obj"
10967 19 jeremybenn
    case $depmode in
10968 82 jeremybenn
    gcc)
10969
      # This depmode causes a compiler race in universal mode.
10970
      test "$am__universal" = false || continue
10971
      ;;
10972 19 jeremybenn
    nosideeffect)
10973
      # after this tag, mechanisms are not by side-effect, so they'll
10974
      # only be used when explicitly requested
10975
      if test "x$enable_dependency_tracking" = xyes; then
10976
        continue
10977
      else
10978
        break
10979
      fi
10980
      ;;
10981 82 jeremybenn
    msvisualcpp | msvcmsys)
10982
      # This compiler won't grok `-c -o', but also, the minuso test has
10983
      # not run yet.  These depmodes are late enough in the game, and
10984
      # so weak that their functioning should not be impacted.
10985
      am__obj=conftest.${OBJEXT-o}
10986
      am__minus_obj=
10987
      ;;
10988 19 jeremybenn
    none) break ;;
10989
    esac
10990
    if depmode=$depmode \
10991 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
10992 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10993 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10994 19 jeremybenn
         >/dev/null 2>conftest.err &&
10995
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10996
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10997 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10998 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10999
      # icc doesn't choke on unknown options, it will just issue warnings
11000
      # or remarks (even with -Werror).  So we grep stderr for any message
11001
      # that says an option was ignored or not supported.
11002
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11003
      #   icc: Command line warning: ignoring option '-M'; no argument required
11004
      # The diagnosis changed in icc 8.0:
11005
      #   icc: Command line remark: option '-MP' not supported
11006
      if (grep 'ignoring option' conftest.err ||
11007
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11008 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11009 19 jeremybenn
        break
11010
      fi
11011
    fi
11012
  done
11013
 
11014
  cd ..
11015
  rm -rf conftest.dir
11016
else
11017 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11018 19 jeremybenn
fi
11019
 
11020
fi
11021 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11022 82 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11023
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11024 19 jeremybenn
 
11025
 if
11026
  test "x$enable_dependency_tracking" != xno \
11027 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11028
  am__fastdepCCAS_TRUE=
11029
  am__fastdepCCAS_FALSE='#'
11030 19 jeremybenn
else
11031 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11032
  am__fastdepCCAS_FALSE=
11033 19 jeremybenn
fi
11034
 
11035
 
11036
 
11037
ac_ext=c
11038
ac_cpp='$CPP $CPPFLAGS'
11039
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11040
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11041
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11042
if test -n "$ac_tool_prefix"; then
11043
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11044
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11045 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11047 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11048 82 jeremybenn
  $as_echo_n "(cached) " >&6
11049 19 jeremybenn
else
11050
  if test -n "$CC"; then
11051
  ac_cv_prog_CC="$CC" # Let the user override the test.
11052
else
11053
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054
for as_dir in $PATH
11055
do
11056
  IFS=$as_save_IFS
11057
  test -z "$as_dir" && as_dir=.
11058 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11059 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11060
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11061 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11062 19 jeremybenn
    break 2
11063
  fi
11064
done
11065 346 jeremybenn
  done
11066 19 jeremybenn
IFS=$as_save_IFS
11067
 
11068
fi
11069
fi
11070
CC=$ac_cv_prog_CC
11071
if test -n "$CC"; then
11072 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11073 82 jeremybenn
$as_echo "$CC" >&6; }
11074 19 jeremybenn
else
11075 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 82 jeremybenn
$as_echo "no" >&6; }
11077 19 jeremybenn
fi
11078
 
11079
 
11080
fi
11081
if test -z "$ac_cv_prog_CC"; then
11082
  ac_ct_CC=$CC
11083
  # Extract the first word of "gcc", so it can be a program name with args.
11084
set dummy gcc; ac_word=$2
11085 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11087 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11088 82 jeremybenn
  $as_echo_n "(cached) " >&6
11089 19 jeremybenn
else
11090
  if test -n "$ac_ct_CC"; then
11091
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11092
else
11093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094
for as_dir in $PATH
11095
do
11096
  IFS=$as_save_IFS
11097
  test -z "$as_dir" && as_dir=.
11098 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11099 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100
    ac_cv_prog_ac_ct_CC="gcc"
11101 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 19 jeremybenn
    break 2
11103
  fi
11104
done
11105 346 jeremybenn
  done
11106 19 jeremybenn
IFS=$as_save_IFS
11107
 
11108
fi
11109
fi
11110
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11111
if test -n "$ac_ct_CC"; then
11112 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11113 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11114 19 jeremybenn
else
11115 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 82 jeremybenn
$as_echo "no" >&6; }
11117 19 jeremybenn
fi
11118
 
11119
  if test "x$ac_ct_CC" = x; then
11120
    CC=""
11121
  else
11122
    case $cross_compiling:$ac_tool_warned in
11123
yes:)
11124 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11125 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11126 19 jeremybenn
ac_tool_warned=yes ;;
11127
esac
11128
    CC=$ac_ct_CC
11129
  fi
11130
else
11131
  CC="$ac_cv_prog_CC"
11132
fi
11133
 
11134
if test -z "$CC"; then
11135
          if test -n "$ac_tool_prefix"; then
11136
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11137
set dummy ${ac_tool_prefix}cc; ac_word=$2
11138 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11139 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11140 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11141 82 jeremybenn
  $as_echo_n "(cached) " >&6
11142 19 jeremybenn
else
11143
  if test -n "$CC"; then
11144
  ac_cv_prog_CC="$CC" # Let the user override the test.
11145
else
11146
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147
for as_dir in $PATH
11148
do
11149
  IFS=$as_save_IFS
11150
  test -z "$as_dir" && as_dir=.
11151 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11152 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11154 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11155 19 jeremybenn
    break 2
11156
  fi
11157
done
11158 346 jeremybenn
  done
11159 19 jeremybenn
IFS=$as_save_IFS
11160
 
11161
fi
11162
fi
11163
CC=$ac_cv_prog_CC
11164
if test -n "$CC"; then
11165 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11166 82 jeremybenn
$as_echo "$CC" >&6; }
11167 19 jeremybenn
else
11168 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 82 jeremybenn
$as_echo "no" >&6; }
11170 19 jeremybenn
fi
11171
 
11172
 
11173
  fi
11174
fi
11175
if test -z "$CC"; then
11176
  # Extract the first word of "cc", so it can be a program name with args.
11177
set dummy cc; ac_word=$2
11178 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11179 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11180 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11181 82 jeremybenn
  $as_echo_n "(cached) " >&6
11182 19 jeremybenn
else
11183
  if test -n "$CC"; then
11184
  ac_cv_prog_CC="$CC" # Let the user override the test.
11185
else
11186
  ac_prog_rejected=no
11187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188
for as_dir in $PATH
11189
do
11190
  IFS=$as_save_IFS
11191
  test -z "$as_dir" && as_dir=.
11192 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11193 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11194
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11195
       ac_prog_rejected=yes
11196
       continue
11197
     fi
11198
    ac_cv_prog_CC="cc"
11199 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11200 19 jeremybenn
    break 2
11201
  fi
11202
done
11203 346 jeremybenn
  done
11204 19 jeremybenn
IFS=$as_save_IFS
11205
 
11206
if test $ac_prog_rejected = yes; then
11207
  # We found a bogon in the path, so make sure we never use it.
11208
  set dummy $ac_cv_prog_CC
11209
  shift
11210
  if test $# != 0; then
11211
    # We chose a different compiler from the bogus one.
11212
    # However, it has the same basename, so the bogon will be chosen
11213
    # first if we set CC to just the basename; use the full file name.
11214
    shift
11215
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11216
  fi
11217
fi
11218
fi
11219
fi
11220
CC=$ac_cv_prog_CC
11221
if test -n "$CC"; then
11222 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11223 82 jeremybenn
$as_echo "$CC" >&6; }
11224 19 jeremybenn
else
11225 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 82 jeremybenn
$as_echo "no" >&6; }
11227 19 jeremybenn
fi
11228
 
11229
 
11230
fi
11231
if test -z "$CC"; then
11232
  if test -n "$ac_tool_prefix"; then
11233
  for ac_prog in cl.exe
11234
  do
11235
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11236
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11237 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11238 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11239 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11240 82 jeremybenn
  $as_echo_n "(cached) " >&6
11241 19 jeremybenn
else
11242
  if test -n "$CC"; then
11243
  ac_cv_prog_CC="$CC" # Let the user override the test.
11244
else
11245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246
for as_dir in $PATH
11247
do
11248
  IFS=$as_save_IFS
11249
  test -z "$as_dir" && as_dir=.
11250 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11251 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11252
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11253 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254 19 jeremybenn
    break 2
11255
  fi
11256
done
11257 346 jeremybenn
  done
11258 19 jeremybenn
IFS=$as_save_IFS
11259
 
11260
fi
11261
fi
11262
CC=$ac_cv_prog_CC
11263
if test -n "$CC"; then
11264 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11265 82 jeremybenn
$as_echo "$CC" >&6; }
11266 19 jeremybenn
else
11267 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 82 jeremybenn
$as_echo "no" >&6; }
11269 19 jeremybenn
fi
11270
 
11271
 
11272
    test -n "$CC" && break
11273
  done
11274
fi
11275
if test -z "$CC"; then
11276
  ac_ct_CC=$CC
11277
  for ac_prog in cl.exe
11278
do
11279
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11280
set dummy $ac_prog; ac_word=$2
11281 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11282 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11283 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11284 82 jeremybenn
  $as_echo_n "(cached) " >&6
11285 19 jeremybenn
else
11286
  if test -n "$ac_ct_CC"; then
11287
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11288
else
11289
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290
for as_dir in $PATH
11291
do
11292
  IFS=$as_save_IFS
11293
  test -z "$as_dir" && as_dir=.
11294 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11295 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296
    ac_cv_prog_ac_ct_CC="$ac_prog"
11297 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 19 jeremybenn
    break 2
11299
  fi
11300
done
11301 346 jeremybenn
  done
11302 19 jeremybenn
IFS=$as_save_IFS
11303
 
11304
fi
11305
fi
11306
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11307
if test -n "$ac_ct_CC"; then
11308 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11309 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11310 19 jeremybenn
else
11311 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 82 jeremybenn
$as_echo "no" >&6; }
11313 19 jeremybenn
fi
11314
 
11315
 
11316
  test -n "$ac_ct_CC" && break
11317
done
11318
 
11319
  if test "x$ac_ct_CC" = x; then
11320
    CC=""
11321
  else
11322
    case $cross_compiling:$ac_tool_warned in
11323
yes:)
11324 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11325 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11326 19 jeremybenn
ac_tool_warned=yes ;;
11327
esac
11328
    CC=$ac_ct_CC
11329
  fi
11330
fi
11331
 
11332
fi
11333
 
11334
 
11335 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11336 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11337 346 jeremybenn
as_fn_error "no acceptable C compiler found in \$PATH
11338
See \`config.log' for more details." "$LINENO" 5; }
11339 19 jeremybenn
 
11340
# Provide some information about the compiler.
11341 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11342 82 jeremybenn
set X $ac_compile
11343
ac_compiler=$2
11344 346 jeremybenn
for ac_option in --version -v -V -qversion; do
11345
  { { ac_try="$ac_compiler $ac_option >&5"
11346 19 jeremybenn
case "(($ac_try" in
11347
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348
  *) ac_try_echo=$ac_try;;
11349
esac
11350 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11351
$as_echo "$ac_try_echo"; } >&5
11352
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11353 19 jeremybenn
  ac_status=$?
11354 346 jeremybenn
  if test -s conftest.err; then
11355
    sed '10a\
11356
... rest of stderr output deleted ...
11357
         10q' conftest.err >conftest.er1
11358
    cat conftest.er1 >&5
11359
    rm -f conftest.er1 conftest.err
11360
  fi
11361
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11362
  test $ac_status = 0; }
11363
done
11364 19 jeremybenn
 
11365 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11366 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11367 346 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11368 82 jeremybenn
  $as_echo_n "(cached) " >&6
11369 19 jeremybenn
else
11370 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 19 jeremybenn
/* end confdefs.h.  */
11372
 
11373
int
11374
main ()
11375
{
11376
#ifndef __GNUC__
11377
       choke me
11378
#endif
11379
 
11380
  ;
11381
  return 0;
11382
}
11383
_ACEOF
11384 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11385 19 jeremybenn
  ac_compiler_gnu=yes
11386
else
11387 346 jeremybenn
  ac_compiler_gnu=no
11388 19 jeremybenn
fi
11389
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11391
 
11392
fi
11393 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11394 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11395
if test $ac_compiler_gnu = yes; then
11396
  GCC=yes
11397
else
11398
  GCC=
11399
fi
11400 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
11401
ac_save_CFLAGS=$CFLAGS
11402 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11403 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11404 346 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then :
11405 82 jeremybenn
  $as_echo_n "(cached) " >&6
11406 19 jeremybenn
else
11407
  ac_save_c_werror_flag=$ac_c_werror_flag
11408
   ac_c_werror_flag=yes
11409
   ac_cv_prog_cc_g=no
11410
   CFLAGS="-g"
11411 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 19 jeremybenn
/* end confdefs.h.  */
11413
 
11414
int
11415
main ()
11416
{
11417
 
11418
  ;
11419
  return 0;
11420
}
11421
_ACEOF
11422 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11423 19 jeremybenn
  ac_cv_prog_cc_g=yes
11424
else
11425 346 jeremybenn
  CFLAGS=""
11426
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 19 jeremybenn
/* end confdefs.h.  */
11428
 
11429
int
11430
main ()
11431
{
11432
 
11433
  ;
11434
  return 0;
11435
}
11436
_ACEOF
11437 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11438
 
11439 236 jeremybenn
else
11440 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
11441 19 jeremybenn
         CFLAGS="-g"
11442 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 19 jeremybenn
/* end confdefs.h.  */
11444
 
11445
int
11446
main ()
11447
{
11448
 
11449
  ;
11450
  return 0;
11451
}
11452
_ACEOF
11453 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11454 19 jeremybenn
  ac_cv_prog_cc_g=yes
11455
fi
11456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457
fi
11458
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459
fi
11460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461
   ac_c_werror_flag=$ac_save_c_werror_flag
11462
fi
11463 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11464 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
11465 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
11466
  CFLAGS=$ac_save_CFLAGS
11467
elif test $ac_cv_prog_cc_g = yes; then
11468
  if test "$GCC" = yes; then
11469
    CFLAGS="-g -O2"
11470
  else
11471
    CFLAGS="-g"
11472
  fi
11473
else
11474
  if test "$GCC" = yes; then
11475
    CFLAGS="-O2"
11476
  else
11477
    CFLAGS=
11478
  fi
11479
fi
11480 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11481 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11482 346 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then :
11483 82 jeremybenn
  $as_echo_n "(cached) " >&6
11484 19 jeremybenn
else
11485
  ac_cv_prog_cc_c89=no
11486
ac_save_CC=$CC
11487 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 19 jeremybenn
/* end confdefs.h.  */
11489
#include 
11490
#include 
11491
#include 
11492
#include 
11493
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11494
struct buf { int x; };
11495
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11496
static char *e (p, i)
11497
     char **p;
11498
     int i;
11499
{
11500
  return p[i];
11501
}
11502
static char *f (char * (*g) (char **, int), char **p, ...)
11503
{
11504
  char *s;
11505
  va_list v;
11506
  va_start (v,p);
11507
  s = g (p, va_arg (v,int));
11508
  va_end (v);
11509
  return s;
11510
}
11511
 
11512
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11513
   function prototypes and stuff, but not '\xHH' hex character constants.
11514
   These don't provoke an error unfortunately, instead are silently treated
11515
   as 'x'.  The following induces an error, until -std is added to get
11516
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11517
   array size at least.  It's necessary to write '\x00'==0 to get something
11518
   that's true only with -std.  */
11519
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11520
 
11521
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11522
   inside strings and character constants.  */
11523
#define FOO(x) 'x'
11524
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11525
 
11526
int test (int i, double x);
11527
struct s1 {int (*f) (int a);};
11528
struct s2 {int (*f) (double a);};
11529
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11530
int argc;
11531
char **argv;
11532
int
11533
main ()
11534
{
11535
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11536
  ;
11537
  return 0;
11538
}
11539
_ACEOF
11540
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11541
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11542
do
11543
  CC="$ac_save_CC $ac_arg"
11544 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
11545 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
11546
fi
11547
rm -f core conftest.err conftest.$ac_objext
11548
  test "x$ac_cv_prog_cc_c89" != "xno" && break
11549
done
11550
rm -f conftest.$ac_ext
11551
CC=$ac_save_CC
11552
 
11553
fi
11554
# AC_CACHE_VAL
11555
case "x$ac_cv_prog_cc_c89" in
11556
  x)
11557 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11558 82 jeremybenn
$as_echo "none needed" >&6; } ;;
11559 19 jeremybenn
  xno)
11560 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11561 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
11562 19 jeremybenn
  *)
11563
    CC="$CC $ac_cv_prog_cc_c89"
11564 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11565 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11566 19 jeremybenn
esac
11567 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
11568 19 jeremybenn
 
11569 346 jeremybenn
fi
11570 19 jeremybenn
 
11571
ac_ext=c
11572
ac_cpp='$CPP $CPPFLAGS'
11573
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11574
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11575
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11576
 
11577
if test "x$CC" != xcc; then
11578 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11579 82 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11580 19 jeremybenn
else
11581 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11582 82 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11583 19 jeremybenn
fi
11584 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
11585 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11586 346 jeremybenn
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11587 82 jeremybenn
  $as_echo_n "(cached) " >&6
11588 19 jeremybenn
else
11589 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590 19 jeremybenn
/* end confdefs.h.  */
11591
 
11592
int
11593
main ()
11594
{
11595
 
11596
  ;
11597
  return 0;
11598
}
11599
_ACEOF
11600
# Make sure it works both with $CC and with simple cc.
11601
# We do the test twice because some compilers refuse to overwrite an
11602
# existing .o file with -o, though they will create one.
11603
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11604
rm -f conftest2.*
11605 346 jeremybenn
if { { case "(($ac_try" in
11606 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607
  *) ac_try_echo=$ac_try;;
11608
esac
11609 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11610
$as_echo "$ac_try_echo"; } >&5
11611 19 jeremybenn
  (eval "$ac_try") 2>&5
11612
  ac_status=$?
11613 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614
  test $ac_status = 0; } &&
11615
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11616 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617
  *) ac_try_echo=$ac_try;;
11618
esac
11619 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11620
$as_echo "$ac_try_echo"; } >&5
11621 19 jeremybenn
  (eval "$ac_try") 2>&5
11622
  ac_status=$?
11623 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11624
  test $ac_status = 0; };
11625 19 jeremybenn
then
11626
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11627
  if test "x$CC" != xcc; then
11628
    # Test first that cc exists at all.
11629
    if { ac_try='cc -c conftest.$ac_ext >&5'
11630 346 jeremybenn
  { { case "(($ac_try" in
11631 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632
  *) ac_try_echo=$ac_try;;
11633
esac
11634 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11635
$as_echo "$ac_try_echo"; } >&5
11636 19 jeremybenn
  (eval "$ac_try") 2>&5
11637
  ac_status=$?
11638 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11639
  test $ac_status = 0; }; }; then
11640 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11641
      rm -f conftest2.*
11642 346 jeremybenn
      if { { case "(($ac_try" in
11643 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644
  *) ac_try_echo=$ac_try;;
11645
esac
11646 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11647
$as_echo "$ac_try_echo"; } >&5
11648 19 jeremybenn
  (eval "$ac_try") 2>&5
11649
  ac_status=$?
11650 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11651
  test $ac_status = 0; } &&
11652
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
11653 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654
  *) ac_try_echo=$ac_try;;
11655
esac
11656 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11657
$as_echo "$ac_try_echo"; } >&5
11658 19 jeremybenn
  (eval "$ac_try") 2>&5
11659
  ac_status=$?
11660 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11661
  test $ac_status = 0; };
11662 19 jeremybenn
      then
11663
        # cc works too.
11664
        :
11665
      else
11666
        # cc exists but doesn't like -o.
11667
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11668
      fi
11669
    fi
11670
  fi
11671
else
11672
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11673
fi
11674
rm -f core conftest*
11675
 
11676
fi
11677
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11678 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11679 82 jeremybenn
$as_echo "yes" >&6; }
11680 19 jeremybenn
else
11681 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 82 jeremybenn
$as_echo "no" >&6; }
11683 19 jeremybenn
 
11684 346 jeremybenn
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11685 19 jeremybenn
 
11686
fi
11687
 
11688
# FIXME: we rely on the cache variable name because
11689
# there is no other way.
11690
set dummy $CC
11691 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11692
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11693
if test "$am_t" != yes; then
11694 19 jeremybenn
   # Losing compiler, so override with the script.
11695
   # FIXME: It is wrong to rewrite CC.
11696
   # But if we don't then we get into trouble of one sort or another.
11697
   # A longer-term fix would be to have automake use am__CC in this case,
11698
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11699
   CC="$am_aux_dir/compile $CC"
11700
fi
11701
 
11702
 
11703
 
11704 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11705 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11706
set x ${MAKE-make}
11707
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11708 346 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11709 82 jeremybenn
  $as_echo_n "(cached) " >&6
11710 19 jeremybenn
else
11711
  cat >conftest.make <<\_ACEOF
11712
SHELL = /bin/sh
11713
all:
11714
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11715
_ACEOF
11716
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11717
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11718
  *@@@%%%=?*=@@@%%%*)
11719
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11720
  *)
11721
    eval ac_cv_prog_make_${ac_make}_set=no;;
11722
esac
11723
rm -f conftest.make
11724
fi
11725
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11726 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11727 82 jeremybenn
$as_echo "yes" >&6; }
11728 19 jeremybenn
  SET_MAKE=
11729
else
11730 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 82 jeremybenn
$as_echo "no" >&6; }
11732 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11733
fi
11734
 
11735
 
11736 82 jeremybenn
 
11737 19 jeremybenn
# Extract the first word of "ar", so it can be a program name with args.
11738
set dummy ar; ac_word=$2
11739 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11741 346 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then :
11742 82 jeremybenn
  $as_echo_n "(cached) " >&6
11743 19 jeremybenn
else
11744
  if test -n "$AR"; then
11745
  ac_cv_prog_AR="$AR" # Let the user override the test.
11746
else
11747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748
for as_dir in $PATH
11749
do
11750
  IFS=$as_save_IFS
11751
  test -z "$as_dir" && as_dir=.
11752 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11753 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11754
    ac_cv_prog_AR="ar"
11755 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 19 jeremybenn
    break 2
11757
  fi
11758
done
11759 346 jeremybenn
  done
11760 19 jeremybenn
IFS=$as_save_IFS
11761
 
11762
fi
11763
fi
11764
AR=$ac_cv_prog_AR
11765
if test -n "$AR"; then
11766 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11767 82 jeremybenn
$as_echo "$AR" >&6; }
11768 19 jeremybenn
else
11769 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 82 jeremybenn
$as_echo "no" >&6; }
11771 19 jeremybenn
fi
11772
 
11773
 
11774
 
11775
# Set default for ARFLAGS, since autoconf does not have a macro for it.
11776
# This allows people to set it when running configure or make
11777
test -n "$ARFLAGS" || ARFLAGS="cr"
11778
 
11779 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11780 82 jeremybenn
$as_echo_n "checking return type of signal handlers... " >&6; }
11781 346 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then :
11782 82 jeremybenn
  $as_echo_n "(cached) " >&6
11783 19 jeremybenn
else
11784 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 19 jeremybenn
/* end confdefs.h.  */
11786
#include 
11787
#include 
11788
 
11789
int
11790
main ()
11791
{
11792
return *(signal (0, 0)) (0) == 1;
11793
  ;
11794
  return 0;
11795
}
11796
_ACEOF
11797 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11798 19 jeremybenn
  ac_cv_type_signal=int
11799
else
11800 346 jeremybenn
  ac_cv_type_signal=void
11801 19 jeremybenn
fi
11802
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803
fi
11804 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11805 82 jeremybenn
$as_echo "$ac_cv_type_signal" >&6; }
11806 19 jeremybenn
 
11807
cat >>confdefs.h <<_ACEOF
11808
#define RETSIGTYPE $ac_cv_type_signal
11809
_ACEOF
11810
 
11811
 
11812 236 jeremybenn
for ac_header in unistd.h stdlib.h stdarg.h string.h strings.h      \
11813 82 jeremybenn
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
11814
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
11815 118 jeremybenn
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h  \
11816
                 limits.h
11817 346 jeremybenn
do :
11818
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11819
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11820
eval as_val=\$$as_ac_Header
11821
   if test "x$as_val" = x""yes; then :
11822 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
11823
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11824 19 jeremybenn
_ACEOF
11825
 
11826
fi
11827
 
11828
done
11829
 
11830
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
11831 346 jeremybenn
do :
11832
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11833
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11834
eval as_val=\$$as_ac_var
11835
   if test "x$as_val" = x""yes; then :
11836 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11837 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11838 19 jeremybenn
_ACEOF
11839
 
11840
fi
11841
done
11842
 
11843 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
11844 346 jeremybenn
do :
11845
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11846
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11847
eval as_val=\$$as_ac_var
11848
   if test "x$as_val" = x""yes; then :
11849 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11850 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11851 19 jeremybenn
_ACEOF
11852
 
11853
fi
11854
done
11855
 
11856
for ac_func in basename
11857 346 jeremybenn
do :
11858
  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
11859
if test "x$ac_cv_func_basename" = x""yes; then :
11860 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11861 346 jeremybenn
#define HAVE_BASENAME 1
11862 19 jeremybenn
_ACEOF
11863
 
11864
fi
11865
done
11866
 
11867 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
11868 82 jeremybenn
$as_echo_n "checking for working strcoll... " >&6; }
11869 346 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then :
11870 82 jeremybenn
  $as_echo_n "(cached) " >&6
11871 19 jeremybenn
else
11872 346 jeremybenn
  if test "$cross_compiling" = yes; then :
11873 19 jeremybenn
  ac_cv_func_strcoll_works=no
11874
else
11875 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 19 jeremybenn
/* end confdefs.h.  */
11877
$ac_includes_default
11878
int
11879
main ()
11880
{
11881
return (strcoll ("abc", "def") >= 0 ||
11882
         strcoll ("ABC", "DEF") >= 0 ||
11883
         strcoll ("123", "456") >= 0)
11884
  ;
11885
  return 0;
11886
}
11887
_ACEOF
11888 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
11889 19 jeremybenn
  ac_cv_func_strcoll_works=yes
11890
else
11891 346 jeremybenn
  ac_cv_func_strcoll_works=no
11892 19 jeremybenn
fi
11893 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11894
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11895 19 jeremybenn
fi
11896
 
11897
fi
11898 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
11899 82 jeremybenn
$as_echo "$ac_cv_func_strcoll_works" >&6; }
11900 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
11901
 
11902 346 jeremybenn
$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
11903 19 jeremybenn
 
11904
fi
11905
 
11906 346 jeremybenn
ac_fn_c_check_decl "$LINENO" "I_PUSH" "ac_cv_have_decl_I_PUSH" "\
11907 82 jeremybenn
               #include 
11908 346 jeremybenn
"
11909
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then :
11910
  ac_have_decl=1
11911 19 jeremybenn
else
11912 346 jeremybenn
  ac_have_decl=0
11913 19 jeremybenn
fi
11914
 
11915 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11916 346 jeremybenn
#define HAVE_DECL_I_PUSH $ac_have_decl
11917 19 jeremybenn
_ACEOF
11918 346 jeremybenn
ac_fn_c_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "\
11919 82 jeremybenn
               #include 
11920 346 jeremybenn
"
11921
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then :
11922
  ac_have_decl=1
11923 19 jeremybenn
else
11924 346 jeremybenn
  ac_have_decl=0
11925 19 jeremybenn
fi
11926
 
11927 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11928 346 jeremybenn
#define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl
11929 19 jeremybenn
_ACEOF
11930
 
11931 346 jeremybenn
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11932 82 jeremybenn
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11933 346 jeremybenn
if test "${ac_cv_c_bigendian+set}" = set; then :
11934 82 jeremybenn
  $as_echo_n "(cached) " >&6
11935 19 jeremybenn
else
11936 82 jeremybenn
  ac_cv_c_bigendian=unknown
11937
    # See if we're dealing with a universal compiler.
11938 346 jeremybenn
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 19 jeremybenn
/* end confdefs.h.  */
11940 82 jeremybenn
#ifndef __APPLE_CC__
11941
               not a universal capable compiler
11942
             #endif
11943
             typedef int dummy;
11944
 
11945 19 jeremybenn
_ACEOF
11946 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11947 82 jeremybenn
 
11948
        # Check for potential -arch flags.  It is not universal unless
11949 346 jeremybenn
        # there are at least two -arch flags with different values.
11950
        ac_arch=
11951
        ac_prev=
11952
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11953
         if test -n "$ac_prev"; then
11954
           case $ac_word in
11955
             i?86 | x86_64 | ppc | ppc64)
11956
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11957
                 ac_arch=$ac_word
11958
               else
11959
                 ac_cv_c_bigendian=universal
11960
                 break
11961
               fi
11962
               ;;
11963
           esac
11964
           ac_prev=
11965
         elif test "x$ac_word" = "x-arch"; then
11966
           ac_prev=arch
11967
         fi
11968
       done
11969 19 jeremybenn
fi
11970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
11972
      # See if sys/param.h defines the BYTE_ORDER macro.
11973 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974 19 jeremybenn
/* end confdefs.h.  */
11975 82 jeremybenn
#include 
11976
             #include 
11977
 
11978
int
11979
main ()
11980
{
11981
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11982
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11983
                     && LITTLE_ENDIAN)
11984
              bogus endian macros
11985
             #endif
11986
 
11987
  ;
11988
  return 0;
11989
}
11990 19 jeremybenn
_ACEOF
11991 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11992 82 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
11993 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 19 jeremybenn
/* end confdefs.h.  */
11995 82 jeremybenn
#include 
11996
                #include 
11997
 
11998 19 jeremybenn
int
11999
main ()
12000
{
12001 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
12002
                 not big endian
12003
                #endif
12004 19 jeremybenn
 
12005
  ;
12006
  return 0;
12007
}
12008
_ACEOF
12009 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12010 82 jeremybenn
  ac_cv_c_bigendian=yes
12011 19 jeremybenn
else
12012 346 jeremybenn
  ac_cv_c_bigendian=no
12013 19 jeremybenn
fi
12014
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12015
fi
12016 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017
    fi
12018
    if test $ac_cv_c_bigendian = unknown; then
12019
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12020 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 19 jeremybenn
/* end confdefs.h.  */
12022 82 jeremybenn
#include 
12023 19 jeremybenn
 
12024
int
12025
main ()
12026
{
12027 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12028
              bogus endian macros
12029
             #endif
12030 19 jeremybenn
 
12031
  ;
12032
  return 0;
12033
}
12034
_ACEOF
12035 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12036 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
12037 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 19 jeremybenn
/* end confdefs.h.  */
12039 82 jeremybenn
#include 
12040 19 jeremybenn
 
12041
int
12042
main ()
12043
{
12044 82 jeremybenn
#ifndef _BIG_ENDIAN
12045
                 not big endian
12046
                #endif
12047 19 jeremybenn
 
12048
  ;
12049
  return 0;
12050
}
12051
_ACEOF
12052 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12053 19 jeremybenn
  ac_cv_c_bigendian=yes
12054
else
12055 346 jeremybenn
  ac_cv_c_bigendian=no
12056 19 jeremybenn
fi
12057
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058 82 jeremybenn
fi
12059
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060
    fi
12061
    if test $ac_cv_c_bigendian = unknown; then
12062
      # Compile a test program.
12063 346 jeremybenn
      if test "$cross_compiling" = yes; then :
12064 82 jeremybenn
  # Try to guess by grepping values from an object file.
12065 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 19 jeremybenn
/* end confdefs.h.  */
12067 82 jeremybenn
short int ascii_mm[] =
12068
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12069
                short int ascii_ii[] =
12070
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12071
                int use_ascii (int i) {
12072
                  return ascii_mm[i] + ascii_ii[i];
12073
                }
12074
                short int ebcdic_ii[] =
12075
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12076
                short int ebcdic_mm[] =
12077
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12078
                int use_ebcdic (int i) {
12079
                  return ebcdic_mm[i] + ebcdic_ii[i];
12080
                }
12081
                extern int foo;
12082
 
12083 19 jeremybenn
int
12084
main ()
12085
{
12086 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
12087 19 jeremybenn
  ;
12088
  return 0;
12089
}
12090
_ACEOF
12091 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12092 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12093
              ac_cv_c_bigendian=yes
12094
            fi
12095
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12096
              if test "$ac_cv_c_bigendian" = unknown; then
12097
                ac_cv_c_bigendian=no
12098
              else
12099
                # finding both strings is unlikely to happen, but who knows?
12100
                ac_cv_c_bigendian=unknown
12101
              fi
12102
            fi
12103 19 jeremybenn
fi
12104
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105
else
12106 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 19 jeremybenn
/* end confdefs.h.  */
12108
$ac_includes_default
12109
int
12110
main ()
12111
{
12112
 
12113 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
12114
             union
12115
             {
12116
               long int l;
12117
               char c[sizeof (long int)];
12118
             } u;
12119
             u.l = 1;
12120
             return u.c[sizeof (long int) - 1] == 1;
12121 19 jeremybenn
 
12122
  ;
12123
  return 0;
12124
}
12125
_ACEOF
12126 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12127 19 jeremybenn
  ac_cv_c_bigendian=no
12128
else
12129 346 jeremybenn
  ac_cv_c_bigendian=yes
12130 19 jeremybenn
fi
12131 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12132
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12133 19 jeremybenn
fi
12134
 
12135 82 jeremybenn
    fi
12136 19 jeremybenn
fi
12137 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12138 82 jeremybenn
$as_echo "$ac_cv_c_bigendian" >&6; }
12139
 case $ac_cv_c_bigendian in #(
12140
   yes)
12141 346 jeremybenn
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12142 82 jeremybenn
;; #(
12143
   no)
12144
      ;; #(
12145
   universal)
12146 19 jeremybenn
 
12147 346 jeremybenn
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12148 82 jeremybenn
 
12149
     ;; #(
12150
   *)
12151 346 jeremybenn
     as_fn_error "unknown endianness
12152
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12153 82 jeremybenn
 esac
12154
 
12155
 
12156
# The test for strndup, strcasecmp and isblank fails on modern machines. I
12157
# think it's because GCC 4 does not like the way autoconf overrides the built
12158
# in type declaration. So we must check for them by steam.
12159 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strndup" >&5
12160 82 jeremybenn
$as_echo_n "checking for strndup... " >&6; }
12161 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 82 jeremybenn
/* end confdefs.h.  */
12163
#ifdef HAVE_STRING_H
12164
                                  #include 
12165
                                  #else
12166
                                  char *strndup (const char *s,
12167
                                                 size_t      n);
12168
                                  #endif
12169
int
12170
main ()
12171
{
12172
\
12173
                                const char *s = "test";
12174
                                  char       *t;
12175
                                  t = strndup (s, 3);
12176
  ;
12177
  return 0;
12178
}
12179
_ACEOF
12180 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12181 82 jeremybenn
  \
12182
 
12183 346 jeremybenn
$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
12184 82 jeremybenn
 \
12185 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12186 82 jeremybenn
$as_echo "yes" >&6; }
12187
else
12188 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189 82 jeremybenn
$as_echo "no" >&6; }
12190 19 jeremybenn
fi
12191 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12192
    conftest$ac_exeext conftest.$ac_ext
12193 19 jeremybenn
 
12194 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp" >&5
12195 82 jeremybenn
$as_echo_n "checking for strcasecmp... " >&6; }
12196 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 82 jeremybenn
/* end confdefs.h.  */
12198
#ifdef HAVE_STRINGS_H
12199
                                  #include 
12200
                                  #else
12201
                                  int strcasecmp (const char *s1,
12202
                                                  const char *s2);
12203
                                  #endif
12204
int
12205
main ()
12206
{
12207
\
12208
                                const char *s = "test";
12209
                                  const char *t = "TEST";
12210
                                  int         res;
12211
                                  res = strcasecmp (s, t);
12212
  ;
12213
  return 0;
12214
}
12215
_ACEOF
12216 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12217 82 jeremybenn
  \
12218
 
12219 346 jeremybenn
$as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
12220 82 jeremybenn
 \
12221 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12222 82 jeremybenn
$as_echo "yes" >&6; }
12223
else
12224 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 82 jeremybenn
$as_echo "no" >&6; }
12226
fi
12227 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12228
    conftest$ac_exeext conftest.$ac_ext
12229 82 jeremybenn
 
12230 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
12231 82 jeremybenn
$as_echo_n "checking for isblank... " >&6; }
12232 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 82 jeremybenn
/* end confdefs.h.  */
12234
#ifdef HAVE_CTYPE_H
12235
                                  #include 
12236
                                  #else
12237
                                  int isblank (int  c);
12238
                                  #endif
12239
int
12240
main ()
12241
{
12242
\
12243
                                return isblank ('x');
12244
  ;
12245
  return 0;
12246
}
12247
_ACEOF
12248 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12249 82 jeremybenn
  \
12250 19 jeremybenn
 
12251 346 jeremybenn
$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
12252 82 jeremybenn
 \
12253 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12254 82 jeremybenn
$as_echo "yes" >&6; }
12255
else
12256 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 82 jeremybenn
$as_echo "no" >&6; }
12258
fi
12259 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12260
    conftest$ac_exeext conftest.$ac_ext
12261 82 jeremybenn
 
12262 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
12263 346 jeremybenn
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12264
if test "x$ac_cv_type_size_t" = x""yes; then :
12265 19 jeremybenn
 
12266
else
12267
 
12268
cat >>confdefs.h <<_ACEOF
12269
#define size_t unsigned int
12270
_ACEOF
12271
 
12272
fi
12273
 
12274 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12275 82 jeremybenn
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12276 346 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then :
12277 82 jeremybenn
  $as_echo_n "(cached) " >&6
12278 19 jeremybenn
else
12279 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 19 jeremybenn
/* end confdefs.h.  */
12281
#include 
12282
#include 
12283
 
12284
int
12285
main ()
12286
{
12287
struct tm tm;
12288
                                     int *p = &tm.tm_sec;
12289 82 jeremybenn
                                     return !p;
12290 19 jeremybenn
  ;
12291
  return 0;
12292
}
12293
_ACEOF
12294 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12295 19 jeremybenn
  ac_cv_struct_tm=time.h
12296
else
12297 346 jeremybenn
  ac_cv_struct_tm=sys/time.h
12298 19 jeremybenn
fi
12299
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300
fi
12301 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12302 82 jeremybenn
$as_echo "$ac_cv_struct_tm" >&6; }
12303 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
12304
 
12305 346 jeremybenn
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12306 19 jeremybenn
 
12307
fi
12308
 
12309
 
12310
# Checks for library functions (for argtable2).
12311
for ac_header in stdlib.h
12312 346 jeremybenn
do :
12313
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12314
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12315 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12316 346 jeremybenn
#define HAVE_STDLIB_H 1
12317 19 jeremybenn
_ACEOF
12318
 
12319
fi
12320
 
12321
done
12322
 
12323 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12324 82 jeremybenn
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12325 346 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
12326 82 jeremybenn
  $as_echo_n "(cached) " >&6
12327 19 jeremybenn
else
12328 346 jeremybenn
  if test "$cross_compiling" = yes; then :
12329 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12330
else
12331 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 19 jeremybenn
/* end confdefs.h.  */
12333
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12334
# include 
12335
#else
12336
char *malloc ();
12337
#endif
12338
 
12339
int
12340
main ()
12341
{
12342
return ! malloc (0);
12343
  ;
12344
  return 0;
12345
}
12346
_ACEOF
12347 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12348 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
12349
else
12350 346 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12351 19 jeremybenn
fi
12352 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12353
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12354 19 jeremybenn
fi
12355
 
12356
fi
12357 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12358 82 jeremybenn
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12359 346 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then :
12360 19 jeremybenn
 
12361 346 jeremybenn
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12362 19 jeremybenn
 
12363
else
12364 346 jeremybenn
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12365 19 jeremybenn
 
12366
   case " $LIBOBJS " in
12367
  *" malloc.$ac_objext "* ) ;;
12368
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12369
 ;;
12370
esac
12371
 
12372
 
12373 346 jeremybenn
$as_echo "#define malloc rpl_malloc" >>confdefs.h
12374 19 jeremybenn
 
12375
fi
12376
 
12377
 
12378
for ac_func in strftime
12379 346 jeremybenn
do :
12380
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12381
if test "x$ac_cv_func_strftime" = x""yes; then :
12382 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12383 346 jeremybenn
#define HAVE_STRFTIME 1
12384 19 jeremybenn
_ACEOF
12385
 
12386
else
12387
  # strftime is in -lintl on SCO UNIX.
12388 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12389 82 jeremybenn
$as_echo_n "checking for strftime in -lintl... " >&6; }
12390 346 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12391 82 jeremybenn
  $as_echo_n "(cached) " >&6
12392 19 jeremybenn
else
12393
  ac_check_lib_save_LIBS=$LIBS
12394
LIBS="-lintl  $LIBS"
12395 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 19 jeremybenn
/* end confdefs.h.  */
12397
 
12398
/* Override any GCC internal prototype to avoid an error.
12399
   Use char because int might match the return type of a GCC
12400
   builtin and then its argument prototype would still apply.  */
12401
#ifdef __cplusplus
12402
extern "C"
12403
#endif
12404
char strftime ();
12405
int
12406
main ()
12407
{
12408
return strftime ();
12409
  ;
12410
  return 0;
12411
}
12412
_ACEOF
12413 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12414 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
12415
else
12416 346 jeremybenn
  ac_cv_lib_intl_strftime=no
12417 19 jeremybenn
fi
12418 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12419
    conftest$ac_exeext conftest.$ac_ext
12420 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12421
fi
12422 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12423 82 jeremybenn
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12424 346 jeremybenn
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12425
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12426 19 jeremybenn
 
12427
LIBS="-lintl $LIBS"
12428
fi
12429
 
12430
fi
12431
done
12432
 
12433 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12434 82 jeremybenn
$as_echo_n "checking for working strtod... " >&6; }
12435 346 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then :
12436 82 jeremybenn
  $as_echo_n "(cached) " >&6
12437 19 jeremybenn
else
12438 346 jeremybenn
  if test "$cross_compiling" = yes; then :
12439 19 jeremybenn
  ac_cv_func_strtod=no
12440
else
12441 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 19 jeremybenn
/* end confdefs.h.  */
12443
 
12444
$ac_includes_default
12445
#ifndef strtod
12446
double strtod ();
12447
#endif
12448
int
12449
main()
12450
{
12451
  {
12452
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12453
    char *string = " +69";
12454
    char *term;
12455
    double value;
12456
    value = strtod (string, &term);
12457
    if (value != 69 || term != (string + 4))
12458
      return 1;
12459
  }
12460
 
12461
  {
12462
    /* Under Solaris 2.4, strtod returns the wrong value for the
12463
       terminating character under some conditions.  */
12464
    char *string = "NaN";
12465
    char *term;
12466
    strtod (string, &term);
12467
    if (term != string && *(term - 1) == 0)
12468
      return 1;
12469
  }
12470
  return 0;
12471
}
12472
 
12473
_ACEOF
12474 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12475 19 jeremybenn
  ac_cv_func_strtod=yes
12476
else
12477 346 jeremybenn
  ac_cv_func_strtod=no
12478 19 jeremybenn
fi
12479 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12480
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12481 19 jeremybenn
fi
12482
 
12483
fi
12484 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12485 82 jeremybenn
$as_echo "$ac_cv_func_strtod" >&6; }
12486 19 jeremybenn
if test $ac_cv_func_strtod = no; then
12487
  case " $LIBOBJS " in
12488
  *" strtod.$ac_objext "* ) ;;
12489
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12490
 ;;
12491
esac
12492
 
12493 346 jeremybenn
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12494
if test "x$ac_cv_func_pow" = x""yes; then :
12495 19 jeremybenn
 
12496
fi
12497
 
12498
if test $ac_cv_func_pow = no; then
12499 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12500 82 jeremybenn
$as_echo_n "checking for pow in -lm... " >&6; }
12501 346 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then :
12502 82 jeremybenn
  $as_echo_n "(cached) " >&6
12503 19 jeremybenn
else
12504
  ac_check_lib_save_LIBS=$LIBS
12505
LIBS="-lm  $LIBS"
12506 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507 19 jeremybenn
/* end confdefs.h.  */
12508
 
12509
/* Override any GCC internal prototype to avoid an error.
12510
   Use char because int might match the return type of a GCC
12511
   builtin and then its argument prototype would still apply.  */
12512
#ifdef __cplusplus
12513
extern "C"
12514
#endif
12515
char pow ();
12516
int
12517
main ()
12518
{
12519
return pow ();
12520
  ;
12521
  return 0;
12522
}
12523
_ACEOF
12524 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12525 19 jeremybenn
  ac_cv_lib_m_pow=yes
12526
else
12527 346 jeremybenn
  ac_cv_lib_m_pow=no
12528 19 jeremybenn
fi
12529 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12530
    conftest$ac_exeext conftest.$ac_ext
12531 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12532
fi
12533 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12534 82 jeremybenn
$as_echo "$ac_cv_lib_m_pow" >&6; }
12535 346 jeremybenn
if test "x$ac_cv_lib_m_pow" = x""yes; then :
12536 19 jeremybenn
  POW_LIB=-lm
12537
else
12538 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12539 82 jeremybenn
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12540 19 jeremybenn
fi
12541
 
12542
fi
12543
 
12544
fi
12545
 
12546
for ac_func in bzero strchr strcspn strrchr strtol
12547 346 jeremybenn
do :
12548
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12549
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12550
eval as_val=\$$as_ac_var
12551
   if test "x$as_val" = x""yes; then :
12552 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12553 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12554 19 jeremybenn
_ACEOF
12555
 
12556
fi
12557
done
12558
 
12559 346 jeremybenn
ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12560
if test "x$ac_cv_func_getopt_long" = x""yes; then :
12561 19 jeremybenn
  SYS_GETOPTLONG=1
12562
else
12563
  SYS_GETOPTLONG=0
12564
fi
12565
 
12566 346 jeremybenn
ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
12567
if test "x$ac_cv_func_regcomp" = x""yes; then :
12568 19 jeremybenn
  SYS_REGEX=1
12569
else
12570
  SYS_REGEX=0
12571
fi
12572
 
12573 346 jeremybenn
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
12574
if test "x$ac_cv_func_strptime" = x""yes; then :
12575 19 jeremybenn
  SYS_STRPTIME=1
12576
else
12577
  SYS_STRPTIME=0
12578
fi
12579
 
12580
 
12581
# Define automake conditionals (for argtable2)
12582
 if test "$SYS_GETOPTLONG" = "1"; then
12583
  USE_SYS_GETOPTLONG_TRUE=
12584
  USE_SYS_GETOPTLONG_FALSE='#'
12585
else
12586
  USE_SYS_GETOPTLONG_TRUE='#'
12587
  USE_SYS_GETOPTLONG_FALSE=
12588
fi
12589
 
12590
 if test "$SYS_REGEX" = "1"; then
12591
  USE_ARGREX_TRUE=
12592
  USE_ARGREX_FALSE='#'
12593
else
12594
  USE_ARGREX_TRUE='#'
12595
  USE_ARGREX_FALSE=
12596
fi
12597
 
12598
 if test "$SYS_STRPTIME" = "1"; then
12599
  USE_ARGDATE_TRUE=
12600
  USE_ARGDATE_FALSE='#'
12601
else
12602
  USE_ARGDATE_TRUE='#'
12603
  USE_ARGDATE_FALSE=
12604
fi
12605
 
12606
 
12607
# check for "long long" (added by Erez)
12608 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 19 jeremybenn
/* end confdefs.h.  */
12610
 
12611
int
12612
main ()
12613
{
12614
long long ll; unsigned long long ull;
12615
  ;
12616
  return 0;
12617
}
12618
_ACEOF
12619 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12620 19 jeremybenn
 
12621 346 jeremybenn
$as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12622 19 jeremybenn
 
12623
fi
12624
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625
 
12626
# check for {u,}int{8,16,32}_t in inttypes.h.
12627 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
12628
"
12629
if test "x$ac_cv_type_uint8_t" = x""yes; then :
12630 82 jeremybenn
 
12631 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12632
#define HAVE_UINT8_T 1
12633
_ACEOF
12634
 
12635
 
12636
fi
12637 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
12638
"
12639
if test "x$ac_cv_type_uint16_t" = x""yes; then :
12640 82 jeremybenn
 
12641 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12642
#define HAVE_UINT16_T 1
12643
_ACEOF
12644
 
12645
 
12646
fi
12647 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
12648
"
12649
if test "x$ac_cv_type_uint32_t" = x""yes; then :
12650 82 jeremybenn
 
12651 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12652
#define HAVE_UINT32_T 1
12653
_ACEOF
12654
 
12655
 
12656
fi
12657
 
12658 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
12659
"
12660
if test "x$ac_cv_type_int8_t" = x""yes; then :
12661 82 jeremybenn
 
12662 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12663
#define HAVE_INT8_T 1
12664
_ACEOF
12665
 
12666
 
12667
fi
12668 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
12669
"
12670
if test "x$ac_cv_type_int16_t" = x""yes; then :
12671 82 jeremybenn
 
12672 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12673
#define HAVE_INT16_T 1
12674
_ACEOF
12675
 
12676
 
12677
fi
12678 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
12679
"
12680
if test "x$ac_cv_type_int32_t" = x""yes; then :
12681 19 jeremybenn
 
12682 82 jeremybenn
cat >>confdefs.h <<_ACEOF
12683
#define HAVE_INT32_T 1
12684
_ACEOF
12685
 
12686
 
12687
fi
12688
 
12689
 
12690 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
12691
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12692
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12693
# This bug is HP SR number 8606223364.
12694 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12695 82 jeremybenn
$as_echo_n "checking size of char... " >&6; }
12696 346 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then :
12697 82 jeremybenn
  $as_echo_n "(cached) " >&6
12698 19 jeremybenn
else
12699 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12700 19 jeremybenn
 
12701
else
12702 346 jeremybenn
  if test "$ac_cv_type_char" = yes; then
12703
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12704 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12705 346 jeremybenn
{ as_fn_set_status 77
12706
as_fn_error "cannot compute sizeof (char)
12707
See \`config.log' for more details." "$LINENO" 5; }; }
12708 19 jeremybenn
   else
12709
     ac_cv_sizeof_char=0
12710
   fi
12711
fi
12712 346 jeremybenn
 
12713 19 jeremybenn
fi
12714 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12715 82 jeremybenn
$as_echo "$ac_cv_sizeof_char" >&6; }
12716 19 jeremybenn
 
12717
 
12718
 
12719
cat >>confdefs.h <<_ACEOF
12720
#define SIZEOF_CHAR $ac_cv_sizeof_char
12721
_ACEOF
12722
 
12723
 
12724
# The cast to long int works around a bug in the HP C Compiler
12725
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12726
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12727
# This bug is HP SR number 8606223364.
12728 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12729 82 jeremybenn
$as_echo_n "checking size of short... " >&6; }
12730 346 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then :
12731 82 jeremybenn
  $as_echo_n "(cached) " >&6
12732 19 jeremybenn
else
12733 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12734 19 jeremybenn
 
12735
else
12736 346 jeremybenn
  if test "$ac_cv_type_short" = yes; then
12737
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12738 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12739 346 jeremybenn
{ as_fn_set_status 77
12740
as_fn_error "cannot compute sizeof (short)
12741
See \`config.log' for more details." "$LINENO" 5; }; }
12742 19 jeremybenn
   else
12743
     ac_cv_sizeof_short=0
12744
   fi
12745
fi
12746 346 jeremybenn
 
12747 19 jeremybenn
fi
12748 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12749 82 jeremybenn
$as_echo "$ac_cv_sizeof_short" >&6; }
12750 19 jeremybenn
 
12751
 
12752
 
12753
cat >>confdefs.h <<_ACEOF
12754
#define SIZEOF_SHORT $ac_cv_sizeof_short
12755
_ACEOF
12756
 
12757
 
12758
# The cast to long int works around a bug in the HP C Compiler
12759
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12760
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12761
# This bug is HP SR number 8606223364.
12762 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12763 82 jeremybenn
$as_echo_n "checking size of int... " >&6; }
12764 346 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then :
12765 82 jeremybenn
  $as_echo_n "(cached) " >&6
12766 19 jeremybenn
else
12767 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12768 19 jeremybenn
 
12769
else
12770 346 jeremybenn
  if test "$ac_cv_type_int" = yes; then
12771
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12772 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12773 346 jeremybenn
{ as_fn_set_status 77
12774
as_fn_error "cannot compute sizeof (int)
12775
See \`config.log' for more details." "$LINENO" 5; }; }
12776 19 jeremybenn
   else
12777
     ac_cv_sizeof_int=0
12778
   fi
12779
fi
12780 346 jeremybenn
 
12781 19 jeremybenn
fi
12782 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12783 82 jeremybenn
$as_echo "$ac_cv_sizeof_int" >&6; }
12784 19 jeremybenn
 
12785
 
12786
 
12787
cat >>confdefs.h <<_ACEOF
12788
#define SIZEOF_INT $ac_cv_sizeof_int
12789
_ACEOF
12790
 
12791
 
12792
# The cast to long int works around a bug in the HP C Compiler
12793
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12794
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12795
# This bug is HP SR number 8606223364.
12796 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12797 82 jeremybenn
$as_echo_n "checking size of long... " >&6; }
12798 346 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then :
12799 82 jeremybenn
  $as_echo_n "(cached) " >&6
12800 19 jeremybenn
else
12801 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12802 19 jeremybenn
 
12803
else
12804 346 jeremybenn
  if test "$ac_cv_type_long" = yes; then
12805
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12806 233 julius
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12807 346 jeremybenn
{ as_fn_set_status 77
12808
as_fn_error "cannot compute sizeof (long)
12809
See \`config.log' for more details." "$LINENO" 5; }; }
12810 233 julius
   else
12811
     ac_cv_sizeof_long=0
12812
   fi
12813 230 jeremybenn
fi
12814 346 jeremybenn
 
12815 230 jeremybenn
fi
12816 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12817 233 julius
$as_echo "$ac_cv_sizeof_long" >&6; }
12818 230 jeremybenn
 
12819
 
12820
 
12821 233 julius
cat >>confdefs.h <<_ACEOF
12822
#define SIZEOF_LONG $ac_cv_sizeof_long
12823 230 jeremybenn
_ACEOF
12824
 
12825
 
12826 233 julius
# The cast to long int works around a bug in the HP C Compiler
12827
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12828
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12829
# This bug is HP SR number 8606223364.
12830 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12831 233 julius
$as_echo_n "checking size of long long... " >&6; }
12832 346 jeremybenn
if test "${ac_cv_sizeof_long_long+set}" = set; then :
12833 233 julius
  $as_echo_n "(cached) " >&6
12834 230 jeremybenn
else
12835 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12836 230 jeremybenn
 
12837
else
12838 346 jeremybenn
  if test "$ac_cv_type_long_long" = yes; then
12839
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12840 230 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12841 346 jeremybenn
{ as_fn_set_status 77
12842
as_fn_error "cannot compute sizeof (long long)
12843
See \`config.log' for more details." "$LINENO" 5; }; }
12844 230 jeremybenn
   else
12845 233 julius
     ac_cv_sizeof_long_long=0
12846 19 jeremybenn
   fi
12847
fi
12848 346 jeremybenn
 
12849 19 jeremybenn
fi
12850 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12851 233 julius
$as_echo "$ac_cv_sizeof_long_long" >&6; }
12852 19 jeremybenn
 
12853
 
12854
 
12855
cat >>confdefs.h <<_ACEOF
12856 233 julius
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12857 19 jeremybenn
_ACEOF
12858
 
12859
 
12860
 
12861
#Check for compare function type for qsort (needed by some Linuxes)
12862 346 jeremybenn
ac_fn_c_check_type "$LINENO" "__compar_fn_t" "ac_cv_type___compar_fn_t" "$ac_includes_default"
12863
if test "x$ac_cv_type___compar_fn_t" = x""yes; then :
12864 19 jeremybenn
 
12865
cat >>confdefs.h <<_ACEOF
12866
#define HAVE___COMPAR_FN_T 1
12867
_ACEOF
12868
 
12869
 
12870
fi
12871
 
12872
 
12873
# check for GNU readline
12874 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
12875 82 jeremybenn
$as_echo_n "checking for add_history in -lreadline... " >&6; }
12876 346 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then :
12877 82 jeremybenn
  $as_echo_n "(cached) " >&6
12878 19 jeremybenn
else
12879
  ac_check_lib_save_LIBS=$LIBS
12880
LIBS="-lreadline  $LIBS"
12881 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882 19 jeremybenn
/* end confdefs.h.  */
12883
 
12884
/* Override any GCC internal prototype to avoid an error.
12885
   Use char because int might match the return type of a GCC
12886
   builtin and then its argument prototype would still apply.  */
12887
#ifdef __cplusplus
12888
extern "C"
12889
#endif
12890
char add_history ();
12891
int
12892
main ()
12893
{
12894
return add_history ();
12895
  ;
12896
  return 0;
12897
}
12898
_ACEOF
12899 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12900 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
12901
else
12902 346 jeremybenn
  ac_cv_lib_readline_add_history=no
12903 19 jeremybenn
fi
12904 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12905
    conftest$ac_exeext conftest.$ac_ext
12906 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12907
fi
12908 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
12909 82 jeremybenn
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
12910 346 jeremybenn
if test "x$ac_cv_lib_readline_add_history" = x""yes; then :
12911 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12912
#define HAVE_LIBREADLINE 1
12913
_ACEOF
12914
 
12915
  LIBS="-lreadline $LIBS"
12916
 
12917
fi
12918
 
12919
 
12920
# yuck
12921
case "$host_os" in
12922
aix*)   prefer_curses=yes ;;
12923
esac
12924
 
12925
case "$host_cpu" in
12926
*cray*) LOCAL_CFLAGS=-DCRAY ;;
12927
esac
12928
 
12929
case "$host_os" in
12930
isc*)   LOCAL_CFLAGS=-Disc386 ;;
12931
esac
12932
 
12933
case "$host_os" in
12934
solaris*) LIBS="-lsocket -lnsl" ;;
12935
esac
12936
 
12937
# define options
12938 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
12939 82 jeremybenn
$as_echo_n "checking whether to enable profiling... " >&6; }
12940 19 jeremybenn
# Check whether --enable-profiling was given.
12941 346 jeremybenn
if test "${enable_profiling+set}" = set; then :
12942 19 jeremybenn
  enableval=$enable_profiling;
12943
    case "$enableval" in
12944
        yes) profile="-pg" ;;
12945
    esac
12946
 
12947
fi
12948
 
12949 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
12950 82 jeremybenn
$as_echo "${enable_profiling-no}" >&6; }
12951 19 jeremybenn
 
12952
execution="1"
12953
 
12954
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12955 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which execution style to use" >&5
12956 82 jeremybenn
$as_echo_n "checking which execution style to use... " >&6; }
12957 19 jeremybenn
# Check whether --enable-execution was given.
12958 346 jeremybenn
if test "${enable_execution+set}" = set; then :
12959 19 jeremybenn
  enableval=$enable_execution;
12960
    case "$enableval" in
12961
    simple)
12962
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12963
      execution="0"
12964 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple" >&5
12965 82 jeremybenn
$as_echo "simple" >&6; }
12966 19 jeremybenn
      ;;
12967
    complex)
12968
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12969
      execution="1"
12970 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12971 82 jeremybenn
$as_echo "complex" >&6; }
12972 19 jeremybenn
      ;;
12973
    dynamic)
12974
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12975
      execution="2"
12976 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
12977 82 jeremybenn
$as_echo "dynamic" >&6; }
12978 19 jeremybenn
      ;;
12979
    *)
12980 346 jeremybenn
      as_fn_error "\"execution must one of simple/complex/dynamic\"" "$LINENO" 5
12981 19 jeremybenn
      ;;
12982
    esac
12983
 
12984
else
12985
 
12986 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12987 82 jeremybenn
$as_echo "complex" >&6; }
12988 19 jeremybenn
 
12989
fi
12990
 
12991
 
12992
eth_phy="0"
12993 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ethernet phy emulation" >&5
12994 82 jeremybenn
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
12995 19 jeremybenn
# Check whether --enable-ethphy was given.
12996 346 jeremybenn
if test "${enable_ethphy+set}" = set; then :
12997 19 jeremybenn
  enableval=$enable_ethphy;
12998
    case "$enableval" in
12999
  no)  eth_phy="0" ;;
13000
        yes) eth_phy="1" ;;
13001
    esac
13002
 
13003
fi
13004
 
13005 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_eth_phy-no}" >&5
13006 82 jeremybenn
$as_echo "${enable_eth_phy-no}" >&6; }
13007 19 jeremybenn
 
13008 127 jeremybenn
unsigned_xori="0"
13009 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether l.xori takes an unsigned immediate operand" >&5
13010 127 jeremybenn
$as_echo_n "checking whether l.xori takes an unsigned immediate operand... " >&6; }
13011
# Check whether --enable-unsigned-xori was given.
13012 346 jeremybenn
if test "${enable_unsigned_xori+set}" = set; then :
13013 127 jeremybenn
  enableval=$enable_unsigned_xori;
13014
    case "$enableval" in
13015
  no)  unsigned_xori="0" ;;
13016
        yes) unsigned_xori="1" ;;
13017
    esac
13018 19 jeremybenn
 
13019 127 jeremybenn
fi
13020
 
13021 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_unsigned_xori-no}" >&5
13022 127 jeremybenn
$as_echo "${enable_unsigned_xori-no}" >&6; }
13023
 
13024 19 jeremybenn
raw_range_stats="0"
13025 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use raw range stats" >&5
13026 82 jeremybenn
$as_echo_n "checking whether to use raw range stats... " >&6; }
13027 19 jeremybenn
# Check whether --enable-range_stats was given.
13028 346 jeremybenn
if test "${enable_range_stats+set}" = set; then :
13029 19 jeremybenn
  enableval=$enable_range_stats;
13030
    case "$enableval" in
13031
  no)  raw_range_stats="0" ;;
13032
        yes) raw_range_stats="1" simple_execution="1" ;;
13033
    esac
13034
 
13035
fi
13036
 
13037 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_range_stats-no}" >&5
13038 82 jeremybenn
$as_echo "${enable_range_stats-no}" >&6; }
13039 19 jeremybenn
 
13040
# check for --enable-debug argument (for argtable2)
13041
# Check whether --enable-debug was given.
13042 346 jeremybenn
if test "${enable_debug+set}" = set; then :
13043 19 jeremybenn
  enableval=$enable_debug;
13044
       case $enableval in
13045
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
13046
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
13047
          *)   echo "illegal argument to --enable-debug" & exit 1;;
13048
       esac
13049
 
13050
else
13051
  DEBUGFLAGS="-DNDEBUG"
13052
 
13053
fi
13054
 
13055
 
13056
 
13057
 
13058
cat >>confdefs.h <<_ACEOF
13059
#define RAW_RANGE_STATS $raw_range_stats
13060
_ACEOF
13061
 
13062
 
13063
cat >>confdefs.h <<_ACEOF
13064
#define HAVE_ETH_PHY $eth_phy
13065
_ACEOF
13066
 
13067
 
13068
cat >>confdefs.h <<_ACEOF
13069 127 jeremybenn
#define HAVE_UNSIGNED_XORI $unsigned_xori
13070
_ACEOF
13071
 
13072
 
13073
cat >>confdefs.h <<_ACEOF
13074 19 jeremybenn
#define SIMPLE_EXECUTION $execution == 0
13075
_ACEOF
13076
 
13077
 
13078
cat >>confdefs.h <<_ACEOF
13079
#define COMPLEX_EXECUTION $execution == 1
13080
_ACEOF
13081
 
13082
 
13083
cat >>confdefs.h <<_ACEOF
13084
#define DYNAMIC_EXECUTION $execution == 2
13085
_ACEOF
13086
 
13087
 if test x$execution = x1; then
13088
  GENERATE_NEEDED_TRUE=
13089
  GENERATE_NEEDED_FALSE='#'
13090
else
13091
  GENERATE_NEEDED_TRUE='#'
13092
  GENERATE_NEEDED_FALSE=
13093
fi
13094
 
13095
 if test x$execution = x2; then
13096
  DYNAMIC_EXECUTION_TRUE=
13097
  DYNAMIC_EXECUTION_FALSE='#'
13098
else
13099
  DYNAMIC_EXECUTION_TRUE='#'
13100
  DYNAMIC_EXECUTION_FALSE=
13101
fi
13102
 
13103
 
13104
 
13105
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
13106
 
13107 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
13108
# ourselves. This stops runtest complaining
13109
if test x"$DEJAGNU" = x
13110
then
13111 96 jeremybenn
  DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
13112 90 jeremybenn
fi
13113
 
13114 96 jeremybenn
 
13115
 
13116
# The following line will override the default definition of the srcdir, and
13117
# ensure that short names are used for the test names.
13118
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
13119
 
13120
 
13121 19 jeremybenn
BUILD_DIR=`pwd`
13122
 
13123
 
13124
 
13125
 
13126
 
13127
 
13128
 
13129
 
13130
 
13131
 
13132
 
13133
 
13134
 
13135
 
13136
 
13137
 
13138
 
13139
 
13140 346 jeremybenn
$as_echo "#define HAVE_EXECUTION 1" >>confdefs.h
13141 19 jeremybenn
 
13142
 
13143
# yuck
13144
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
13145
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
13146
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
13147
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
13148
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
13149 233 julius
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2 \
13150
-I\${top_srcdir}/softfloat"
13151 19 jeremybenn
 
13152
 
13153 233 julius
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile softfloat/Makefile debug/Makefile doc/Makefile mmu/Makefile peripheral/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile port/Makefile support/Makefile testsuite/Makefile testsuite/config/Makefile testsuite/lib/Makefile testsuite/libsim.tests/Makefile testsuite/or1ksim.tests/Makefile testsuite/test-code/Makefile testsuite/test-code/lib-iftest/Makefile testsuite/test-code/lib-inttest/Makefile testsuite/test-code/lib-jtag/Makefile testsuite/test-code/lib-upcalls/Makefile tick/Makefile vapi/Makefile"
13154 19 jeremybenn
 
13155
 
13156
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
13157
case "$CPU_ARCH" in
13158
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
13159
;;
13160
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
13161
;;
13162
esac
13163
 
13164 82 jeremybenn
# Generate the output
13165
 
13166
 
13167 19 jeremybenn
cat >confcache <<\_ACEOF
13168
# This file is a shell script that caches the results of configure
13169
# tests run on this system so they can be shared between configure
13170
# scripts and configure runs, see configure's option --config-cache.
13171
# It is not useful on other systems.  If it contains results you don't
13172
# want to keep, you may remove or edit it.
13173
#
13174
# config.status only pays attention to the cache file if you give it
13175
# the --recheck option to rerun configure.
13176
#
13177
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13178
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13179
# following values.
13180
 
13181
_ACEOF
13182
 
13183
# The following way of writing the cache mishandles newlines in values,
13184
# but we know of no workaround that is simple, portable, and efficient.
13185
# So, we kill variables containing newlines.
13186
# Ultrix sh set writes to stderr and can't be redirected directly,
13187
# and sets the high bit in the cache file unless we assign to the vars.
13188
(
13189
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13190
    eval ac_val=\$$ac_var
13191
    case $ac_val in #(
13192
    *${as_nl}*)
13193
      case $ac_var in #(
13194 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13195 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13196 19 jeremybenn
      esac
13197
      case $ac_var in #(
13198
      _ | IFS | as_nl) ;; #(
13199 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13200 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
13201 19 jeremybenn
      esac ;;
13202
    esac
13203
  done
13204
 
13205
  (set) 2>&1 |
13206
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13207
    *${as_nl}ac_space=\ *)
13208 346 jeremybenn
      # `set' does not quote correctly, so add quotes: double-quote
13209
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13210 19 jeremybenn
      sed -n \
13211
        "s/'/'\\\\''/g;
13212
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13213
      ;; #(
13214
    *)
13215
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13216
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13217
      ;;
13218
    esac |
13219
    sort
13220
) |
13221
  sed '
13222
     /^ac_cv_env_/b end
13223
     t clear
13224
     :clear
13225
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13226
     t end
13227
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13228
     :end' >>confcache
13229
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13230
  if test -w "$cache_file"; then
13231
    test "x$cache_file" != "x/dev/null" &&
13232 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13233 82 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
13234 19 jeremybenn
    cat confcache >$cache_file
13235
  else
13236 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13237 82 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13238 19 jeremybenn
  fi
13239
fi
13240
rm -f confcache
13241
 
13242
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13243
# Let make expand exec_prefix.
13244
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13245
 
13246
DEFS=-DHAVE_CONFIG_H
13247
 
13248
ac_libobjs=
13249
ac_ltlibobjs=
13250
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13251
  # 1. Remove the extension, and $U if already installed.
13252
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13253 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13254 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13255
  #    will be set to the directory where LIBOBJS objects are built.
13256 346 jeremybenn
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13257
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13258 19 jeremybenn
done
13259
LIBOBJS=$ac_libobjs
13260
 
13261
LTLIBOBJS=$ac_ltlibobjs
13262
 
13263
 
13264
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13265 346 jeremybenn
  as_fn_error "conditional \"AMDEP\" was never defined.
13266
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13267 19 jeremybenn
fi
13268
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13269 346 jeremybenn
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13270
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13271 19 jeremybenn
fi
13272 82 jeremybenn
 if test -n "$EXEEXT"; then
13273
  am__EXEEXT_TRUE=
13274
  am__EXEEXT_FALSE='#'
13275
else
13276
  am__EXEEXT_TRUE='#'
13277
  am__EXEEXT_FALSE=
13278
fi
13279
 
13280
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13281 346 jeremybenn
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13282
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13283 19 jeremybenn
fi
13284 82 jeremybenn
 
13285 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
13286 346 jeremybenn
  as_fn_error "conditional \"USE_SYS_GETOPTLONG\" was never defined.
13287
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13288 19 jeremybenn
fi
13289
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
13290 346 jeremybenn
  as_fn_error "conditional \"USE_ARGREX\" was never defined.
13291
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13292 19 jeremybenn
fi
13293
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
13294 346 jeremybenn
  as_fn_error "conditional \"USE_ARGDATE\" was never defined.
13295
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13296 19 jeremybenn
fi
13297
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
13298 346 jeremybenn
  as_fn_error "conditional \"GENERATE_NEEDED\" was never defined.
13299
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13300 19 jeremybenn
fi
13301
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
13302 346 jeremybenn
  as_fn_error "conditional \"DYNAMIC_EXECUTION\" was never defined.
13303
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13304 19 jeremybenn
fi
13305
 
13306
: ${CONFIG_STATUS=./config.status}
13307 82 jeremybenn
ac_write_fail=0
13308 19 jeremybenn
ac_clean_files_save=$ac_clean_files
13309
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13310 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13311 82 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13312 346 jeremybenn
as_write_fail=0
13313
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13314 19 jeremybenn
#! $SHELL
13315
# Generated by $as_me.
13316
# Run this file to recreate the current configuration.
13317
# Compiler output produced by configure, useful for debugging
13318
# configure, is in config.log if it exists.
13319
 
13320
debug=false
13321
ac_cs_recheck=false
13322
ac_cs_silent=false
13323 346 jeremybenn
 
13324 19 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
13325 346 jeremybenn
export SHELL
13326
_ASEOF
13327
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13328
## -------------------- ##
13329
## M4sh Initialization. ##
13330
## -------------------- ##
13331 19 jeremybenn
 
13332
# Be more Bourne compatible
13333
DUALCASE=1; export DUALCASE # for MKS sh
13334 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13335 19 jeremybenn
  emulate sh
13336
  NULLCMD=:
13337 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13338 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
13339
  alias -g '${1+"$@"}'='"$@"'
13340
  setopt NO_GLOB_SUBST
13341
else
13342 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
13343
  *posix*) :
13344
    set -o posix ;; #(
13345
  *) :
13346
     ;;
13347 19 jeremybenn
esac
13348
fi
13349
 
13350
 
13351 82 jeremybenn
as_nl='
13352
'
13353
export as_nl
13354
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13355
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13356
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13357
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13358 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
13359
# but without wasting forks for bash or zsh.
13360
if test -z "$BASH_VERSION$ZSH_VERSION" \
13361
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13362
  as_echo='print -r --'
13363
  as_echo_n='print -rn --'
13364
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13365 82 jeremybenn
  as_echo='printf %s\n'
13366
  as_echo_n='printf %s'
13367
else
13368
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13369
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13370
    as_echo_n='/usr/ucb/echo -n'
13371 19 jeremybenn
  else
13372 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13373
    as_echo_n_body='eval
13374
      arg=$1;
13375 346 jeremybenn
      case $arg in #(
13376 82 jeremybenn
      *"$as_nl"*)
13377
        expr "X$arg" : "X\\(.*\\)$as_nl";
13378
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13379
      esac;
13380
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13381
    '
13382
    export as_echo_n_body
13383
    as_echo_n='sh -c $as_echo_n_body as_echo'
13384 19 jeremybenn
  fi
13385 82 jeremybenn
  export as_echo_body
13386
  as_echo='sh -c $as_echo_body as_echo'
13387 19 jeremybenn
fi
13388
 
13389 82 jeremybenn
# The user is always right.
13390
if test "${PATH_SEPARATOR+set}" != set; then
13391
  PATH_SEPARATOR=:
13392
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13393
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13394
      PATH_SEPARATOR=';'
13395
  }
13396
fi
13397
 
13398 19 jeremybenn
 
13399
# IFS
13400
# We need space, tab and new line, in precisely that order.  Quoting is
13401
# there to prevent editors from complaining about space-tab.
13402
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13403
# splitting by setting IFS to empty value.)
13404
IFS=" ""        $as_nl"
13405
 
13406
# Find who we are.  Look in the path if we contain no directory separator.
13407 346 jeremybenn
case $0 in #((
13408 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
13409
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410
for as_dir in $PATH
13411
do
13412
  IFS=$as_save_IFS
13413
  test -z "$as_dir" && as_dir=.
13414 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13415
  done
13416 19 jeremybenn
IFS=$as_save_IFS
13417
 
13418
     ;;
13419
esac
13420
# We did not find ourselves, most probably we were run as `sh COMMAND'
13421
# in which case we are not to be found in the path.
13422
if test "x$as_myself" = x; then
13423
  as_myself=$0
13424
fi
13425
if test ! -f "$as_myself"; then
13426 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13427 346 jeremybenn
  exit 1
13428 19 jeremybenn
fi
13429
 
13430 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
13431
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13432
# suppresses any "Segmentation fault" message there.  '((' could
13433
# trigger a bug in pdksh 5.2.14.
13434
for as_var in BASH_ENV ENV MAIL MAILPATH
13435
do eval test x\${$as_var+set} = xset \
13436
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13437 19 jeremybenn
done
13438
PS1='$ '
13439
PS2='> '
13440
PS4='+ '
13441
 
13442
# NLS nuisances.
13443 82 jeremybenn
LC_ALL=C
13444
export LC_ALL
13445
LANGUAGE=C
13446
export LANGUAGE
13447 19 jeremybenn
 
13448 346 jeremybenn
# CDPATH.
13449
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13450
 
13451
 
13452
# as_fn_error ERROR [LINENO LOG_FD]
13453
# ---------------------------------
13454
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13455
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13456
# script with status $?, using 1 if that was 0.
13457
as_fn_error ()
13458
{
13459
  as_status=$?; test $as_status -eq 0 && as_status=1
13460
  if test "$3"; then
13461
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13462
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13463
  fi
13464
  $as_echo "$as_me: error: $1" >&2
13465
  as_fn_exit $as_status
13466
} # as_fn_error
13467
 
13468
 
13469
# as_fn_set_status STATUS
13470
# -----------------------
13471
# Set $? to STATUS, without forking.
13472
as_fn_set_status ()
13473
{
13474
  return $1
13475
} # as_fn_set_status
13476
 
13477
# as_fn_exit STATUS
13478
# -----------------
13479
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13480
as_fn_exit ()
13481
{
13482
  set +e
13483
  as_fn_set_status $1
13484
  exit $1
13485
} # as_fn_exit
13486
 
13487
# as_fn_unset VAR
13488
# ---------------
13489
# Portably unset VAR.
13490
as_fn_unset ()
13491
{
13492
  { eval $1=; unset $1;}
13493
}
13494
as_unset=as_fn_unset
13495
# as_fn_append VAR VALUE
13496
# ----------------------
13497
# Append the text in VALUE to the end of the definition contained in VAR. Take
13498
# advantage of any shell optimizations that allow amortized linear growth over
13499
# repeated appends, instead of the typical quadratic growth present in naive
13500
# implementations.
13501
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13502
  eval 'as_fn_append ()
13503
  {
13504
    eval $1+=\$2
13505
  }'
13506
else
13507
  as_fn_append ()
13508
  {
13509
    eval $1=\$$1\$2
13510
  }
13511
fi # as_fn_append
13512
 
13513
# as_fn_arith ARG...
13514
# ------------------
13515
# Perform arithmetic evaluation on the ARGs, and store the result in the
13516
# global $as_val. Take advantage of shells that can avoid forks. The arguments
13517
# must be portable across $(()) and expr.
13518
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13519
  eval 'as_fn_arith ()
13520
  {
13521
    as_val=$(( $* ))
13522
  }'
13523
else
13524
  as_fn_arith ()
13525
  {
13526
    as_val=`expr "$@" || test $? -eq 1`
13527
  }
13528
fi # as_fn_arith
13529
 
13530
 
13531 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
13532
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13533
  as_expr=expr
13534
else
13535
  as_expr=false
13536
fi
13537
 
13538
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13539
  as_basename=basename
13540
else
13541
  as_basename=false
13542
fi
13543
 
13544 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13545
  as_dirname=dirname
13546
else
13547
  as_dirname=false
13548
fi
13549 19 jeremybenn
 
13550
as_me=`$as_basename -- "$0" ||
13551
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13552
         X"$0" : 'X\(//\)$' \| \
13553
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13554 82 jeremybenn
$as_echo X/"$0" |
13555 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13556
            s//\1/
13557
            q
13558
          }
13559
          /^X\/\(\/\/\)$/{
13560
            s//\1/
13561
            q
13562
          }
13563
          /^X\/\(\/\).*/{
13564
            s//\1/
13565
            q
13566
          }
13567
          s/.*/./; q'`
13568
 
13569 346 jeremybenn
# Avoid depending upon Character Ranges.
13570
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13571
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13572
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13573
as_cr_digits='0123456789'
13574
as_cr_alnum=$as_cr_Letters$as_cr_digits
13575 19 jeremybenn
 
13576
ECHO_C= ECHO_N= ECHO_T=
13577 346 jeremybenn
case `echo -n x` in #(((((
13578 19 jeremybenn
-n*)
13579 346 jeremybenn
  case `echo 'xy\c'` in
13580 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13581 346 jeremybenn
  xy)  ECHO_C='\c';;
13582
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13583
       ECHO_T=' ';;
13584 19 jeremybenn
  esac;;
13585
*)
13586
  ECHO_N='-n';;
13587
esac
13588
 
13589
rm -f conf$$ conf$$.exe conf$$.file
13590
if test -d conf$$.dir; then
13591
  rm -f conf$$.dir/conf$$.file
13592
else
13593
  rm -f conf$$.dir
13594 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
13595 19 jeremybenn
fi
13596 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
13597
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13598
    as_ln_s='ln -s'
13599
    # ... but there are two gotchas:
13600
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13601
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13602
    # In both cases, we have to default to `cp -p'.
13603
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13604
      as_ln_s='cp -p'
13605
  elif ln conf$$.file conf$$ 2>/dev/null; then
13606
    as_ln_s=ln
13607
  else
13608 19 jeremybenn
    as_ln_s='cp -p'
13609 82 jeremybenn
  fi
13610 19 jeremybenn
else
13611
  as_ln_s='cp -p'
13612
fi
13613
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13614
rmdir conf$$.dir 2>/dev/null
13615
 
13616 346 jeremybenn
 
13617
# as_fn_mkdir_p
13618
# -------------
13619
# Create "$as_dir" as a directory, including parents if necessary.
13620
as_fn_mkdir_p ()
13621
{
13622
 
13623
  case $as_dir in #(
13624
  -*) as_dir=./$as_dir;;
13625
  esac
13626
  test -d "$as_dir" || eval $as_mkdir_p || {
13627
    as_dirs=
13628
    while :; do
13629
      case $as_dir in #(
13630
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13631
      *) as_qdir=$as_dir;;
13632
      esac
13633
      as_dirs="'$as_qdir' $as_dirs"
13634
      as_dir=`$as_dirname -- "$as_dir" ||
13635
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13636
         X"$as_dir" : 'X\(//\)[^/]' \| \
13637
         X"$as_dir" : 'X\(//\)$' \| \
13638
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13639
$as_echo X"$as_dir" |
13640
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13641
            s//\1/
13642
            q
13643
          }
13644
          /^X\(\/\/\)[^/].*/{
13645
            s//\1/
13646
            q
13647
          }
13648
          /^X\(\/\/\)$/{
13649
            s//\1/
13650
            q
13651
          }
13652
          /^X\(\/\).*/{
13653
            s//\1/
13654
            q
13655
          }
13656
          s/.*/./; q'`
13657
      test -d "$as_dir" && break
13658
    done
13659
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13660
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13661
 
13662
 
13663
} # as_fn_mkdir_p
13664 19 jeremybenn
if mkdir -p . 2>/dev/null; then
13665 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
13666 19 jeremybenn
else
13667
  test -d ./-p && rmdir ./-p
13668
  as_mkdir_p=false
13669
fi
13670
 
13671
if test -x / >/dev/null 2>&1; then
13672
  as_test_x='test -x'
13673
else
13674
  if ls -dL / >/dev/null 2>&1; then
13675
    as_ls_L_option=L
13676
  else
13677
    as_ls_L_option=
13678
  fi
13679
  as_test_x='
13680
    eval sh -c '\''
13681
      if test -d "$1"; then
13682 82 jeremybenn
        test -d "$1/.";
13683 19 jeremybenn
      else
13684 346 jeremybenn
        case $1 in #(
13685 82 jeremybenn
        -*)set "./$1";;
13686 19 jeremybenn
        esac;
13687 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13688 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
13689
    '\'' sh
13690
  '
13691
fi
13692
as_executable_p=$as_test_x
13693
 
13694
# Sed expression to map a string onto a valid CPP name.
13695
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13696
 
13697
# Sed expression to map a string onto a valid variable name.
13698
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13699
 
13700
 
13701
exec 6>&1
13702 346 jeremybenn
## ----------------------------------- ##
13703
## Main body of $CONFIG_STATUS script. ##
13704
## ----------------------------------- ##
13705
_ASEOF
13706
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13707 19 jeremybenn
 
13708 346 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13709
# Save the log message, to keep $0 and so on meaningful, and to
13710 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
13711
# values after options handling.
13712
ac_log="
13713 346 jeremybenn
This file was extended by or1ksim $as_me 0.5.0rc1, which was
13714
generated by GNU Autoconf 2.64.  Invocation command line was
13715 19 jeremybenn
 
13716
  CONFIG_FILES    = $CONFIG_FILES
13717
  CONFIG_HEADERS  = $CONFIG_HEADERS
13718
  CONFIG_LINKS    = $CONFIG_LINKS
13719
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13720
  $ $0 $@
13721
 
13722
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13723
"
13724
 
13725
_ACEOF
13726
 
13727 82 jeremybenn
case $ac_config_files in *"
13728
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13729
esac
13730
 
13731
case $ac_config_headers in *"
13732
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13733
esac
13734
 
13735
 
13736
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13737 19 jeremybenn
# Files that config.status was made for.
13738
config_files="$ac_config_files"
13739
config_headers="$ac_config_headers"
13740
config_commands="$ac_config_commands"
13741
 
13742
_ACEOF
13743
 
13744 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13745 19 jeremybenn
ac_cs_usage="\
13746 346 jeremybenn
\`$as_me' instantiates files and other configuration actions
13747
from templates according to the current configuration.  Unless the files
13748
and actions are specified as TAGs, all are instantiated by default.
13749 19 jeremybenn
 
13750 346 jeremybenn
Usage: $0 [OPTION]... [TAG]...
13751 19 jeremybenn
 
13752
  -h, --help       print this help, then exit
13753
  -V, --version    print version number and configuration settings, then exit
13754 82 jeremybenn
  -q, --quiet, --silent
13755
                   do not print progress messages
13756 19 jeremybenn
  -d, --debug      don't remove temporary files
13757
      --recheck    update $as_me by reconfiguring in the same conditions
13758 82 jeremybenn
      --file=FILE[:TEMPLATE]
13759
                   instantiate the configuration file FILE
13760
      --header=FILE[:TEMPLATE]
13761
                   instantiate the configuration header FILE
13762 19 jeremybenn
 
13763
Configuration files:
13764
$config_files
13765
 
13766
Configuration headers:
13767
$config_headers
13768
 
13769
Configuration commands:
13770
$config_commands
13771
 
13772 346 jeremybenn
Report bugs to ."
13773 19 jeremybenn
 
13774
_ACEOF
13775 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13776 19 jeremybenn
ac_cs_version="\\
13777 346 jeremybenn
or1ksim config.status 0.5.0rc1
13778
configured by $0, generated by GNU Autoconf 2.64,
13779 236 jeremybenn
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13780 19 jeremybenn
 
13781 346 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
13782 19 jeremybenn
This config.status script is free software; the Free Software Foundation
13783
gives unlimited permission to copy, distribute and modify it."
13784
 
13785
ac_pwd='$ac_pwd'
13786
srcdir='$srcdir'
13787
INSTALL='$INSTALL'
13788
MKDIR_P='$MKDIR_P'
13789 82 jeremybenn
AWK='$AWK'
13790
test -n "\$AWK" || AWK=awk
13791 19 jeremybenn
_ACEOF
13792
 
13793 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13794
# The default lists apply if the user does not specify any file.
13795 19 jeremybenn
ac_need_defaults=:
13796
while test $# != 0
13797
do
13798
  case $1 in
13799
  --*=*)
13800
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13801
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13802
    ac_shift=:
13803
    ;;
13804
  *)
13805
    ac_option=$1
13806
    ac_optarg=$2
13807
    ac_shift=shift
13808
    ;;
13809
  esac
13810
 
13811
  case $ac_option in
13812
  # Handling of the options.
13813
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13814
    ac_cs_recheck=: ;;
13815
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13816 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
13817 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
13818
    debug=: ;;
13819
  --file | --fil | --fi | --f )
13820
    $ac_shift
13821 82 jeremybenn
    case $ac_optarg in
13822
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13823
    esac
13824 346 jeremybenn
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13825 19 jeremybenn
    ac_need_defaults=false;;
13826
  --header | --heade | --head | --hea )
13827
    $ac_shift
13828 82 jeremybenn
    case $ac_optarg in
13829
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13830
    esac
13831 346 jeremybenn
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13832 19 jeremybenn
    ac_need_defaults=false;;
13833
  --he | --h)
13834
    # Conflict between --help and --header
13835 346 jeremybenn
    as_fn_error "ambiguous option: \`$1'
13836
Try \`$0 --help' for more information.";;
13837 19 jeremybenn
  --help | --hel | -h )
13838 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
13839 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13840
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13841
    ac_cs_silent=: ;;
13842
 
13843
  # This is an error.
13844 346 jeremybenn
  -*) as_fn_error "unrecognized option: \`$1'
13845
Try \`$0 --help' for more information." ;;
13846 19 jeremybenn
 
13847 346 jeremybenn
  *) as_fn_append ac_config_targets " $1"
13848 19 jeremybenn
     ac_need_defaults=false ;;
13849
 
13850
  esac
13851
  shift
13852
done
13853
 
13854
ac_configure_extra_args=
13855
 
13856
if $ac_cs_silent; then
13857
  exec 6>/dev/null
13858
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13859
fi
13860
 
13861
_ACEOF
13862 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13863 19 jeremybenn
if \$ac_cs_recheck; then
13864 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13865
  shift
13866
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13867
  CONFIG_SHELL='$SHELL'
13868 19 jeremybenn
  export CONFIG_SHELL
13869 82 jeremybenn
  exec "\$@"
13870 19 jeremybenn
fi
13871
 
13872
_ACEOF
13873 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13874 19 jeremybenn
exec 5>>config.log
13875
{
13876
  echo
13877
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13878
## Running $as_me. ##
13879
_ASBOX
13880 82 jeremybenn
  $as_echo "$ac_log"
13881 19 jeremybenn
} >&5
13882
 
13883
_ACEOF
13884 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13885 19 jeremybenn
#
13886
# INIT-COMMANDS
13887
#
13888 82 jeremybenn
 
13889
 
13890
# The HP-UX ksh and POSIX shell print the target directory to stdout
13891
# if CDPATH is set.
13892
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13893
 
13894
sed_quote_subst='$sed_quote_subst'
13895
double_quote_subst='$double_quote_subst'
13896
delay_variable_subst='$delay_variable_subst'
13897
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13898
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13899
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13900
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13901
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13902
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13903
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13904
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13905
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13906
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13907
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13908
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13909
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13910
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13911
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13912
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13913
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13914
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13915
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13916
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13917
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13918
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13919
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13920
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13921
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13922
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13923
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13924
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13925
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13926
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13927
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13928
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13929
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13930
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13931
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13932
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13933
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13934
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13935
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13936
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13937
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13938
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13939
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13940
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13941
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13942
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13943
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13944
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13945
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13946
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13947
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13948
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13949
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13950
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13951
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13952
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13953
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13954
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13955
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13956
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13957
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13958
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13959
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13960
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13961
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13962
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13963
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13964
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13965
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13966
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13967
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13968
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13969
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13970
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13971
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13972
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13973
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13974
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13975
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13976
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13977
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13978
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13979
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13980
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13981
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13982
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13983
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13984
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13985
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13986
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13987
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13988
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13989
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13990
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13991
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13992
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13993
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13994
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13995
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13996
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13997
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13998
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13999
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14000
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14001
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14002
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14003
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14004
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14005
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14006
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14007
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14008
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14009
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14010
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14011
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14012
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14013
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14014
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14015
 
14016
LTCC='$LTCC'
14017
LTCFLAGS='$LTCFLAGS'
14018
compiler='$compiler_DEFAULT'
14019
 
14020
# Quote evaled strings.
14021
for var in SED \
14022
GREP \
14023
EGREP \
14024
FGREP \
14025
LD \
14026
NM \
14027
LN_S \
14028
lt_SP2NL \
14029
lt_NL2SP \
14030
reload_flag \
14031
OBJDUMP \
14032
deplibs_check_method \
14033
file_magic_cmd \
14034
AR \
14035
AR_FLAGS \
14036
STRIP \
14037
RANLIB \
14038
CC \
14039
CFLAGS \
14040
compiler \
14041
lt_cv_sys_global_symbol_pipe \
14042
lt_cv_sys_global_symbol_to_cdecl \
14043
lt_cv_sys_global_symbol_to_c_name_address \
14044
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14045
SHELL \
14046
ECHO \
14047
lt_prog_compiler_no_builtin_flag \
14048
lt_prog_compiler_wl \
14049
lt_prog_compiler_pic \
14050
lt_prog_compiler_static \
14051
lt_cv_prog_compiler_c_o \
14052
need_locks \
14053
DSYMUTIL \
14054
NMEDIT \
14055
LIPO \
14056
OTOOL \
14057
OTOOL64 \
14058
shrext_cmds \
14059
export_dynamic_flag_spec \
14060
whole_archive_flag_spec \
14061
compiler_needs_object \
14062
with_gnu_ld \
14063
allow_undefined_flag \
14064
no_undefined_flag \
14065
hardcode_libdir_flag_spec \
14066
hardcode_libdir_flag_spec_ld \
14067
hardcode_libdir_separator \
14068
fix_srcfile_path \
14069
exclude_expsyms \
14070
include_expsyms \
14071
file_list_spec \
14072
variables_saved_for_relink \
14073
libname_spec \
14074
library_names_spec \
14075
soname_spec \
14076
finish_eval \
14077
old_striplib \
14078
striplib; do
14079
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14080
    *[\\\\\\\`\\"\\\$]*)
14081
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14082
      ;;
14083
    *)
14084
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14085
      ;;
14086
    esac
14087
done
14088
 
14089
# Double-quote double-evaled strings.
14090
for var in reload_cmds \
14091
old_postinstall_cmds \
14092
old_postuninstall_cmds \
14093
old_archive_cmds \
14094
extract_expsyms_cmds \
14095
old_archive_from_new_cmds \
14096
old_archive_from_expsyms_cmds \
14097
archive_cmds \
14098
archive_expsym_cmds \
14099
module_cmds \
14100
module_expsym_cmds \
14101
export_symbols_cmds \
14102
prelink_cmds \
14103
postinstall_cmds \
14104
postuninstall_cmds \
14105
finish_cmds \
14106
sys_lib_search_path_spec \
14107
sys_lib_dlsearch_path_spec; do
14108
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14109
    *[\\\\\\\`\\"\\\$]*)
14110
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14111
      ;;
14112
    *)
14113
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14114
      ;;
14115
    esac
14116
done
14117
 
14118
# Fix-up fallback echo if it was mangled by the above quoting rules.
14119
case \$lt_ECHO in
14120
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14121
  ;;
14122
esac
14123
 
14124
ac_aux_dir='$ac_aux_dir'
14125
xsi_shell='$xsi_shell'
14126
lt_shell_append='$lt_shell_append'
14127
 
14128
# See if we are running on zsh, and set the options which allow our
14129
# commands through without removal of \ escapes INIT.
14130
if test -n "\${ZSH_VERSION+set}" ; then
14131
   setopt NO_GLOB_SUBST
14132
fi
14133
 
14134
 
14135
    PACKAGE='$PACKAGE'
14136
    VERSION='$VERSION'
14137
    TIMESTAMP='$TIMESTAMP'
14138
    RM='$RM'
14139
    ofile='$ofile'
14140
 
14141
 
14142
 
14143 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14144
 
14145
_ACEOF
14146
 
14147 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14148 19 jeremybenn
 
14149
# Handling of arguments.
14150
for ac_config_target in $ac_config_targets
14151
do
14152
  case $ac_config_target in
14153 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14154 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14155
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14156
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14157
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
14158
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
14159
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
14160
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
14161
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
14162
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
14163
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
14164 233 julius
    "softfloat/Makefile") CONFIG_FILES="$CONFIG_FILES softfloat/Makefile" ;;
14165 19 jeremybenn
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
14166
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14167
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
14168
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
14169
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
14170
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
14171
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
14172 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
14173
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
14174
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14175
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
14176
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
14177
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
14178
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
14179
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
14180
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
14181 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
14182 97 jeremybenn
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
14183 93 jeremybenn
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
14184 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
14185 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
14186
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
14187
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
14188
 
14189 346 jeremybenn
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14190 19 jeremybenn
  esac
14191
done
14192
 
14193
 
14194
# If the user did not use the arguments to specify the items to instantiate,
14195
# then the envvar interface is used.  Set only those that are not.
14196
# We use the long form for the default assignment because of an extremely
14197
# bizarre bug on SunOS 4.1.3.
14198
if $ac_need_defaults; then
14199
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14200
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14201
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14202
fi
14203
 
14204
# Have a temporary directory for convenience.  Make it in the build tree
14205
# simply because there is no reason against having it here, and in addition,
14206
# creating and moving files from /tmp can sometimes cause problems.
14207
# Hook for its removal unless debugging.
14208
# Note that there is a small window in which the directory will not be cleaned:
14209
# after its creation but before its name has been assigned to `$tmp'.
14210
$debug ||
14211
{
14212
  tmp=
14213
  trap 'exit_status=$?
14214
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14215
' 0
14216 346 jeremybenn
  trap 'as_fn_exit 1' 1 2 13 15
14217 19 jeremybenn
}
14218
# Create a (secure) tmp directory for tmp files.
14219
 
14220
{
14221
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14222
  test -n "$tmp" && test -d "$tmp"
14223
}  ||
14224
{
14225
  tmp=./conf$$-$RANDOM
14226
  (umask 077 && mkdir "$tmp")
14227 346 jeremybenn
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14228 19 jeremybenn
 
14229 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
14230
# No need to generate them if there are no CONFIG_FILES.
14231
# This happens for instance with `./config.status config.h'.
14232 19 jeremybenn
if test -n "$CONFIG_FILES"; then
14233
 
14234 82 jeremybenn
 
14235 346 jeremybenn
ac_cr=`echo X | tr X '\015'`
14236
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14237
# But we know of no other shell where ac_cr would be empty at this
14238
# point, so we can use a bashism as a fallback.
14239
if test "x$ac_cr" = x; then
14240
  eval ac_cr=\$\'\\r\'
14241
fi
14242 82 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
14243
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14244 346 jeremybenn
  ac_cs_awk_cr='\r'
14245 82 jeremybenn
else
14246
  ac_cs_awk_cr=$ac_cr
14247
fi
14248
 
14249
echo 'BEGIN {' >"$tmp/subs1.awk" &&
14250 19 jeremybenn
_ACEOF
14251
 
14252
 
14253 82 jeremybenn
{
14254
  echo "cat >conf$$subs.awk <<_ACEOF" &&
14255
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14256
  echo "_ACEOF"
14257
} >conf$$subs.sh ||
14258 346 jeremybenn
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14259 82 jeremybenn
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14260 19 jeremybenn
ac_delim='%!_!# '
14261
for ac_last_try in false false false false false :; do
14262 82 jeremybenn
  . ./conf$$subs.sh ||
14263 346 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14264 19 jeremybenn
 
14265 82 jeremybenn
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14266
  if test $ac_delim_n = $ac_delim_num; then
14267 19 jeremybenn
    break
14268
  elif $ac_last_try; then
14269 346 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14270 19 jeremybenn
  else
14271
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14272
  fi
14273
done
14274 82 jeremybenn
rm -f conf$$subs.sh
14275 19 jeremybenn
 
14276 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14277
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14278 19 jeremybenn
_ACEOF
14279 82 jeremybenn
sed -n '
14280
h
14281
s/^/S["/; s/!.*/"]=/
14282
p
14283
g
14284
s/^[^!]*!//
14285
:repl
14286
t repl
14287
s/'"$ac_delim"'$//
14288
t delim
14289
:nl
14290
h
14291 236 jeremybenn
s/\(.\{148\}\).*/\1/
14292 82 jeremybenn
t more1
14293
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14294
p
14295
n
14296
b repl
14297
:more1
14298
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14299
p
14300
g
14301
s/.\{148\}//
14302
t nl
14303
:delim
14304
h
14305 236 jeremybenn
s/\(.\{148\}\).*/\1/
14306 82 jeremybenn
t more2
14307
s/["\\]/\\&/g; s/^/"/; s/$/"/
14308
p
14309
b
14310
:more2
14311
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14312
p
14313
g
14314
s/.\{148\}//
14315
t delim
14316
' 
14317
/^[^""]/{
14318
  N
14319
  s/\n//
14320
}
14321
' >>$CONFIG_STATUS || ac_write_fail=1
14322
rm -f conf$$subs.awk
14323
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14324
_ACAWK
14325
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14326
  for (key in S) S_is_set[key] = 1
14327
  FS = ""
14328 19 jeremybenn
 
14329 82 jeremybenn
}
14330
{
14331
  line = $ 0
14332
  nfields = split(line, field, "@")
14333
  substed = 0
14334
  len = length(field[1])
14335
  for (i = 2; i < nfields; i++) {
14336
    key = field[i]
14337
    keylen = length(key)
14338
    if (S_is_set[key]) {
14339
      value = S[key]
14340
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14341
      len += length(value) + length(field[++i])
14342
      substed = 1
14343
    } else
14344
      len += 1 + keylen
14345
  }
14346 19 jeremybenn
 
14347 82 jeremybenn
  print line
14348
}
14349
 
14350
_ACAWK
14351 19 jeremybenn
_ACEOF
14352 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14353
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14354
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14355
else
14356
  cat
14357
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14358 346 jeremybenn
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14359 19 jeremybenn
_ACEOF
14360
 
14361
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14362
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14363
# trailing colons and then remove the whole line if VPATH becomes empty
14364
# (actually we leave an empty line to preserve line numbers).
14365
if test "x$srcdir" = x.; then
14366
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14367
s/:*\$(srcdir):*/:/
14368
s/:*\${srcdir}:*/:/
14369
s/:*@srcdir@:*/:/
14370
s/^\([^=]*=[     ]*\):*/\1/
14371
s/:*$//
14372
s/^[^=]*=[       ]*$//
14373
}'
14374
fi
14375
 
14376 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14377 19 jeremybenn
fi # test -n "$CONFIG_FILES"
14378
 
14379 82 jeremybenn
# Set up the scripts for CONFIG_HEADERS section.
14380
# No need to generate them if there are no CONFIG_HEADERS.
14381
# This happens for instance with `./config.status Makefile'.
14382
if test -n "$CONFIG_HEADERS"; then
14383
cat >"$tmp/defines.awk" <<\_ACAWK ||
14384
BEGIN {
14385
_ACEOF
14386 19 jeremybenn
 
14387 82 jeremybenn
# Transform confdefs.h into an awk script `defines.awk', embedded as
14388
# here-document in config.status, that substitutes the proper values into
14389
# config.h.in to produce config.h.
14390
 
14391
# Create a delimiter string that does not exist in confdefs.h, to ease
14392
# handling of long lines.
14393
ac_delim='%!_!# '
14394
for ac_last_try in false false :; do
14395
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14396
  if test -z "$ac_t"; then
14397
    break
14398
  elif $ac_last_try; then
14399 346 jeremybenn
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14400 82 jeremybenn
  else
14401
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14402
  fi
14403
done
14404
 
14405
# For the awk script, D is an array of macro values keyed by name,
14406
# likewise P contains macro parameters if any.  Preserve backslash
14407
# newline sequences.
14408
 
14409
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14410
sed -n '
14411
s/.\{148\}/&'"$ac_delim"'/g
14412
t rset
14413
:rset
14414
s/^[     ]*#[    ]*define[       ][      ]*/ /
14415
t def
14416
d
14417
:def
14418
s/\\$//
14419
t bsnl
14420
s/["\\]/\\&/g
14421
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14422
D["\1"]=" \3"/p
14423
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14424
d
14425
:bsnl
14426
s/["\\]/\\&/g
14427
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14428
D["\1"]=" \3\\\\\\n"\\/p
14429
t cont
14430
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14431
t cont
14432
d
14433
:cont
14434
n
14435
s/.\{148\}/&'"$ac_delim"'/g
14436
t clear
14437
:clear
14438
s/\\$//
14439
t bsnlc
14440
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14441
d
14442
:bsnlc
14443
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14444
b cont
14445
' 
14446
s/'"$ac_delim"'/"\\\
14447
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14448
 
14449
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14450
  for (key in D) D_is_set[key] = 1
14451
  FS = ""
14452
}
14453
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14454
  line = \$ 0
14455
  split(line, arg, " ")
14456
  if (arg[1] == "#") {
14457
    defundef = arg[2]
14458
    mac1 = arg[3]
14459
  } else {
14460
    defundef = substr(arg[1], 2)
14461
    mac1 = arg[2]
14462
  }
14463
  split(mac1, mac2, "(") #)
14464
  macro = mac2[1]
14465
  prefix = substr(line, 1, index(line, defundef) - 1)
14466
  if (D_is_set[macro]) {
14467
    # Preserve the white space surrounding the "#".
14468
    print prefix "define", macro P[macro] D[macro]
14469
    next
14470
  } else {
14471
    # Replace #undef with comments.  This is necessary, for example,
14472
    # in the case of _POSIX_SOURCE, which is predefined and required
14473
    # on some systems where configure will not decide to define it.
14474
    if (defundef == "undef") {
14475
      print "/*", prefix defundef, macro, "*/"
14476
      next
14477
    }
14478
  }
14479
}
14480
{ print }
14481
_ACAWK
14482
_ACEOF
14483
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14484 346 jeremybenn
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14485 82 jeremybenn
fi # test -n "$CONFIG_HEADERS"
14486
 
14487
 
14488
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14489
shift
14490
for ac_tag
14491 19 jeremybenn
do
14492
  case $ac_tag in
14493
  :[FHLC]) ac_mode=$ac_tag; continue;;
14494
  esac
14495
  case $ac_mode$ac_tag in
14496
  :[FHL]*:*);;
14497 346 jeremybenn
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14498 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
14499
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14500
  esac
14501
  ac_save_IFS=$IFS
14502
  IFS=:
14503
  set x $ac_tag
14504
  IFS=$ac_save_IFS
14505
  shift
14506
  ac_file=$1
14507
  shift
14508
 
14509
  case $ac_mode in
14510
  :L) ac_source=$1;;
14511
  :[FH])
14512
    ac_file_inputs=
14513
    for ac_f
14514
    do
14515
      case $ac_f in
14516
      -) ac_f="$tmp/stdin";;
14517
      *) # Look for the file first in the build tree, then in the source tree
14518
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14519
         # because $ac_f cannot contain `:'.
14520
         test -f "$ac_f" ||
14521
           case $ac_f in
14522
           [\\/$]*) false;;
14523
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14524
           esac ||
14525 346 jeremybenn
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14526 19 jeremybenn
      esac
14527 82 jeremybenn
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14528 346 jeremybenn
      as_fn_append ac_file_inputs " '$ac_f'"
14529 19 jeremybenn
    done
14530
 
14531
    # Let's still pretend it is `configure' which instantiates (i.e., don't
14532
    # use $as_me), people would be surprised to read:
14533
    #    /* config.h.  Generated by config.status.  */
14534 82 jeremybenn
    configure_input='Generated from '`
14535
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14536
        `' by configure.'
14537 19 jeremybenn
    if test x"$ac_file" != x-; then
14538
      configure_input="$ac_file.  $configure_input"
14539 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14540 82 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
14541 19 jeremybenn
    fi
14542 82 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
14543
    case $configure_input in #(
14544
    *\&* | *\|* | *\\* )
14545
       ac_sed_conf_input=`$as_echo "$configure_input" |
14546
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14547
    *) ac_sed_conf_input=$configure_input;;
14548
    esac
14549 19 jeremybenn
 
14550
    case $ac_tag in
14551 82 jeremybenn
    *:-:* | *:-) cat >"$tmp/stdin" \
14552 346 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14553 19 jeremybenn
    esac
14554
    ;;
14555
  esac
14556
 
14557
  ac_dir=`$as_dirname -- "$ac_file" ||
14558
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14559
         X"$ac_file" : 'X\(//\)[^/]' \| \
14560
         X"$ac_file" : 'X\(//\)$' \| \
14561
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14562 82 jeremybenn
$as_echo X"$ac_file" |
14563 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14564
            s//\1/
14565
            q
14566
          }
14567
          /^X\(\/\/\)[^/].*/{
14568
            s//\1/
14569
            q
14570
          }
14571
          /^X\(\/\/\)$/{
14572
            s//\1/
14573
            q
14574
          }
14575
          /^X\(\/\).*/{
14576
            s//\1/
14577
            q
14578
          }
14579
          s/.*/./; q'`
14580 346 jeremybenn
  as_dir="$ac_dir"; as_fn_mkdir_p
14581 19 jeremybenn
  ac_builddir=.
14582
 
14583
case "$ac_dir" in
14584
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14585
*)
14586 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14587 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
14588 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14589 19 jeremybenn
  case $ac_top_builddir_sub in
14590
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14591
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14592
  esac ;;
14593
esac
14594
ac_abs_top_builddir=$ac_pwd
14595
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14596
# for backward compatibility:
14597
ac_top_builddir=$ac_top_build_prefix
14598
 
14599
case $srcdir in
14600
  .)  # We are building in place.
14601
    ac_srcdir=.
14602
    ac_top_srcdir=$ac_top_builddir_sub
14603
    ac_abs_top_srcdir=$ac_pwd ;;
14604
  [\\/]* | ?:[\\/]* )  # Absolute name.
14605
    ac_srcdir=$srcdir$ac_dir_suffix;
14606
    ac_top_srcdir=$srcdir
14607
    ac_abs_top_srcdir=$srcdir ;;
14608
  *) # Relative name.
14609
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14610
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14611
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14612
esac
14613
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14614
 
14615
 
14616
  case $ac_mode in
14617
  :F)
14618
  #
14619
  # CONFIG_FILE
14620
  #
14621
 
14622
  case $INSTALL in
14623
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14624
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14625
  esac
14626
  ac_MKDIR_P=$MKDIR_P
14627
  case $MKDIR_P in
14628
  [\\/$]* | ?:[\\/]* ) ;;
14629
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14630
  esac
14631
_ACEOF
14632
 
14633 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14634 19 jeremybenn
# If the template does not know about datarootdir, expand it.
14635
# FIXME: This hack should be removed a few years after 2.60.
14636
ac_datarootdir_hack=; ac_datarootdir_seen=
14637 82 jeremybenn
ac_sed_dataroot='
14638
/datarootdir/ {
14639 19 jeremybenn
  p
14640
  q
14641
}
14642
/@datadir@/p
14643
/@docdir@/p
14644
/@infodir@/p
14645
/@localedir@/p
14646 346 jeremybenn
/@mandir@/p'
14647 82 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14648 19 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
14649
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14650 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14651 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14652 19 jeremybenn
_ACEOF
14653 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14654 19 jeremybenn
  ac_datarootdir_hack='
14655
  s&@datadir@&$datadir&g
14656
  s&@docdir@&$docdir&g
14657
  s&@infodir@&$infodir&g
14658
  s&@localedir@&$localedir&g
14659
  s&@mandir@&$mandir&g
14660 346 jeremybenn
  s&\\\${datarootdir}&$datarootdir&g' ;;
14661 19 jeremybenn
esac
14662
_ACEOF
14663
 
14664
# Neutralize VPATH when `$srcdir' = `.'.
14665
# Shell code in configure.ac might set extrasub.
14666
# FIXME: do we really want to maintain this feature?
14667 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14668
ac_sed_extra="$ac_vpsub
14669 19 jeremybenn
$extrasub
14670
_ACEOF
14671 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14672 19 jeremybenn
:t
14673
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14674 82 jeremybenn
s|@configure_input@|$ac_sed_conf_input|;t t
14675 19 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
14676 82 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14677 19 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
14678
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14679
s&@top_srcdir@&$ac_top_srcdir&;t t
14680
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14681
s&@builddir@&$ac_builddir&;t t
14682
s&@abs_builddir@&$ac_abs_builddir&;t t
14683
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14684
s&@INSTALL@&$ac_INSTALL&;t t
14685
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14686
$ac_datarootdir_hack
14687 82 jeremybenn
"
14688
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14689 346 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14690 19 jeremybenn
 
14691
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14692
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14693
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14694 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14695 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
14696 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14697 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
14698
 
14699
  rm -f "$tmp/stdin"
14700
  case $ac_file in
14701 82 jeremybenn
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14702
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14703
  esac \
14704 346 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14705 19 jeremybenn
 ;;
14706
  :H)
14707
  #
14708
  # CONFIG_HEADER
14709
  #
14710
  if test x"$ac_file" != x-; then
14711 82 jeremybenn
    {
14712
      $as_echo "/* $configure_input  */" \
14713
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14714
    } >"$tmp/config.h" \
14715 346 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5
14716 82 jeremybenn
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14717 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14718 82 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14719 19 jeremybenn
    else
14720 82 jeremybenn
      rm -f "$ac_file"
14721
      mv "$tmp/config.h" "$ac_file" \
14722 346 jeremybenn
        || as_fn_error "could not create $ac_file" "$LINENO" 5
14723 19 jeremybenn
    fi
14724
  else
14725 82 jeremybenn
    $as_echo "/* $configure_input  */" \
14726
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14727 346 jeremybenn
      || as_fn_error "could not create -" "$LINENO" 5
14728 19 jeremybenn
  fi
14729 82 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
14730
_am_arg="$ac_file"
14731 19 jeremybenn
_am_stamp_count=1
14732
for _am_header in $config_headers :; do
14733
  case $_am_header in
14734
    $_am_arg | $_am_arg:* )
14735
      break ;;
14736
    * )
14737
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14738
  esac
14739
done
14740
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14741
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14742
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14743
         X"$_am_arg" : 'X\(//\)$' \| \
14744
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14745 82 jeremybenn
$as_echo X"$_am_arg" |
14746 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14747
            s//\1/
14748
            q
14749
          }
14750
          /^X\(\/\/\)[^/].*/{
14751
            s//\1/
14752
            q
14753
          }
14754
          /^X\(\/\/\)$/{
14755
            s//\1/
14756
            q
14757
          }
14758
          /^X\(\/\).*/{
14759
            s//\1/
14760
            q
14761
          }
14762
          s/.*/./; q'`/stamp-h$_am_stamp_count
14763
 ;;
14764
 
14765 346 jeremybenn
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14766 82 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
14767 19 jeremybenn
 ;;
14768
  esac
14769
 
14770
 
14771
  case $ac_file$ac_mode in
14772 82 jeremybenn
    "libtool":C)
14773
 
14774
    # See if we are running on zsh, and set the options which allow our
14775
    # commands through without removal of \ escapes.
14776
    if test -n "${ZSH_VERSION+set}" ; then
14777
      setopt NO_GLOB_SUBST
14778
    fi
14779
 
14780
    cfgfile="${ofile}T"
14781
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14782
    $RM "$cfgfile"
14783
 
14784
    cat <<_LT_EOF >> "$cfgfile"
14785
#! $SHELL
14786
 
14787
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14788
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14789
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14790
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14791
#
14792
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14793
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14794
#   Written by Gordon Matzigkeit, 1996
14795
#
14796
#   This file is part of GNU Libtool.
14797
#
14798
# GNU Libtool is free software; you can redistribute it and/or
14799
# modify it under the terms of the GNU General Public License as
14800
# published by the Free Software Foundation; either version 2 of
14801
# the License, or (at your option) any later version.
14802
#
14803
# As a special exception to the GNU General Public License,
14804
# if you distribute this file as part of a program or library that
14805
# is built using GNU Libtool, you may include this file under the
14806
# same distribution terms that you use for the rest of that program.
14807
#
14808
# GNU Libtool is distributed in the hope that it will be useful,
14809
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14810
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14811
# GNU General Public License for more details.
14812
#
14813
# You should have received a copy of the GNU General Public License
14814
# along with GNU Libtool; see the file COPYING.  If not, a copy
14815
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14816
# obtained by writing to the Free Software Foundation, Inc.,
14817
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14818
 
14819
 
14820
# The names of the tagged configurations supported by this script.
14821
available_tags=""
14822
 
14823
# ### BEGIN LIBTOOL CONFIG
14824
 
14825
# Which release of libtool.m4 was used?
14826
macro_version=$macro_version
14827
macro_revision=$macro_revision
14828
 
14829
# Whether or not to build shared libraries.
14830
build_libtool_libs=$enable_shared
14831
 
14832
# Whether or not to build static libraries.
14833
build_old_libs=$enable_static
14834
 
14835
# What type of objects to build.
14836
pic_mode=$pic_mode
14837
 
14838
# Whether or not to optimize for fast installation.
14839
fast_install=$enable_fast_install
14840
 
14841
# The host system.
14842
host_alias=$host_alias
14843
host=$host
14844
host_os=$host_os
14845
 
14846
# The build system.
14847
build_alias=$build_alias
14848
build=$build
14849
build_os=$build_os
14850
 
14851
# A sed program that does not truncate output.
14852
SED=$lt_SED
14853
 
14854
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14855
Xsed="\$SED -e 1s/^X//"
14856
 
14857
# A grep program that handles long lines.
14858
GREP=$lt_GREP
14859
 
14860
# An ERE matcher.
14861
EGREP=$lt_EGREP
14862
 
14863
# A literal string matcher.
14864
FGREP=$lt_FGREP
14865
 
14866
# A BSD- or MS-compatible name lister.
14867
NM=$lt_NM
14868
 
14869
# Whether we need soft or hard links.
14870
LN_S=$lt_LN_S
14871
 
14872
# What is the maximum length of a command?
14873
max_cmd_len=$max_cmd_len
14874
 
14875
# Object file suffix (normally "o").
14876
objext=$ac_objext
14877
 
14878
# Executable file suffix (normally "").
14879
exeext=$exeext
14880
 
14881
# whether the shell understands "unset".
14882
lt_unset=$lt_unset
14883
 
14884
# turn spaces into newlines.
14885
SP2NL=$lt_lt_SP2NL
14886
 
14887
# turn newlines into spaces.
14888
NL2SP=$lt_lt_NL2SP
14889
 
14890
# How to create reloadable object files.
14891
reload_flag=$lt_reload_flag
14892
reload_cmds=$lt_reload_cmds
14893
 
14894
# An object symbol dumper.
14895
OBJDUMP=$lt_OBJDUMP
14896
 
14897
# Method to check whether dependent libraries are shared objects.
14898
deplibs_check_method=$lt_deplibs_check_method
14899
 
14900
# Command to use when deplibs_check_method == "file_magic".
14901
file_magic_cmd=$lt_file_magic_cmd
14902
 
14903
# The archiver.
14904
AR=$lt_AR
14905
AR_FLAGS=$lt_AR_FLAGS
14906
 
14907
# A symbol stripping program.
14908
STRIP=$lt_STRIP
14909
 
14910
# Commands used to install an old-style archive.
14911
RANLIB=$lt_RANLIB
14912
old_postinstall_cmds=$lt_old_postinstall_cmds
14913
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14914
 
14915
# A C compiler.
14916
LTCC=$lt_CC
14917
 
14918
# LTCC compiler flags.
14919
LTCFLAGS=$lt_CFLAGS
14920
 
14921
# Take the output of nm and produce a listing of raw symbols and C names.
14922
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14923
 
14924
# Transform the output of nm in a proper C declaration.
14925
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14926
 
14927
# Transform the output of nm in a C name address pair.
14928
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14929
 
14930
# Transform the output of nm in a C name address pair when lib prefix is needed.
14931
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14932
 
14933
# The name of the directory that contains temporary libtool files.
14934
objdir=$objdir
14935
 
14936
# Shell to use when invoking shell scripts.
14937
SHELL=$lt_SHELL
14938
 
14939
# An echo program that does not interpret backslashes.
14940
ECHO=$lt_ECHO
14941
 
14942
# Used to examine libraries when file_magic_cmd begins with "file".
14943
MAGIC_CMD=$MAGIC_CMD
14944
 
14945
# Must we lock files when doing compilation?
14946
need_locks=$lt_need_locks
14947
 
14948
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14949
DSYMUTIL=$lt_DSYMUTIL
14950
 
14951
# Tool to change global to local symbols on Mac OS X.
14952
NMEDIT=$lt_NMEDIT
14953
 
14954
# Tool to manipulate fat objects and archives on Mac OS X.
14955
LIPO=$lt_LIPO
14956
 
14957
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14958
OTOOL=$lt_OTOOL
14959
 
14960
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14961
OTOOL64=$lt_OTOOL64
14962
 
14963
# Old archive suffix (normally "a").
14964
libext=$libext
14965
 
14966
# Shared library suffix (normally ".so").
14967
shrext_cmds=$lt_shrext_cmds
14968
 
14969
# The commands to extract the exported symbol list from a shared archive.
14970
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14971
 
14972
# Variables whose values should be saved in libtool wrapper scripts and
14973
# restored at link time.
14974
variables_saved_for_relink=$lt_variables_saved_for_relink
14975
 
14976
# Do we need the "lib" prefix for modules?
14977
need_lib_prefix=$need_lib_prefix
14978
 
14979
# Do we need a version for libraries?
14980
need_version=$need_version
14981
 
14982
# Library versioning type.
14983
version_type=$version_type
14984
 
14985
# Shared library runtime path variable.
14986
runpath_var=$runpath_var
14987
 
14988
# Shared library path variable.
14989
shlibpath_var=$shlibpath_var
14990
 
14991
# Is shlibpath searched before the hard-coded library search path?
14992
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14993
 
14994
# Format of library name prefix.
14995
libname_spec=$lt_libname_spec
14996
 
14997
# List of archive names.  First name is the real one, the rest are links.
14998
# The last name is the one that the linker finds with -lNAME
14999
library_names_spec=$lt_library_names_spec
15000
 
15001
# The coded name of the library, if different from the real name.
15002
soname_spec=$lt_soname_spec
15003
 
15004
# Command to use after installation of a shared archive.
15005
postinstall_cmds=$lt_postinstall_cmds
15006
 
15007
# Command to use after uninstallation of a shared archive.
15008
postuninstall_cmds=$lt_postuninstall_cmds
15009
 
15010
# Commands used to finish a libtool library installation in a directory.
15011
finish_cmds=$lt_finish_cmds
15012
 
15013
# As "finish_cmds", except a single script fragment to be evaled but
15014
# not shown.
15015
finish_eval=$lt_finish_eval
15016
 
15017
# Whether we should hardcode library paths into libraries.
15018
hardcode_into_libs=$hardcode_into_libs
15019
 
15020
# Compile-time system search path for libraries.
15021
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15022
 
15023
# Run-time system search path for libraries.
15024
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15025
 
15026
# Whether dlopen is supported.
15027
dlopen_support=$enable_dlopen
15028
 
15029
# Whether dlopen of programs is supported.
15030
dlopen_self=$enable_dlopen_self
15031
 
15032
# Whether dlopen of statically linked programs is supported.
15033
dlopen_self_static=$enable_dlopen_self_static
15034
 
15035
# Commands to strip libraries.
15036
old_striplib=$lt_old_striplib
15037
striplib=$lt_striplib
15038
 
15039
 
15040
# The linker used to build libraries.
15041
LD=$lt_LD
15042
 
15043
# Commands used to build an old-style archive.
15044
old_archive_cmds=$lt_old_archive_cmds
15045
 
15046
# A language specific compiler.
15047
CC=$lt_compiler
15048
 
15049
# Is the compiler the GNU compiler?
15050
with_gcc=$GCC
15051
 
15052
# Compiler flag to turn off builtin functions.
15053
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15054
 
15055
# How to pass a linker flag through the compiler.
15056
wl=$lt_lt_prog_compiler_wl
15057
 
15058
# Additional compiler flags for building library objects.
15059
pic_flag=$lt_lt_prog_compiler_pic
15060
 
15061
# Compiler flag to prevent dynamic linking.
15062
link_static_flag=$lt_lt_prog_compiler_static
15063
 
15064
# Does compiler simultaneously support -c and -o options?
15065
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15066
 
15067
# Whether or not to add -lc for building shared libraries.
15068
build_libtool_need_lc=$archive_cmds_need_lc
15069
 
15070
# Whether or not to disallow shared libs when runtime libs are static.
15071
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15072
 
15073
# Compiler flag to allow reflexive dlopens.
15074
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15075
 
15076
# Compiler flag to generate shared objects directly from archives.
15077
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15078
 
15079
# Whether the compiler copes with passing no objects directly.
15080
compiler_needs_object=$lt_compiler_needs_object
15081
 
15082
# Create an old-style archive from a shared archive.
15083
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15084
 
15085
# Create a temporary old-style archive to link instead of a shared archive.
15086
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15087
 
15088
# Commands used to build a shared archive.
15089
archive_cmds=$lt_archive_cmds
15090
archive_expsym_cmds=$lt_archive_expsym_cmds
15091
 
15092
# Commands used to build a loadable module if different from building
15093
# a shared archive.
15094
module_cmds=$lt_module_cmds
15095
module_expsym_cmds=$lt_module_expsym_cmds
15096
 
15097
# Whether we are building with GNU ld or not.
15098
with_gnu_ld=$lt_with_gnu_ld
15099
 
15100
# Flag that allows shared libraries with undefined symbols to be built.
15101
allow_undefined_flag=$lt_allow_undefined_flag
15102
 
15103
# Flag that enforces no undefined symbols.
15104
no_undefined_flag=$lt_no_undefined_flag
15105
 
15106
# Flag to hardcode \$libdir into a binary during linking.
15107
# This must work even if \$libdir does not exist
15108
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15109
 
15110
# If ld is used when linking, flag to hardcode \$libdir into a binary
15111
# during linking.  This must work even if \$libdir does not exist.
15112
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15113
 
15114
# Whether we need a single "-rpath" flag with a separated argument.
15115
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15116
 
15117
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15118
# DIR into the resulting binary.
15119
hardcode_direct=$hardcode_direct
15120
 
15121
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15122
# DIR into the resulting binary and the resulting library dependency is
15123
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15124
# library is relocated.
15125
hardcode_direct_absolute=$hardcode_direct_absolute
15126
 
15127
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15128
# into the resulting binary.
15129
hardcode_minus_L=$hardcode_minus_L
15130
 
15131
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15132
# into the resulting binary.
15133
hardcode_shlibpath_var=$hardcode_shlibpath_var
15134
 
15135
# Set to "yes" if building a shared library automatically hardcodes DIR
15136
# into the library and all subsequent libraries and executables linked
15137
# against it.
15138
hardcode_automatic=$hardcode_automatic
15139
 
15140
# Set to yes if linker adds runtime paths of dependent libraries
15141
# to runtime path list.
15142
inherit_rpath=$inherit_rpath
15143
 
15144
# Whether libtool must link a program against all its dependency libraries.
15145
link_all_deplibs=$link_all_deplibs
15146
 
15147
# Fix the shell variable \$srcfile for the compiler.
15148
fix_srcfile_path=$lt_fix_srcfile_path
15149
 
15150
# Set to "yes" if exported symbols are required.
15151
always_export_symbols=$always_export_symbols
15152
 
15153
# The commands to list exported symbols.
15154
export_symbols_cmds=$lt_export_symbols_cmds
15155
 
15156
# Symbols that should not be listed in the preloaded symbols.
15157
exclude_expsyms=$lt_exclude_expsyms
15158
 
15159
# Symbols that must always be exported.
15160
include_expsyms=$lt_include_expsyms
15161
 
15162
# Commands necessary for linking programs (against libraries) with templates.
15163
prelink_cmds=$lt_prelink_cmds
15164
 
15165
# Specify filename containing input files.
15166
file_list_spec=$lt_file_list_spec
15167
 
15168
# How to hardcode a shared library path into an executable.
15169
hardcode_action=$hardcode_action
15170
 
15171
# ### END LIBTOOL CONFIG
15172
 
15173
_LT_EOF
15174
 
15175
  case $host_os in
15176
  aix3*)
15177
    cat <<\_LT_EOF >> "$cfgfile"
15178
# AIX sometimes has problems with the GCC collect2 program.  For some
15179
# reason, if we set the COLLECT_NAMES environment variable, the problems
15180
# vanish in a puff of smoke.
15181
if test "X${COLLECT_NAMES+set}" != Xset; then
15182
  COLLECT_NAMES=
15183
  export COLLECT_NAMES
15184
fi
15185
_LT_EOF
15186
    ;;
15187
  esac
15188
 
15189
 
15190
ltmain="$ac_aux_dir/ltmain.sh"
15191
 
15192
 
15193
  # We use sed instead of cat because bash on DJGPP gets confused if
15194
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15195
  # text mode, it properly converts lines to CR/LF.  This bash problem
15196
  # is reportedly fixed, but why not run on old versions too?
15197
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15198
    || (rm -f "$cfgfile"; exit 1)
15199
 
15200
  case $xsi_shell in
15201
  yes)
15202
    cat << \_LT_EOF >> "$cfgfile"
15203
 
15204
# func_dirname file append nondir_replacement
15205
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15206
# otherwise set result to NONDIR_REPLACEMENT.
15207
func_dirname ()
15208
{
15209
  case ${1} in
15210
    */*) func_dirname_result="${1%/*}${2}" ;;
15211
    *  ) func_dirname_result="${3}" ;;
15212
  esac
15213
}
15214
 
15215
# func_basename file
15216
func_basename ()
15217
{
15218
  func_basename_result="${1##*/}"
15219
}
15220
 
15221
# func_dirname_and_basename file append nondir_replacement
15222
# perform func_basename and func_dirname in a single function
15223
# call:
15224
#   dirname:  Compute the dirname of FILE.  If nonempty,
15225
#             add APPEND to the result, otherwise set result
15226
#             to NONDIR_REPLACEMENT.
15227
#             value returned in "$func_dirname_result"
15228
#   basename: Compute filename of FILE.
15229
#             value retuned in "$func_basename_result"
15230
# Implementation must be kept synchronized with func_dirname
15231
# and func_basename. For efficiency, we do not delegate to
15232
# those functions but instead duplicate the functionality here.
15233
func_dirname_and_basename ()
15234
{
15235
  case ${1} in
15236
    */*) func_dirname_result="${1%/*}${2}" ;;
15237
    *  ) func_dirname_result="${3}" ;;
15238
  esac
15239
  func_basename_result="${1##*/}"
15240
}
15241
 
15242
# func_stripname prefix suffix name
15243
# strip PREFIX and SUFFIX off of NAME.
15244
# PREFIX and SUFFIX must not contain globbing or regex special
15245
# characters, hashes, percent signs, but SUFFIX may contain a leading
15246
# dot (in which case that matches only a dot).
15247
func_stripname ()
15248
{
15249
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15250
  # positional parameters, so assign one to ordinary parameter first.
15251
  func_stripname_result=${3}
15252
  func_stripname_result=${func_stripname_result#"${1}"}
15253
  func_stripname_result=${func_stripname_result%"${2}"}
15254
}
15255
 
15256
# func_opt_split
15257
func_opt_split ()
15258
{
15259
  func_opt_split_opt=${1%%=*}
15260
  func_opt_split_arg=${1#*=}
15261
}
15262
 
15263
# func_lo2o object
15264
func_lo2o ()
15265
{
15266
  case ${1} in
15267
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15268
    *)    func_lo2o_result=${1} ;;
15269
  esac
15270
}
15271
 
15272
# func_xform libobj-or-source
15273
func_xform ()
15274
{
15275
  func_xform_result=${1%.*}.lo
15276
}
15277
 
15278
# func_arith arithmetic-term...
15279
func_arith ()
15280
{
15281
  func_arith_result=$(( $* ))
15282
}
15283
 
15284
# func_len string
15285
# STRING may not start with a hyphen.
15286
func_len ()
15287
{
15288
  func_len_result=${#1}
15289
}
15290
 
15291
_LT_EOF
15292
    ;;
15293
  *) # Bourne compatible functions.
15294
    cat << \_LT_EOF >> "$cfgfile"
15295
 
15296
# func_dirname file append nondir_replacement
15297
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15298
# otherwise set result to NONDIR_REPLACEMENT.
15299
func_dirname ()
15300
{
15301
  # Extract subdirectory from the argument.
15302
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15303
  if test "X$func_dirname_result" = "X${1}"; then
15304
    func_dirname_result="${3}"
15305
  else
15306
    func_dirname_result="$func_dirname_result${2}"
15307
  fi
15308
}
15309
 
15310
# func_basename file
15311
func_basename ()
15312
{
15313
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15314
}
15315
 
15316
 
15317
# func_stripname prefix suffix name
15318
# strip PREFIX and SUFFIX off of NAME.
15319
# PREFIX and SUFFIX must not contain globbing or regex special
15320
# characters, hashes, percent signs, but SUFFIX may contain a leading
15321
# dot (in which case that matches only a dot).
15322
# func_strip_suffix prefix name
15323
func_stripname ()
15324
{
15325
  case ${2} in
15326
    .*) func_stripname_result=`$ECHO "X${3}" \
15327
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15328
    *)  func_stripname_result=`$ECHO "X${3}" \
15329
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15330
  esac
15331
}
15332
 
15333
# sed scripts:
15334
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15335
my_sed_long_arg='1s/^-[^=]*=//'
15336
 
15337
# func_opt_split
15338
func_opt_split ()
15339
{
15340
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15341
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15342
}
15343
 
15344
# func_lo2o object
15345
func_lo2o ()
15346
{
15347
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15348
}
15349
 
15350
# func_xform libobj-or-source
15351
func_xform ()
15352
{
15353
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15354
}
15355
 
15356
# func_arith arithmetic-term...
15357
func_arith ()
15358
{
15359
  func_arith_result=`expr "$@"`
15360
}
15361
 
15362
# func_len string
15363
# STRING may not start with a hyphen.
15364
func_len ()
15365
{
15366
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15367
}
15368
 
15369
_LT_EOF
15370
esac
15371
 
15372
case $lt_shell_append in
15373
  yes)
15374
    cat << \_LT_EOF >> "$cfgfile"
15375
 
15376
# func_append var value
15377
# Append VALUE to the end of shell variable VAR.
15378
func_append ()
15379
{
15380
  eval "$1+=\$2"
15381
}
15382
_LT_EOF
15383
    ;;
15384
  *)
15385
    cat << \_LT_EOF >> "$cfgfile"
15386
 
15387
# func_append var value
15388
# Append VALUE to the end of shell variable VAR.
15389
func_append ()
15390
{
15391
  eval "$1=\$$1\$2"
15392
}
15393
 
15394
_LT_EOF
15395
    ;;
15396
  esac
15397
 
15398
 
15399
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15400
    || (rm -f "$cfgfile"; exit 1)
15401
 
15402
  mv -f "$cfgfile" "$ofile" ||
15403
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15404
  chmod +x "$ofile"
15405
 
15406
 ;;
15407
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15408
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15409
  # are listed without --file.  Let's play safe and only enable the eval
15410
  # if we detect the quoting.
15411
  case $CONFIG_FILES in
15412
  *\'*) eval set x "$CONFIG_FILES" ;;
15413
  *)   set x $CONFIG_FILES ;;
15414
  esac
15415
  shift
15416
  for mf
15417
  do
15418
    # Strip MF so we end up with the name of the file.
15419
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15420
    # Check whether this is an Automake generated Makefile or not.
15421
    # We used to match only the files named `Makefile.in', but
15422
    # some people rename them; so instead we look at the file content.
15423
    # Grep'ing the first line is not enough: some people post-process
15424
    # each Makefile.in and add a new line on top of each file to say so.
15425
    # Grep'ing the whole file is not good either: AIX grep has a line
15426
    # limit of 2048, but all sed's we know have understand at least 4000.
15427
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15428
      dirpart=`$as_dirname -- "$mf" ||
15429 19 jeremybenn
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15430
         X"$mf" : 'X\(//\)[^/]' \| \
15431
         X"$mf" : 'X\(//\)$' \| \
15432
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15433 82 jeremybenn
$as_echo X"$mf" |
15434 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15435
            s//\1/
15436
            q
15437
          }
15438
          /^X\(\/\/\)[^/].*/{
15439
            s//\1/
15440
            q
15441
          }
15442
          /^X\(\/\/\)$/{
15443
            s//\1/
15444
            q
15445
          }
15446
          /^X\(\/\).*/{
15447
            s//\1/
15448
            q
15449
          }
15450
          s/.*/./; q'`
15451 82 jeremybenn
    else
15452
      continue
15453
    fi
15454
    # Extract the definition of DEPDIR, am__include, and am__quote
15455
    # from the Makefile without running `make'.
15456
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15457
    test -z "$DEPDIR" && continue
15458
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15459
    test -z "am__include" && continue
15460
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15461
    # When using ansi2knr, U may be empty or an underscore; expand it
15462
    U=`sed -n 's/^U = //p' < "$mf"`
15463
    # Find all dependency output files, they are included files with
15464
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15465
    # simplest approach to changing $(DEPDIR) to its actual value in the
15466
    # expansion.
15467
    for file in `sed -n "
15468
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15469
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15470
      # Make sure the directory exists.
15471
      test -f "$dirpart/$file" && continue
15472
      fdir=`$as_dirname -- "$file" ||
15473 19 jeremybenn
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15474
         X"$file" : 'X\(//\)[^/]' \| \
15475
         X"$file" : 'X\(//\)$' \| \
15476
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15477 82 jeremybenn
$as_echo X"$file" |
15478 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15479
            s//\1/
15480
            q
15481
          }
15482
          /^X\(\/\/\)[^/].*/{
15483
            s//\1/
15484
            q
15485
          }
15486
          /^X\(\/\/\)$/{
15487
            s//\1/
15488
            q
15489
          }
15490
          /^X\(\/\).*/{
15491
            s//\1/
15492
            q
15493
          }
15494
          s/.*/./; q'`
15495 346 jeremybenn
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15496 82 jeremybenn
      # echo "creating $dirpart/$file"
15497
      echo '# dummy' > "$dirpart/$file"
15498
    done
15499 19 jeremybenn
  done
15500 82 jeremybenn
}
15501 19 jeremybenn
 ;;
15502
 
15503
  esac
15504
done # for ac_tag
15505
 
15506
 
15507 346 jeremybenn
as_fn_exit 0
15508 19 jeremybenn
_ACEOF
15509
ac_clean_files=$ac_clean_files_save
15510
 
15511 82 jeremybenn
test $ac_write_fail = 0 ||
15512 346 jeremybenn
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15513 19 jeremybenn
 
15514 82 jeremybenn
 
15515 19 jeremybenn
# configure is writing to config.log, and then calls config.status.
15516
# config.status does its own redirection, appending to config.log.
15517
# Unfortunately, on DOS this fails, as config.log is still kept open
15518
# by configure, so config.status won't be able to write to it; its
15519
# output is simply discarded.  So we exec the FD to /dev/null,
15520
# effectively closing config.log, so it can be properly (re)opened and
15521
# appended to by config.status.  When coming back to configure, we
15522
# need to make the FD available again.
15523
if test "$no_create" != yes; then
15524
  ac_cs_success=:
15525
  ac_config_status_args=
15526
  test "$silent" = yes &&
15527
    ac_config_status_args="$ac_config_status_args --quiet"
15528
  exec 5>/dev/null
15529
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15530
  exec 5>>config.log
15531
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15532
  # would make configure fail if this is the last instruction.
15533 346 jeremybenn
  $ac_cs_success || as_fn_exit $?
15534 19 jeremybenn
fi
15535
 
15536 82 jeremybenn
#
15537
# CONFIG_SUBDIRS section.
15538
#
15539
if test "$no_recursion" != yes; then
15540
 
15541
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15542
  # so they do not pile up.
15543
  ac_sub_configure_args=
15544
  ac_prev=
15545
  eval "set x $ac_configure_args"
15546
  shift
15547
  for ac_arg
15548
  do
15549
    if test -n "$ac_prev"; then
15550
      ac_prev=
15551
      continue
15552
    fi
15553
    case $ac_arg in
15554
    -cache-file | --cache-file | --cache-fil | --cache-fi \
15555
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15556
      ac_prev=cache_file ;;
15557
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15558
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15559
    | --c=*)
15560
      ;;
15561
    --config-cache | -C)
15562
      ;;
15563
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15564
      ac_prev=srcdir ;;
15565
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15566
      ;;
15567
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15568
      ac_prev=prefix ;;
15569
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15570
      ;;
15571
    --disable-option-checking)
15572
      ;;
15573
    *)
15574
      case $ac_arg in
15575
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15576
      esac
15577 346 jeremybenn
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15578 82 jeremybenn
    esac
15579
  done
15580
 
15581
  # Always prepend --prefix to ensure using the same prefix
15582
  # in subdir configurations.
15583
  ac_arg="--prefix=$prefix"
15584
  case $ac_arg in
15585
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15586
  esac
15587
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15588
 
15589
  # Pass --silent
15590
  if test "$silent" = yes; then
15591
    ac_sub_configure_args="--silent $ac_sub_configure_args"
15592
  fi
15593
 
15594
  # Always prepend --disable-option-checking to silence warnings, since
15595
  # different subdirs can have different --enable and --with options.
15596
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15597
 
15598
  ac_popdir=`pwd`
15599
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15600
 
15601
    # Do not complain, so a configure script can configure whichever
15602
    # parts of a large source tree are present.
15603
    test -d "$srcdir/$ac_dir" || continue
15604
 
15605
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15606 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15607 82 jeremybenn
    $as_echo "$ac_msg" >&6
15608 346 jeremybenn
    as_dir="$ac_dir"; as_fn_mkdir_p
15609 82 jeremybenn
    ac_builddir=.
15610
 
15611
case "$ac_dir" in
15612
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15613
*)
15614
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15615
  # A ".." for each directory in $ac_dir_suffix.
15616
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15617
  case $ac_top_builddir_sub in
15618
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15619
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15620
  esac ;;
15621
esac
15622
ac_abs_top_builddir=$ac_pwd
15623
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15624
# for backward compatibility:
15625
ac_top_builddir=$ac_top_build_prefix
15626
 
15627
case $srcdir in
15628
  .)  # We are building in place.
15629
    ac_srcdir=.
15630
    ac_top_srcdir=$ac_top_builddir_sub
15631
    ac_abs_top_srcdir=$ac_pwd ;;
15632
  [\\/]* | ?:[\\/]* )  # Absolute name.
15633
    ac_srcdir=$srcdir$ac_dir_suffix;
15634
    ac_top_srcdir=$srcdir
15635
    ac_abs_top_srcdir=$srcdir ;;
15636
  *) # Relative name.
15637
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15638
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15639
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15640
esac
15641
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15642
 
15643
 
15644
    cd "$ac_dir"
15645
 
15646
    # Check for guested configure; otherwise get Cygnus style configure.
15647
    if test -f "$ac_srcdir/configure.gnu"; then
15648
      ac_sub_configure=$ac_srcdir/configure.gnu
15649
    elif test -f "$ac_srcdir/configure"; then
15650
      ac_sub_configure=$ac_srcdir/configure
15651
    elif test -f "$ac_srcdir/configure.in"; then
15652
      # This should be Cygnus configure.
15653
      ac_sub_configure=$ac_aux_dir/configure
15654
    else
15655 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15656 82 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15657
      ac_sub_configure=
15658
    fi
15659
 
15660
    # The recursion is here.
15661
    if test -n "$ac_sub_configure"; then
15662
      # Make the cache file name correct relative to the subdirectory.
15663
      case $cache_file in
15664
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15665
      *) # Relative name.
15666
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15667
      esac
15668
 
15669 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15670 82 jeremybenn
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15671
      # The eval makes quoting arguments work.
15672
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15673
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15674 346 jeremybenn
        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15675 82 jeremybenn
    fi
15676
 
15677
    cd "$ac_popdir"
15678
  done
15679
fi
15680
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15681 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15682 82 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15683
fi
15684
 

powered by: WebSVN 2.1.0

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