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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [testsuite/] [test-code-or1k/] [configure] - Blame information for rev 510

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

Line No. Rev Author Line
1 90 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3 510 jeremybenn
# Generated by GNU Autoconf 2.65 for or1ksim-testsuite 0.5.1rc1.
4 90 jeremybenn
#
5
# Report bugs to .
6
#
7 460 jeremybenn
#
8 90 jeremybenn
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 460 jeremybenn
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10
# Inc.
11 346 jeremybenn
#
12 460 jeremybenn
#
13 90 jeremybenn
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15 346 jeremybenn
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
18 90 jeremybenn
 
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 90 jeremybenn
  emulate sh
23
  NULLCMD=:
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
  # is contrary to our usage.  Disable this feature.
26
  alias -g '${1+"$@"}'='"$@"'
27
  setopt NO_GLOB_SUBST
28
else
29 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
30
  *posix*) :
31
    set -o posix ;; #(
32
  *) :
33
     ;;
34 90 jeremybenn
esac
35
fi
36
 
37
 
38
as_nl='
39
'
40
export as_nl
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49
  as_echo='print -r --'
50
  as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 90 jeremybenn
  as_echo='printf %s\n'
53
  as_echo_n='printf %s'
54
else
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
    as_echo_n='/usr/ucb/echo -n'
58
  else
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
    as_echo_n_body='eval
61
      arg=$1;
62 346 jeremybenn
      case $arg in #(
63 90 jeremybenn
      *"$as_nl"*)
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66
      esac;
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
    '
69
    export as_echo_n_body
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
71
  fi
72
  export as_echo_body
73
  as_echo='sh -c $as_echo_body as_echo'
74
fi
75
 
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
78
  PATH_SEPARATOR=:
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
      PATH_SEPARATOR=';'
82
  }
83
fi
84
 
85
 
86
# IFS
87
# We need space, tab and new line, in precisely that order.  Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
91
IFS=" ""        $as_nl"
92
 
93
# Find who we are.  Look in the path if we contain no directory separator.
94 346 jeremybenn
case $0 in #((
95 90 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97
for as_dir in $PATH
98
do
99
  IFS=$as_save_IFS
100
  test -z "$as_dir" && as_dir=.
101 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102
  done
103 90 jeremybenn
IFS=$as_save_IFS
104
 
105
     ;;
106
esac
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
110
  as_myself=$0
111
fi
112
if test ! -f "$as_myself"; then
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 346 jeremybenn
  exit 1
115 90 jeremybenn
fi
116
 
117 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there.  '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 90 jeremybenn
done
125
PS1='$ '
126
PS2='> '
127
PS4='+ '
128
 
129
# NLS nuisances.
130
LC_ALL=C
131
export LC_ALL
132
LANGUAGE=C
133
export LANGUAGE
134
 
135
# CDPATH.
136 346 jeremybenn
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 90 jeremybenn
 
138
if test "x$CONFIG_SHELL" = x; then
139 346 jeremybenn
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
  emulate sh
141
  NULLCMD=:
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
  # is contrary to our usage.  Disable this feature.
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
  setopt NO_GLOB_SUBST
146 90 jeremybenn
else
147 346 jeremybenn
  case \`(set -o) 2>/dev/null\` in #(
148
  *posix*) :
149
    set -o posix ;; #(
150
  *) :
151
     ;;
152
esac
153 90 jeremybenn
fi
154 346 jeremybenn
"
155
  as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
160 90 jeremybenn
 
161
exitcode=0
162 346 jeremybenn
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 90 jeremybenn
 
168
else
169 346 jeremybenn
  exitcode=1; echo positional parameters were not saved.
170 90 jeremybenn
fi
171 346 jeremybenn
test x\$exitcode = x0 || exit 1"
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
  if (eval "$as_required") 2>/dev/null; then :
178
  as_have_required=yes
179 90 jeremybenn
else
180 346 jeremybenn
  as_have_required=no
181 90 jeremybenn
fi
182 346 jeremybenn
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 90 jeremybenn
 
184
else
185 346 jeremybenn
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186
as_found=false
187 90 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
do
189
  IFS=$as_save_IFS
190
  test -z "$as_dir" && as_dir=.
191 346 jeremybenn
  as_found=:
192
  case $as_dir in #(
193 90 jeremybenn
         /*)
194
           for as_base in sh bash ksh sh5; do
195 346 jeremybenn
             # Try only shells that exist, to save several forks.
196
             as_shell=$as_dir/$as_base
197
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
  CONFIG_SHELL=$as_shell as_have_required=yes
200
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201
  break 2
202
fi
203
fi
204 90 jeremybenn
           done;;
205
       esac
206 346 jeremybenn
  as_found=false
207 90 jeremybenn
done
208 346 jeremybenn
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
  CONFIG_SHELL=$SHELL as_have_required=yes
211
fi; }
212 90 jeremybenn
IFS=$as_save_IFS
213
 
214
 
215 346 jeremybenn
      if test "x$CONFIG_SHELL" != x; then :
216
  # We cannot yet assume a decent shell, so we have to provide a
217
        # neutralization value for shells without unset; and this also
218
        # works around shells that cannot unset nonexistent variables.
219
        BASH_ENV=/dev/null
220
        ENV=/dev/null
221
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222
        export CONFIG_SHELL
223
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 90 jeremybenn
fi
225
 
226 346 jeremybenn
    if test x$as_have_required = xno; then :
227
  $as_echo "$0: This script requires a shell more modern than all"
228
  $as_echo "$0: the shells that I found on your system."
229
  if test x${ZSH_VERSION+set} = xset ; then
230
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232
  else
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234
$0: openrisc@opencores.org about your system, including any
235
$0: error possibly output before this message. Then install
236
$0: a modern shell, or manually run the script under such a
237
$0: shell if you do have one."
238
  fi
239
  exit 1
240 90 jeremybenn
fi
241
fi
242
fi
243 346 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
244
export SHELL
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
248 90 jeremybenn
 
249 346 jeremybenn
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
252
# as_fn_unset VAR
253
# ---------------
254
# Portably unset VAR.
255
as_fn_unset ()
256
{
257
  { eval $1=; unset $1;}
258
}
259
as_unset=as_fn_unset
260 90 jeremybenn
 
261 346 jeremybenn
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
264
as_fn_set_status ()
265
{
266
  return $1
267
} # as_fn_set_status
268 90 jeremybenn
 
269 346 jeremybenn
# as_fn_exit STATUS
270
# -----------------
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272
as_fn_exit ()
273
{
274
  set +e
275
  as_fn_set_status $1
276
  exit $1
277
} # as_fn_exit
278 90 jeremybenn
 
279 346 jeremybenn
# as_fn_mkdir_p
280
# -------------
281
# Create "$as_dir" as a directory, including parents if necessary.
282
as_fn_mkdir_p ()
283
{
284 90 jeremybenn
 
285 346 jeremybenn
  case $as_dir in #(
286
  -*) as_dir=./$as_dir;;
287
  esac
288
  test -d "$as_dir" || eval $as_mkdir_p || {
289
    as_dirs=
290
    while :; do
291
      case $as_dir in #(
292
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293
      *) as_qdir=$as_dir;;
294
      esac
295
      as_dirs="'$as_qdir' $as_dirs"
296
      as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
         X"$as_dir" : 'X\(//\)[^/]' \| \
299
         X"$as_dir" : 'X\(//\)$' \| \
300
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303
            s//\1/
304
            q
305
          }
306
          /^X\(\/\/\)[^/].*/{
307
            s//\1/
308
            q
309
          }
310
          /^X\(\/\/\)$/{
311
            s//\1/
312
            q
313
          }
314
          /^X\(\/\).*/{
315
            s//\1/
316
            q
317
          }
318
          s/.*/./; q'`
319
      test -d "$as_dir" && break
320
    done
321
    test -z "$as_dirs" || eval "mkdir $as_dirs"
322
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 90 jeremybenn
 
324
 
325 346 jeremybenn
} # as_fn_mkdir_p
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
331
# implementations.
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
  eval 'as_fn_append ()
334
  {
335
    eval $1+=\$2
336
  }'
337
else
338
  as_fn_append ()
339
  {
340
    eval $1=\$$1\$2
341
  }
342
fi # as_fn_append
343 90 jeremybenn
 
344 346 jeremybenn
# as_fn_arith ARG...
345
# ------------------
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350
  eval 'as_fn_arith ()
351
  {
352
    as_val=$(( $* ))
353
  }'
354
else
355
  as_fn_arith ()
356
  {
357
    as_val=`expr "$@" || test $? -eq 1`
358
  }
359
fi # as_fn_arith
360 90 jeremybenn
 
361
 
362 346 jeremybenn
# as_fn_error ERROR [LINENO LOG_FD]
363
# ---------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with status $?, using 1 if that was 0.
367
as_fn_error ()
368
{
369
  as_status=$?; test $as_status -eq 0 && as_status=1
370
  if test "$3"; then
371
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373
  fi
374
  $as_echo "$as_me: error: $1" >&2
375
  as_fn_exit $as_status
376
} # as_fn_error
377 90 jeremybenn
 
378 346 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380
  as_expr=expr
381 90 jeremybenn
else
382 346 jeremybenn
  as_expr=false
383 90 jeremybenn
fi
384
 
385 346 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386
  as_basename=basename
387 90 jeremybenn
else
388 346 jeremybenn
  as_basename=false
389 90 jeremybenn
fi
390
 
391 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392
  as_dirname=dirname
393 90 jeremybenn
else
394 346 jeremybenn
  as_dirname=false
395 90 jeremybenn
fi
396
 
397 346 jeremybenn
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
         X"$0" : 'X\(//\)$' \| \
400
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401
$as_echo X/"$0" |
402
    sed '/^.*\/\([^/][^/]*\)\/*$/{
403
            s//\1/
404
            q
405
          }
406
          /^X\/\(\/\/\)$/{
407
            s//\1/
408
            q
409
          }
410
          /^X\/\(\/\).*/{
411
            s//\1/
412
            q
413
          }
414
          s/.*/./; q'`
415 90 jeremybenn
 
416 346 jeremybenn
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
422 90 jeremybenn
 
423
 
424 346 jeremybenn
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429 90 jeremybenn
  sed -n '
430
    p
431
    /[$]LINENO/=
432
  ' <$as_myself |
433
    sed '
434
      s/[$]LINENO.*/&-/
435
      t lineno
436
      b
437
      :lineno
438
      N
439
      :loop
440
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441
      t loop
442
      s/-\n.*//
443
    ' >$as_me.lineno &&
444
  chmod +x "$as_me.lineno" ||
445 346 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446 90 jeremybenn
 
447
  # Don't try to exec as it changes $[0], causing all sort of problems
448
  # (the dirname of $[0] is not the place where we might find the
449
  # original and so on.  Autoconf is especially sensitive to this).
450
  . "./$as_me.lineno"
451
  # Exit status is that of the last command.
452
  exit
453
}
454
 
455
ECHO_C= ECHO_N= ECHO_T=
456 346 jeremybenn
case `echo -n x` in #(((((
457 90 jeremybenn
-n*)
458 346 jeremybenn
  case `echo 'xy\c'` in
459 90 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460 346 jeremybenn
  xy)  ECHO_C='\c';;
461
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462
       ECHO_T=' ';;
463 90 jeremybenn
  esac;;
464
*)
465
  ECHO_N='-n';;
466
esac
467
 
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
  rm -f conf$$.dir/conf$$.file
471
else
472
  rm -f conf$$.dir
473
  mkdir conf$$.dir 2>/dev/null
474
fi
475
if (echo >conf$$.file) 2>/dev/null; then
476
  if ln -s conf$$.file conf$$ 2>/dev/null; then
477
    as_ln_s='ln -s'
478
    # ... but there are two gotchas:
479
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
    # In both cases, we have to default to `cp -p'.
482
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483
      as_ln_s='cp -p'
484
  elif ln conf$$.file conf$$ 2>/dev/null; then
485
    as_ln_s=ln
486
  else
487
    as_ln_s='cp -p'
488
  fi
489
else
490
  as_ln_s='cp -p'
491
fi
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
494
 
495
if mkdir -p . 2>/dev/null; then
496 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
497 90 jeremybenn
else
498
  test -d ./-p && rmdir ./-p
499
  as_mkdir_p=false
500
fi
501
 
502
if test -x / >/dev/null 2>&1; then
503
  as_test_x='test -x'
504
else
505
  if ls -dL / >/dev/null 2>&1; then
506
    as_ls_L_option=L
507
  else
508
    as_ls_L_option=
509
  fi
510
  as_test_x='
511
    eval sh -c '\''
512
      if test -d "$1"; then
513
        test -d "$1/.";
514
      else
515 346 jeremybenn
        case $1 in #(
516 90 jeremybenn
        -*)set "./$1";;
517
        esac;
518 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 90 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
520
    '\'' sh
521
  '
522
fi
523
as_executable_p=$as_test_x
524
 
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
 
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
 
531
 
532
 
533
# Check that we are running under the correct shell.
534
SHELL=${CONFIG_SHELL-/bin/sh}
535
 
536
case X$lt_ECHO in
537
X*--fallback-echo)
538
  # Remove one level of quotation (which was required for Make).
539
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540
  ;;
541
esac
542
 
543
ECHO=${lt_ECHO-echo}
544
if test "X$1" = X--no-reexec; then
545
  # Discard the --no-reexec flag, and continue.
546
  shift
547
elif test "X$1" = X--fallback-echo; then
548
  # Avoid inline document here, it may be left over
549
  :
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551
  # Yippee, $ECHO works!
552
  :
553
else
554
  # Restart under the correct shell.
555
  exec $SHELL "$0" --no-reexec ${1+"$@"}
556
fi
557
 
558
if test "X$1" = X--fallback-echo; then
559
  # used as fallback echo
560
  shift
561
  cat <<_LT_EOF
562
$*
563
_LT_EOF
564
  exit 0
565
fi
566
 
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
568
# if CDPATH is set.
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
 
571
if test -z "$lt_ECHO"; then
572
  if test "X${echo_test_string+set}" != Xset; then
573
    # find a string as large as possible, as long as the shell can cope with it
574
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578
      then
579
        break
580
      fi
581
    done
582
  fi
583
 
584
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586
     test "X$echo_testing_string" = "X$echo_test_string"; then
587
    :
588
  else
589
    # The Solaris, AIX, and Digital Unix default echo programs unquote
590
    # backslashes.  This makes it impossible to quote backslashes using
591
    #   echo "$something" | sed 's/\\/\\\\/g'
592
    #
593
    # So, first we look for a working echo in the user's PATH.
594
 
595
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596
    for dir in $PATH /usr/ucb; do
597
      IFS="$lt_save_ifs"
598
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601
         test "X$echo_testing_string" = "X$echo_test_string"; then
602
        ECHO="$dir/echo"
603
        break
604
      fi
605
    done
606
    IFS="$lt_save_ifs"
607
 
608
    if test "X$ECHO" = Xecho; then
609
      # We didn't find a better echo, so look for alternatives.
610
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612
         test "X$echo_testing_string" = "X$echo_test_string"; then
613
        # This shell has a builtin print -r that does the trick.
614
        ECHO='print -r'
615
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616
           test "X$CONFIG_SHELL" != X/bin/ksh; then
617
        # If we have ksh, try running configure again with it.
618
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619
        export ORIGINAL_CONFIG_SHELL
620
        CONFIG_SHELL=/bin/ksh
621
        export CONFIG_SHELL
622
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623
      else
624
        # Try using printf.
625
        ECHO='printf %s\n'
626
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
           test "X$echo_testing_string" = "X$echo_test_string"; then
629
          # Cool, printf works
630
          :
631
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632
             test "X$echo_testing_string" = 'X\t' &&
633
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634
             test "X$echo_testing_string" = "X$echo_test_string"; then
635
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636
          export CONFIG_SHELL
637
          SHELL="$CONFIG_SHELL"
638
          export SHELL
639
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641
             test "X$echo_testing_string" = 'X\t' &&
642
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643
             test "X$echo_testing_string" = "X$echo_test_string"; then
644
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
645
        else
646
          # maybe with a smaller string...
647
          prev=:
648
 
649
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651
            then
652
              break
653
            fi
654
            prev="$cmd"
655
          done
656
 
657
          if test "$prev" != 'sed 50q "$0"'; then
658
            echo_test_string=`eval $prev`
659
            export echo_test_string
660
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661
          else
662
            # Oops.  We lost completely, so just stick with echo.
663
            ECHO=echo
664
          fi
665
        fi
666
      fi
667
    fi
668
  fi
669
fi
670
 
671
# Copy echo and quote the copy suitably for passing to libtool from
672
# the Makefile, instead of quoting the original, which is used later.
673
lt_ECHO=$ECHO
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676
fi
677
 
678
 
679
 
680
 
681 460 jeremybenn
test -n "$DJDIR" || exec 7<&0 
682
exec 6>&1
683 90 jeremybenn
 
684
# Name of the host.
685
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686
# so uname gets run too.
687
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
 
689
#
690
# Initializations.
691
#
692
ac_default_prefix=/usr/local
693
ac_clean_files=
694
ac_config_libobj_dir=.
695
LIBOBJS=
696
cross_compiling=no
697
subdirs=
698
MFLAGS=
699
MAKEFLAGS=
700
 
701
# Identity of this package.
702
PACKAGE_NAME='or1ksim-testsuite'
703
PACKAGE_TARNAME='or1ksim-testsuite'
704 510 jeremybenn
PACKAGE_VERSION='0.5.1rc1'
705
PACKAGE_STRING='or1ksim-testsuite 0.5.1rc1'
706 90 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
707 346 jeremybenn
PACKAGE_URL=''
708 90 jeremybenn
 
709
# Factoring default headers for most tests.
710
ac_includes_default="\
711
#include 
712
#ifdef HAVE_SYS_TYPES_H
713
# include 
714
#endif
715
#ifdef HAVE_SYS_STAT_H
716
# include 
717
#endif
718
#ifdef STDC_HEADERS
719
# include 
720
# include 
721
#else
722
# ifdef HAVE_STDLIB_H
723
#  include 
724
# endif
725
#endif
726
#ifdef HAVE_STRING_H
727
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728
#  include 
729
# endif
730
# include 
731
#endif
732
#ifdef HAVE_STRINGS_H
733
# include 
734
#endif
735
#ifdef HAVE_INTTYPES_H
736
# include 
737
#endif
738
#ifdef HAVE_STDINT_H
739
# include 
740
#endif
741
#ifdef HAVE_UNISTD_H
742
# include 
743
#endif"
744
 
745
ac_subst_vars='am__EXEEXT_FALSE
746
am__EXEEXT_TRUE
747
LTLIBOBJS
748
LIBOBJS
749
am__fastdepCCAS_FALSE
750
am__fastdepCCAS_TRUE
751
CCASDEPMODE
752
CCASFLAGS
753
CCAS
754
SIM
755
BUILD_ALL_TESTS_FALSE
756
BUILD_ALL_TESTS_TRUE
757
am__fastdepCC_FALSE
758
am__fastdepCC_TRUE
759
CCDEPMODE
760
AMDEPBACKSLASH
761
AMDEP_FALSE
762
AMDEP_TRUE
763
am__quote
764
am__include
765
DEPDIR
766
am__untar
767
am__tar
768
AMTAR
769
am__leading_dot
770
SET_MAKE
771
AWK
772
mkdir_p
773
MKDIR_P
774
INSTALL_STRIP_PROGRAM
775
install_sh
776
MAKEINFO
777
AUTOHEADER
778
AUTOMAKE
779
AUTOCONF
780
ACLOCAL
781
VERSION
782
PACKAGE
783
CYGPATH_W
784
am__isrc
785
INSTALL_DATA
786
INSTALL_SCRIPT
787
INSTALL_PROGRAM
788
CPP
789
OTOOL64
790
OTOOL
791
LIPO
792
NMEDIT
793
DSYMUTIL
794
lt_ECHO
795
RANLIB
796
STRIP
797
AR
798
OBJDUMP
799
LN_S
800
NM
801
ac_ct_DUMPBIN
802
DUMPBIN
803
LD
804
FGREP
805
EGREP
806
GREP
807
SED
808
OBJEXT
809
EXEEXT
810
ac_ct_CC
811
CPPFLAGS
812
LDFLAGS
813
CFLAGS
814
CC
815
host_os
816
host_vendor
817
host_cpu
818
host
819
build_os
820
build_vendor
821
build_cpu
822
build
823
LIBTOOL
824
target_alias
825
host_alias
826
build_alias
827
LIBS
828
ECHO_T
829
ECHO_N
830
ECHO_C
831
DEFS
832
mandir
833
localedir
834
libdir
835
psdir
836
pdfdir
837
dvidir
838
htmldir
839
infodir
840
docdir
841
oldincludedir
842
includedir
843
localstatedir
844
sharedstatedir
845
sysconfdir
846
datadir
847
datarootdir
848
libexecdir
849
sbindir
850
bindir
851
program_transform_name
852
prefix
853
exec_prefix
854 346 jeremybenn
PACKAGE_URL
855 90 jeremybenn
PACKAGE_BUGREPORT
856
PACKAGE_STRING
857
PACKAGE_VERSION
858
PACKAGE_TARNAME
859
PACKAGE_NAME
860
PATH_SEPARATOR
861
SHELL'
862
ac_subst_files=''
863
ac_user_opts='
864
enable_option_checking
865
enable_shared
866
enable_static
867
with_pic
868
enable_fast_install
869
with_gnu_ld
870
enable_libtool_lock
871
enable_dependency_tracking
872
enable_all_tests
873 458 julius
enable_check_opt
874 90 jeremybenn
'
875
      ac_precious_vars='build_alias
876
host_alias
877
target_alias
878
CC
879
CFLAGS
880
LDFLAGS
881
LIBS
882
CPPFLAGS
883
CPP
884
CCAS
885
CCASFLAGS'
886
 
887
 
888
# Initialize some variables set by options.
889
ac_init_help=
890
ac_init_version=false
891
ac_unrecognized_opts=
892
ac_unrecognized_sep=
893
# The variables have the same names as the options, with
894
# dashes changed to underlines.
895
cache_file=/dev/null
896
exec_prefix=NONE
897
no_create=
898
no_recursion=
899
prefix=NONE
900
program_prefix=NONE
901
program_suffix=NONE
902
program_transform_name=s,x,x,
903
silent=
904
site=
905
srcdir=
906
verbose=
907
x_includes=NONE
908
x_libraries=NONE
909
 
910
# Installation directory options.
911
# These are left unexpanded so users can "make install exec_prefix=/foo"
912
# and all the variables that are supposed to be based on exec_prefix
913
# by default will actually change.
914
# Use braces instead of parens because sh, perl, etc. also accept them.
915
# (The list follows the same order as the GNU Coding Standards.)
916
bindir='${exec_prefix}/bin'
917
sbindir='${exec_prefix}/sbin'
918
libexecdir='${exec_prefix}/libexec'
919
datarootdir='${prefix}/share'
920
datadir='${datarootdir}'
921
sysconfdir='${prefix}/etc'
922
sharedstatedir='${prefix}/com'
923
localstatedir='${prefix}/var'
924
includedir='${prefix}/include'
925
oldincludedir='/usr/include'
926
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
927
infodir='${datarootdir}/info'
928
htmldir='${docdir}'
929
dvidir='${docdir}'
930
pdfdir='${docdir}'
931
psdir='${docdir}'
932
libdir='${exec_prefix}/lib'
933
localedir='${datarootdir}/locale'
934
mandir='${datarootdir}/man'
935
 
936
ac_prev=
937
ac_dashdash=
938
for ac_option
939
do
940
  # If the previous option needs an argument, assign it.
941
  if test -n "$ac_prev"; then
942
    eval $ac_prev=\$ac_option
943
    ac_prev=
944
    continue
945
  fi
946
 
947
  case $ac_option in
948
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949
  *)    ac_optarg=yes ;;
950
  esac
951
 
952
  # Accept the important Cygnus configure options, so we can diagnose typos.
953
 
954
  case $ac_dashdash$ac_option in
955
  --)
956
    ac_dashdash=yes ;;
957
 
958
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
959
    ac_prev=bindir ;;
960
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961
    bindir=$ac_optarg ;;
962
 
963
  -build | --build | --buil | --bui | --bu)
964
    ac_prev=build_alias ;;
965
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966
    build_alias=$ac_optarg ;;
967
 
968
  -cache-file | --cache-file | --cache-fil | --cache-fi \
969
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970
    ac_prev=cache_file ;;
971
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973
    cache_file=$ac_optarg ;;
974
 
975
  --config-cache | -C)
976
    cache_file=config.cache ;;
977
 
978
  -datadir | --datadir | --datadi | --datad)
979
    ac_prev=datadir ;;
980
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
981
    datadir=$ac_optarg ;;
982
 
983
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984
  | --dataroo | --dataro | --datar)
985
    ac_prev=datarootdir ;;
986
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988
    datarootdir=$ac_optarg ;;
989
 
990
  -disable-* | --disable-*)
991
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992
    # Reject names that are not valid shell variable names.
993
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 346 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
995 90 jeremybenn
    ac_useropt_orig=$ac_useropt
996
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997
    case $ac_user_opts in
998
      *"
999
"enable_$ac_useropt"
1000
"*) ;;
1001
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002
         ac_unrecognized_sep=', ';;
1003
    esac
1004
    eval enable_$ac_useropt=no ;;
1005
 
1006
  -docdir | --docdir | --docdi | --doc | --do)
1007
    ac_prev=docdir ;;
1008
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009
    docdir=$ac_optarg ;;
1010
 
1011
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012
    ac_prev=dvidir ;;
1013
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014
    dvidir=$ac_optarg ;;
1015
 
1016
  -enable-* | --enable-*)
1017
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018
    # Reject names that are not valid shell variable names.
1019
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 346 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
1021 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1022
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023
    case $ac_user_opts in
1024
      *"
1025
"enable_$ac_useropt"
1026
"*) ;;
1027
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028
         ac_unrecognized_sep=', ';;
1029
    esac
1030
    eval enable_$ac_useropt=\$ac_optarg ;;
1031
 
1032
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034
  | --exec | --exe | --ex)
1035
    ac_prev=exec_prefix ;;
1036
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038
  | --exec=* | --exe=* | --ex=*)
1039
    exec_prefix=$ac_optarg ;;
1040
 
1041
  -gas | --gas | --ga | --g)
1042
    # Obsolete; use --with-gas.
1043
    with_gas=yes ;;
1044
 
1045
  -help | --help | --hel | --he | -h)
1046
    ac_init_help=long ;;
1047
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048
    ac_init_help=recursive ;;
1049
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050
    ac_init_help=short ;;
1051
 
1052
  -host | --host | --hos | --ho)
1053
    ac_prev=host_alias ;;
1054
  -host=* | --host=* | --hos=* | --ho=*)
1055
    host_alias=$ac_optarg ;;
1056
 
1057
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058
    ac_prev=htmldir ;;
1059
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060
  | --ht=*)
1061
    htmldir=$ac_optarg ;;
1062
 
1063
  -includedir | --includedir | --includedi | --included | --include \
1064
  | --includ | --inclu | --incl | --inc)
1065
    ac_prev=includedir ;;
1066
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1068
    includedir=$ac_optarg ;;
1069
 
1070
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1071
    ac_prev=infodir ;;
1072
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073
    infodir=$ac_optarg ;;
1074
 
1075
  -libdir | --libdir | --libdi | --libd)
1076
    ac_prev=libdir ;;
1077
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078
    libdir=$ac_optarg ;;
1079
 
1080
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081
  | --libexe | --libex | --libe)
1082
    ac_prev=libexecdir ;;
1083
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084
  | --libexe=* | --libex=* | --libe=*)
1085
    libexecdir=$ac_optarg ;;
1086
 
1087
  -localedir | --localedir | --localedi | --localed | --locale)
1088
    ac_prev=localedir ;;
1089
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090
    localedir=$ac_optarg ;;
1091
 
1092
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1093
  | --localstate | --localstat | --localsta | --localst | --locals)
1094
    ac_prev=localstatedir ;;
1095
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097
    localstatedir=$ac_optarg ;;
1098
 
1099
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100
    ac_prev=mandir ;;
1101
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102
    mandir=$ac_optarg ;;
1103
 
1104
  -nfp | --nfp | --nf)
1105
    # Obsolete; use --without-fp.
1106
    with_fp=no ;;
1107
 
1108
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109
  | --no-cr | --no-c | -n)
1110
    no_create=yes ;;
1111
 
1112
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114
    no_recursion=yes ;;
1115
 
1116
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118
  | --oldin | --oldi | --old | --ol | --o)
1119
    ac_prev=oldincludedir ;;
1120
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123
    oldincludedir=$ac_optarg ;;
1124
 
1125
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126
    ac_prev=prefix ;;
1127
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128
    prefix=$ac_optarg ;;
1129
 
1130
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131
  | --program-pre | --program-pr | --program-p)
1132
    ac_prev=program_prefix ;;
1133
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135
    program_prefix=$ac_optarg ;;
1136
 
1137
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138
  | --program-suf | --program-su | --program-s)
1139
    ac_prev=program_suffix ;;
1140
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142
    program_suffix=$ac_optarg ;;
1143
 
1144
  -program-transform-name | --program-transform-name \
1145
  | --program-transform-nam | --program-transform-na \
1146
  | --program-transform-n | --program-transform- \
1147
  | --program-transform | --program-transfor \
1148
  | --program-transfo | --program-transf \
1149
  | --program-trans | --program-tran \
1150
  | --progr-tra | --program-tr | --program-t)
1151
    ac_prev=program_transform_name ;;
1152
  -program-transform-name=* | --program-transform-name=* \
1153
  | --program-transform-nam=* | --program-transform-na=* \
1154
  | --program-transform-n=* | --program-transform-=* \
1155
  | --program-transform=* | --program-transfor=* \
1156
  | --program-transfo=* | --program-transf=* \
1157
  | --program-trans=* | --program-tran=* \
1158
  | --progr-tra=* | --program-tr=* | --program-t=*)
1159
    program_transform_name=$ac_optarg ;;
1160
 
1161
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162
    ac_prev=pdfdir ;;
1163
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164
    pdfdir=$ac_optarg ;;
1165
 
1166
  -psdir | --psdir | --psdi | --psd | --ps)
1167
    ac_prev=psdir ;;
1168
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169
    psdir=$ac_optarg ;;
1170
 
1171
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172
  | -silent | --silent | --silen | --sile | --sil)
1173
    silent=yes ;;
1174
 
1175
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176
    ac_prev=sbindir ;;
1177
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178
  | --sbi=* | --sb=*)
1179
    sbindir=$ac_optarg ;;
1180
 
1181
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183
  | --sharedst | --shareds | --shared | --share | --shar \
1184
  | --sha | --sh)
1185
    ac_prev=sharedstatedir ;;
1186
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189
  | --sha=* | --sh=*)
1190
    sharedstatedir=$ac_optarg ;;
1191
 
1192
  -site | --site | --sit)
1193
    ac_prev=site ;;
1194
  -site=* | --site=* | --sit=*)
1195
    site=$ac_optarg ;;
1196
 
1197
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198
    ac_prev=srcdir ;;
1199
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200
    srcdir=$ac_optarg ;;
1201
 
1202
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203
  | --syscon | --sysco | --sysc | --sys | --sy)
1204
    ac_prev=sysconfdir ;;
1205
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207
    sysconfdir=$ac_optarg ;;
1208
 
1209
  -target | --target | --targe | --targ | --tar | --ta | --t)
1210
    ac_prev=target_alias ;;
1211
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212
    target_alias=$ac_optarg ;;
1213
 
1214
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215
    verbose=yes ;;
1216
 
1217
  -version | --version | --versio | --versi | --vers | -V)
1218
    ac_init_version=: ;;
1219
 
1220
  -with-* | --with-*)
1221
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222
    # Reject names that are not valid shell variable names.
1223
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 346 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1225 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1226
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227
    case $ac_user_opts in
1228
      *"
1229
"with_$ac_useropt"
1230
"*) ;;
1231
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232
         ac_unrecognized_sep=', ';;
1233
    esac
1234
    eval with_$ac_useropt=\$ac_optarg ;;
1235
 
1236
  -without-* | --without-*)
1237
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238
    # Reject names that are not valid shell variable names.
1239
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 346 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1241 90 jeremybenn
    ac_useropt_orig=$ac_useropt
1242
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243
    case $ac_user_opts in
1244
      *"
1245
"with_$ac_useropt"
1246
"*) ;;
1247
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248
         ac_unrecognized_sep=', ';;
1249
    esac
1250
    eval with_$ac_useropt=no ;;
1251
 
1252
  --x)
1253
    # Obsolete; use --with-x.
1254
    with_x=yes ;;
1255
 
1256
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257
  | --x-incl | --x-inc | --x-in | --x-i)
1258
    ac_prev=x_includes ;;
1259
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261
    x_includes=$ac_optarg ;;
1262
 
1263
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265
    ac_prev=x_libraries ;;
1266
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268
    x_libraries=$ac_optarg ;;
1269
 
1270 346 jeremybenn
  -*) as_fn_error "unrecognized option: \`$ac_option'
1271
Try \`$0 --help' for more information."
1272 90 jeremybenn
    ;;
1273
 
1274
  *=*)
1275
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276
    # Reject names that are not valid shell variable names.
1277 346 jeremybenn
    case $ac_envvar in #(
1278
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1279
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1280
    esac
1281 90 jeremybenn
    eval $ac_envvar=\$ac_optarg
1282
    export $ac_envvar ;;
1283
 
1284
  *)
1285
    # FIXME: should be removed in autoconf 3.0.
1286
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290
    ;;
1291
 
1292
  esac
1293
done
1294
 
1295
if test -n "$ac_prev"; then
1296
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 346 jeremybenn
  as_fn_error "missing argument to $ac_option"
1298 90 jeremybenn
fi
1299
 
1300
if test -n "$ac_unrecognized_opts"; then
1301
  case $enable_option_checking in
1302
    no) ;;
1303 346 jeremybenn
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1304 90 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305
  esac
1306
fi
1307
 
1308
# Check all directory arguments for consistency.
1309
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310
                datadir sysconfdir sharedstatedir localstatedir includedir \
1311
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312
                libdir localedir mandir
1313
do
1314
  eval ac_val=\$$ac_var
1315
  # Remove trailing slashes.
1316
  case $ac_val in
1317
    */ )
1318
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319
      eval $ac_var=\$ac_val;;
1320
  esac
1321
  # Be sure to have absolute directory names.
1322
  case $ac_val in
1323
    [\\/$]* | ?:[\\/]* )  continue;;
1324
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325
  esac
1326 346 jeremybenn
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1327 90 jeremybenn
done
1328
 
1329
# There might be people who depend on the old broken behavior: `$host'
1330
# used to hold the argument of --host etc.
1331
# FIXME: To remove some day.
1332
build=$build_alias
1333
host=$host_alias
1334
target=$target_alias
1335
 
1336
# FIXME: To remove some day.
1337
if test "x$host_alias" != x; then
1338
  if test "x$build_alias" = x; then
1339
    cross_compiling=maybe
1340
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1341
    If a cross compiler is detected then cross compile mode will be used." >&2
1342
  elif test "x$build_alias" != "x$host_alias"; then
1343
    cross_compiling=yes
1344
  fi
1345
fi
1346
 
1347
ac_tool_prefix=
1348
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
 
1350
test "$silent" = yes && exec 6>/dev/null
1351
 
1352
 
1353
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354
ac_ls_di=`ls -di .` &&
1355
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 346 jeremybenn
  as_fn_error "working directory cannot be determined"
1357 90 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 346 jeremybenn
  as_fn_error "pwd does not report name of working directory"
1359 90 jeremybenn
 
1360
 
1361
# Find the source files, if location was not specified.
1362
if test -z "$srcdir"; then
1363
  ac_srcdir_defaulted=yes
1364
  # Try the directory containing this script, then the parent directory.
1365
  ac_confdir=`$as_dirname -- "$as_myself" ||
1366
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367
         X"$as_myself" : 'X\(//\)[^/]' \| \
1368
         X"$as_myself" : 'X\(//\)$' \| \
1369
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370
$as_echo X"$as_myself" |
1371
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372
            s//\1/
1373
            q
1374
          }
1375
          /^X\(\/\/\)[^/].*/{
1376
            s//\1/
1377
            q
1378
          }
1379
          /^X\(\/\/\)$/{
1380
            s//\1/
1381
            q
1382
          }
1383
          /^X\(\/\).*/{
1384
            s//\1/
1385
            q
1386
          }
1387
          s/.*/./; q'`
1388
  srcdir=$ac_confdir
1389
  if test ! -r "$srcdir/$ac_unique_file"; then
1390
    srcdir=..
1391
  fi
1392
else
1393
  ac_srcdir_defaulted=no
1394
fi
1395
if test ! -r "$srcdir/$ac_unique_file"; then
1396
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 346 jeremybenn
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1398 90 jeremybenn
fi
1399
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400
ac_abs_confdir=`(
1401 346 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1402 90 jeremybenn
        pwd)`
1403
# When building in place, set srcdir=.
1404
if test "$ac_abs_confdir" = "$ac_pwd"; then
1405
  srcdir=.
1406
fi
1407
# Remove unnecessary trailing slashes from srcdir.
1408
# Double slashes in file names in object file debugging info
1409
# mess up M-x gdb in Emacs.
1410
case $srcdir in
1411
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412
esac
1413
for ac_var in $ac_precious_vars; do
1414
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415
  eval ac_env_${ac_var}_value=\$${ac_var}
1416
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418
done
1419
 
1420
#
1421
# Report the --help message.
1422
#
1423
if test "$ac_init_help" = "long"; then
1424
  # Omit some internal or obsolete options to make the list less imposing.
1425
  # This message is too long to be a string in the A/UX 3.1 sh.
1426
  cat <<_ACEOF
1427 510 jeremybenn
\`configure' configures or1ksim-testsuite 0.5.1rc1 to adapt to many kinds of systems.
1428 90 jeremybenn
 
1429
Usage: $0 [OPTION]... [VAR=VALUE]...
1430
 
1431
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432
VAR=VALUE.  See below for descriptions of some of the useful variables.
1433
 
1434
Defaults for the options are specified in brackets.
1435
 
1436
Configuration:
1437
  -h, --help              display this help and exit
1438
      --help=short        display options specific to this package
1439
      --help=recursive    display the short help of all the included packages
1440
  -V, --version           display version information and exit
1441
  -q, --quiet, --silent   do not print \`checking...' messages
1442
      --cache-file=FILE   cache test results in FILE [disabled]
1443
  -C, --config-cache      alias for \`--cache-file=config.cache'
1444
  -n, --no-create         do not create output files
1445
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1446
 
1447
Installation directories:
1448
  --prefix=PREFIX         install architecture-independent files in PREFIX
1449
                          [$ac_default_prefix]
1450
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1451
                          [PREFIX]
1452
 
1453
By default, \`make install' will install all the files in
1454
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1455
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456
for instance \`--prefix=\$HOME'.
1457
 
1458
For better control, use the options below.
1459
 
1460
Fine tuning of the installation directories:
1461
  --bindir=DIR            user executables [EPREFIX/bin]
1462
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1463
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1464
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1465
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1466
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1467
  --libdir=DIR            object code libraries [EPREFIX/lib]
1468
  --includedir=DIR        C header files [PREFIX/include]
1469
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1470
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1471
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1472
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1473
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1474
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1475
  --docdir=DIR            documentation root
1476
                          [DATAROOTDIR/doc/or1ksim-testsuite]
1477
  --htmldir=DIR           html documentation [DOCDIR]
1478
  --dvidir=DIR            dvi documentation [DOCDIR]
1479
  --pdfdir=DIR            pdf documentation [DOCDIR]
1480
  --psdir=DIR             ps documentation [DOCDIR]
1481
_ACEOF
1482
 
1483
  cat <<\_ACEOF
1484
 
1485
Program names:
1486
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1487
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1488
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1489
 
1490
System types:
1491
  --build=BUILD     configure for building on BUILD [guessed]
1492
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1493
_ACEOF
1494
fi
1495
 
1496
if test -n "$ac_init_help"; then
1497
  case $ac_init_help in
1498 510 jeremybenn
     short | recursive ) echo "Configuration of or1ksim-testsuite 0.5.1rc1:";;
1499 90 jeremybenn
   esac
1500
  cat <<\_ACEOF
1501
 
1502
Optional Features:
1503
  --disable-option-checking  ignore unrecognized --enable/--with options
1504
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1505
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1506
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1507
  --enable-static[=PKGS]  build static libraries [default=yes]
1508
  --enable-fast-install[=PKGS]
1509
                          optimize for fast installation [default=yes]
1510
  --disable-libtool-lock  avoid locking (might break parallel builds)
1511
  --disable-dependency-tracking  speeds up one-time build
1512
  --enable-dependency-tracking   do not reject slow dependency extractors
1513
  --enable-all-tests      enable all tests, including those which do not
1514
                          compile
1515
  --enable-check-opt      enable optimizations
1516
  --enable-check-opt=level     same as gcc -O switch
1517
 
1518
Optional Packages:
1519
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1520
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1521
  --with-pic              try to use only PIC/non-PIC objects [default=use
1522
                          both]
1523
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1524
 
1525
Some influential environment variables:
1526
  CC          C compiler command
1527
  CFLAGS      C compiler flags
1528
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1529
              nonstandard directory 
1530
  LIBS        libraries to pass to the linker, e.g. -l
1531 460 jeremybenn
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I if
1532 90 jeremybenn
              you have headers in a nonstandard directory 
1533
  CPP         C preprocessor
1534
  CCAS        assembler compiler command (defaults to CC)
1535
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1536
 
1537
Use these variables to override the choices made by `configure' or to help
1538
it to find libraries and programs with nonstandard names/locations.
1539
 
1540
Report bugs to .
1541
_ACEOF
1542
ac_status=$?
1543
fi
1544
 
1545
if test "$ac_init_help" = "recursive"; then
1546
  # If there are subdirs, report their specific --help.
1547
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548
    test -d "$ac_dir" ||
1549
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550
      continue
1551
    ac_builddir=.
1552
 
1553
case "$ac_dir" in
1554
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555
*)
1556
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1557
  # A ".." for each directory in $ac_dir_suffix.
1558
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559
  case $ac_top_builddir_sub in
1560
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562
  esac ;;
1563
esac
1564
ac_abs_top_builddir=$ac_pwd
1565
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566
# for backward compatibility:
1567
ac_top_builddir=$ac_top_build_prefix
1568
 
1569
case $srcdir in
1570
  .)  # We are building in place.
1571
    ac_srcdir=.
1572
    ac_top_srcdir=$ac_top_builddir_sub
1573
    ac_abs_top_srcdir=$ac_pwd ;;
1574
  [\\/]* | ?:[\\/]* )  # Absolute name.
1575
    ac_srcdir=$srcdir$ac_dir_suffix;
1576
    ac_top_srcdir=$srcdir
1577
    ac_abs_top_srcdir=$srcdir ;;
1578
  *) # Relative name.
1579
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1581
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582
esac
1583
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
 
1585
    cd "$ac_dir" || { ac_status=$?; continue; }
1586
    # Check for guested configure.
1587
    if test -f "$ac_srcdir/configure.gnu"; then
1588
      echo &&
1589
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590
    elif test -f "$ac_srcdir/configure"; then
1591
      echo &&
1592
      $SHELL "$ac_srcdir/configure" --help=recursive
1593
    else
1594
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595
    fi || ac_status=$?
1596
    cd "$ac_pwd" || { ac_status=$?; break; }
1597
  done
1598
fi
1599
 
1600
test -n "$ac_init_help" && exit $ac_status
1601
if $ac_init_version; then
1602
  cat <<\_ACEOF
1603 510 jeremybenn
or1ksim-testsuite configure 0.5.1rc1
1604 460 jeremybenn
generated by GNU Autoconf 2.65
1605 90 jeremybenn
 
1606 346 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
1607 90 jeremybenn
This configure script is free software; the Free Software Foundation
1608
gives unlimited permission to copy, distribute and modify it.
1609
_ACEOF
1610
  exit
1611
fi
1612 346 jeremybenn
 
1613
## ------------------------ ##
1614
## Autoconf initialization. ##
1615
## ------------------------ ##
1616
 
1617
# ac_fn_c_try_compile LINENO
1618
# --------------------------
1619
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1620
ac_fn_c_try_compile ()
1621
{
1622
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623
  rm -f conftest.$ac_objext
1624
  if { { ac_try="$ac_compile"
1625
case "(($ac_try" in
1626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627
  *) ac_try_echo=$ac_try;;
1628
esac
1629
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630
$as_echo "$ac_try_echo"; } >&5
1631
  (eval "$ac_compile") 2>conftest.err
1632
  ac_status=$?
1633
  if test -s conftest.err; then
1634
    grep -v '^ *+' conftest.err >conftest.er1
1635
    cat conftest.er1 >&5
1636
    mv -f conftest.er1 conftest.err
1637
  fi
1638
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639
  test $ac_status = 0; } && {
1640
         test -z "$ac_c_werror_flag" ||
1641
         test ! -s conftest.err
1642
       } && test -s conftest.$ac_objext; then :
1643
  ac_retval=0
1644
else
1645
  $as_echo "$as_me: failed program was:" >&5
1646
sed 's/^/| /' conftest.$ac_ext >&5
1647
 
1648
        ac_retval=1
1649
fi
1650
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1651 460 jeremybenn
  as_fn_set_status $ac_retval
1652 346 jeremybenn
 
1653
} # ac_fn_c_try_compile
1654
 
1655
# ac_fn_c_try_link LINENO
1656
# -----------------------
1657
# Try to link conftest.$ac_ext, and return whether this succeeded.
1658
ac_fn_c_try_link ()
1659
{
1660
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661
  rm -f conftest.$ac_objext conftest$ac_exeext
1662
  if { { ac_try="$ac_link"
1663
case "(($ac_try" in
1664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665
  *) ac_try_echo=$ac_try;;
1666
esac
1667
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668
$as_echo "$ac_try_echo"; } >&5
1669
  (eval "$ac_link") 2>conftest.err
1670
  ac_status=$?
1671
  if test -s conftest.err; then
1672
    grep -v '^ *+' conftest.err >conftest.er1
1673
    cat conftest.er1 >&5
1674
    mv -f conftest.er1 conftest.err
1675
  fi
1676
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677
  test $ac_status = 0; } && {
1678
         test -z "$ac_c_werror_flag" ||
1679
         test ! -s conftest.err
1680
       } && test -s conftest$ac_exeext && {
1681
         test "$cross_compiling" = yes ||
1682
         $as_test_x conftest$ac_exeext
1683
       }; then :
1684
  ac_retval=0
1685
else
1686
  $as_echo "$as_me: failed program was:" >&5
1687
sed 's/^/| /' conftest.$ac_ext >&5
1688
 
1689
        ac_retval=1
1690
fi
1691
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693
  # interfere with the next link command; also delete a directory that is
1694
  # left behind by Apple's compiler.  We do this before executing the actions.
1695
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697 460 jeremybenn
  as_fn_set_status $ac_retval
1698 346 jeremybenn
 
1699
} # ac_fn_c_try_link
1700
 
1701
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702
# -------------------------------------------------------
1703
# Tests whether HEADER exists and can be compiled using the include files in
1704
# INCLUDES, setting the cache variable VAR accordingly.
1705
ac_fn_c_check_header_compile ()
1706
{
1707
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709
$as_echo_n "checking for $2... " >&6; }
1710
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711
  $as_echo_n "(cached) " >&6
1712
else
1713
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714
/* end confdefs.h.  */
1715
$4
1716
#include <$2>
1717
_ACEOF
1718
if ac_fn_c_try_compile "$LINENO"; then :
1719
  eval "$3=yes"
1720
else
1721
  eval "$3=no"
1722
fi
1723
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724
fi
1725
eval ac_res=\$$3
1726
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727
$as_echo "$ac_res" >&6; }
1728
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729
 
1730
} # ac_fn_c_check_header_compile
1731
 
1732
# ac_fn_c_try_cpp LINENO
1733
# ----------------------
1734
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1735
ac_fn_c_try_cpp ()
1736
{
1737
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1739
case "(($ac_try" in
1740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741
  *) ac_try_echo=$ac_try;;
1742
esac
1743
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744
$as_echo "$ac_try_echo"; } >&5
1745
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746
  ac_status=$?
1747
  if test -s conftest.err; then
1748
    grep -v '^ *+' conftest.err >conftest.er1
1749
    cat conftest.er1 >&5
1750
    mv -f conftest.er1 conftest.err
1751
  fi
1752
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753
  test $ac_status = 0; } >/dev/null && {
1754
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1755
         test ! -s conftest.err
1756
       }; then :
1757
  ac_retval=0
1758
else
1759
  $as_echo "$as_me: failed program was:" >&5
1760
sed 's/^/| /' conftest.$ac_ext >&5
1761
 
1762
    ac_retval=1
1763
fi
1764
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 460 jeremybenn
  as_fn_set_status $ac_retval
1766 346 jeremybenn
 
1767
} # ac_fn_c_try_cpp
1768
 
1769
# ac_fn_c_try_run LINENO
1770
# ----------------------
1771
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1772
# that executables *can* be run.
1773
ac_fn_c_try_run ()
1774
{
1775
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776
  if { { ac_try="$ac_link"
1777
case "(($ac_try" in
1778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779
  *) ac_try_echo=$ac_try;;
1780
esac
1781
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782
$as_echo "$ac_try_echo"; } >&5
1783
  (eval "$ac_link") 2>&5
1784
  ac_status=$?
1785
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1787
  { { case "(($ac_try" in
1788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789
  *) ac_try_echo=$ac_try;;
1790
esac
1791
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792
$as_echo "$ac_try_echo"; } >&5
1793
  (eval "$ac_try") 2>&5
1794
  ac_status=$?
1795
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796
  test $ac_status = 0; }; }; then :
1797
  ac_retval=0
1798
else
1799
  $as_echo "$as_me: program exited with status $ac_status" >&5
1800
       $as_echo "$as_me: failed program was:" >&5
1801
sed 's/^/| /' conftest.$ac_ext >&5
1802
 
1803
       ac_retval=$ac_status
1804
fi
1805
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807 460 jeremybenn
  as_fn_set_status $ac_retval
1808 346 jeremybenn
 
1809
} # ac_fn_c_try_run
1810
 
1811
# ac_fn_c_check_func LINENO FUNC VAR
1812
# ----------------------------------
1813
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1814
ac_fn_c_check_func ()
1815
{
1816
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818
$as_echo_n "checking for $2... " >&6; }
1819
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1820
  $as_echo_n "(cached) " >&6
1821
else
1822
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823
/* end confdefs.h.  */
1824
/* Define $2 to an innocuous variant, in case  declares $2.
1825
   For example, HP-UX 11i  declares gettimeofday.  */
1826
#define $2 innocuous_$2
1827
 
1828
/* System header to define __stub macros and hopefully few prototypes,
1829
    which can conflict with char $2 (); below.
1830
    Prefer  to  if __STDC__ is defined, since
1831
     exists even on freestanding compilers.  */
1832
 
1833
#ifdef __STDC__
1834
# include 
1835
#else
1836
# include 
1837
#endif
1838
 
1839
#undef $2
1840
 
1841
/* Override any GCC internal prototype to avoid an error.
1842
   Use char because int might match the return type of a GCC
1843
   builtin and then its argument prototype would still apply.  */
1844
#ifdef __cplusplus
1845
extern "C"
1846
#endif
1847
char $2 ();
1848
/* The GNU C library defines this for functions which it implements
1849
    to always fail with ENOSYS.  Some functions are actually named
1850
    something starting with __ and the normal name is an alias.  */
1851
#if defined __stub_$2 || defined __stub___$2
1852
choke me
1853
#endif
1854
 
1855
int
1856
main ()
1857
{
1858
return $2 ();
1859
  ;
1860
  return 0;
1861
}
1862
_ACEOF
1863
if ac_fn_c_try_link "$LINENO"; then :
1864
  eval "$3=yes"
1865
else
1866
  eval "$3=no"
1867
fi
1868
rm -f core conftest.err conftest.$ac_objext \
1869
    conftest$ac_exeext conftest.$ac_ext
1870
fi
1871
eval ac_res=\$$3
1872
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873
$as_echo "$ac_res" >&6; }
1874
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875
 
1876
} # ac_fn_c_check_func
1877
 
1878
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1879
# -------------------------------------------------------
1880
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1881
# the include files in INCLUDES and setting the cache variable VAR
1882
# accordingly.
1883
ac_fn_c_check_header_mongrel ()
1884
{
1885
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888
$as_echo_n "checking for $2... " >&6; }
1889
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890
  $as_echo_n "(cached) " >&6
1891
fi
1892
eval ac_res=\$$3
1893
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894
$as_echo "$ac_res" >&6; }
1895
else
1896
  # Is the header compilable?
1897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1898
$as_echo_n "checking $2 usability... " >&6; }
1899
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900
/* end confdefs.h.  */
1901
$4
1902
#include <$2>
1903
_ACEOF
1904
if ac_fn_c_try_compile "$LINENO"; then :
1905
  ac_header_compiler=yes
1906
else
1907
  ac_header_compiler=no
1908
fi
1909
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1911
$as_echo "$ac_header_compiler" >&6; }
1912
 
1913
# Is the header present?
1914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1915
$as_echo_n "checking $2 presence... " >&6; }
1916
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917
/* end confdefs.h.  */
1918
#include <$2>
1919
_ACEOF
1920
if ac_fn_c_try_cpp "$LINENO"; then :
1921
  ac_header_preproc=yes
1922
else
1923
  ac_header_preproc=no
1924
fi
1925
rm -f conftest.err conftest.$ac_ext
1926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1927
$as_echo "$ac_header_preproc" >&6; }
1928
 
1929
# So?  What about this header?
1930
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1931
  yes:no: )
1932
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1933
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1934
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936
    ;;
1937
  no:yes:* )
1938
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1939
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1940
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1941
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1942
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1943
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1944
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1945
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1946
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948
( cat <<\_ASBOX
1949
## ------------------------------------- ##
1950
## Report this to openrisc@opencores.org ##
1951
## ------------------------------------- ##
1952
_ASBOX
1953
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1954
    ;;
1955
esac
1956
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957
$as_echo_n "checking for $2... " >&6; }
1958
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959
  $as_echo_n "(cached) " >&6
1960
else
1961
  eval "$3=\$ac_header_compiler"
1962
fi
1963
eval ac_res=\$$3
1964
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965
$as_echo "$ac_res" >&6; }
1966
fi
1967
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968
 
1969
} # ac_fn_c_check_header_mongrel
1970
 
1971
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1972
# -------------------------------------------
1973
# Tests whether TYPE exists after having included INCLUDES, setting cache
1974
# variable VAR accordingly.
1975
ac_fn_c_check_type ()
1976
{
1977
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979
$as_echo_n "checking for $2... " >&6; }
1980
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981
  $as_echo_n "(cached) " >&6
1982
else
1983
  eval "$3=no"
1984
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985
/* end confdefs.h.  */
1986
$4
1987
int
1988
main ()
1989
{
1990
if (sizeof ($2))
1991
         return 0;
1992
  ;
1993
  return 0;
1994
}
1995
_ACEOF
1996
if ac_fn_c_try_compile "$LINENO"; then :
1997
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998
/* end confdefs.h.  */
1999
$4
2000
int
2001
main ()
2002
{
2003
if (sizeof (($2)))
2004
            return 0;
2005
  ;
2006
  return 0;
2007
}
2008
_ACEOF
2009
if ac_fn_c_try_compile "$LINENO"; then :
2010
 
2011
else
2012
  eval "$3=yes"
2013
fi
2014
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015
fi
2016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017
fi
2018
eval ac_res=\$$3
2019
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020
$as_echo "$ac_res" >&6; }
2021
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022
 
2023
} # ac_fn_c_check_type
2024 90 jeremybenn
cat >config.log <<_ACEOF
2025
This file contains any messages produced by compilers while
2026
running configure, to aid debugging if configure makes a mistake.
2027
 
2028 510 jeremybenn
It was created by or1ksim-testsuite $as_me 0.5.1rc1, which was
2029 460 jeremybenn
generated by GNU Autoconf 2.65.  Invocation command line was
2030 90 jeremybenn
 
2031
  $ $0 $@
2032
 
2033
_ACEOF
2034
exec 5>>config.log
2035
{
2036
cat <<_ASUNAME
2037
## --------- ##
2038
## Platform. ##
2039
## --------- ##
2040
 
2041
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2042
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2043
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2044
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2045
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2046
 
2047
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2048
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2049
 
2050
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2051
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2052
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2053
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2054
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2055
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2056
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2057
 
2058
_ASUNAME
2059
 
2060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061
for as_dir in $PATH
2062
do
2063
  IFS=$as_save_IFS
2064
  test -z "$as_dir" && as_dir=.
2065 346 jeremybenn
    $as_echo "PATH: $as_dir"
2066
  done
2067 90 jeremybenn
IFS=$as_save_IFS
2068
 
2069
} >&5
2070
 
2071
cat >&5 <<_ACEOF
2072
 
2073
 
2074
## ----------- ##
2075
## Core tests. ##
2076
## ----------- ##
2077
 
2078
_ACEOF
2079
 
2080
 
2081
# Keep a trace of the command line.
2082
# Strip out --no-create and --no-recursion so they do not pile up.
2083
# Strip out --silent because we don't want to record it for future runs.
2084
# Also quote any args containing shell meta-characters.
2085
# Make two passes to allow for proper duplicate-argument suppression.
2086
ac_configure_args=
2087
ac_configure_args0=
2088
ac_configure_args1=
2089
ac_must_keep_next=false
2090
for ac_pass in 1 2
2091
do
2092
  for ac_arg
2093
  do
2094
    case $ac_arg in
2095
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2096
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2097
    | -silent | --silent | --silen | --sile | --sil)
2098
      continue ;;
2099
    *\'*)
2100
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2101
    esac
2102
    case $ac_pass in
2103 346 jeremybenn
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2104 90 jeremybenn
    2)
2105 346 jeremybenn
      as_fn_append ac_configure_args1 " '$ac_arg'"
2106 90 jeremybenn
      if test $ac_must_keep_next = true; then
2107
        ac_must_keep_next=false # Got value, back to normal.
2108
      else
2109
        case $ac_arg in
2110
          *=* | --config-cache | -C | -disable-* | --disable-* \
2111
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2112
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2113
          | -with-* | --with-* | -without-* | --without-* | --x)
2114
            case "$ac_configure_args0 " in
2115
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2116
            esac
2117
            ;;
2118
          -* ) ac_must_keep_next=true ;;
2119
        esac
2120
      fi
2121 346 jeremybenn
      as_fn_append ac_configure_args " '$ac_arg'"
2122 90 jeremybenn
      ;;
2123
    esac
2124
  done
2125
done
2126 346 jeremybenn
{ ac_configure_args0=; unset ac_configure_args0;}
2127
{ ac_configure_args1=; unset ac_configure_args1;}
2128 90 jeremybenn
 
2129
# When interrupted or exit'd, cleanup temporary files, and complete
2130
# config.log.  We remove comments because anyway the quotes in there
2131
# would cause problems or look ugly.
2132
# WARNING: Use '\'' to represent an apostrophe within the trap.
2133
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2134
trap 'exit_status=$?
2135
  # Save into config.log some information that might help in debugging.
2136
  {
2137
    echo
2138
 
2139
    cat <<\_ASBOX
2140
## ---------------- ##
2141
## Cache variables. ##
2142
## ---------------- ##
2143
_ASBOX
2144
    echo
2145
    # The following way of writing the cache mishandles newlines in values,
2146
(
2147
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148
    eval ac_val=\$$ac_var
2149
    case $ac_val in #(
2150
    *${as_nl}*)
2151
      case $ac_var in #(
2152 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153 90 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2154
      esac
2155
      case $ac_var in #(
2156
      _ | IFS | as_nl) ;; #(
2157
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
2159 90 jeremybenn
      esac ;;
2160
    esac
2161
  done
2162
  (set) 2>&1 |
2163
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164
    *${as_nl}ac_space=\ *)
2165
      sed -n \
2166
        "s/'\''/'\''\\\\'\'''\''/g;
2167
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2168
      ;; #(
2169
    *)
2170
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2171
      ;;
2172
    esac |
2173
    sort
2174
)
2175
    echo
2176
 
2177
    cat <<\_ASBOX
2178
## ----------------- ##
2179
## Output variables. ##
2180
## ----------------- ##
2181
_ASBOX
2182
    echo
2183
    for ac_var in $ac_subst_vars
2184
    do
2185
      eval ac_val=\$$ac_var
2186
      case $ac_val in
2187
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188
      esac
2189
      $as_echo "$ac_var='\''$ac_val'\''"
2190
    done | sort
2191
    echo
2192
 
2193
    if test -n "$ac_subst_files"; then
2194
      cat <<\_ASBOX
2195
## ------------------- ##
2196
## File substitutions. ##
2197
## ------------------- ##
2198
_ASBOX
2199
      echo
2200
      for ac_var in $ac_subst_files
2201
      do
2202
        eval ac_val=\$$ac_var
2203
        case $ac_val in
2204
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205
        esac
2206
        $as_echo "$ac_var='\''$ac_val'\''"
2207
      done | sort
2208
      echo
2209
    fi
2210
 
2211
    if test -s confdefs.h; then
2212
      cat <<\_ASBOX
2213
## ----------- ##
2214
## confdefs.h. ##
2215
## ----------- ##
2216
_ASBOX
2217
      echo
2218
      cat confdefs.h
2219
      echo
2220
    fi
2221
    test "$ac_signal" != 0 &&
2222
      $as_echo "$as_me: caught signal $ac_signal"
2223
    $as_echo "$as_me: exit $exit_status"
2224
  } >&5
2225
  rm -f core *.core core.conftest.* &&
2226
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2227
    exit $exit_status
2228
' 0
2229
for ac_signal in 1 2 13 15; do
2230 346 jeremybenn
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2231 90 jeremybenn
done
2232
ac_signal=0
2233
 
2234
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2235
rm -f -r conftest* confdefs.h
2236
 
2237 346 jeremybenn
$as_echo "/* confdefs.h */" > confdefs.h
2238
 
2239 90 jeremybenn
# Predefined preprocessor variables.
2240
 
2241
cat >>confdefs.h <<_ACEOF
2242
#define PACKAGE_NAME "$PACKAGE_NAME"
2243
_ACEOF
2244
 
2245
cat >>confdefs.h <<_ACEOF
2246
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2247
_ACEOF
2248
 
2249
cat >>confdefs.h <<_ACEOF
2250
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2251
_ACEOF
2252
 
2253
cat >>confdefs.h <<_ACEOF
2254
#define PACKAGE_STRING "$PACKAGE_STRING"
2255
_ACEOF
2256
 
2257
cat >>confdefs.h <<_ACEOF
2258
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2259
_ACEOF
2260
 
2261 346 jeremybenn
cat >>confdefs.h <<_ACEOF
2262
#define PACKAGE_URL "$PACKAGE_URL"
2263
_ACEOF
2264 90 jeremybenn
 
2265 346 jeremybenn
 
2266 90 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2267
# Prefer an explicitly selected file to automatically selected ones.
2268
ac_site_file1=NONE
2269
ac_site_file2=NONE
2270
if test -n "$CONFIG_SITE"; then
2271
  ac_site_file1=$CONFIG_SITE
2272
elif test "x$prefix" != xNONE; then
2273
  ac_site_file1=$prefix/share/config.site
2274
  ac_site_file2=$prefix/etc/config.site
2275
else
2276
  ac_site_file1=$ac_default_prefix/share/config.site
2277
  ac_site_file2=$ac_default_prefix/etc/config.site
2278
fi
2279
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2280
do
2281
  test "x$ac_site_file" = xNONE && continue
2282 460 jeremybenn
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2283 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2284 90 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2285
    sed 's/^/| /' "$ac_site_file" >&5
2286
    . "$ac_site_file"
2287
  fi
2288
done
2289
 
2290
if test -r "$cache_file"; then
2291 460 jeremybenn
  # Some versions of bash will fail to source /dev/null (special files
2292
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2293
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2294 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2295 90 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2296
    case $cache_file in
2297
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2298
      *)                      . "./$cache_file";;
2299
    esac
2300
  fi
2301
else
2302 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2303 90 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2304
  >$cache_file
2305
fi
2306
 
2307
# Check that the precious variables saved in the cache have kept the same
2308
# value.
2309
ac_cache_corrupted=false
2310
for ac_var in $ac_precious_vars; do
2311
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2312
  eval ac_new_set=\$ac_env_${ac_var}_set
2313
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2314
  eval ac_new_val=\$ac_env_${ac_var}_value
2315
  case $ac_old_set,$ac_new_set in
2316
    set,)
2317 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2318 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2319
      ac_cache_corrupted=: ;;
2320
    ,set)
2321 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2322 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2323
      ac_cache_corrupted=: ;;
2324
    ,);;
2325
    *)
2326
      if test "x$ac_old_val" != "x$ac_new_val"; then
2327
        # differences in whitespace do not lead to failure.
2328
        ac_old_val_w=`echo x $ac_old_val`
2329
        ac_new_val_w=`echo x $ac_new_val`
2330
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2331 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2332 90 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2333
          ac_cache_corrupted=:
2334
        else
2335 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2336 90 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2337
          eval $ac_var=\$ac_old_val
2338
        fi
2339 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2340 90 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2341 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2342 90 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2343
      fi;;
2344
  esac
2345
  # Pass precious variables to config.status.
2346
  if test "$ac_new_set" = set; then
2347
    case $ac_new_val in
2348
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2349
    *) ac_arg=$ac_var=$ac_new_val ;;
2350
    esac
2351
    case " $ac_configure_args " in
2352
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2353 346 jeremybenn
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2354 90 jeremybenn
    esac
2355
  fi
2356
done
2357
if $ac_cache_corrupted; then
2358 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2361 90 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2362 346 jeremybenn
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2363 90 jeremybenn
fi
2364 346 jeremybenn
## -------------------- ##
2365
## Main body of script. ##
2366
## -------------------- ##
2367 90 jeremybenn
 
2368
ac_ext=c
2369
ac_cpp='$CPP $CPPFLAGS'
2370
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373
 
2374
 
2375
 
2376
 
2377
case `pwd` in
2378
  *\ * | *\     *)
2379 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2380 90 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2381
esac
2382
 
2383
 
2384
 
2385 95 jeremybenn
macro_version='2.2.6b'
2386
macro_revision='1.3017'
2387 90 jeremybenn
 
2388
 
2389
 
2390
 
2391
 
2392
 
2393
 
2394
 
2395
 
2396
 
2397
 
2398
 
2399
 
2400
ltmain="$ac_aux_dir/ltmain.sh"
2401
 
2402
ac_aux_dir=
2403
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2404 346 jeremybenn
  for ac_t in install-sh install.sh shtool; do
2405
    if test -f "$ac_dir/$ac_t"; then
2406
      ac_aux_dir=$ac_dir
2407
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2408
      break 2
2409
    fi
2410
  done
2411 90 jeremybenn
done
2412
if test -z "$ac_aux_dir"; then
2413 346 jeremybenn
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2414 90 jeremybenn
fi
2415
 
2416
# These three variables are undocumented and unsupported,
2417
# and are intended to be withdrawn in a future Autoconf release.
2418
# They can cause serious problems if a builder's source tree is in a directory
2419
# whose full name contains unusual characters.
2420
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2421
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2422
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2423
 
2424
 
2425
# Make sure we can run config.sub.
2426
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2427 346 jeremybenn
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2428 90 jeremybenn
 
2429 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2430 90 jeremybenn
$as_echo_n "checking build system type... " >&6; }
2431 346 jeremybenn
if test "${ac_cv_build+set}" = set; then :
2432 90 jeremybenn
  $as_echo_n "(cached) " >&6
2433
else
2434
  ac_build_alias=$build_alias
2435
test "x$ac_build_alias" = x &&
2436
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2437
test "x$ac_build_alias" = x &&
2438 346 jeremybenn
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2439 90 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2440 346 jeremybenn
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2441 90 jeremybenn
 
2442
fi
2443 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2444 90 jeremybenn
$as_echo "$ac_cv_build" >&6; }
2445
case $ac_cv_build in
2446
*-*-*) ;;
2447 346 jeremybenn
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2448 90 jeremybenn
esac
2449
build=$ac_cv_build
2450
ac_save_IFS=$IFS; IFS='-'
2451
set x $ac_cv_build
2452
shift
2453
build_cpu=$1
2454
build_vendor=$2
2455
shift; shift
2456
# Remember, the first character of IFS is used to create $*,
2457
# except with old shells:
2458
build_os=$*
2459
IFS=$ac_save_IFS
2460
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2461
 
2462
 
2463 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2464 90 jeremybenn
$as_echo_n "checking host system type... " >&6; }
2465 346 jeremybenn
if test "${ac_cv_host+set}" = set; then :
2466 90 jeremybenn
  $as_echo_n "(cached) " >&6
2467
else
2468
  if test "x$host_alias" = x; then
2469
  ac_cv_host=$ac_cv_build
2470
else
2471
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2472 346 jeremybenn
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2473 90 jeremybenn
fi
2474
 
2475
fi
2476 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2477 90 jeremybenn
$as_echo "$ac_cv_host" >&6; }
2478
case $ac_cv_host in
2479
*-*-*) ;;
2480 346 jeremybenn
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2481 90 jeremybenn
esac
2482
host=$ac_cv_host
2483
ac_save_IFS=$IFS; IFS='-'
2484
set x $ac_cv_host
2485
shift
2486
host_cpu=$1
2487
host_vendor=$2
2488
shift; shift
2489
# Remember, the first character of IFS is used to create $*,
2490
# except with old shells:
2491
host_os=$*
2492
IFS=$ac_save_IFS
2493
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2494
 
2495
 
2496
ac_ext=c
2497
ac_cpp='$CPP $CPPFLAGS'
2498
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501
if test -n "$ac_tool_prefix"; then
2502
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2503
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2504 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2506 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2507 90 jeremybenn
  $as_echo_n "(cached) " >&6
2508
else
2509
  if test -n "$CC"; then
2510
  ac_cv_prog_CC="$CC" # Let the user override the test.
2511
else
2512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513
for as_dir in $PATH
2514
do
2515
  IFS=$as_save_IFS
2516
  test -z "$as_dir" && as_dir=.
2517 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2518 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2520 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 90 jeremybenn
    break 2
2522
  fi
2523
done
2524 346 jeremybenn
  done
2525 90 jeremybenn
IFS=$as_save_IFS
2526
 
2527
fi
2528
fi
2529
CC=$ac_cv_prog_CC
2530
if test -n "$CC"; then
2531 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2532 90 jeremybenn
$as_echo "$CC" >&6; }
2533
else
2534 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535 90 jeremybenn
$as_echo "no" >&6; }
2536
fi
2537
 
2538
 
2539
fi
2540
if test -z "$ac_cv_prog_CC"; then
2541
  ac_ct_CC=$CC
2542
  # Extract the first word of "gcc", so it can be a program name with args.
2543
set dummy gcc; ac_word=$2
2544 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2545 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2546 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2547 90 jeremybenn
  $as_echo_n "(cached) " >&6
2548
else
2549
  if test -n "$ac_ct_CC"; then
2550
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551
else
2552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553
for as_dir in $PATH
2554
do
2555
  IFS=$as_save_IFS
2556
  test -z "$as_dir" && as_dir=.
2557 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2558 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559
    ac_cv_prog_ac_ct_CC="gcc"
2560 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 90 jeremybenn
    break 2
2562
  fi
2563
done
2564 346 jeremybenn
  done
2565 90 jeremybenn
IFS=$as_save_IFS
2566
 
2567
fi
2568
fi
2569
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2570
if test -n "$ac_ct_CC"; then
2571 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2572 90 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2573
else
2574 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575 90 jeremybenn
$as_echo "no" >&6; }
2576
fi
2577
 
2578
  if test "x$ac_ct_CC" = x; then
2579
    CC=""
2580
  else
2581
    case $cross_compiling:$ac_tool_warned in
2582
yes:)
2583 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2584 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2585
ac_tool_warned=yes ;;
2586
esac
2587
    CC=$ac_ct_CC
2588
  fi
2589
else
2590
  CC="$ac_cv_prog_CC"
2591
fi
2592
 
2593
if test -z "$CC"; then
2594
          if test -n "$ac_tool_prefix"; then
2595
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2596
set dummy ${ac_tool_prefix}cc; ac_word=$2
2597 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2599 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2600 90 jeremybenn
  $as_echo_n "(cached) " >&6
2601
else
2602
  if test -n "$CC"; then
2603
  ac_cv_prog_CC="$CC" # Let the user override the test.
2604
else
2605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606
for as_dir in $PATH
2607
do
2608
  IFS=$as_save_IFS
2609
  test -z "$as_dir" && as_dir=.
2610 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2611 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2613 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 90 jeremybenn
    break 2
2615
  fi
2616
done
2617 346 jeremybenn
  done
2618 90 jeremybenn
IFS=$as_save_IFS
2619
 
2620
fi
2621
fi
2622
CC=$ac_cv_prog_CC
2623
if test -n "$CC"; then
2624 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2625 90 jeremybenn
$as_echo "$CC" >&6; }
2626
else
2627 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628 90 jeremybenn
$as_echo "no" >&6; }
2629
fi
2630
 
2631
 
2632
  fi
2633
fi
2634
if test -z "$CC"; then
2635
  # Extract the first word of "cc", so it can be a program name with args.
2636
set dummy cc; ac_word=$2
2637 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2639 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2640 90 jeremybenn
  $as_echo_n "(cached) " >&6
2641
else
2642
  if test -n "$CC"; then
2643
  ac_cv_prog_CC="$CC" # Let the user override the test.
2644
else
2645
  ac_prog_rejected=no
2646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647
for as_dir in $PATH
2648
do
2649
  IFS=$as_save_IFS
2650
  test -z "$as_dir" && as_dir=.
2651 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2652 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2654
       ac_prog_rejected=yes
2655
       continue
2656
     fi
2657
    ac_cv_prog_CC="cc"
2658 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 90 jeremybenn
    break 2
2660
  fi
2661
done
2662 346 jeremybenn
  done
2663 90 jeremybenn
IFS=$as_save_IFS
2664
 
2665
if test $ac_prog_rejected = yes; then
2666
  # We found a bogon in the path, so make sure we never use it.
2667
  set dummy $ac_cv_prog_CC
2668
  shift
2669
  if test $# != 0; then
2670
    # We chose a different compiler from the bogus one.
2671
    # However, it has the same basename, so the bogon will be chosen
2672
    # first if we set CC to just the basename; use the full file name.
2673
    shift
2674
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2675
  fi
2676
fi
2677
fi
2678
fi
2679
CC=$ac_cv_prog_CC
2680
if test -n "$CC"; then
2681 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2682 90 jeremybenn
$as_echo "$CC" >&6; }
2683
else
2684 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 90 jeremybenn
$as_echo "no" >&6; }
2686
fi
2687
 
2688
 
2689
fi
2690
if test -z "$CC"; then
2691
  if test -n "$ac_tool_prefix"; then
2692
  for ac_prog in cl.exe
2693
  do
2694
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2695
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2696 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2698 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2699 90 jeremybenn
  $as_echo_n "(cached) " >&6
2700
else
2701
  if test -n "$CC"; then
2702
  ac_cv_prog_CC="$CC" # Let the user override the test.
2703
else
2704
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705
for as_dir in $PATH
2706
do
2707
  IFS=$as_save_IFS
2708
  test -z "$as_dir" && as_dir=.
2709 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2710 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2712 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 90 jeremybenn
    break 2
2714
  fi
2715
done
2716 346 jeremybenn
  done
2717 90 jeremybenn
IFS=$as_save_IFS
2718
 
2719
fi
2720
fi
2721
CC=$ac_cv_prog_CC
2722
if test -n "$CC"; then
2723 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2724 90 jeremybenn
$as_echo "$CC" >&6; }
2725
else
2726 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 90 jeremybenn
$as_echo "no" >&6; }
2728
fi
2729
 
2730
 
2731
    test -n "$CC" && break
2732
  done
2733
fi
2734
if test -z "$CC"; then
2735
  ac_ct_CC=$CC
2736
  for ac_prog in cl.exe
2737
do
2738
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2739
set dummy $ac_prog; ac_word=$2
2740 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2742 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2743 90 jeremybenn
  $as_echo_n "(cached) " >&6
2744
else
2745
  if test -n "$ac_ct_CC"; then
2746
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2747
else
2748
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749
for as_dir in $PATH
2750
do
2751
  IFS=$as_save_IFS
2752
  test -z "$as_dir" && as_dir=.
2753 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2754 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755
    ac_cv_prog_ac_ct_CC="$ac_prog"
2756 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 90 jeremybenn
    break 2
2758
  fi
2759
done
2760 346 jeremybenn
  done
2761 90 jeremybenn
IFS=$as_save_IFS
2762
 
2763
fi
2764
fi
2765
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2766
if test -n "$ac_ct_CC"; then
2767 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2768 90 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2769
else
2770 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 90 jeremybenn
$as_echo "no" >&6; }
2772
fi
2773
 
2774
 
2775
  test -n "$ac_ct_CC" && break
2776
done
2777
 
2778
  if test "x$ac_ct_CC" = x; then
2779
    CC=""
2780
  else
2781
    case $cross_compiling:$ac_tool_warned in
2782
yes:)
2783 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2784 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2785
ac_tool_warned=yes ;;
2786
esac
2787
    CC=$ac_ct_CC
2788
  fi
2789
fi
2790
 
2791
fi
2792
 
2793
 
2794 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2795 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2796 346 jeremybenn
as_fn_error "no acceptable C compiler found in \$PATH
2797
See \`config.log' for more details." "$LINENO" 5; }
2798 90 jeremybenn
 
2799
# Provide some information about the compiler.
2800 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2801 90 jeremybenn
set X $ac_compile
2802
ac_compiler=$2
2803 346 jeremybenn
for ac_option in --version -v -V -qversion; do
2804
  { { ac_try="$ac_compiler $ac_option >&5"
2805 90 jeremybenn
case "(($ac_try" in
2806
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807
  *) ac_try_echo=$ac_try;;
2808
esac
2809 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2810
$as_echo "$ac_try_echo"; } >&5
2811
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2812 90 jeremybenn
  ac_status=$?
2813 346 jeremybenn
  if test -s conftest.err; then
2814
    sed '10a\
2815
... rest of stderr output deleted ...
2816
         10q' conftest.err >conftest.er1
2817
    cat conftest.er1 >&5
2818
  fi
2819 460 jeremybenn
  rm -f conftest.er1 conftest.err
2820 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821
  test $ac_status = 0; }
2822
done
2823 90 jeremybenn
 
2824 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 90 jeremybenn
/* end confdefs.h.  */
2826 460 jeremybenn
 
2827 90 jeremybenn
int
2828
main ()
2829
{
2830
 
2831
  ;
2832
  return 0;
2833
}
2834
_ACEOF
2835
ac_clean_files_save=$ac_clean_files
2836 460 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2837 90 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2838
# It will help us diagnose broken compilers, and finding out an intuition
2839
# of exeext.
2840 460 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2841
$as_echo_n "checking whether the C compiler works... " >&6; }
2842 90 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2843
 
2844
# The possible output files:
2845
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2846
 
2847
ac_rmfiles=
2848
for ac_file in $ac_files
2849
do
2850
  case $ac_file in
2851
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2852
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2853
  esac
2854
done
2855
rm -f $ac_rmfiles
2856
 
2857 346 jeremybenn
if { { ac_try="$ac_link_default"
2858 90 jeremybenn
case "(($ac_try" in
2859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860
  *) ac_try_echo=$ac_try;;
2861
esac
2862 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863
$as_echo "$ac_try_echo"; } >&5
2864 90 jeremybenn
  (eval "$ac_link_default") 2>&5
2865
  ac_status=$?
2866 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867
  test $ac_status = 0; }; then :
2868 90 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2869
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2870
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2871
# so that the user can short-circuit this test for compilers unknown to
2872
# Autoconf.
2873
for ac_file in $ac_files ''
2874
do
2875
  test -f "$ac_file" || continue
2876
  case $ac_file in
2877
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2878
        ;;
2879
    [ab].out )
2880
        # We found the default executable, but exeext='' is most
2881
        # certainly right.
2882
        break;;
2883
    *.* )
2884 346 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2885 90 jeremybenn
        then :; else
2886
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2887
        fi
2888
        # We set ac_cv_exeext here because the later test for it is not
2889
        # safe: cross compilers may not add the suffix if given an `-o'
2890
        # argument, so we may need to know it at that point already.
2891
        # Even if this section looks crufty: it has the advantage of
2892
        # actually working.
2893
        break;;
2894
    * )
2895
        break;;
2896
  esac
2897
done
2898
test "$ac_cv_exeext" = no && ac_cv_exeext=
2899
 
2900
else
2901
  ac_file=''
2902
fi
2903 346 jeremybenn
if test -z "$ac_file"; then :
2904 460 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905
$as_echo "no" >&6; }
2906
$as_echo "$as_me: failed program was:" >&5
2907 90 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2908
 
2909 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2910 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2911 346 jeremybenn
{ as_fn_set_status 77
2912
as_fn_error "C compiler cannot create executables
2913
See \`config.log' for more details." "$LINENO" 5; }; }
2914 460 jeremybenn
else
2915
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2916
$as_echo "yes" >&6; }
2917 90 jeremybenn
fi
2918 460 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2919
$as_echo_n "checking for C compiler default output file name... " >&6; }
2920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2921
$as_echo "$ac_file" >&6; }
2922 90 jeremybenn
ac_exeext=$ac_cv_exeext
2923
 
2924 460 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2925 90 jeremybenn
ac_clean_files=$ac_clean_files_save
2926 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2927 90 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
2928 346 jeremybenn
if { { ac_try="$ac_link"
2929 90 jeremybenn
case "(($ac_try" in
2930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931
  *) ac_try_echo=$ac_try;;
2932
esac
2933 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2934
$as_echo "$ac_try_echo"; } >&5
2935 90 jeremybenn
  (eval "$ac_link") 2>&5
2936
  ac_status=$?
2937 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938
  test $ac_status = 0; }; then :
2939 90 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2940
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2941
# work properly (i.e., refer to `conftest.exe'), while it won't with
2942
# `rm'.
2943
for ac_file in conftest.exe conftest conftest.*; do
2944
  test -f "$ac_file" || continue
2945
  case $ac_file in
2946
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2947
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2948
          break;;
2949
    * ) break;;
2950
  esac
2951
done
2952
else
2953 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955 346 jeremybenn
as_fn_error "cannot compute suffix of executables: cannot compile and link
2956
See \`config.log' for more details." "$LINENO" 5; }
2957 90 jeremybenn
fi
2958 460 jeremybenn
rm -f conftest conftest$ac_cv_exeext
2959 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2960 90 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
2961
 
2962
rm -f conftest.$ac_ext
2963
EXEEXT=$ac_cv_exeext
2964
ac_exeext=$EXEEXT
2965 460 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966
/* end confdefs.h.  */
2967
#include 
2968
int
2969
main ()
2970
{
2971
FILE *f = fopen ("conftest.out", "w");
2972
 return ferror (f) || fclose (f) != 0;
2973
 
2974
  ;
2975
  return 0;
2976
}
2977
_ACEOF
2978
ac_clean_files="$ac_clean_files conftest.out"
2979
# Check that the compiler produces executables we can run.  If not, either
2980
# the compiler is broken, or we cross compile.
2981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2982
$as_echo_n "checking whether we are cross compiling... " >&6; }
2983
if test "$cross_compiling" != yes; then
2984
  { { ac_try="$ac_link"
2985
case "(($ac_try" in
2986
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987
  *) ac_try_echo=$ac_try;;
2988
esac
2989
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990
$as_echo "$ac_try_echo"; } >&5
2991
  (eval "$ac_link") 2>&5
2992
  ac_status=$?
2993
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994
  test $ac_status = 0; }
2995
  if { ac_try='./conftest$ac_cv_exeext'
2996
  { { case "(($ac_try" in
2997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998
  *) ac_try_echo=$ac_try;;
2999
esac
3000
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001
$as_echo "$ac_try_echo"; } >&5
3002
  (eval "$ac_try") 2>&5
3003
  ac_status=$?
3004
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005
  test $ac_status = 0; }; }; then
3006
    cross_compiling=no
3007
  else
3008
    if test "$cross_compiling" = maybe; then
3009
        cross_compiling=yes
3010
    else
3011
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013
as_fn_error "cannot run C compiled programs.
3014
If you meant to cross compile, use \`--host'.
3015
See \`config.log' for more details." "$LINENO" 5; }
3016
    fi
3017
  fi
3018
fi
3019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3020
$as_echo "$cross_compiling" >&6; }
3021
 
3022
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3023
ac_clean_files=$ac_clean_files_save
3024 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3025 90 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
3026 346 jeremybenn
if test "${ac_cv_objext+set}" = set; then :
3027 90 jeremybenn
  $as_echo_n "(cached) " >&6
3028
else
3029 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030 90 jeremybenn
/* end confdefs.h.  */
3031
 
3032
int
3033
main ()
3034
{
3035
 
3036
  ;
3037
  return 0;
3038
}
3039
_ACEOF
3040
rm -f conftest.o conftest.obj
3041 346 jeremybenn
if { { ac_try="$ac_compile"
3042 90 jeremybenn
case "(($ac_try" in
3043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044
  *) ac_try_echo=$ac_try;;
3045
esac
3046 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047
$as_echo "$ac_try_echo"; } >&5
3048 90 jeremybenn
  (eval "$ac_compile") 2>&5
3049
  ac_status=$?
3050 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051
  test $ac_status = 0; }; then :
3052 90 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3053
  test -f "$ac_file" || continue;
3054
  case $ac_file in
3055
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3056
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3057
       break;;
3058
  esac
3059
done
3060
else
3061
  $as_echo "$as_me: failed program was:" >&5
3062
sed 's/^/| /' conftest.$ac_ext >&5
3063
 
3064 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3065 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066 346 jeremybenn
as_fn_error "cannot compute suffix of object files: cannot compile
3067
See \`config.log' for more details." "$LINENO" 5; }
3068 90 jeremybenn
fi
3069
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3070
fi
3071 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3072 90 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
3073
OBJEXT=$ac_cv_objext
3074
ac_objext=$OBJEXT
3075 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3076 90 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3077 346 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3078 90 jeremybenn
  $as_echo_n "(cached) " >&6
3079
else
3080 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081 90 jeremybenn
/* end confdefs.h.  */
3082
 
3083
int
3084
main ()
3085
{
3086
#ifndef __GNUC__
3087
       choke me
3088
#endif
3089
 
3090
  ;
3091
  return 0;
3092
}
3093
_ACEOF
3094 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3095 90 jeremybenn
  ac_compiler_gnu=yes
3096
else
3097 346 jeremybenn
  ac_compiler_gnu=no
3098 90 jeremybenn
fi
3099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3100
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3101
 
3102
fi
3103 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3104 90 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3105
if test $ac_compiler_gnu = yes; then
3106
  GCC=yes
3107
else
3108
  GCC=
3109
fi
3110
ac_test_CFLAGS=${CFLAGS+set}
3111
ac_save_CFLAGS=$CFLAGS
3112 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3113 90 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3114 346 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then :
3115 90 jeremybenn
  $as_echo_n "(cached) " >&6
3116
else
3117
  ac_save_c_werror_flag=$ac_c_werror_flag
3118
   ac_c_werror_flag=yes
3119
   ac_cv_prog_cc_g=no
3120
   CFLAGS="-g"
3121 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 90 jeremybenn
/* end confdefs.h.  */
3123
 
3124
int
3125
main ()
3126
{
3127
 
3128
  ;
3129
  return 0;
3130
}
3131
_ACEOF
3132 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3133 90 jeremybenn
  ac_cv_prog_cc_g=yes
3134
else
3135 346 jeremybenn
  CFLAGS=""
3136
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137 90 jeremybenn
/* end confdefs.h.  */
3138
 
3139
int
3140
main ()
3141
{
3142
 
3143
  ;
3144
  return 0;
3145
}
3146
_ACEOF
3147 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3148
 
3149 236 jeremybenn
else
3150 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
3151 90 jeremybenn
         CFLAGS="-g"
3152 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 90 jeremybenn
/* end confdefs.h.  */
3154
 
3155
int
3156
main ()
3157
{
3158
 
3159
  ;
3160
  return 0;
3161
}
3162
_ACEOF
3163 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3164 90 jeremybenn
  ac_cv_prog_cc_g=yes
3165
fi
3166
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167
fi
3168
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169
fi
3170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171
   ac_c_werror_flag=$ac_save_c_werror_flag
3172
fi
3173 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3174 90 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
3175
if test "$ac_test_CFLAGS" = set; then
3176
  CFLAGS=$ac_save_CFLAGS
3177
elif test $ac_cv_prog_cc_g = yes; then
3178
  if test "$GCC" = yes; then
3179
    CFLAGS="-g -O2"
3180
  else
3181
    CFLAGS="-g"
3182
  fi
3183
else
3184
  if test "$GCC" = yes; then
3185
    CFLAGS="-O2"
3186
  else
3187
    CFLAGS=
3188
  fi
3189
fi
3190 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3191 90 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3192 346 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3193 90 jeremybenn
  $as_echo_n "(cached) " >&6
3194
else
3195
  ac_cv_prog_cc_c89=no
3196
ac_save_CC=$CC
3197 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 90 jeremybenn
/* end confdefs.h.  */
3199
#include 
3200
#include 
3201
#include 
3202
#include 
3203
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3204
struct buf { int x; };
3205
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3206
static char *e (p, i)
3207
     char **p;
3208
     int i;
3209
{
3210
  return p[i];
3211
}
3212
static char *f (char * (*g) (char **, int), char **p, ...)
3213
{
3214
  char *s;
3215
  va_list v;
3216
  va_start (v,p);
3217
  s = g (p, va_arg (v,int));
3218
  va_end (v);
3219
  return s;
3220
}
3221
 
3222
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3223
   function prototypes and stuff, but not '\xHH' hex character constants.
3224
   These don't provoke an error unfortunately, instead are silently treated
3225
   as 'x'.  The following induces an error, until -std is added to get
3226
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3227
   array size at least.  It's necessary to write '\x00'==0 to get something
3228
   that's true only with -std.  */
3229
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3230
 
3231
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3232
   inside strings and character constants.  */
3233
#define FOO(x) 'x'
3234
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3235
 
3236
int test (int i, double x);
3237
struct s1 {int (*f) (int a);};
3238
struct s2 {int (*f) (double a);};
3239
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3240
int argc;
3241
char **argv;
3242
int
3243
main ()
3244
{
3245
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3246
  ;
3247
  return 0;
3248
}
3249
_ACEOF
3250
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3251
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3252
do
3253
  CC="$ac_save_CC $ac_arg"
3254 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
3255 90 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3256
fi
3257
rm -f core conftest.err conftest.$ac_objext
3258
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3259
done
3260
rm -f conftest.$ac_ext
3261
CC=$ac_save_CC
3262
 
3263
fi
3264
# AC_CACHE_VAL
3265
case "x$ac_cv_prog_cc_c89" in
3266
  x)
3267 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3268 90 jeremybenn
$as_echo "none needed" >&6; } ;;
3269
  xno)
3270 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3271 90 jeremybenn
$as_echo "unsupported" >&6; } ;;
3272
  *)
3273
    CC="$CC $ac_cv_prog_cc_c89"
3274 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3275 90 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3276
esac
3277 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
3278 90 jeremybenn
 
3279 346 jeremybenn
fi
3280 90 jeremybenn
 
3281
ac_ext=c
3282
ac_cpp='$CPP $CPPFLAGS'
3283
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286
 
3287 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3288 90 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3289 346 jeremybenn
if test "${ac_cv_path_SED+set}" = set; then :
3290 90 jeremybenn
  $as_echo_n "(cached) " >&6
3291
else
3292
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3293
     for ac_i in 1 2 3 4 5 6 7; do
3294
       ac_script="$ac_script$as_nl$ac_script"
3295
     done
3296
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3297 346 jeremybenn
     { ac_script=; unset ac_script;}
3298 90 jeremybenn
     if test -z "$SED"; then
3299
  ac_path_SED_found=false
3300
  # Loop through the user's path and test for each of PROGNAME-LIST
3301
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302
for as_dir in $PATH
3303
do
3304
  IFS=$as_save_IFS
3305
  test -z "$as_dir" && as_dir=.
3306 346 jeremybenn
    for ac_prog in sed gsed; do
3307 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3308
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3309
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3310
# Check for GNU ac_path_SED and select it if it is found.
3311
  # Check for GNU $ac_path_SED
3312
case `"$ac_path_SED" --version 2>&1` in
3313
*GNU*)
3314
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3315
*)
3316
  ac_count=0
3317
  $as_echo_n 0123456789 >"conftest.in"
3318
  while :
3319
  do
3320
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3321
    mv "conftest.tmp" "conftest.in"
3322
    cp "conftest.in" "conftest.nl"
3323
    $as_echo '' >> "conftest.nl"
3324
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3325
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3326 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3327 90 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3328
      # Best one so far, save it but keep looking for a better one
3329
      ac_cv_path_SED="$ac_path_SED"
3330
      ac_path_SED_max=$ac_count
3331
    fi
3332
    # 10*(2^10) chars as input seems more than enough
3333
    test $ac_count -gt 10 && break
3334
  done
3335
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3336
esac
3337
 
3338
      $ac_path_SED_found && break 3
3339
    done
3340
  done
3341 346 jeremybenn
  done
3342 90 jeremybenn
IFS=$as_save_IFS
3343
  if test -z "$ac_cv_path_SED"; then
3344 346 jeremybenn
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3345 90 jeremybenn
  fi
3346
else
3347
  ac_cv_path_SED=$SED
3348
fi
3349
 
3350
fi
3351 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3352 90 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
3353
 SED="$ac_cv_path_SED"
3354
  rm -f conftest.sed
3355
 
3356
test -z "$SED" && SED=sed
3357
Xsed="$SED -e 1s/^X//"
3358
 
3359
 
3360
 
3361
 
3362
 
3363
 
3364
 
3365
 
3366
 
3367
 
3368
 
3369 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3370 90 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3371 346 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then :
3372 90 jeremybenn
  $as_echo_n "(cached) " >&6
3373
else
3374
  if test -z "$GREP"; then
3375
  ac_path_GREP_found=false
3376
  # Loop through the user's path and test for each of PROGNAME-LIST
3377
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3379
do
3380
  IFS=$as_save_IFS
3381
  test -z "$as_dir" && as_dir=.
3382 346 jeremybenn
    for ac_prog in grep ggrep; do
3383 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3384
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3385
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3386
# Check for GNU ac_path_GREP and select it if it is found.
3387
  # Check for GNU $ac_path_GREP
3388
case `"$ac_path_GREP" --version 2>&1` in
3389
*GNU*)
3390
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3391
*)
3392
  ac_count=0
3393
  $as_echo_n 0123456789 >"conftest.in"
3394
  while :
3395
  do
3396
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3397
    mv "conftest.tmp" "conftest.in"
3398
    cp "conftest.in" "conftest.nl"
3399
    $as_echo 'GREP' >> "conftest.nl"
3400
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3401
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3402 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3403 90 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3404
      # Best one so far, save it but keep looking for a better one
3405
      ac_cv_path_GREP="$ac_path_GREP"
3406
      ac_path_GREP_max=$ac_count
3407
    fi
3408
    # 10*(2^10) chars as input seems more than enough
3409
    test $ac_count -gt 10 && break
3410
  done
3411
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3412
esac
3413
 
3414
      $ac_path_GREP_found && break 3
3415
    done
3416
  done
3417 346 jeremybenn
  done
3418 90 jeremybenn
IFS=$as_save_IFS
3419
  if test -z "$ac_cv_path_GREP"; then
3420 346 jeremybenn
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3421 90 jeremybenn
  fi
3422
else
3423
  ac_cv_path_GREP=$GREP
3424
fi
3425
 
3426
fi
3427 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3428 90 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3429
 GREP="$ac_cv_path_GREP"
3430
 
3431
 
3432 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3433 90 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3434 346 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then :
3435 90 jeremybenn
  $as_echo_n "(cached) " >&6
3436
else
3437
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3438
   then ac_cv_path_EGREP="$GREP -E"
3439
   else
3440
     if test -z "$EGREP"; then
3441
  ac_path_EGREP_found=false
3442
  # Loop through the user's path and test for each of PROGNAME-LIST
3443
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3445
do
3446
  IFS=$as_save_IFS
3447
  test -z "$as_dir" && as_dir=.
3448 346 jeremybenn
    for ac_prog in egrep; do
3449 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3450
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3451
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3452
# Check for GNU ac_path_EGREP and select it if it is found.
3453
  # Check for GNU $ac_path_EGREP
3454
case `"$ac_path_EGREP" --version 2>&1` in
3455
*GNU*)
3456
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3457
*)
3458
  ac_count=0
3459
  $as_echo_n 0123456789 >"conftest.in"
3460
  while :
3461
  do
3462
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3463
    mv "conftest.tmp" "conftest.in"
3464
    cp "conftest.in" "conftest.nl"
3465
    $as_echo 'EGREP' >> "conftest.nl"
3466
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3467
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3468 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3469 90 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3470
      # Best one so far, save it but keep looking for a better one
3471
      ac_cv_path_EGREP="$ac_path_EGREP"
3472
      ac_path_EGREP_max=$ac_count
3473
    fi
3474
    # 10*(2^10) chars as input seems more than enough
3475
    test $ac_count -gt 10 && break
3476
  done
3477
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3478
esac
3479
 
3480
      $ac_path_EGREP_found && break 3
3481
    done
3482
  done
3483 346 jeremybenn
  done
3484 90 jeremybenn
IFS=$as_save_IFS
3485
  if test -z "$ac_cv_path_EGREP"; then
3486 346 jeremybenn
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3487 90 jeremybenn
  fi
3488
else
3489
  ac_cv_path_EGREP=$EGREP
3490
fi
3491
 
3492
   fi
3493
fi
3494 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3495 90 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3496
 EGREP="$ac_cv_path_EGREP"
3497
 
3498
 
3499 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3500 90 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
3501 346 jeremybenn
if test "${ac_cv_path_FGREP+set}" = set; then :
3502 90 jeremybenn
  $as_echo_n "(cached) " >&6
3503
else
3504
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3505
   then ac_cv_path_FGREP="$GREP -F"
3506
   else
3507
     if test -z "$FGREP"; then
3508
  ac_path_FGREP_found=false
3509
  # Loop through the user's path and test for each of PROGNAME-LIST
3510
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3512
do
3513
  IFS=$as_save_IFS
3514
  test -z "$as_dir" && as_dir=.
3515 346 jeremybenn
    for ac_prog in fgrep; do
3516 90 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3517
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3518
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3519
# Check for GNU ac_path_FGREP and select it if it is found.
3520
  # Check for GNU $ac_path_FGREP
3521
case `"$ac_path_FGREP" --version 2>&1` in
3522
*GNU*)
3523
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3524
*)
3525
  ac_count=0
3526
  $as_echo_n 0123456789 >"conftest.in"
3527
  while :
3528
  do
3529
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3530
    mv "conftest.tmp" "conftest.in"
3531
    cp "conftest.in" "conftest.nl"
3532
    $as_echo 'FGREP' >> "conftest.nl"
3533
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3534
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3535 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3536 90 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3537
      # Best one so far, save it but keep looking for a better one
3538
      ac_cv_path_FGREP="$ac_path_FGREP"
3539
      ac_path_FGREP_max=$ac_count
3540
    fi
3541
    # 10*(2^10) chars as input seems more than enough
3542
    test $ac_count -gt 10 && break
3543
  done
3544
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3545
esac
3546
 
3547
      $ac_path_FGREP_found && break 3
3548
    done
3549
  done
3550 346 jeremybenn
  done
3551 90 jeremybenn
IFS=$as_save_IFS
3552
  if test -z "$ac_cv_path_FGREP"; then
3553 346 jeremybenn
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3554 90 jeremybenn
  fi
3555
else
3556
  ac_cv_path_FGREP=$FGREP
3557
fi
3558
 
3559
   fi
3560
fi
3561 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3562 90 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
3563
 FGREP="$ac_cv_path_FGREP"
3564
 
3565
 
3566
test -z "$GREP" && GREP=grep
3567
 
3568
 
3569
 
3570
 
3571
 
3572
 
3573
 
3574
 
3575
 
3576
 
3577
 
3578
 
3579
 
3580
 
3581
 
3582
 
3583
 
3584
 
3585
 
3586
# Check whether --with-gnu-ld was given.
3587 346 jeremybenn
if test "${with_gnu_ld+set}" = set; then :
3588 90 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3589
else
3590
  with_gnu_ld=no
3591
fi
3592
 
3593
ac_prog=ld
3594
if test "$GCC" = yes; then
3595
  # Check if gcc -print-prog-name=ld gives a path.
3596 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3597 90 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
3598
  case $host in
3599
  *-*-mingw*)
3600
    # gcc leaves a trailing carriage return which upsets mingw
3601
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3602
  *)
3603
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3604
  esac
3605
  case $ac_prog in
3606
    # Accept absolute paths.
3607
    [\\/]* | ?:[\\/]*)
3608
      re_direlt='/[^/][^/]*/\.\./'
3609
      # Canonicalize the pathname of ld
3610
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3611
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3612
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3613
      done
3614
      test -z "$LD" && LD="$ac_prog"
3615
      ;;
3616
  "")
3617
    # If it fails, then pretend we aren't using GCC.
3618
    ac_prog=ld
3619
    ;;
3620
  *)
3621
    # If it is relative, then search for the first ld in PATH.
3622
    with_gnu_ld=unknown
3623
    ;;
3624
  esac
3625
elif test "$with_gnu_ld" = yes; then
3626 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3627 90 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
3628
else
3629 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3630 90 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
3631
fi
3632 346 jeremybenn
if test "${lt_cv_path_LD+set}" = set; then :
3633 90 jeremybenn
  $as_echo_n "(cached) " >&6
3634
else
3635
  if test -z "$LD"; then
3636
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3637
  for ac_dir in $PATH; do
3638
    IFS="$lt_save_ifs"
3639
    test -z "$ac_dir" && ac_dir=.
3640
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3641
      lt_cv_path_LD="$ac_dir/$ac_prog"
3642
      # Check to see if the program is GNU ld.  I'd rather use --version,
3643
      # but apparently some variants of GNU ld only accept -v.
3644
      # Break only if it was the GNU/non-GNU ld that we prefer.
3645
      case `"$lt_cv_path_LD" -v 2>&1 
3646
      *GNU* | *'with BFD'*)
3647
        test "$with_gnu_ld" != no && break
3648
        ;;
3649
      *)
3650
        test "$with_gnu_ld" != yes && break
3651
        ;;
3652
      esac
3653
    fi
3654
  done
3655
  IFS="$lt_save_ifs"
3656
else
3657
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3658
fi
3659
fi
3660
 
3661
LD="$lt_cv_path_LD"
3662
if test -n "$LD"; then
3663 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3664 90 jeremybenn
$as_echo "$LD" >&6; }
3665
else
3666 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 90 jeremybenn
$as_echo "no" >&6; }
3668
fi
3669 346 jeremybenn
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3671 90 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3672 346 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3673 90 jeremybenn
  $as_echo_n "(cached) " >&6
3674
else
3675
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3676
case `$LD -v 2>&1 
3677
*GNU* | *'with BFD'*)
3678
  lt_cv_prog_gnu_ld=yes
3679
  ;;
3680
*)
3681
  lt_cv_prog_gnu_ld=no
3682
  ;;
3683
esac
3684
fi
3685 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3686 90 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3687
with_gnu_ld=$lt_cv_prog_gnu_ld
3688
 
3689
 
3690
 
3691
 
3692
 
3693
 
3694
 
3695
 
3696
 
3697 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3698 90 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3699 346 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then :
3700 90 jeremybenn
  $as_echo_n "(cached) " >&6
3701
else
3702
  if test -n "$NM"; then
3703
  # Let the user override the test.
3704
  lt_cv_path_NM="$NM"
3705
else
3706
  lt_nm_to_check="${ac_tool_prefix}nm"
3707
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3708
    lt_nm_to_check="$lt_nm_to_check nm"
3709
  fi
3710
  for lt_tmp_nm in $lt_nm_to_check; do
3711
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3712
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3713
      IFS="$lt_save_ifs"
3714
      test -z "$ac_dir" && ac_dir=.
3715
      tmp_nm="$ac_dir/$lt_tmp_nm"
3716
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3717
        # Check to see if the nm accepts a BSD-compat flag.
3718
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3719
        #   nm: unknown option "B" ignored
3720
        # Tru64's nm complains that /dev/null is an invalid object file
3721
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3722
        */dev/null* | *'Invalid file or object type'*)
3723
          lt_cv_path_NM="$tmp_nm -B"
3724
          break
3725
          ;;
3726
        *)
3727
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3728
          */dev/null*)
3729
            lt_cv_path_NM="$tmp_nm -p"
3730
            break
3731
            ;;
3732
          *)
3733
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3734
            continue # so that we can try to find one that supports BSD flags
3735
            ;;
3736
          esac
3737
          ;;
3738
        esac
3739
      fi
3740
    done
3741
    IFS="$lt_save_ifs"
3742
  done
3743
  : ${lt_cv_path_NM=no}
3744
fi
3745
fi
3746 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3747 90 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
3748
if test "$lt_cv_path_NM" != "no"; then
3749
  NM="$lt_cv_path_NM"
3750
else
3751
  # Didn't find any BSD compatible name lister, look for dumpbin.
3752
  if test -n "$ac_tool_prefix"; then
3753
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3754
  do
3755
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3756
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3757 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
3759 346 jeremybenn
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3760 90 jeremybenn
  $as_echo_n "(cached) " >&6
3761
else
3762
  if test -n "$DUMPBIN"; then
3763
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3764
else
3765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766
for as_dir in $PATH
3767
do
3768
  IFS=$as_save_IFS
3769
  test -z "$as_dir" && as_dir=.
3770 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3771 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3773 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 90 jeremybenn
    break 2
3775
  fi
3776
done
3777 346 jeremybenn
  done
3778 90 jeremybenn
IFS=$as_save_IFS
3779
 
3780
fi
3781
fi
3782
DUMPBIN=$ac_cv_prog_DUMPBIN
3783
if test -n "$DUMPBIN"; then
3784 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3785 90 jeremybenn
$as_echo "$DUMPBIN" >&6; }
3786
else
3787 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 90 jeremybenn
$as_echo "no" >&6; }
3789
fi
3790
 
3791
 
3792
    test -n "$DUMPBIN" && break
3793
  done
3794
fi
3795
if test -z "$DUMPBIN"; then
3796
  ac_ct_DUMPBIN=$DUMPBIN
3797
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3798
do
3799
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3800
set dummy $ac_prog; ac_word=$2
3801 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
3803 346 jeremybenn
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
3804 90 jeremybenn
  $as_echo_n "(cached) " >&6
3805
else
3806
  if test -n "$ac_ct_DUMPBIN"; then
3807
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3808
else
3809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810
for as_dir in $PATH
3811
do
3812
  IFS=$as_save_IFS
3813
  test -z "$as_dir" && as_dir=.
3814 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3815 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3817 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 90 jeremybenn
    break 2
3819
  fi
3820
done
3821 346 jeremybenn
  done
3822 90 jeremybenn
IFS=$as_save_IFS
3823
 
3824
fi
3825
fi
3826
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3827
if test -n "$ac_ct_DUMPBIN"; then
3828 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3829 90 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
3830
else
3831 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 90 jeremybenn
$as_echo "no" >&6; }
3833
fi
3834
 
3835
 
3836
  test -n "$ac_ct_DUMPBIN" && break
3837
done
3838
 
3839
  if test "x$ac_ct_DUMPBIN" = x; then
3840
    DUMPBIN=":"
3841
  else
3842
    case $cross_compiling:$ac_tool_warned in
3843
yes:)
3844 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3845 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3846
ac_tool_warned=yes ;;
3847
esac
3848
    DUMPBIN=$ac_ct_DUMPBIN
3849
  fi
3850
fi
3851
 
3852
 
3853
  if test "$DUMPBIN" != ":"; then
3854
    NM="$DUMPBIN"
3855
  fi
3856
fi
3857
test -z "$NM" && NM=nm
3858
 
3859
 
3860
 
3861
 
3862
 
3863
 
3864 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3865 90 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3866 346 jeremybenn
if test "${lt_cv_nm_interface+set}" = set; then :
3867 90 jeremybenn
  $as_echo_n "(cached) " >&6
3868
else
3869
  lt_cv_nm_interface="BSD nm"
3870
  echo "int some_variable = 0;" > conftest.$ac_ext
3871 460 jeremybenn
  (eval echo "\"\$as_me:3871: $ac_compile\"" >&5)
3872 90 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
3873
  cat conftest.err >&5
3874 460 jeremybenn
  (eval echo "\"\$as_me:3874: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3875 90 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3876
  cat conftest.err >&5
3877 460 jeremybenn
  (eval echo "\"\$as_me:3877: output\"" >&5)
3878 90 jeremybenn
  cat conftest.out >&5
3879
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3880
    lt_cv_nm_interface="MS dumpbin"
3881
  fi
3882
  rm -f conftest*
3883
fi
3884 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3885 90 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
3886
 
3887 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3888 90 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
3889
LN_S=$as_ln_s
3890
if test "$LN_S" = "ln -s"; then
3891 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3892 90 jeremybenn
$as_echo "yes" >&6; }
3893
else
3894 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3895 90 jeremybenn
$as_echo "no, using $LN_S" >&6; }
3896
fi
3897
 
3898
# find the maximum length of command line arguments
3899 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3900 90 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3901 346 jeremybenn
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
3902 90 jeremybenn
  $as_echo_n "(cached) " >&6
3903
else
3904
    i=0
3905
  teststring="ABCD"
3906
 
3907
  case $build_os in
3908
  msdosdjgpp*)
3909
    # On DJGPP, this test can blow up pretty badly due to problems in libc
3910
    # (any single argument exceeding 2000 bytes causes a buffer overrun
3911
    # during glob expansion).  Even if it were fixed, the result of this
3912
    # check would be larger than it should be.
3913
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3914
    ;;
3915
 
3916
  gnu*)
3917
    # Under GNU Hurd, this test is not required because there is
3918
    # no limit to the length of command line arguments.
3919
    # Libtool will interpret -1 as no limit whatsoever
3920
    lt_cv_sys_max_cmd_len=-1;
3921
    ;;
3922
 
3923
  cygwin* | mingw* | cegcc*)
3924
    # On Win9x/ME, this test blows up -- it succeeds, but takes
3925
    # about 5 minutes as the teststring grows exponentially.
3926
    # Worse, since 9x/ME are not pre-emptively multitasking,
3927
    # you end up with a "frozen" computer, even though with patience
3928
    # the test eventually succeeds (with a max line length of 256k).
3929
    # Instead, let's just punt: use the minimum linelength reported by
3930
    # all of the supported platforms: 8192 (on NT/2K/XP).
3931
    lt_cv_sys_max_cmd_len=8192;
3932
    ;;
3933
 
3934
  amigaos*)
3935
    # On AmigaOS with pdksh, this test takes hours, literally.
3936
    # So we just punt and use a minimum line length of 8192.
3937
    lt_cv_sys_max_cmd_len=8192;
3938
    ;;
3939
 
3940
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3941
    # This has been around since 386BSD, at least.  Likely further.
3942
    if test -x /sbin/sysctl; then
3943
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3944
    elif test -x /usr/sbin/sysctl; then
3945
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3946
    else
3947
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3948
    fi
3949
    # And add a safety zone
3950
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3951
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3952
    ;;
3953
 
3954
  interix*)
3955
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3956
    lt_cv_sys_max_cmd_len=196608
3957
    ;;
3958
 
3959
  osf*)
3960
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3961
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3962
    # nice to cause kernel panics so lets avoid the loop below.
3963
    # First set a reasonable default.
3964
    lt_cv_sys_max_cmd_len=16384
3965
    #
3966
    if test -x /sbin/sysconfig; then
3967
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3968
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3969
      esac
3970
    fi
3971
    ;;
3972
  sco3.2v5*)
3973
    lt_cv_sys_max_cmd_len=102400
3974
    ;;
3975
  sysv5* | sco5v6* | sysv4.2uw2*)
3976
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3977
    if test -n "$kargmax"; then
3978
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3979
    else
3980
      lt_cv_sys_max_cmd_len=32768
3981
    fi
3982
    ;;
3983
  *)
3984
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3985
    if test -n "$lt_cv_sys_max_cmd_len"; then
3986
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3987
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3988
    else
3989
      # Make teststring a little bigger before we do anything with it.
3990
      # a 1K string should be a reasonable start.
3991
      for i in 1 2 3 4 5 6 7 8 ; do
3992
        teststring=$teststring$teststring
3993
      done
3994
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3995
      # If test is not a shell built-in, we'll probably end up computing a
3996
      # maximum length that is only half of the actual maximum length, but
3997
      # we can't tell.
3998
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3999
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4000
              test $i != 17 # 1/2 MB should be enough
4001
      do
4002
        i=`expr $i + 1`
4003
        teststring=$teststring$teststring
4004
      done
4005
      # Only check the string length outside the loop.
4006
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4007
      teststring=
4008
      # Add a significant safety factor because C++ compilers can tack on
4009
      # massive amounts of additional arguments before passing them to the
4010
      # linker.  It appears as though 1/2 is a usable value.
4011
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4012
    fi
4013
    ;;
4014
  esac
4015
 
4016
fi
4017
 
4018
if test -n $lt_cv_sys_max_cmd_len ; then
4019 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4020 90 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4021
else
4022 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4023 90 jeremybenn
$as_echo "none" >&6; }
4024
fi
4025
max_cmd_len=$lt_cv_sys_max_cmd_len
4026
 
4027
 
4028
 
4029
 
4030
 
4031
 
4032
: ${CP="cp -f"}
4033
: ${MV="mv -f"}
4034
: ${RM="rm -f"}
4035
 
4036 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4037 90 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4038
# Try some XSI features
4039
xsi_shell=no
4040
( _lt_dummy="a/b/c"
4041
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4042
      = c,a/b,, \
4043
    && eval 'test $(( 1 + 1 )) -eq 2 \
4044
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4045
  && xsi_shell=yes
4046 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4047 90 jeremybenn
$as_echo "$xsi_shell" >&6; }
4048
 
4049
 
4050 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4051 90 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4052
lt_shell_append=no
4053
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4054
    >/dev/null 2>&1 \
4055
  && lt_shell_append=yes
4056 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4057 90 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4058
 
4059
 
4060
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4061
  lt_unset=unset
4062
else
4063
  lt_unset=false
4064
fi
4065
 
4066
 
4067
 
4068
 
4069
 
4070
# test EBCDIC or ASCII
4071
case `echo X|tr X '\101'` in
4072
 A) # ASCII based system
4073
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4074
  lt_SP2NL='tr \040 \012'
4075
  lt_NL2SP='tr \015\012 \040\040'
4076
  ;;
4077
 *) # EBCDIC based system
4078
  lt_SP2NL='tr \100 \n'
4079
  lt_NL2SP='tr \r\n \100\100'
4080
  ;;
4081
esac
4082
 
4083
 
4084
 
4085
 
4086
 
4087
 
4088
 
4089
 
4090
 
4091 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4092 90 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4093 346 jeremybenn
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4094 90 jeremybenn
  $as_echo_n "(cached) " >&6
4095
else
4096
  lt_cv_ld_reload_flag='-r'
4097
fi
4098 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4099 90 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4100
reload_flag=$lt_cv_ld_reload_flag
4101
case $reload_flag in
4102
"" | " "*) ;;
4103
*) reload_flag=" $reload_flag" ;;
4104
esac
4105
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4106
case $host_os in
4107
  darwin*)
4108
    if test "$GCC" = yes; then
4109
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4110
    else
4111
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4112
    fi
4113
    ;;
4114
esac
4115
 
4116
 
4117
 
4118
 
4119
 
4120
 
4121
 
4122
 
4123
 
4124
if test -n "$ac_tool_prefix"; then
4125
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4126
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4127 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4129 346 jeremybenn
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4130 90 jeremybenn
  $as_echo_n "(cached) " >&6
4131
else
4132
  if test -n "$OBJDUMP"; then
4133
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4134
else
4135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136
for as_dir in $PATH
4137
do
4138
  IFS=$as_save_IFS
4139
  test -z "$as_dir" && as_dir=.
4140 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4141 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4143 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 90 jeremybenn
    break 2
4145
  fi
4146
done
4147 346 jeremybenn
  done
4148 90 jeremybenn
IFS=$as_save_IFS
4149
 
4150
fi
4151
fi
4152
OBJDUMP=$ac_cv_prog_OBJDUMP
4153
if test -n "$OBJDUMP"; then
4154 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4155 90 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4156
else
4157 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 90 jeremybenn
$as_echo "no" >&6; }
4159
fi
4160
 
4161
 
4162
fi
4163
if test -z "$ac_cv_prog_OBJDUMP"; then
4164
  ac_ct_OBJDUMP=$OBJDUMP
4165
  # Extract the first word of "objdump", so it can be a program name with args.
4166
set dummy objdump; ac_word=$2
4167 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4169 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4170 90 jeremybenn
  $as_echo_n "(cached) " >&6
4171
else
4172
  if test -n "$ac_ct_OBJDUMP"; then
4173
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4174
else
4175
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176
for as_dir in $PATH
4177
do
4178
  IFS=$as_save_IFS
4179
  test -z "$as_dir" && as_dir=.
4180 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4181 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4183 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 90 jeremybenn
    break 2
4185
  fi
4186
done
4187 346 jeremybenn
  done
4188 90 jeremybenn
IFS=$as_save_IFS
4189
 
4190
fi
4191
fi
4192
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4193
if test -n "$ac_ct_OBJDUMP"; then
4194 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4195 90 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4196
else
4197 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 90 jeremybenn
$as_echo "no" >&6; }
4199
fi
4200
 
4201
  if test "x$ac_ct_OBJDUMP" = x; then
4202
    OBJDUMP="false"
4203
  else
4204
    case $cross_compiling:$ac_tool_warned in
4205
yes:)
4206 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4207 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4208
ac_tool_warned=yes ;;
4209
esac
4210
    OBJDUMP=$ac_ct_OBJDUMP
4211
  fi
4212
else
4213
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4214
fi
4215
 
4216
test -z "$OBJDUMP" && OBJDUMP=objdump
4217
 
4218
 
4219
 
4220
 
4221
 
4222
 
4223
 
4224
 
4225
 
4226 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4227 90 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4228 346 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4229 90 jeremybenn
  $as_echo_n "(cached) " >&6
4230
else
4231
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4232
lt_cv_file_magic_test_file=
4233
lt_cv_deplibs_check_method='unknown'
4234
# Need to set the preceding variable on all platforms that support
4235
# interlibrary dependencies.
4236
# 'none' -- dependencies not supported.
4237
# `unknown' -- same as none, but documents that we really don't know.
4238
# 'pass_all' -- all dependencies passed with no checks.
4239
# 'test_compile' -- check by making test program.
4240
# 'file_magic [[regex]]' -- check by looking for files in library path
4241
# which responds to the $file_magic_cmd with a given extended regex.
4242
# If you have `file' or equivalent on your system and you're not sure
4243
# whether `pass_all' will *always* work, you probably want this one.
4244
 
4245
case $host_os in
4246
aix[4-9]*)
4247
  lt_cv_deplibs_check_method=pass_all
4248
  ;;
4249
 
4250
beos*)
4251
  lt_cv_deplibs_check_method=pass_all
4252
  ;;
4253
 
4254
bsdi[45]*)
4255
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4256
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4257
  lt_cv_file_magic_test_file=/shlib/libc.so
4258
  ;;
4259
 
4260
cygwin*)
4261
  # func_win32_libid is a shell function defined in ltmain.sh
4262
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4263
  lt_cv_file_magic_cmd='func_win32_libid'
4264
  ;;
4265
 
4266
mingw* | pw32*)
4267
  # Base MSYS/MinGW do not provide the 'file' command needed by
4268
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4269
  # unless we find 'file', for example because we are cross-compiling.
4270
  if ( file / ) >/dev/null 2>&1; then
4271
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4272
    lt_cv_file_magic_cmd='func_win32_libid'
4273
  else
4274
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4275
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4276
  fi
4277
  ;;
4278
 
4279
cegcc)
4280
  # use the weaker test based on 'objdump'. See mingw*.
4281
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4282
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4283
  ;;
4284
 
4285
darwin* | rhapsody*)
4286
  lt_cv_deplibs_check_method=pass_all
4287
  ;;
4288
 
4289
freebsd* | dragonfly*)
4290
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4291
    case $host_cpu in
4292
    i*86 )
4293
      # Not sure whether the presence of OpenBSD here was a mistake.
4294
      # Let's accept both of them until this is cleared up.
4295
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4296
      lt_cv_file_magic_cmd=/usr/bin/file
4297
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4298
      ;;
4299
    esac
4300
  else
4301
    lt_cv_deplibs_check_method=pass_all
4302
  fi
4303
  ;;
4304
 
4305
gnu*)
4306
  lt_cv_deplibs_check_method=pass_all
4307
  ;;
4308
 
4309
hpux10.20* | hpux11*)
4310
  lt_cv_file_magic_cmd=/usr/bin/file
4311
  case $host_cpu in
4312
  ia64*)
4313
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4314
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4315
    ;;
4316
  hppa*64*)
4317
    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]'
4318
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4319
    ;;
4320
  *)
4321
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4322
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4323
    ;;
4324
  esac
4325
  ;;
4326
 
4327
interix[3-9]*)
4328
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4329
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4330
  ;;
4331
 
4332
irix5* | irix6* | nonstopux*)
4333
  case $LD in
4334
  *-32|*"-32 ") libmagic=32-bit;;
4335
  *-n32|*"-n32 ") libmagic=N32;;
4336
  *-64|*"-64 ") libmagic=64-bit;;
4337
  *) libmagic=never-match;;
4338
  esac
4339
  lt_cv_deplibs_check_method=pass_all
4340
  ;;
4341
 
4342
# This must be Linux ELF.
4343
linux* | k*bsd*-gnu)
4344
  lt_cv_deplibs_check_method=pass_all
4345
  ;;
4346
 
4347 93 jeremybenn
netbsd* | netbsdelf*-gnu)
4348 90 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4349
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4350
  else
4351
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4352
  fi
4353
  ;;
4354
 
4355
newos6*)
4356
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4357
  lt_cv_file_magic_cmd=/usr/bin/file
4358
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4359
  ;;
4360
 
4361
*nto* | *qnx*)
4362
  lt_cv_deplibs_check_method=pass_all
4363
  ;;
4364
 
4365
openbsd*)
4366
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4367
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4368
  else
4369
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4370
  fi
4371
  ;;
4372
 
4373
osf3* | osf4* | osf5*)
4374
  lt_cv_deplibs_check_method=pass_all
4375
  ;;
4376
 
4377
rdos*)
4378
  lt_cv_deplibs_check_method=pass_all
4379
  ;;
4380
 
4381
solaris*)
4382
  lt_cv_deplibs_check_method=pass_all
4383
  ;;
4384
 
4385
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4386
  lt_cv_deplibs_check_method=pass_all
4387
  ;;
4388
 
4389
sysv4 | sysv4.3*)
4390
  case $host_vendor in
4391
  motorola)
4392
    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]'
4393
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4394
    ;;
4395
  ncr)
4396
    lt_cv_deplibs_check_method=pass_all
4397
    ;;
4398
  sequent)
4399
    lt_cv_file_magic_cmd='/bin/file'
4400
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4401
    ;;
4402
  sni)
4403
    lt_cv_file_magic_cmd='/bin/file'
4404
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4405
    lt_cv_file_magic_test_file=/lib/libc.so
4406
    ;;
4407
  siemens)
4408
    lt_cv_deplibs_check_method=pass_all
4409
    ;;
4410
  pc)
4411
    lt_cv_deplibs_check_method=pass_all
4412
    ;;
4413
  esac
4414
  ;;
4415
 
4416
tpf*)
4417
  lt_cv_deplibs_check_method=pass_all
4418
  ;;
4419
esac
4420
 
4421
fi
4422 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4423 90 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4424
file_magic_cmd=$lt_cv_file_magic_cmd
4425
deplibs_check_method=$lt_cv_deplibs_check_method
4426
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4427
 
4428
 
4429
 
4430
 
4431
 
4432
 
4433
 
4434
 
4435
 
4436
 
4437
 
4438
 
4439
if test -n "$ac_tool_prefix"; then
4440
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4441
set dummy ${ac_tool_prefix}ar; ac_word=$2
4442 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4444 346 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then :
4445 90 jeremybenn
  $as_echo_n "(cached) " >&6
4446
else
4447
  if test -n "$AR"; then
4448
  ac_cv_prog_AR="$AR" # Let the user override the test.
4449
else
4450
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451
for as_dir in $PATH
4452
do
4453
  IFS=$as_save_IFS
4454
  test -z "$as_dir" && as_dir=.
4455 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4456 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4458 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 90 jeremybenn
    break 2
4460
  fi
4461
done
4462 346 jeremybenn
  done
4463 90 jeremybenn
IFS=$as_save_IFS
4464
 
4465
fi
4466
fi
4467
AR=$ac_cv_prog_AR
4468
if test -n "$AR"; then
4469 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4470 90 jeremybenn
$as_echo "$AR" >&6; }
4471
else
4472 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 90 jeremybenn
$as_echo "no" >&6; }
4474
fi
4475
 
4476
 
4477
fi
4478
if test -z "$ac_cv_prog_AR"; then
4479
  ac_ct_AR=$AR
4480
  # Extract the first word of "ar", so it can be a program name with args.
4481
set dummy ar; ac_word=$2
4482 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4484 346 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4485 90 jeremybenn
  $as_echo_n "(cached) " >&6
4486
else
4487
  if test -n "$ac_ct_AR"; then
4488
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4489
else
4490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491
for as_dir in $PATH
4492
do
4493
  IFS=$as_save_IFS
4494
  test -z "$as_dir" && as_dir=.
4495 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4496 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497
    ac_cv_prog_ac_ct_AR="ar"
4498 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 90 jeremybenn
    break 2
4500
  fi
4501
done
4502 346 jeremybenn
  done
4503 90 jeremybenn
IFS=$as_save_IFS
4504
 
4505
fi
4506
fi
4507
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4508
if test -n "$ac_ct_AR"; then
4509 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4510 90 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
4511
else
4512 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 90 jeremybenn
$as_echo "no" >&6; }
4514
fi
4515
 
4516
  if test "x$ac_ct_AR" = x; then
4517
    AR="false"
4518
  else
4519
    case $cross_compiling:$ac_tool_warned in
4520
yes:)
4521 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4522 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4523
ac_tool_warned=yes ;;
4524
esac
4525
    AR=$ac_ct_AR
4526
  fi
4527
else
4528
  AR="$ac_cv_prog_AR"
4529
fi
4530
 
4531
test -z "$AR" && AR=ar
4532
test -z "$AR_FLAGS" && AR_FLAGS=cru
4533
 
4534
 
4535
 
4536
 
4537
 
4538
 
4539
 
4540
 
4541
 
4542
 
4543
 
4544
if test -n "$ac_tool_prefix"; then
4545
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4546
set dummy ${ac_tool_prefix}strip; ac_word=$2
4547 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4549 346 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
4550 90 jeremybenn
  $as_echo_n "(cached) " >&6
4551
else
4552
  if test -n "$STRIP"; then
4553
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4554
else
4555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556
for as_dir in $PATH
4557
do
4558
  IFS=$as_save_IFS
4559
  test -z "$as_dir" && as_dir=.
4560 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4561 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4563 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 90 jeremybenn
    break 2
4565
  fi
4566
done
4567 346 jeremybenn
  done
4568 90 jeremybenn
IFS=$as_save_IFS
4569
 
4570
fi
4571
fi
4572
STRIP=$ac_cv_prog_STRIP
4573
if test -n "$STRIP"; then
4574 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4575 90 jeremybenn
$as_echo "$STRIP" >&6; }
4576
else
4577 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 90 jeremybenn
$as_echo "no" >&6; }
4579
fi
4580
 
4581
 
4582
fi
4583
if test -z "$ac_cv_prog_STRIP"; then
4584
  ac_ct_STRIP=$STRIP
4585
  # Extract the first word of "strip", so it can be a program name with args.
4586
set dummy strip; ac_word=$2
4587 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4589 346 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4590 90 jeremybenn
  $as_echo_n "(cached) " >&6
4591
else
4592
  if test -n "$ac_ct_STRIP"; then
4593
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4594
else
4595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596
for as_dir in $PATH
4597
do
4598
  IFS=$as_save_IFS
4599
  test -z "$as_dir" && as_dir=.
4600 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4601 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602
    ac_cv_prog_ac_ct_STRIP="strip"
4603 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 90 jeremybenn
    break 2
4605
  fi
4606
done
4607 346 jeremybenn
  done
4608 90 jeremybenn
IFS=$as_save_IFS
4609
 
4610
fi
4611
fi
4612
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4613
if test -n "$ac_ct_STRIP"; then
4614 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4615 90 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
4616
else
4617 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 90 jeremybenn
$as_echo "no" >&6; }
4619
fi
4620
 
4621
  if test "x$ac_ct_STRIP" = x; then
4622
    STRIP=":"
4623
  else
4624
    case $cross_compiling:$ac_tool_warned in
4625
yes:)
4626 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628
ac_tool_warned=yes ;;
4629
esac
4630
    STRIP=$ac_ct_STRIP
4631
  fi
4632
else
4633
  STRIP="$ac_cv_prog_STRIP"
4634
fi
4635
 
4636
test -z "$STRIP" && STRIP=:
4637
 
4638
 
4639
 
4640
 
4641
 
4642
 
4643
if test -n "$ac_tool_prefix"; then
4644
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4645
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4646 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4648 346 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4649 90 jeremybenn
  $as_echo_n "(cached) " >&6
4650
else
4651
  if test -n "$RANLIB"; then
4652
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4653
else
4654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655
for as_dir in $PATH
4656
do
4657
  IFS=$as_save_IFS
4658
  test -z "$as_dir" && as_dir=.
4659 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4660 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4662 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 90 jeremybenn
    break 2
4664
  fi
4665
done
4666 346 jeremybenn
  done
4667 90 jeremybenn
IFS=$as_save_IFS
4668
 
4669
fi
4670
fi
4671
RANLIB=$ac_cv_prog_RANLIB
4672
if test -n "$RANLIB"; then
4673 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4674 90 jeremybenn
$as_echo "$RANLIB" >&6; }
4675
else
4676 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 90 jeremybenn
$as_echo "no" >&6; }
4678
fi
4679
 
4680
 
4681
fi
4682
if test -z "$ac_cv_prog_RANLIB"; then
4683
  ac_ct_RANLIB=$RANLIB
4684
  # Extract the first word of "ranlib", so it can be a program name with args.
4685
set dummy ranlib; ac_word=$2
4686 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4688 346 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4689 90 jeremybenn
  $as_echo_n "(cached) " >&6
4690
else
4691
  if test -n "$ac_ct_RANLIB"; then
4692
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4693
else
4694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695
for as_dir in $PATH
4696
do
4697
  IFS=$as_save_IFS
4698
  test -z "$as_dir" && as_dir=.
4699 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4700 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4702 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 90 jeremybenn
    break 2
4704
  fi
4705
done
4706 346 jeremybenn
  done
4707 90 jeremybenn
IFS=$as_save_IFS
4708
 
4709
fi
4710
fi
4711
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4712
if test -n "$ac_ct_RANLIB"; then
4713 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4714 90 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
4715
else
4716 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 90 jeremybenn
$as_echo "no" >&6; }
4718
fi
4719
 
4720
  if test "x$ac_ct_RANLIB" = x; then
4721
    RANLIB=":"
4722
  else
4723
    case $cross_compiling:$ac_tool_warned in
4724
yes:)
4725 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727
ac_tool_warned=yes ;;
4728
esac
4729
    RANLIB=$ac_ct_RANLIB
4730
  fi
4731
else
4732
  RANLIB="$ac_cv_prog_RANLIB"
4733
fi
4734
 
4735
test -z "$RANLIB" && RANLIB=:
4736
 
4737
 
4738
 
4739
 
4740
 
4741
 
4742
# Determine commands to create old-style static archives.
4743
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4744
old_postinstall_cmds='chmod 644 $oldlib'
4745
old_postuninstall_cmds=
4746
 
4747
if test -n "$RANLIB"; then
4748
  case $host_os in
4749
  openbsd*)
4750
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4751
    ;;
4752
  *)
4753
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4754
    ;;
4755
  esac
4756
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4757
fi
4758
 
4759
 
4760
 
4761
 
4762
 
4763
 
4764
 
4765
 
4766
 
4767
 
4768
 
4769
 
4770
 
4771
 
4772
 
4773
 
4774
 
4775
 
4776
 
4777
 
4778
 
4779
 
4780
 
4781
 
4782
 
4783
 
4784
 
4785
 
4786
 
4787
 
4788
 
4789
 
4790
 
4791
 
4792
# If no C compiler was specified, use CC.
4793
LTCC=${LTCC-"$CC"}
4794
 
4795
# If no C compiler flags were specified, use CFLAGS.
4796
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4797
 
4798
# Allow CC to be a program name with arguments.
4799
compiler=$CC
4800
 
4801
 
4802
# Check for command to grab the raw symbol name followed by C symbol from nm.
4803 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4804 90 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4805 346 jeremybenn
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
4806 90 jeremybenn
  $as_echo_n "(cached) " >&6
4807
else
4808
 
4809
# These are sane defaults that work on at least a few old systems.
4810
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4811
 
4812
# Character class describing NM global symbol codes.
4813
symcode='[BCDEGRST]'
4814
 
4815
# Regexp to match symbols that can be accessed directly from C.
4816
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4817
 
4818
# Define system-specific variables.
4819
case $host_os in
4820
aix*)
4821
  symcode='[BCDT]'
4822
  ;;
4823
cygwin* | mingw* | pw32* | cegcc*)
4824
  symcode='[ABCDGISTW]'
4825
  ;;
4826
hpux*)
4827
  if test "$host_cpu" = ia64; then
4828
    symcode='[ABCDEGRST]'
4829
  fi
4830
  ;;
4831
irix* | nonstopux*)
4832
  symcode='[BCDEGRST]'
4833
  ;;
4834
osf*)
4835
  symcode='[BCDEGQRST]'
4836
  ;;
4837
solaris*)
4838
  symcode='[BDRT]'
4839
  ;;
4840
sco3.2v5*)
4841
  symcode='[DT]'
4842
  ;;
4843
sysv4.2uw2*)
4844
  symcode='[DT]'
4845
  ;;
4846
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4847
  symcode='[ABDT]'
4848
  ;;
4849
sysv4)
4850
  symcode='[DFNSTU]'
4851
  ;;
4852
esac
4853
 
4854
# If we're using GNU nm, then use its standard symbol codes.
4855
case `$NM -V 2>&1` in
4856
*GNU* | *'with BFD'*)
4857
  symcode='[ABCDGIRSTW]' ;;
4858
esac
4859
 
4860
# Transform an extracted symbol line into a proper C declaration.
4861
# Some systems (esp. on ia64) link data and code symbols differently,
4862
# so use this general approach.
4863
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4864
 
4865
# Transform an extracted symbol line into symbol name and symbol address
4866
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4867
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'"
4868
 
4869
# Handle CRLF in mingw tool chain
4870
opt_cr=
4871
case $build_os in
4872
mingw*)
4873
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4874
  ;;
4875
esac
4876
 
4877
# Try without a prefix underscore, then with it.
4878
for ac_symprfx in "" "_"; do
4879
 
4880
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4881
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4882
 
4883
  # Write the raw and C identifiers.
4884
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4885
    # Fake it for dumpbin and say T for any non-static function
4886
    # and D for any global variable.
4887
    # Also find C++ and __fastcall symbols from MSVC++,
4888
    # which start with @ or ?.
4889
    lt_cv_sys_global_symbol_pipe="$AWK '"\
4890
"     {last_section=section; section=\$ 3};"\
4891
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4892
"     \$ 0!~/External *\|/{next};"\
4893
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4894
"     {if(hide[section]) next};"\
4895
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4896
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4897
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4898
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4899
"     ' prfx=^$ac_symprfx"
4900
  else
4901
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4902
  fi
4903
 
4904
  # Check to see that the pipe works correctly.
4905
  pipe_works=no
4906
 
4907
  rm -f conftest*
4908
  cat > conftest.$ac_ext <<_LT_EOF
4909
#ifdef __cplusplus
4910
extern "C" {
4911
#endif
4912
char nm_test_var;
4913
void nm_test_func(void);
4914
void nm_test_func(void){}
4915
#ifdef __cplusplus
4916
}
4917
#endif
4918
int main(){nm_test_var='a';nm_test_func();return(0);}
4919
_LT_EOF
4920
 
4921 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4922 90 jeremybenn
  (eval $ac_compile) 2>&5
4923
  ac_status=$?
4924 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4925
  test $ac_status = 0; }; then
4926 90 jeremybenn
    # Now try to grab the symbols.
4927
    nlist=conftest.nm
4928 346 jeremybenn
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4929 90 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4930
  ac_status=$?
4931 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4932
  test $ac_status = 0; } && test -s "$nlist"; then
4933 90 jeremybenn
      # Try sorting and uniquifying the output.
4934
      if sort "$nlist" | uniq > "$nlist"T; then
4935
        mv -f "$nlist"T "$nlist"
4936
      else
4937
        rm -f "$nlist"T
4938
      fi
4939
 
4940
      # Make sure that we snagged all the symbols we need.
4941
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4942
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4943
          cat <<_LT_EOF > conftest.$ac_ext
4944
#ifdef __cplusplus
4945
extern "C" {
4946
#endif
4947
 
4948
_LT_EOF
4949
          # Now generate the symbol file.
4950
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4951
 
4952
          cat <<_LT_EOF >> conftest.$ac_ext
4953
 
4954
/* The mapping between symbol names and symbols.  */
4955
const struct {
4956
  const char *name;
4957
  void       *address;
4958
}
4959
lt__PROGRAM__LTX_preloaded_symbols[] =
4960
{
4961
  { "@PROGRAM@", (void *) 0 },
4962
_LT_EOF
4963
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4964
          cat <<\_LT_EOF >> conftest.$ac_ext
4965
  {0, (void *) 0}
4966
};
4967
 
4968
/* This works around a problem in FreeBSD linker */
4969
#ifdef FREEBSD_WORKAROUND
4970
static const void *lt_preloaded_setup() {
4971
  return lt__PROGRAM__LTX_preloaded_symbols;
4972
}
4973
#endif
4974
 
4975
#ifdef __cplusplus
4976
}
4977
#endif
4978
_LT_EOF
4979
          # Now try linking the two files.
4980
          mv conftest.$ac_objext conftstm.$ac_objext
4981
          lt_save_LIBS="$LIBS"
4982
          lt_save_CFLAGS="$CFLAGS"
4983
          LIBS="conftstm.$ac_objext"
4984
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4985 346 jeremybenn
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4986 90 jeremybenn
  (eval $ac_link) 2>&5
4987
  ac_status=$?
4988 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
4990 90 jeremybenn
            pipe_works=yes
4991
          fi
4992
          LIBS="$lt_save_LIBS"
4993
          CFLAGS="$lt_save_CFLAGS"
4994
        else
4995
          echo "cannot find nm_test_func in $nlist" >&5
4996
        fi
4997
      else
4998
        echo "cannot find nm_test_var in $nlist" >&5
4999
      fi
5000
    else
5001
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5002
    fi
5003
  else
5004
    echo "$progname: failed program was:" >&5
5005
    cat conftest.$ac_ext >&5
5006
  fi
5007
  rm -rf conftest* conftst*
5008
 
5009
  # Do not use the global_symbol_pipe unless it works.
5010
  if test "$pipe_works" = yes; then
5011
    break
5012
  else
5013
    lt_cv_sys_global_symbol_pipe=
5014
  fi
5015
done
5016
 
5017
fi
5018
 
5019
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5020
  lt_cv_sys_global_symbol_to_cdecl=
5021
fi
5022
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5023 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5024 90 jeremybenn
$as_echo "failed" >&6; }
5025
else
5026 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5027 90 jeremybenn
$as_echo "ok" >&6; }
5028
fi
5029
 
5030
 
5031
 
5032
 
5033
 
5034
 
5035
 
5036
 
5037
 
5038
 
5039
 
5040
 
5041
 
5042
 
5043
 
5044
 
5045
 
5046
 
5047
 
5048
 
5049
 
5050
 
5051
 
5052
# Check whether --enable-libtool-lock was given.
5053 346 jeremybenn
if test "${enable_libtool_lock+set}" = set; then :
5054 90 jeremybenn
  enableval=$enable_libtool_lock;
5055
fi
5056
 
5057
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5058
 
5059
# Some flags need to be propagated to the compiler or linker for good
5060
# libtool support.
5061
case $host in
5062
ia64-*-hpux*)
5063
  # Find out which ABI we are using.
5064
  echo 'int i;' > conftest.$ac_ext
5065 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5066 90 jeremybenn
  (eval $ac_compile) 2>&5
5067
  ac_status=$?
5068 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5069
  test $ac_status = 0; }; then
5070 90 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5071
      *ELF-32*)
5072
        HPUX_IA64_MODE="32"
5073
        ;;
5074
      *ELF-64*)
5075
        HPUX_IA64_MODE="64"
5076
        ;;
5077
    esac
5078
  fi
5079
  rm -rf conftest*
5080
  ;;
5081
*-*-irix6*)
5082
  # Find out which ABI we are using.
5083 460 jeremybenn
  echo '#line 5083 "configure"' > conftest.$ac_ext
5084 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5085 90 jeremybenn
  (eval $ac_compile) 2>&5
5086
  ac_status=$?
5087 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5088
  test $ac_status = 0; }; then
5089 90 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5090
      case `/usr/bin/file conftest.$ac_objext` in
5091
        *32-bit*)
5092
          LD="${LD-ld} -melf32bsmip"
5093
          ;;
5094
        *N32*)
5095
          LD="${LD-ld} -melf32bmipn32"
5096
          ;;
5097
        *64-bit*)
5098
          LD="${LD-ld} -melf64bmip"
5099
        ;;
5100
      esac
5101
    else
5102
      case `/usr/bin/file conftest.$ac_objext` in
5103
        *32-bit*)
5104
          LD="${LD-ld} -32"
5105
          ;;
5106
        *N32*)
5107
          LD="${LD-ld} -n32"
5108
          ;;
5109
        *64-bit*)
5110
          LD="${LD-ld} -64"
5111
          ;;
5112
      esac
5113
    fi
5114
  fi
5115
  rm -rf conftest*
5116
  ;;
5117
 
5118
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5119
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5120
  # Find out which ABI we are using.
5121
  echo 'int i;' > conftest.$ac_ext
5122 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5123 90 jeremybenn
  (eval $ac_compile) 2>&5
5124
  ac_status=$?
5125 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5126
  test $ac_status = 0; }; then
5127 90 jeremybenn
    case `/usr/bin/file conftest.o` in
5128
      *32-bit*)
5129
        case $host in
5130
          x86_64-*kfreebsd*-gnu)
5131
            LD="${LD-ld} -m elf_i386_fbsd"
5132
            ;;
5133
          x86_64-*linux*)
5134
            LD="${LD-ld} -m elf_i386"
5135
            ;;
5136
          ppc64-*linux*|powerpc64-*linux*)
5137
            LD="${LD-ld} -m elf32ppclinux"
5138
            ;;
5139
          s390x-*linux*)
5140
            LD="${LD-ld} -m elf_s390"
5141
            ;;
5142
          sparc64-*linux*)
5143
            LD="${LD-ld} -m elf32_sparc"
5144
            ;;
5145
        esac
5146
        ;;
5147
      *64-bit*)
5148
        case $host in
5149
          x86_64-*kfreebsd*-gnu)
5150
            LD="${LD-ld} -m elf_x86_64_fbsd"
5151
            ;;
5152
          x86_64-*linux*)
5153
            LD="${LD-ld} -m elf_x86_64"
5154
            ;;
5155
          ppc*-*linux*|powerpc*-*linux*)
5156
            LD="${LD-ld} -m elf64ppc"
5157
            ;;
5158
          s390*-*linux*|s390*-*tpf*)
5159
            LD="${LD-ld} -m elf64_s390"
5160
            ;;
5161
          sparc*-*linux*)
5162
            LD="${LD-ld} -m elf64_sparc"
5163
            ;;
5164
        esac
5165
        ;;
5166
    esac
5167
  fi
5168
  rm -rf conftest*
5169
  ;;
5170
 
5171
*-*-sco3.2v5*)
5172
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5173
  SAVE_CFLAGS="$CFLAGS"
5174
  CFLAGS="$CFLAGS -belf"
5175 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5176 90 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5177 346 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5178 90 jeremybenn
  $as_echo_n "(cached) " >&6
5179
else
5180
  ac_ext=c
5181
ac_cpp='$CPP $CPPFLAGS'
5182
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5185
 
5186 346 jeremybenn
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 90 jeremybenn
/* end confdefs.h.  */
5188
 
5189
int
5190
main ()
5191
{
5192
 
5193
  ;
5194
  return 0;
5195
}
5196
_ACEOF
5197 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5198 90 jeremybenn
  lt_cv_cc_needs_belf=yes
5199
else
5200 346 jeremybenn
  lt_cv_cc_needs_belf=no
5201 90 jeremybenn
fi
5202 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5203
    conftest$ac_exeext conftest.$ac_ext
5204 90 jeremybenn
     ac_ext=c
5205
ac_cpp='$CPP $CPPFLAGS'
5206
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209
 
5210
fi
5211 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5212 90 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5213
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5214
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5215
    CFLAGS="$SAVE_CFLAGS"
5216
  fi
5217
  ;;
5218
sparc*-*solaris*)
5219
  # Find out which ABI we are using.
5220
  echo 'int i;' > conftest.$ac_ext
5221 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5222 90 jeremybenn
  (eval $ac_compile) 2>&5
5223
  ac_status=$?
5224 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5225
  test $ac_status = 0; }; then
5226 90 jeremybenn
    case `/usr/bin/file conftest.o` in
5227
    *64-bit*)
5228
      case $lt_cv_prog_gnu_ld in
5229
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5230
      *)
5231
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5232
          LD="${LD-ld} -64"
5233
        fi
5234
        ;;
5235
      esac
5236
      ;;
5237
    esac
5238
  fi
5239
  rm -rf conftest*
5240
  ;;
5241
esac
5242
 
5243
need_locks="$enable_libtool_lock"
5244
 
5245
 
5246
  case $host_os in
5247
    rhapsody* | darwin*)
5248
    if test -n "$ac_tool_prefix"; then
5249
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5250
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5251 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5253 346 jeremybenn
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5254 90 jeremybenn
  $as_echo_n "(cached) " >&6
5255
else
5256
  if test -n "$DSYMUTIL"; then
5257
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5258
else
5259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260
for as_dir in $PATH
5261
do
5262
  IFS=$as_save_IFS
5263
  test -z "$as_dir" && as_dir=.
5264 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5265 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5267 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 90 jeremybenn
    break 2
5269
  fi
5270
done
5271 346 jeremybenn
  done
5272 90 jeremybenn
IFS=$as_save_IFS
5273
 
5274
fi
5275
fi
5276
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5277
if test -n "$DSYMUTIL"; then
5278 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5279 90 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5280
else
5281 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 90 jeremybenn
$as_echo "no" >&6; }
5283
fi
5284
 
5285
 
5286
fi
5287
if test -z "$ac_cv_prog_DSYMUTIL"; then
5288
  ac_ct_DSYMUTIL=$DSYMUTIL
5289
  # Extract the first word of "dsymutil", so it can be a program name with args.
5290
set dummy dsymutil; ac_word=$2
5291 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5293 346 jeremybenn
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5294 90 jeremybenn
  $as_echo_n "(cached) " >&6
5295
else
5296
  if test -n "$ac_ct_DSYMUTIL"; then
5297
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5298
else
5299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300
for as_dir in $PATH
5301
do
5302
  IFS=$as_save_IFS
5303
  test -z "$as_dir" && as_dir=.
5304 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5305 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5307 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 90 jeremybenn
    break 2
5309
  fi
5310
done
5311 346 jeremybenn
  done
5312 90 jeremybenn
IFS=$as_save_IFS
5313
 
5314
fi
5315
fi
5316
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5317
if test -n "$ac_ct_DSYMUTIL"; then
5318 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5319 90 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5320
else
5321 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 90 jeremybenn
$as_echo "no" >&6; }
5323
fi
5324
 
5325
  if test "x$ac_ct_DSYMUTIL" = x; then
5326
    DSYMUTIL=":"
5327
  else
5328
    case $cross_compiling:$ac_tool_warned in
5329
yes:)
5330 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5331 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5332
ac_tool_warned=yes ;;
5333
esac
5334
    DSYMUTIL=$ac_ct_DSYMUTIL
5335
  fi
5336
else
5337
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5338
fi
5339
 
5340
    if test -n "$ac_tool_prefix"; then
5341
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5342
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5343 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5345 346 jeremybenn
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5346 90 jeremybenn
  $as_echo_n "(cached) " >&6
5347
else
5348
  if test -n "$NMEDIT"; then
5349
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5350
else
5351
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352
for as_dir in $PATH
5353
do
5354
  IFS=$as_save_IFS
5355
  test -z "$as_dir" && as_dir=.
5356 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5357 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5359 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 90 jeremybenn
    break 2
5361
  fi
5362
done
5363 346 jeremybenn
  done
5364 90 jeremybenn
IFS=$as_save_IFS
5365
 
5366
fi
5367
fi
5368
NMEDIT=$ac_cv_prog_NMEDIT
5369
if test -n "$NMEDIT"; then
5370 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5371 90 jeremybenn
$as_echo "$NMEDIT" >&6; }
5372
else
5373 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 90 jeremybenn
$as_echo "no" >&6; }
5375
fi
5376
 
5377
 
5378
fi
5379
if test -z "$ac_cv_prog_NMEDIT"; then
5380
  ac_ct_NMEDIT=$NMEDIT
5381
  # Extract the first word of "nmedit", so it can be a program name with args.
5382
set dummy nmedit; ac_word=$2
5383 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5385 346 jeremybenn
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5386 90 jeremybenn
  $as_echo_n "(cached) " >&6
5387
else
5388
  if test -n "$ac_ct_NMEDIT"; then
5389
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5390
else
5391
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392
for as_dir in $PATH
5393
do
5394
  IFS=$as_save_IFS
5395
  test -z "$as_dir" && as_dir=.
5396 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5397 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5399 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 90 jeremybenn
    break 2
5401
  fi
5402
done
5403 346 jeremybenn
  done
5404 90 jeremybenn
IFS=$as_save_IFS
5405
 
5406
fi
5407
fi
5408
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5409
if test -n "$ac_ct_NMEDIT"; then
5410 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5411 90 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
5412
else
5413 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 90 jeremybenn
$as_echo "no" >&6; }
5415
fi
5416
 
5417
  if test "x$ac_ct_NMEDIT" = x; then
5418
    NMEDIT=":"
5419
  else
5420
    case $cross_compiling:$ac_tool_warned in
5421
yes:)
5422 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424
ac_tool_warned=yes ;;
5425
esac
5426
    NMEDIT=$ac_ct_NMEDIT
5427
  fi
5428
else
5429
  NMEDIT="$ac_cv_prog_NMEDIT"
5430
fi
5431
 
5432
    if test -n "$ac_tool_prefix"; then
5433
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5434
set dummy ${ac_tool_prefix}lipo; ac_word=$2
5435 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5437 346 jeremybenn
if test "${ac_cv_prog_LIPO+set}" = set; then :
5438 90 jeremybenn
  $as_echo_n "(cached) " >&6
5439
else
5440
  if test -n "$LIPO"; then
5441
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5442
else
5443
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444
for as_dir in $PATH
5445
do
5446
  IFS=$as_save_IFS
5447
  test -z "$as_dir" && as_dir=.
5448 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5449 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5451 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 90 jeremybenn
    break 2
5453
  fi
5454
done
5455 346 jeremybenn
  done
5456 90 jeremybenn
IFS=$as_save_IFS
5457
 
5458
fi
5459
fi
5460
LIPO=$ac_cv_prog_LIPO
5461
if test -n "$LIPO"; then
5462 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5463 90 jeremybenn
$as_echo "$LIPO" >&6; }
5464
else
5465 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 90 jeremybenn
$as_echo "no" >&6; }
5467
fi
5468
 
5469
 
5470
fi
5471
if test -z "$ac_cv_prog_LIPO"; then
5472
  ac_ct_LIPO=$LIPO
5473
  # Extract the first word of "lipo", so it can be a program name with args.
5474
set dummy lipo; ac_word=$2
5475 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5477 346 jeremybenn
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5478 90 jeremybenn
  $as_echo_n "(cached) " >&6
5479
else
5480
  if test -n "$ac_ct_LIPO"; then
5481
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5482
else
5483
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484
for as_dir in $PATH
5485
do
5486
  IFS=$as_save_IFS
5487
  test -z "$as_dir" && as_dir=.
5488 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5489 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490
    ac_cv_prog_ac_ct_LIPO="lipo"
5491 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 90 jeremybenn
    break 2
5493
  fi
5494
done
5495 346 jeremybenn
  done
5496 90 jeremybenn
IFS=$as_save_IFS
5497
 
5498
fi
5499
fi
5500
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5501
if test -n "$ac_ct_LIPO"; then
5502 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5503 90 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
5504
else
5505 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 90 jeremybenn
$as_echo "no" >&6; }
5507
fi
5508
 
5509
  if test "x$ac_ct_LIPO" = x; then
5510
    LIPO=":"
5511
  else
5512
    case $cross_compiling:$ac_tool_warned in
5513
yes:)
5514 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5515 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5516
ac_tool_warned=yes ;;
5517
esac
5518
    LIPO=$ac_ct_LIPO
5519
  fi
5520
else
5521
  LIPO="$ac_cv_prog_LIPO"
5522
fi
5523
 
5524
    if test -n "$ac_tool_prefix"; then
5525
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5526
set dummy ${ac_tool_prefix}otool; ac_word=$2
5527 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5529 346 jeremybenn
if test "${ac_cv_prog_OTOOL+set}" = set; then :
5530 90 jeremybenn
  $as_echo_n "(cached) " >&6
5531
else
5532
  if test -n "$OTOOL"; then
5533
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5534
else
5535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536
for as_dir in $PATH
5537
do
5538
  IFS=$as_save_IFS
5539
  test -z "$as_dir" && as_dir=.
5540 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5541 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5543 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 90 jeremybenn
    break 2
5545
  fi
5546
done
5547 346 jeremybenn
  done
5548 90 jeremybenn
IFS=$as_save_IFS
5549
 
5550
fi
5551
fi
5552
OTOOL=$ac_cv_prog_OTOOL
5553
if test -n "$OTOOL"; then
5554 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5555 90 jeremybenn
$as_echo "$OTOOL" >&6; }
5556
else
5557 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 90 jeremybenn
$as_echo "no" >&6; }
5559
fi
5560
 
5561
 
5562
fi
5563
if test -z "$ac_cv_prog_OTOOL"; then
5564
  ac_ct_OTOOL=$OTOOL
5565
  # Extract the first word of "otool", so it can be a program name with args.
5566
set dummy otool; ac_word=$2
5567 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5569 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5570 90 jeremybenn
  $as_echo_n "(cached) " >&6
5571
else
5572
  if test -n "$ac_ct_OTOOL"; then
5573
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5574
else
5575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576
for as_dir in $PATH
5577
do
5578
  IFS=$as_save_IFS
5579
  test -z "$as_dir" && as_dir=.
5580 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5581 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582
    ac_cv_prog_ac_ct_OTOOL="otool"
5583 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 90 jeremybenn
    break 2
5585
  fi
5586
done
5587 346 jeremybenn
  done
5588 90 jeremybenn
IFS=$as_save_IFS
5589
 
5590
fi
5591
fi
5592
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5593
if test -n "$ac_ct_OTOOL"; then
5594 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5595 90 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
5596
else
5597 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 90 jeremybenn
$as_echo "no" >&6; }
5599
fi
5600
 
5601
  if test "x$ac_ct_OTOOL" = x; then
5602
    OTOOL=":"
5603
  else
5604
    case $cross_compiling:$ac_tool_warned in
5605
yes:)
5606 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5607 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5608
ac_tool_warned=yes ;;
5609
esac
5610
    OTOOL=$ac_ct_OTOOL
5611
  fi
5612
else
5613
  OTOOL="$ac_cv_prog_OTOOL"
5614
fi
5615
 
5616
    if test -n "$ac_tool_prefix"; then
5617
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5618
set dummy ${ac_tool_prefix}otool64; ac_word=$2
5619 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5621 346 jeremybenn
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5622 90 jeremybenn
  $as_echo_n "(cached) " >&6
5623
else
5624
  if test -n "$OTOOL64"; then
5625
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5626
else
5627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628
for as_dir in $PATH
5629
do
5630
  IFS=$as_save_IFS
5631
  test -z "$as_dir" && as_dir=.
5632 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5633 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5635 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 90 jeremybenn
    break 2
5637
  fi
5638
done
5639 346 jeremybenn
  done
5640 90 jeremybenn
IFS=$as_save_IFS
5641
 
5642
fi
5643
fi
5644
OTOOL64=$ac_cv_prog_OTOOL64
5645
if test -n "$OTOOL64"; then
5646 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5647 90 jeremybenn
$as_echo "$OTOOL64" >&6; }
5648
else
5649 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 90 jeremybenn
$as_echo "no" >&6; }
5651
fi
5652
 
5653
 
5654
fi
5655
if test -z "$ac_cv_prog_OTOOL64"; then
5656
  ac_ct_OTOOL64=$OTOOL64
5657
  # Extract the first word of "otool64", so it can be a program name with args.
5658
set dummy otool64; ac_word=$2
5659 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5661 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5662 90 jeremybenn
  $as_echo_n "(cached) " >&6
5663
else
5664
  if test -n "$ac_ct_OTOOL64"; then
5665
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5666
else
5667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668
for as_dir in $PATH
5669
do
5670
  IFS=$as_save_IFS
5671
  test -z "$as_dir" && as_dir=.
5672 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5673 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674
    ac_cv_prog_ac_ct_OTOOL64="otool64"
5675 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 90 jeremybenn
    break 2
5677
  fi
5678
done
5679 346 jeremybenn
  done
5680 90 jeremybenn
IFS=$as_save_IFS
5681
 
5682
fi
5683
fi
5684
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5685
if test -n "$ac_ct_OTOOL64"; then
5686 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5687 90 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
5688
else
5689 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 90 jeremybenn
$as_echo "no" >&6; }
5691
fi
5692
 
5693
  if test "x$ac_ct_OTOOL64" = x; then
5694
    OTOOL64=":"
5695
  else
5696
    case $cross_compiling:$ac_tool_warned in
5697
yes:)
5698 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5699 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700
ac_tool_warned=yes ;;
5701
esac
5702
    OTOOL64=$ac_ct_OTOOL64
5703
  fi
5704
else
5705
  OTOOL64="$ac_cv_prog_OTOOL64"
5706
fi
5707
 
5708
 
5709
 
5710
 
5711
 
5712
 
5713
 
5714
 
5715
 
5716
 
5717
 
5718
 
5719
 
5720
 
5721
 
5722
 
5723
 
5724
 
5725
 
5726
 
5727
 
5728
 
5729
 
5730
 
5731
 
5732
 
5733
 
5734 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5735 90 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
5736 346 jeremybenn
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5737 90 jeremybenn
  $as_echo_n "(cached) " >&6
5738
else
5739
  lt_cv_apple_cc_single_mod=no
5740
      if test -z "${LT_MULTI_MODULE}"; then
5741
        # By default we will add the -single_module flag. You can override
5742
        # by either setting the environment variable LT_MULTI_MODULE
5743
        # non-empty at configure time, or by adding -multi_module to the
5744
        # link flags.
5745
        rm -rf libconftest.dylib*
5746
        echo "int foo(void){return 1;}" > conftest.c
5747
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5748
-dynamiclib -Wl,-single_module conftest.c" >&5
5749
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5750
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5751
        _lt_result=$?
5752
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5753
          lt_cv_apple_cc_single_mod=yes
5754
        else
5755
          cat conftest.err >&5
5756
        fi
5757
        rm -rf libconftest.dylib*
5758
        rm -f conftest.*
5759
      fi
5760
fi
5761 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5762 90 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5763 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5764 90 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5765 346 jeremybenn
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5766 90 jeremybenn
  $as_echo_n "(cached) " >&6
5767
else
5768
  lt_cv_ld_exported_symbols_list=no
5769
      save_LDFLAGS=$LDFLAGS
5770
      echo "_main" > conftest.sym
5771
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5772 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 90 jeremybenn
/* end confdefs.h.  */
5774
 
5775
int
5776
main ()
5777
{
5778
 
5779
  ;
5780
  return 0;
5781
}
5782
_ACEOF
5783 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5784 90 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
5785
else
5786 346 jeremybenn
  lt_cv_ld_exported_symbols_list=no
5787 90 jeremybenn
fi
5788 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5789
    conftest$ac_exeext conftest.$ac_ext
5790 90 jeremybenn
        LDFLAGS="$save_LDFLAGS"
5791
 
5792
fi
5793 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5794 90 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5795
    case $host_os in
5796
    rhapsody* | darwin1.[012])
5797
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5798
    darwin1.*)
5799
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5800
    darwin*) # darwin 5.x on
5801
      # if running on 10.5 or later, the deployment target defaults
5802
      # to the OS version, if on x86, and 10.4, the deployment
5803
      # target defaults to 10.4. Don't you love it?
5804
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5805
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5806
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5807
        10.[012]*)
5808
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5809
        10.*)
5810
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5811
      esac
5812
    ;;
5813
  esac
5814
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5815
      _lt_dar_single_mod='$single_module'
5816
    fi
5817
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5818
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5819
    else
5820
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5821
    fi
5822
    if test "$DSYMUTIL" != ":"; then
5823
      _lt_dsymutil='~$DSYMUTIL $lib || :'
5824
    else
5825
      _lt_dsymutil=
5826
    fi
5827
    ;;
5828
  esac
5829
 
5830
ac_ext=c
5831
ac_cpp='$CPP $CPPFLAGS'
5832
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5835 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5836 90 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5837
# On Suns, sometimes $CPP names a directory.
5838
if test -n "$CPP" && test -d "$CPP"; then
5839
  CPP=
5840
fi
5841
if test -z "$CPP"; then
5842 346 jeremybenn
  if test "${ac_cv_prog_CPP+set}" = set; then :
5843 90 jeremybenn
  $as_echo_n "(cached) " >&6
5844
else
5845
      # Double quotes because CPP needs to be expanded
5846
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5847
    do
5848
      ac_preproc_ok=false
5849
for ac_c_preproc_warn_flag in '' yes
5850
do
5851
  # Use a header file that comes with gcc, so configuring glibc
5852
  # with a fresh cross-compiler works.
5853
  # Prefer  to  if __STDC__ is defined, since
5854
  #  exists even on freestanding compilers.
5855
  # On the NeXT, cc -E runs the code through the compiler's parser,
5856
  # not just through cpp. "Syntax error" is here to catch this case.
5857 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 90 jeremybenn
/* end confdefs.h.  */
5859
#ifdef __STDC__
5860
# include 
5861
#else
5862
# include 
5863
#endif
5864
                     Syntax error
5865
_ACEOF
5866 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
5867
 
5868 236 jeremybenn
else
5869 90 jeremybenn
  # Broken: fails on valid input.
5870
continue
5871
fi
5872
rm -f conftest.err conftest.$ac_ext
5873
 
5874
  # OK, works on sane cases.  Now check whether nonexistent headers
5875
  # can be detected and how.
5876 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 90 jeremybenn
/* end confdefs.h.  */
5878
#include 
5879
_ACEOF
5880 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
5881 90 jeremybenn
  # Broken: success on invalid input.
5882
continue
5883
else
5884
  # Passes both tests.
5885
ac_preproc_ok=:
5886
break
5887
fi
5888
rm -f conftest.err conftest.$ac_ext
5889
 
5890
done
5891
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5892
rm -f conftest.err conftest.$ac_ext
5893 346 jeremybenn
if $ac_preproc_ok; then :
5894 90 jeremybenn
  break
5895
fi
5896
 
5897
    done
5898
    ac_cv_prog_CPP=$CPP
5899
 
5900
fi
5901
  CPP=$ac_cv_prog_CPP
5902
else
5903
  ac_cv_prog_CPP=$CPP
5904
fi
5905 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5906 90 jeremybenn
$as_echo "$CPP" >&6; }
5907
ac_preproc_ok=false
5908
for ac_c_preproc_warn_flag in '' yes
5909
do
5910
  # Use a header file that comes with gcc, so configuring glibc
5911
  # with a fresh cross-compiler works.
5912
  # Prefer  to  if __STDC__ is defined, since
5913
  #  exists even on freestanding compilers.
5914
  # On the NeXT, cc -E runs the code through the compiler's parser,
5915
  # not just through cpp. "Syntax error" is here to catch this case.
5916 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 90 jeremybenn
/* end confdefs.h.  */
5918
#ifdef __STDC__
5919
# include 
5920
#else
5921
# include 
5922
#endif
5923
                     Syntax error
5924
_ACEOF
5925 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
5926
 
5927 236 jeremybenn
else
5928 90 jeremybenn
  # Broken: fails on valid input.
5929
continue
5930
fi
5931
rm -f conftest.err conftest.$ac_ext
5932
 
5933
  # OK, works on sane cases.  Now check whether nonexistent headers
5934
  # can be detected and how.
5935 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 90 jeremybenn
/* end confdefs.h.  */
5937
#include 
5938
_ACEOF
5939 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
5940 90 jeremybenn
  # Broken: success on invalid input.
5941
continue
5942
else
5943
  # Passes both tests.
5944
ac_preproc_ok=:
5945
break
5946
fi
5947
rm -f conftest.err conftest.$ac_ext
5948
 
5949
done
5950
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5951
rm -f conftest.err conftest.$ac_ext
5952 346 jeremybenn
if $ac_preproc_ok; then :
5953
 
5954 90 jeremybenn
else
5955 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5956 90 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5957 346 jeremybenn
as_fn_error "C preprocessor \"$CPP\" fails sanity check
5958
See \`config.log' for more details." "$LINENO" 5; }
5959 90 jeremybenn
fi
5960
 
5961
ac_ext=c
5962
ac_cpp='$CPP $CPPFLAGS'
5963
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5964
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5965
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5966
 
5967
 
5968 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5969 90 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
5970 346 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then :
5971 90 jeremybenn
  $as_echo_n "(cached) " >&6
5972
else
5973 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 90 jeremybenn
/* end confdefs.h.  */
5975
#include 
5976
#include 
5977
#include 
5978
#include 
5979
 
5980
int
5981
main ()
5982
{
5983
 
5984
  ;
5985
  return 0;
5986
}
5987
_ACEOF
5988 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
5989 90 jeremybenn
  ac_cv_header_stdc=yes
5990
else
5991 346 jeremybenn
  ac_cv_header_stdc=no
5992 90 jeremybenn
fi
5993
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994
 
5995
if test $ac_cv_header_stdc = yes; then
5996
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5997 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 90 jeremybenn
/* end confdefs.h.  */
5999
#include 
6000
 
6001
_ACEOF
6002
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6003 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
6004
 
6005 90 jeremybenn
else
6006
  ac_cv_header_stdc=no
6007
fi
6008
rm -f conftest*
6009
 
6010
fi
6011
 
6012
if test $ac_cv_header_stdc = yes; then
6013
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6014 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 90 jeremybenn
/* end confdefs.h.  */
6016
#include 
6017
 
6018
_ACEOF
6019
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6020 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
6021
 
6022 90 jeremybenn
else
6023
  ac_cv_header_stdc=no
6024
fi
6025
rm -f conftest*
6026
 
6027
fi
6028
 
6029
if test $ac_cv_header_stdc = yes; then
6030
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6031 346 jeremybenn
  if test "$cross_compiling" = yes; then :
6032 90 jeremybenn
  :
6033
else
6034 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 90 jeremybenn
/* end confdefs.h.  */
6036
#include 
6037
#include 
6038
#if ((' ' & 0x0FF) == 0x020)
6039
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6040
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6041
#else
6042
# define ISLOWER(c) \
6043
                   (('a' <= (c) && (c) <= 'i') \
6044
                     || ('j' <= (c) && (c) <= 'r') \
6045
                     || ('s' <= (c) && (c) <= 'z'))
6046
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6047
#endif
6048
 
6049
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6050
int
6051
main ()
6052
{
6053
  int i;
6054
  for (i = 0; i < 256; i++)
6055
    if (XOR (islower (i), ISLOWER (i))
6056
        || toupper (i) != TOUPPER (i))
6057
      return 2;
6058
  return 0;
6059
}
6060
_ACEOF
6061 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
6062
 
6063 236 jeremybenn
else
6064 346 jeremybenn
  ac_cv_header_stdc=no
6065 90 jeremybenn
fi
6066 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6067
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6068 90 jeremybenn
fi
6069
 
6070
fi
6071
fi
6072 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6073 90 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
6074
if test $ac_cv_header_stdc = yes; then
6075
 
6076 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6077 90 jeremybenn
 
6078
fi
6079
 
6080
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6081
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6082
                  inttypes.h stdint.h unistd.h
6083 346 jeremybenn
do :
6084
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6085
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6086
"
6087
eval as_val=\$$as_ac_Header
6088
   if test "x$as_val" = x""yes; then :
6089 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
6090
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6091
_ACEOF
6092
 
6093
fi
6094
 
6095
done
6096
 
6097
 
6098
for ac_header in dlfcn.h
6099 346 jeremybenn
do :
6100
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6101
"
6102
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6103 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
6104 346 jeremybenn
#define HAVE_DLFCN_H 1
6105 90 jeremybenn
_ACEOF
6106
 
6107
fi
6108
 
6109
done
6110
 
6111
 
6112
 
6113
# Set options
6114
 
6115
 
6116
 
6117
        enable_dlopen=no
6118
 
6119
 
6120
  enable_win32_dll=no
6121
 
6122
 
6123
            # Check whether --enable-shared was given.
6124 346 jeremybenn
if test "${enable_shared+set}" = set; then :
6125 90 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6126
    case $enableval in
6127
    yes) enable_shared=yes ;;
6128
    no) enable_shared=no ;;
6129
    *)
6130
      enable_shared=no
6131
      # Look at the argument we got.  We use all the common list separators.
6132
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6133
      for pkg in $enableval; do
6134
        IFS="$lt_save_ifs"
6135
        if test "X$pkg" = "X$p"; then
6136
          enable_shared=yes
6137
        fi
6138
      done
6139
      IFS="$lt_save_ifs"
6140
      ;;
6141
    esac
6142
else
6143
  enable_shared=yes
6144
fi
6145
 
6146
 
6147
 
6148
 
6149
 
6150
 
6151
 
6152
 
6153
 
6154
  # Check whether --enable-static was given.
6155 346 jeremybenn
if test "${enable_static+set}" = set; then :
6156 90 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6157
    case $enableval in
6158
    yes) enable_static=yes ;;
6159
    no) enable_static=no ;;
6160
    *)
6161
     enable_static=no
6162
      # Look at the argument we got.  We use all the common list separators.
6163
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6164
      for pkg in $enableval; do
6165
        IFS="$lt_save_ifs"
6166
        if test "X$pkg" = "X$p"; then
6167
          enable_static=yes
6168
        fi
6169
      done
6170
      IFS="$lt_save_ifs"
6171
      ;;
6172
    esac
6173
else
6174
  enable_static=yes
6175
fi
6176
 
6177
 
6178
 
6179
 
6180
 
6181
 
6182
 
6183
 
6184
 
6185
 
6186
# Check whether --with-pic was given.
6187 346 jeremybenn
if test "${with_pic+set}" = set; then :
6188 90 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6189
else
6190
  pic_mode=default
6191
fi
6192
 
6193
 
6194
test -z "$pic_mode" && pic_mode=default
6195
 
6196
 
6197
 
6198
 
6199
 
6200
 
6201
 
6202
  # Check whether --enable-fast-install was given.
6203 346 jeremybenn
if test "${enable_fast_install+set}" = set; then :
6204 90 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6205
    case $enableval in
6206
    yes) enable_fast_install=yes ;;
6207
    no) enable_fast_install=no ;;
6208
    *)
6209
      enable_fast_install=no
6210
      # Look at the argument we got.  We use all the common list separators.
6211
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6212
      for pkg in $enableval; do
6213
        IFS="$lt_save_ifs"
6214
        if test "X$pkg" = "X$p"; then
6215
          enable_fast_install=yes
6216
        fi
6217
      done
6218
      IFS="$lt_save_ifs"
6219
      ;;
6220
    esac
6221
else
6222
  enable_fast_install=yes
6223
fi
6224
 
6225
 
6226
 
6227
 
6228
 
6229
 
6230
 
6231
 
6232
 
6233
 
6234
 
6235
# This can be used to rebuild libtool when needed
6236
LIBTOOL_DEPS="$ltmain"
6237
 
6238
# Always use our own libtool.
6239
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6240
 
6241
 
6242
 
6243
 
6244
 
6245
 
6246
 
6247
 
6248
 
6249
 
6250
 
6251
 
6252
 
6253
 
6254
 
6255
 
6256
 
6257
 
6258
 
6259
 
6260
 
6261
 
6262
 
6263
 
6264
 
6265
test -z "$LN_S" && LN_S="ln -s"
6266
 
6267
 
6268
 
6269
 
6270
 
6271
 
6272
 
6273
 
6274
 
6275
 
6276
 
6277
 
6278
 
6279
 
6280
if test -n "${ZSH_VERSION+set}" ; then
6281
   setopt NO_GLOB_SUBST
6282
fi
6283
 
6284 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6285 90 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6286 346 jeremybenn
if test "${lt_cv_objdir+set}" = set; then :
6287 90 jeremybenn
  $as_echo_n "(cached) " >&6
6288
else
6289
  rm -f .libs 2>/dev/null
6290
mkdir .libs 2>/dev/null
6291
if test -d .libs; then
6292
  lt_cv_objdir=.libs
6293
else
6294
  # MS-DOS does not allow filenames that begin with a dot.
6295
  lt_cv_objdir=_libs
6296
fi
6297
rmdir .libs 2>/dev/null
6298
fi
6299 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6300 90 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6301
objdir=$lt_cv_objdir
6302
 
6303
 
6304
 
6305
 
6306
 
6307
cat >>confdefs.h <<_ACEOF
6308
#define LT_OBJDIR "$lt_cv_objdir/"
6309
_ACEOF
6310
 
6311
 
6312
 
6313
 
6314
 
6315
 
6316
 
6317
 
6318
 
6319
 
6320
 
6321
 
6322
 
6323
 
6324
 
6325
 
6326
 
6327
case $host_os in
6328
aix3*)
6329
  # AIX sometimes has problems with the GCC collect2 program.  For some
6330
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6331
  # vanish in a puff of smoke.
6332
  if test "X${COLLECT_NAMES+set}" != Xset; then
6333
    COLLECT_NAMES=
6334
    export COLLECT_NAMES
6335
  fi
6336
  ;;
6337
esac
6338
 
6339
# Sed substitution that helps us do robust quoting.  It backslashifies
6340
# metacharacters that are still active within double-quoted strings.
6341
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6342
 
6343
# Same as above, but do not quote variable references.
6344
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6345
 
6346
# Sed substitution to delay expansion of an escaped shell variable in a
6347
# double_quote_subst'ed string.
6348
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6349
 
6350
# Sed substitution to delay expansion of an escaped single quote.
6351
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6352
 
6353
# Sed substitution to avoid accidental globbing in evaled expressions
6354
no_glob_subst='s/\*/\\\*/g'
6355
 
6356
# Global variables:
6357
ofile=libtool
6358
can_build_shared=yes
6359
 
6360
# All known linkers require a `.a' archive for static linking (except MSVC,
6361
# which needs '.lib').
6362
libext=a
6363
 
6364
with_gnu_ld="$lt_cv_prog_gnu_ld"
6365
 
6366
old_CC="$CC"
6367
old_CFLAGS="$CFLAGS"
6368
 
6369
# Set sane defaults for various variables
6370
test -z "$CC" && CC=cc
6371
test -z "$LTCC" && LTCC=$CC
6372
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6373
test -z "$LD" && LD=ld
6374
test -z "$ac_objext" && ac_objext=o
6375
 
6376
for cc_temp in $compiler""; do
6377
  case $cc_temp in
6378
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6379
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6380
    \-*) ;;
6381
    *) break;;
6382
  esac
6383
done
6384
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6385
 
6386
 
6387
# Only perform the check for file, if the check method requires it
6388
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6389
case $deplibs_check_method in
6390
file_magic*)
6391
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6392 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6393 90 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6394 346 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6395 90 jeremybenn
  $as_echo_n "(cached) " >&6
6396
else
6397
  case $MAGIC_CMD in
6398
[\\/*] |  ?:[\\/]*)
6399
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6400
  ;;
6401
*)
6402
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6403
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6404
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6405
  for ac_dir in $ac_dummy; do
6406
    IFS="$lt_save_ifs"
6407
    test -z "$ac_dir" && ac_dir=.
6408
    if test -f $ac_dir/${ac_tool_prefix}file; then
6409
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6410
      if test -n "$file_magic_test_file"; then
6411
        case $deplibs_check_method in
6412
        "file_magic "*)
6413
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6414
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6415
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6416
            $EGREP "$file_magic_regex" > /dev/null; then
6417
            :
6418
          else
6419
            cat <<_LT_EOF 1>&2
6420
 
6421
*** Warning: the command libtool uses to detect shared libraries,
6422
*** $file_magic_cmd, produces output that libtool cannot recognize.
6423
*** The result is that libtool may fail to recognize shared libraries
6424
*** as such.  This will affect the creation of libtool libraries that
6425
*** depend on shared libraries, but programs linked with such libtool
6426
*** libraries will work regardless of this problem.  Nevertheless, you
6427
*** may want to report the problem to your system manager and/or to
6428
*** bug-libtool@gnu.org
6429
 
6430
_LT_EOF
6431
          fi ;;
6432
        esac
6433
      fi
6434
      break
6435
    fi
6436
  done
6437
  IFS="$lt_save_ifs"
6438
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6439
  ;;
6440
esac
6441
fi
6442
 
6443
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6444
if test -n "$MAGIC_CMD"; then
6445 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6446 90 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6447
else
6448 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 90 jeremybenn
$as_echo "no" >&6; }
6450
fi
6451
 
6452
 
6453
 
6454
 
6455
 
6456
if test -z "$lt_cv_path_MAGIC_CMD"; then
6457
  if test -n "$ac_tool_prefix"; then
6458 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6459 90 jeremybenn
$as_echo_n "checking for file... " >&6; }
6460 346 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6461 90 jeremybenn
  $as_echo_n "(cached) " >&6
6462
else
6463
  case $MAGIC_CMD in
6464
[\\/*] |  ?:[\\/]*)
6465
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6466
  ;;
6467
*)
6468
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6469
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6470
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6471
  for ac_dir in $ac_dummy; do
6472
    IFS="$lt_save_ifs"
6473
    test -z "$ac_dir" && ac_dir=.
6474
    if test -f $ac_dir/file; then
6475
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6476
      if test -n "$file_magic_test_file"; then
6477
        case $deplibs_check_method in
6478
        "file_magic "*)
6479
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6480
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6481
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6482
            $EGREP "$file_magic_regex" > /dev/null; then
6483
            :
6484
          else
6485
            cat <<_LT_EOF 1>&2
6486
 
6487
*** Warning: the command libtool uses to detect shared libraries,
6488
*** $file_magic_cmd, produces output that libtool cannot recognize.
6489
*** The result is that libtool may fail to recognize shared libraries
6490
*** as such.  This will affect the creation of libtool libraries that
6491
*** depend on shared libraries, but programs linked with such libtool
6492
*** libraries will work regardless of this problem.  Nevertheless, you
6493
*** may want to report the problem to your system manager and/or to
6494
*** bug-libtool@gnu.org
6495
 
6496
_LT_EOF
6497
          fi ;;
6498
        esac
6499
      fi
6500
      break
6501
    fi
6502
  done
6503
  IFS="$lt_save_ifs"
6504
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6505
  ;;
6506
esac
6507
fi
6508
 
6509
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6510
if test -n "$MAGIC_CMD"; then
6511 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6512 90 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6513
else
6514 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 90 jeremybenn
$as_echo "no" >&6; }
6516
fi
6517
 
6518
 
6519
  else
6520
    MAGIC_CMD=:
6521
  fi
6522
fi
6523
 
6524
  fi
6525
  ;;
6526
esac
6527
 
6528
# Use C for the default configuration in the libtool script
6529
 
6530
lt_save_CC="$CC"
6531
ac_ext=c
6532
ac_cpp='$CPP $CPPFLAGS'
6533
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6534
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6535
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6536
 
6537
 
6538
# Source file extension for C test sources.
6539
ac_ext=c
6540
 
6541
# Object file extension for compiled C test sources.
6542
objext=o
6543
objext=$objext
6544
 
6545
# Code to be used in simple compile tests
6546
lt_simple_compile_test_code="int some_variable = 0;"
6547
 
6548
# Code to be used in simple link tests
6549
lt_simple_link_test_code='int main(){return(0);}'
6550
 
6551
 
6552
 
6553
 
6554
 
6555
 
6556
 
6557
# If no C compiler was specified, use CC.
6558
LTCC=${LTCC-"$CC"}
6559
 
6560
# If no C compiler flags were specified, use CFLAGS.
6561
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6562
 
6563
# Allow CC to be a program name with arguments.
6564
compiler=$CC
6565
 
6566
# Save the default compiler, since it gets overwritten when the other
6567
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6568
compiler_DEFAULT=$CC
6569
 
6570
# save warnings/boilerplate of simple test code
6571
ac_outfile=conftest.$ac_objext
6572
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6573
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6574
_lt_compiler_boilerplate=`cat conftest.err`
6575
$RM conftest*
6576
 
6577
ac_outfile=conftest.$ac_objext
6578
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6579
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6580
_lt_linker_boilerplate=`cat conftest.err`
6581
$RM -r conftest*
6582
 
6583
 
6584
## CAVEAT EMPTOR:
6585
## There is no encapsulation within the following macros, do not change
6586
## the running order or otherwise move them around unless you know exactly
6587
## what you are doing...
6588
if test -n "$compiler"; then
6589
 
6590
lt_prog_compiler_no_builtin_flag=
6591
 
6592
if test "$GCC" = yes; then
6593
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6594
 
6595 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6596 90 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6597 346 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6598 90 jeremybenn
  $as_echo_n "(cached) " >&6
6599
else
6600
  lt_cv_prog_compiler_rtti_exceptions=no
6601
   ac_outfile=conftest.$ac_objext
6602
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6603
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6604
   # Insert the option either (1) after the last *FLAGS variable, or
6605
   # (2) before a word containing "conftest.", or (3) at the end.
6606
   # Note that $ac_compile itself does not contain backslashes and begins
6607
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6608
   # The option is referenced via a variable to avoid confusing sed.
6609
   lt_compile=`echo "$ac_compile" | $SED \
6610
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6611
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6612
   -e 's:$: $lt_compiler_flag:'`
6613 460 jeremybenn
   (eval echo "\"\$as_me:6613: $lt_compile\"" >&5)
6614 90 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6615
   ac_status=$?
6616
   cat conftest.err >&5
6617 460 jeremybenn
   echo "$as_me:6617: \$? = $ac_status" >&5
6618 90 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
6619
     # The compiler can only warn and ignore the option if not recognized
6620
     # So say no if there are warnings other than the usual output.
6621
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6622
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6623
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6624
       lt_cv_prog_compiler_rtti_exceptions=yes
6625
     fi
6626
   fi
6627
   $RM conftest*
6628
 
6629
fi
6630 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6631 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6632
 
6633
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6634
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6635
else
6636
    :
6637
fi
6638
 
6639
fi
6640
 
6641
 
6642
 
6643
 
6644
 
6645
 
6646
  lt_prog_compiler_wl=
6647
lt_prog_compiler_pic=
6648
lt_prog_compiler_static=
6649
 
6650 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6651 90 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6652
 
6653
  if test "$GCC" = yes; then
6654
    lt_prog_compiler_wl='-Wl,'
6655
    lt_prog_compiler_static='-static'
6656
 
6657
    case $host_os in
6658
      aix*)
6659
      # All AIX code is PIC.
6660
      if test "$host_cpu" = ia64; then
6661
        # AIX 5 now supports IA64 processor
6662
        lt_prog_compiler_static='-Bstatic'
6663
      fi
6664
      ;;
6665
 
6666
    amigaos*)
6667
      case $host_cpu in
6668
      powerpc)
6669
            # see comment about AmigaOS4 .so support
6670
            lt_prog_compiler_pic='-fPIC'
6671
        ;;
6672
      m68k)
6673
            # FIXME: we need at least 68020 code to build shared libraries, but
6674
            # adding the `-m68020' flag to GCC prevents building anything better,
6675
            # like `-m68040'.
6676
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6677
        ;;
6678
      esac
6679
      ;;
6680
 
6681
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6682
      # PIC is the default for these OSes.
6683
      ;;
6684
 
6685
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6686
      # This hack is so that the source file can tell whether it is being
6687
      # built for inclusion in a dll (and should export symbols for example).
6688
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6689
      # (--disable-auto-import) libraries
6690
      lt_prog_compiler_pic='-DDLL_EXPORT'
6691
      ;;
6692
 
6693
    darwin* | rhapsody*)
6694
      # PIC is the default on this platform
6695
      # Common symbols not allowed in MH_DYLIB files
6696
      lt_prog_compiler_pic='-fno-common'
6697
      ;;
6698
 
6699
    hpux*)
6700
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6701
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6702
      # sets the default TLS model and affects inlining.
6703
      case $host_cpu in
6704
      hppa*64*)
6705
        # +Z the default
6706
        ;;
6707
      *)
6708
        lt_prog_compiler_pic='-fPIC'
6709
        ;;
6710
      esac
6711
      ;;
6712
 
6713
    interix[3-9]*)
6714
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6715
      # Instead, we relocate shared libraries at runtime.
6716
      ;;
6717
 
6718
    msdosdjgpp*)
6719
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6720
      # on systems that don't support them.
6721
      lt_prog_compiler_can_build_shared=no
6722
      enable_shared=no
6723
      ;;
6724
 
6725
    *nto* | *qnx*)
6726
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6727
      # it will coredump.
6728
      lt_prog_compiler_pic='-fPIC -shared'
6729
      ;;
6730
 
6731
    sysv4*MP*)
6732
      if test -d /usr/nec; then
6733
        lt_prog_compiler_pic=-Kconform_pic
6734
      fi
6735
      ;;
6736
 
6737
    *)
6738
      lt_prog_compiler_pic='-fPIC'
6739
      ;;
6740
    esac
6741
  else
6742
    # PORTME Check for flag to pass linker flags through the system compiler.
6743
    case $host_os in
6744
    aix*)
6745
      lt_prog_compiler_wl='-Wl,'
6746
      if test "$host_cpu" = ia64; then
6747
        # AIX 5 now supports IA64 processor
6748
        lt_prog_compiler_static='-Bstatic'
6749
      else
6750
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6751
      fi
6752
      ;;
6753
 
6754
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6755
      # This hack is so that the source file can tell whether it is being
6756
      # built for inclusion in a dll (and should export symbols for example).
6757
      lt_prog_compiler_pic='-DDLL_EXPORT'
6758
      ;;
6759
 
6760
    hpux9* | hpux10* | hpux11*)
6761
      lt_prog_compiler_wl='-Wl,'
6762
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6763
      # not for PA HP-UX.
6764
      case $host_cpu in
6765
      hppa*64*|ia64*)
6766
        # +Z the default
6767
        ;;
6768
      *)
6769
        lt_prog_compiler_pic='+Z'
6770
        ;;
6771
      esac
6772
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6773
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6774
      ;;
6775
 
6776
    irix5* | irix6* | nonstopux*)
6777
      lt_prog_compiler_wl='-Wl,'
6778
      # PIC (with -KPIC) is the default.
6779
      lt_prog_compiler_static='-non_shared'
6780
      ;;
6781
 
6782
    linux* | k*bsd*-gnu)
6783
      case $cc_basename in
6784
      # old Intel for x86_64 which still supported -KPIC.
6785
      ecc*)
6786
        lt_prog_compiler_wl='-Wl,'
6787
        lt_prog_compiler_pic='-KPIC'
6788
        lt_prog_compiler_static='-static'
6789
        ;;
6790
      # icc used to be incompatible with GCC.
6791
      # ICC 10 doesn't accept -KPIC any more.
6792
      icc* | ifort*)
6793
        lt_prog_compiler_wl='-Wl,'
6794
        lt_prog_compiler_pic='-fPIC'
6795
        lt_prog_compiler_static='-static'
6796
        ;;
6797
      # Lahey Fortran 8.1.
6798
      lf95*)
6799
        lt_prog_compiler_wl='-Wl,'
6800
        lt_prog_compiler_pic='--shared'
6801
        lt_prog_compiler_static='--static'
6802
        ;;
6803
      pgcc* | pgf77* | pgf90* | pgf95*)
6804
        # Portland Group compilers (*not* the Pentium gcc compiler,
6805
        # which looks to be a dead project)
6806
        lt_prog_compiler_wl='-Wl,'
6807
        lt_prog_compiler_pic='-fpic'
6808
        lt_prog_compiler_static='-Bstatic'
6809
        ;;
6810
      ccc*)
6811
        lt_prog_compiler_wl='-Wl,'
6812
        # All Alpha code is PIC.
6813
        lt_prog_compiler_static='-non_shared'
6814
        ;;
6815
      xl*)
6816
        # IBM XL C 8.0/Fortran 10.1 on PPC
6817
        lt_prog_compiler_wl='-Wl,'
6818
        lt_prog_compiler_pic='-qpic'
6819
        lt_prog_compiler_static='-qstaticlink'
6820
        ;;
6821
      *)
6822
        case `$CC -V 2>&1 | sed 5q` in
6823
        *Sun\ C*)
6824
          # Sun C 5.9
6825
          lt_prog_compiler_pic='-KPIC'
6826
          lt_prog_compiler_static='-Bstatic'
6827
          lt_prog_compiler_wl='-Wl,'
6828
          ;;
6829
        *Sun\ F*)
6830
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6831
          lt_prog_compiler_pic='-KPIC'
6832
          lt_prog_compiler_static='-Bstatic'
6833
          lt_prog_compiler_wl=''
6834
          ;;
6835
        esac
6836
        ;;
6837
      esac
6838
      ;;
6839
 
6840
    newsos6)
6841
      lt_prog_compiler_pic='-KPIC'
6842
      lt_prog_compiler_static='-Bstatic'
6843
      ;;
6844
 
6845
    *nto* | *qnx*)
6846
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6847
      # it will coredump.
6848
      lt_prog_compiler_pic='-fPIC -shared'
6849
      ;;
6850
 
6851
    osf3* | osf4* | osf5*)
6852
      lt_prog_compiler_wl='-Wl,'
6853
      # All OSF/1 code is PIC.
6854
      lt_prog_compiler_static='-non_shared'
6855
      ;;
6856
 
6857
    rdos*)
6858
      lt_prog_compiler_static='-non_shared'
6859
      ;;
6860
 
6861
    solaris*)
6862
      lt_prog_compiler_pic='-KPIC'
6863
      lt_prog_compiler_static='-Bstatic'
6864
      case $cc_basename in
6865
      f77* | f90* | f95*)
6866
        lt_prog_compiler_wl='-Qoption ld ';;
6867
      *)
6868
        lt_prog_compiler_wl='-Wl,';;
6869
      esac
6870
      ;;
6871
 
6872
    sunos4*)
6873
      lt_prog_compiler_wl='-Qoption ld '
6874
      lt_prog_compiler_pic='-PIC'
6875
      lt_prog_compiler_static='-Bstatic'
6876
      ;;
6877
 
6878
    sysv4 | sysv4.2uw2* | sysv4.3*)
6879
      lt_prog_compiler_wl='-Wl,'
6880
      lt_prog_compiler_pic='-KPIC'
6881
      lt_prog_compiler_static='-Bstatic'
6882
      ;;
6883
 
6884
    sysv4*MP*)
6885
      if test -d /usr/nec ;then
6886
        lt_prog_compiler_pic='-Kconform_pic'
6887
        lt_prog_compiler_static='-Bstatic'
6888
      fi
6889
      ;;
6890
 
6891
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6892
      lt_prog_compiler_wl='-Wl,'
6893
      lt_prog_compiler_pic='-KPIC'
6894
      lt_prog_compiler_static='-Bstatic'
6895
      ;;
6896
 
6897
    unicos*)
6898
      lt_prog_compiler_wl='-Wl,'
6899
      lt_prog_compiler_can_build_shared=no
6900
      ;;
6901
 
6902
    uts4*)
6903
      lt_prog_compiler_pic='-pic'
6904
      lt_prog_compiler_static='-Bstatic'
6905
      ;;
6906
 
6907
    *)
6908
      lt_prog_compiler_can_build_shared=no
6909
      ;;
6910
    esac
6911
  fi
6912
 
6913
case $host_os in
6914
  # For platforms which do not support PIC, -DPIC is meaningless:
6915
  *djgpp*)
6916
    lt_prog_compiler_pic=
6917
    ;;
6918
  *)
6919
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6920
    ;;
6921
esac
6922 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6923 90 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
6924
 
6925
 
6926
 
6927
 
6928
 
6929
 
6930
#
6931
# Check to make sure the PIC flag actually works.
6932
#
6933
if test -n "$lt_prog_compiler_pic"; then
6934 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6935 90 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6936 346 jeremybenn
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
6937 90 jeremybenn
  $as_echo_n "(cached) " >&6
6938
else
6939
  lt_cv_prog_compiler_pic_works=no
6940
   ac_outfile=conftest.$ac_objext
6941
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6942
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6943
   # Insert the option either (1) after the last *FLAGS variable, or
6944
   # (2) before a word containing "conftest.", or (3) at the end.
6945
   # Note that $ac_compile itself does not contain backslashes and begins
6946
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6947
   # The option is referenced via a variable to avoid confusing sed.
6948
   lt_compile=`echo "$ac_compile" | $SED \
6949
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6950
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6951
   -e 's:$: $lt_compiler_flag:'`
6952 460 jeremybenn
   (eval echo "\"\$as_me:6952: $lt_compile\"" >&5)
6953 90 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6954
   ac_status=$?
6955
   cat conftest.err >&5
6956 460 jeremybenn
   echo "$as_me:6956: \$? = $ac_status" >&5
6957 90 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
6958
     # The compiler can only warn and ignore the option if not recognized
6959
     # So say no if there are warnings other than the usual output.
6960
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6961
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6962
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6963
       lt_cv_prog_compiler_pic_works=yes
6964
     fi
6965
   fi
6966
   $RM conftest*
6967
 
6968
fi
6969 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
6970 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
6971
 
6972
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6973
    case $lt_prog_compiler_pic in
6974
     "" | " "*) ;;
6975
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6976
     esac
6977
else
6978
    lt_prog_compiler_pic=
6979
     lt_prog_compiler_can_build_shared=no
6980
fi
6981
 
6982
fi
6983
 
6984
 
6985
 
6986
 
6987
 
6988
 
6989
#
6990
# Check to make sure the static flag actually works.
6991
#
6992
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6993 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6994 90 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
6995 346 jeremybenn
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
6996 90 jeremybenn
  $as_echo_n "(cached) " >&6
6997
else
6998
  lt_cv_prog_compiler_static_works=no
6999
   save_LDFLAGS="$LDFLAGS"
7000
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7001
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7002
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7003
     # The linker can only warn and ignore the option if not recognized
7004
     # So say no if there are warnings
7005
     if test -s conftest.err; then
7006
       # Append any errors to the config.log.
7007
       cat conftest.err 1>&5
7008
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7009
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7010
       if diff conftest.exp conftest.er2 >/dev/null; then
7011
         lt_cv_prog_compiler_static_works=yes
7012
       fi
7013
     else
7014
       lt_cv_prog_compiler_static_works=yes
7015
     fi
7016
   fi
7017
   $RM -r conftest*
7018
   LDFLAGS="$save_LDFLAGS"
7019
 
7020
fi
7021 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7022 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7023
 
7024
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7025
    :
7026
else
7027
    lt_prog_compiler_static=
7028
fi
7029
 
7030
 
7031
 
7032
 
7033
 
7034
 
7035
 
7036 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7037 90 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7038 346 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7039 90 jeremybenn
  $as_echo_n "(cached) " >&6
7040
else
7041
  lt_cv_prog_compiler_c_o=no
7042
   $RM -r conftest 2>/dev/null
7043
   mkdir conftest
7044
   cd conftest
7045
   mkdir out
7046
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7047
 
7048
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7049
   # Insert the option either (1) after the last *FLAGS variable, or
7050
   # (2) before a word containing "conftest.", or (3) at the end.
7051
   # Note that $ac_compile itself does not contain backslashes and begins
7052
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7053
   lt_compile=`echo "$ac_compile" | $SED \
7054
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7055
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7056
   -e 's:$: $lt_compiler_flag:'`
7057 460 jeremybenn
   (eval echo "\"\$as_me:7057: $lt_compile\"" >&5)
7058 90 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7059
   ac_status=$?
7060
   cat out/conftest.err >&5
7061 460 jeremybenn
   echo "$as_me:7061: \$? = $ac_status" >&5
7062 90 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7063
   then
7064
     # The compiler can only warn and ignore the option if not recognized
7065
     # So say no if there are warnings
7066
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7067
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7068
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7069
       lt_cv_prog_compiler_c_o=yes
7070
     fi
7071
   fi
7072
   chmod u+w . 2>&5
7073
   $RM conftest*
7074
   # SGI C++ compiler will create directory out/ii_files/ for
7075
   # template instantiation
7076
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7077
   $RM out/* && rmdir out
7078
   cd ..
7079
   $RM -r conftest
7080
   $RM conftest*
7081
 
7082
fi
7083 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7084 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7085
 
7086
 
7087
 
7088
 
7089
 
7090
 
7091 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7092 90 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7093 346 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7094 90 jeremybenn
  $as_echo_n "(cached) " >&6
7095
else
7096
  lt_cv_prog_compiler_c_o=no
7097
   $RM -r conftest 2>/dev/null
7098
   mkdir conftest
7099
   cd conftest
7100
   mkdir out
7101
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7102
 
7103
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7104
   # Insert the option either (1) after the last *FLAGS variable, or
7105
   # (2) before a word containing "conftest.", or (3) at the end.
7106
   # Note that $ac_compile itself does not contain backslashes and begins
7107
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7108
   lt_compile=`echo "$ac_compile" | $SED \
7109
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7110
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7111
   -e 's:$: $lt_compiler_flag:'`
7112 460 jeremybenn
   (eval echo "\"\$as_me:7112: $lt_compile\"" >&5)
7113 90 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7114
   ac_status=$?
7115
   cat out/conftest.err >&5
7116 460 jeremybenn
   echo "$as_me:7116: \$? = $ac_status" >&5
7117 90 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7118
   then
7119
     # The compiler can only warn and ignore the option if not recognized
7120
     # So say no if there are warnings
7121
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7122
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7123
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7124
       lt_cv_prog_compiler_c_o=yes
7125
     fi
7126
   fi
7127
   chmod u+w . 2>&5
7128
   $RM conftest*
7129
   # SGI C++ compiler will create directory out/ii_files/ for
7130
   # template instantiation
7131
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7132
   $RM out/* && rmdir out
7133
   cd ..
7134
   $RM -r conftest
7135
   $RM conftest*
7136
 
7137
fi
7138 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7139 90 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7140
 
7141
 
7142
 
7143
 
7144
hard_links="nottested"
7145
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7146
  # do not overwrite the value of need_locks provided by the user
7147 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7148 90 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7149
  hard_links=yes
7150
  $RM conftest*
7151
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7152
  touch conftest.a
7153
  ln conftest.a conftest.b 2>&5 || hard_links=no
7154
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7155 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7156 90 jeremybenn
$as_echo "$hard_links" >&6; }
7157
  if test "$hard_links" = no; then
7158 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7159 90 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7160
    need_locks=warn
7161
  fi
7162
else
7163
  need_locks=no
7164
fi
7165
 
7166
 
7167
 
7168
 
7169
 
7170
 
7171 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7172 90 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7173
 
7174
  runpath_var=
7175
  allow_undefined_flag=
7176
  always_export_symbols=no
7177
  archive_cmds=
7178
  archive_expsym_cmds=
7179
  compiler_needs_object=no
7180
  enable_shared_with_static_runtimes=no
7181
  export_dynamic_flag_spec=
7182
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7183
  hardcode_automatic=no
7184
  hardcode_direct=no
7185
  hardcode_direct_absolute=no
7186
  hardcode_libdir_flag_spec=
7187
  hardcode_libdir_flag_spec_ld=
7188
  hardcode_libdir_separator=
7189
  hardcode_minus_L=no
7190
  hardcode_shlibpath_var=unsupported
7191
  inherit_rpath=no
7192
  link_all_deplibs=unknown
7193
  module_cmds=
7194
  module_expsym_cmds=
7195
  old_archive_from_new_cmds=
7196
  old_archive_from_expsyms_cmds=
7197
  thread_safe_flag_spec=
7198
  whole_archive_flag_spec=
7199
  # include_expsyms should be a list of space-separated symbols to be *always*
7200
  # included in the symbol list
7201
  include_expsyms=
7202
  # exclude_expsyms can be an extended regexp of symbols to exclude
7203
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7204
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7205
  # as well as any symbol that contains `d'.
7206
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7207
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7208
  # platforms (ab)use it in PIC code, but their linkers get confused if
7209
  # the symbol is explicitly referenced.  Since portable code cannot
7210
  # rely on this symbol name, it's probably fine to never include it in
7211
  # preloaded symbol tables.
7212
  # Exclude shared library initialization/finalization symbols.
7213
  extract_expsyms_cmds=
7214
 
7215
  case $host_os in
7216
  cygwin* | mingw* | pw32* | cegcc*)
7217
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7218
    # When not using gcc, we currently assume that we are using
7219
    # Microsoft Visual C++.
7220
    if test "$GCC" != yes; then
7221
      with_gnu_ld=no
7222
    fi
7223
    ;;
7224
  interix*)
7225
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7226
    with_gnu_ld=yes
7227
    ;;
7228
  openbsd*)
7229
    with_gnu_ld=no
7230
    ;;
7231 93 jeremybenn
  linux* | k*bsd*-gnu)
7232
    link_all_deplibs=no
7233
    ;;
7234 90 jeremybenn
  esac
7235
 
7236
  ld_shlibs=yes
7237
  if test "$with_gnu_ld" = yes; then
7238
    # If archive_cmds runs LD, not CC, wlarc should be empty
7239
    wlarc='${wl}'
7240
 
7241
    # Set some defaults for GNU ld with shared library support. These
7242
    # are reset later if shared libraries are not supported. Putting them
7243
    # here allows them to be overridden if necessary.
7244
    runpath_var=LD_RUN_PATH
7245
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7246
    export_dynamic_flag_spec='${wl}--export-dynamic'
7247
    # ancient GNU ld didn't support --whole-archive et. al.
7248
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7249
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7250
    else
7251
      whole_archive_flag_spec=
7252
    fi
7253
    supports_anon_versioning=no
7254
    case `$LD -v 2>&1` in
7255
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7256
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7257
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7258
      *\ 2.11.*) ;; # other 2.11 versions
7259
      *) supports_anon_versioning=yes ;;
7260
    esac
7261
 
7262
    # See if GNU ld supports shared libraries.
7263
    case $host_os in
7264
    aix[3-9]*)
7265
      # On AIX/PPC, the GNU linker is very broken
7266
      if test "$host_cpu" != ia64; then
7267
        ld_shlibs=no
7268
        cat <<_LT_EOF 1>&2
7269
 
7270
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7271
*** to be unable to reliably create shared libraries on AIX.
7272
*** Therefore, libtool is disabling shared libraries support.  If you
7273
*** really care for shared libraries, you may want to modify your PATH
7274
*** so that a non-GNU linker is found, and then restart.
7275
 
7276
_LT_EOF
7277
      fi
7278
      ;;
7279
 
7280
    amigaos*)
7281
      case $host_cpu in
7282
      powerpc)
7283
            # see comment about AmigaOS4 .so support
7284
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7285
            archive_expsym_cmds=''
7286
        ;;
7287
      m68k)
7288
            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)'
7289
            hardcode_libdir_flag_spec='-L$libdir'
7290
            hardcode_minus_L=yes
7291
        ;;
7292
      esac
7293
      ;;
7294
 
7295
    beos*)
7296
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7297
        allow_undefined_flag=unsupported
7298
        # Joseph Beckenbach  says some releases of gcc
7299
        # support --undefined.  This deserves some investigation.  FIXME
7300
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7301
      else
7302
        ld_shlibs=no
7303
      fi
7304
      ;;
7305
 
7306
    cygwin* | mingw* | pw32* | cegcc*)
7307
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7308
      # as there is no search path for DLLs.
7309
      hardcode_libdir_flag_spec='-L$libdir'
7310
      allow_undefined_flag=unsupported
7311
      always_export_symbols=no
7312
      enable_shared_with_static_runtimes=yes
7313
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7314
 
7315
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7316
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7317
        # If the export-symbols file already is a .def file (1st line
7318
        # is EXPORTS), use it as is; otherwise, prepend...
7319
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7320
          cp $export_symbols $output_objdir/$soname.def;
7321
        else
7322
          echo EXPORTS > $output_objdir/$soname.def;
7323
          cat $export_symbols >> $output_objdir/$soname.def;
7324
        fi~
7325
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7326
      else
7327
        ld_shlibs=no
7328
      fi
7329
      ;;
7330
 
7331
    interix[3-9]*)
7332
      hardcode_direct=no
7333
      hardcode_shlibpath_var=no
7334
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7335
      export_dynamic_flag_spec='${wl}-E'
7336
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7337
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7338
      # default) and relocated if they conflict, which is a slow very memory
7339
      # consuming and fragmenting process.  To avoid this, we pick a random,
7340
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7341
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7342
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7343
      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'
7344
      ;;
7345
 
7346
    gnu* | linux* | tpf* | k*bsd*-gnu)
7347
      tmp_diet=no
7348
      if test "$host_os" = linux-dietlibc; then
7349
        case $cc_basename in
7350
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7351
        esac
7352
      fi
7353
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7354
         && test "$tmp_diet" = no
7355
      then
7356
        tmp_addflag=
7357
        tmp_sharedflag='-shared'
7358
        case $cc_basename,$host_cpu in
7359
        pgcc*)                          # Portland Group C compiler
7360
          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'
7361
          tmp_addflag=' $pic_flag'
7362
          ;;
7363
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7364
          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'
7365
          tmp_addflag=' $pic_flag -Mnomain' ;;
7366
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7367
          tmp_addflag=' -i_dynamic' ;;
7368
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7369
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7370
        ifc* | ifort*)                  # Intel Fortran compiler
7371
          tmp_addflag=' -nofor_main' ;;
7372
        lf95*)                          # Lahey Fortran 8.1
7373
          whole_archive_flag_spec=
7374
          tmp_sharedflag='--shared' ;;
7375
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7376
          tmp_sharedflag='-qmkshrobj'
7377
          tmp_addflag= ;;
7378
        esac
7379
        case `$CC -V 2>&1 | sed 5q` in
7380
        *Sun\ C*)                       # Sun C 5.9
7381
          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'
7382
          compiler_needs_object=yes
7383
          tmp_sharedflag='-G' ;;
7384
        *Sun\ F*)                       # Sun Fortran 8.3
7385
          tmp_sharedflag='-G' ;;
7386
        esac
7387
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7388
 
7389
        if test "x$supports_anon_versioning" = xyes; then
7390
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7391
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7392
            echo "local: *; };" >> $output_objdir/$libname.ver~
7393
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7394
        fi
7395
 
7396
        case $cc_basename in
7397
        xlf*)
7398
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7399
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7400
          hardcode_libdir_flag_spec=
7401
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7402
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7403
          if test "x$supports_anon_versioning" = xyes; then
7404
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7405
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7406
              echo "local: *; };" >> $output_objdir/$libname.ver~
7407
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7408
          fi
7409
          ;;
7410
        esac
7411
      else
7412
        ld_shlibs=no
7413
      fi
7414
      ;;
7415
 
7416 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7417 90 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7418
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7419
        wlarc=
7420
      else
7421
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7422
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7423
      fi
7424
      ;;
7425
 
7426
    solaris*)
7427
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7428
        ld_shlibs=no
7429
        cat <<_LT_EOF 1>&2
7430
 
7431
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7432
*** create shared libraries on Solaris systems.  Therefore, libtool
7433
*** is disabling shared libraries support.  We urge you to upgrade GNU
7434
*** binutils to release 2.9.1 or newer.  Another option is to modify
7435
*** your PATH or compiler configuration so that the native linker is
7436
*** used, and then restart.
7437
 
7438
_LT_EOF
7439
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7440
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7441
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7442
      else
7443
        ld_shlibs=no
7444
      fi
7445
      ;;
7446
 
7447
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7448
      case `$LD -v 2>&1` in
7449
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7450
        ld_shlibs=no
7451
        cat <<_LT_EOF 1>&2
7452
 
7453
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7454
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7455
*** is disabling shared libraries support.  We urge you to upgrade GNU
7456
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7457
*** your PATH or compiler configuration so that the native linker is
7458
*** used, and then restart.
7459
 
7460
_LT_EOF
7461
        ;;
7462
        *)
7463
          # For security reasons, it is highly recommended that you always
7464
          # use absolute paths for naming shared libraries, and exclude the
7465
          # DT_RUNPATH tag from executables and libraries.  But doing so
7466
          # requires that you compile everything twice, which is a pain.
7467
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7468
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7469
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7470
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7471
          else
7472
            ld_shlibs=no
7473
          fi
7474
        ;;
7475
      esac
7476
      ;;
7477
 
7478
    sunos4*)
7479
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7480
      wlarc=
7481
      hardcode_direct=yes
7482
      hardcode_shlibpath_var=no
7483
      ;;
7484
 
7485
    *)
7486
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7487
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7489
      else
7490
        ld_shlibs=no
7491
      fi
7492
      ;;
7493
    esac
7494
 
7495
    if test "$ld_shlibs" = no; then
7496
      runpath_var=
7497
      hardcode_libdir_flag_spec=
7498
      export_dynamic_flag_spec=
7499
      whole_archive_flag_spec=
7500
    fi
7501
  else
7502
    # PORTME fill in a description of your system's linker (not GNU ld)
7503
    case $host_os in
7504
    aix3*)
7505
      allow_undefined_flag=unsupported
7506
      always_export_symbols=yes
7507
      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'
7508
      # Note: this linker hardcodes the directories in LIBPATH if there
7509
      # are no directories specified by -L.
7510
      hardcode_minus_L=yes
7511
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7512
        # Neither direct hardcoding nor static linking is supported with a
7513
        # broken collect2.
7514
        hardcode_direct=unsupported
7515
      fi
7516
      ;;
7517
 
7518
    aix[4-9]*)
7519
      if test "$host_cpu" = ia64; then
7520
        # On IA64, the linker does run time linking by default, so we don't
7521
        # have to do anything special.
7522
        aix_use_runtimelinking=no
7523
        exp_sym_flag='-Bexport'
7524
        no_entry_flag=""
7525
      else
7526
        # If we're using GNU nm, then we don't want the "-C" option.
7527
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7528
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7529
          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'
7530
        else
7531
          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'
7532
        fi
7533
        aix_use_runtimelinking=no
7534
 
7535
        # Test if we are trying to use run time linking or normal
7536
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7537
        # need to do runtime linking.
7538
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7539
          for ld_flag in $LDFLAGS; do
7540
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7541
            aix_use_runtimelinking=yes
7542
            break
7543
          fi
7544
          done
7545
          ;;
7546
        esac
7547
 
7548
        exp_sym_flag='-bexport'
7549
        no_entry_flag='-bnoentry'
7550
      fi
7551
 
7552
      # When large executables or shared objects are built, AIX ld can
7553
      # have problems creating the table of contents.  If linking a library
7554
      # or program results in "error TOC overflow" add -mminimal-toc to
7555
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7556
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7557
 
7558
      archive_cmds=''
7559
      hardcode_direct=yes
7560
      hardcode_direct_absolute=yes
7561
      hardcode_libdir_separator=':'
7562
      link_all_deplibs=yes
7563
      file_list_spec='${wl}-f,'
7564
 
7565
      if test "$GCC" = yes; then
7566
        case $host_os in aix4.[012]|aix4.[012].*)
7567
        # We only want to do this on AIX 4.2 and lower, the check
7568
        # below for broken collect2 doesn't work under 4.3+
7569
          collect2name=`${CC} -print-prog-name=collect2`
7570
          if test -f "$collect2name" &&
7571
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7572
          then
7573
          # We have reworked collect2
7574
          :
7575
          else
7576
          # We have old collect2
7577
          hardcode_direct=unsupported
7578
          # It fails to find uninstalled libraries when the uninstalled
7579
          # path is not listed in the libpath.  Setting hardcode_minus_L
7580
          # to unsupported forces relinking
7581
          hardcode_minus_L=yes
7582
          hardcode_libdir_flag_spec='-L$libdir'
7583
          hardcode_libdir_separator=
7584
          fi
7585
          ;;
7586
        esac
7587
        shared_flag='-shared'
7588
        if test "$aix_use_runtimelinking" = yes; then
7589
          shared_flag="$shared_flag "'${wl}-G'
7590
        fi
7591 93 jeremybenn
        link_all_deplibs=no
7592 90 jeremybenn
      else
7593
        # not using gcc
7594
        if test "$host_cpu" = ia64; then
7595
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7596
        # chokes on -Wl,-G. The following line is correct:
7597
          shared_flag='-G'
7598
        else
7599
          if test "$aix_use_runtimelinking" = yes; then
7600
            shared_flag='${wl}-G'
7601
          else
7602
            shared_flag='${wl}-bM:SRE'
7603
          fi
7604
        fi
7605
      fi
7606
 
7607
      export_dynamic_flag_spec='${wl}-bexpall'
7608
      # It seems that -bexpall does not export symbols beginning with
7609
      # underscore (_), so it is better to generate a list of symbols to export.
7610
      always_export_symbols=yes
7611
      if test "$aix_use_runtimelinking" = yes; then
7612
        # Warning - without using the other runtime loading flags (-brtl),
7613
        # -berok will link without error, but may produce a broken library.
7614
        allow_undefined_flag='-berok'
7615
        # Determine the default libpath from the value encoded in an
7616
        # empty executable.
7617 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 90 jeremybenn
/* end confdefs.h.  */
7619
 
7620
int
7621
main ()
7622
{
7623
 
7624
  ;
7625
  return 0;
7626
}
7627
_ACEOF
7628 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
7629 90 jeremybenn
 
7630
lt_aix_libpath_sed='
7631
    /Import File Strings/,/^$/ {
7632
        /^0/ {
7633
            s/^0  *\(.*\)$/\1/
7634
            p
7635
        }
7636
    }'
7637
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7638
# Check for a 64-bit object if we didn't find anything.
7639
if test -z "$aix_libpath"; then
7640
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7641
fi
7642
fi
7643 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
7644
    conftest$ac_exeext conftest.$ac_ext
7645 90 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7646
 
7647
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7648
        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"
7649
      else
7650
        if test "$host_cpu" = ia64; then
7651
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7652
          allow_undefined_flag="-z nodefs"
7653
          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"
7654
        else
7655
         # Determine the default libpath from the value encoded in an
7656
         # empty executable.
7657 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 90 jeremybenn
/* end confdefs.h.  */
7659
 
7660
int
7661
main ()
7662
{
7663
 
7664
  ;
7665
  return 0;
7666
}
7667
_ACEOF
7668 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
7669 90 jeremybenn
 
7670
lt_aix_libpath_sed='
7671
    /Import File Strings/,/^$/ {
7672
        /^0/ {
7673
            s/^0  *\(.*\)$/\1/
7674
            p
7675
        }
7676
    }'
7677
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7678
# Check for a 64-bit object if we didn't find anything.
7679
if test -z "$aix_libpath"; then
7680
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7681
fi
7682
fi
7683 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
7684
    conftest$ac_exeext conftest.$ac_ext
7685 90 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7686
 
7687
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7688
          # Warning - without using the other run time loading flags,
7689
          # -berok will link without error, but may produce a broken library.
7690
          no_undefined_flag=' ${wl}-bernotok'
7691
          allow_undefined_flag=' ${wl}-berok'
7692
          # Exported symbols can be pulled into shared objects from archives
7693
          whole_archive_flag_spec='$convenience'
7694
          archive_cmds_need_lc=yes
7695
          # This is similar to how AIX traditionally builds its shared libraries.
7696
          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'
7697
        fi
7698
      fi
7699
      ;;
7700
 
7701
    amigaos*)
7702
      case $host_cpu in
7703
      powerpc)
7704
            # see comment about AmigaOS4 .so support
7705
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7706
            archive_expsym_cmds=''
7707
        ;;
7708
      m68k)
7709
            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)'
7710
            hardcode_libdir_flag_spec='-L$libdir'
7711
            hardcode_minus_L=yes
7712
        ;;
7713
      esac
7714
      ;;
7715
 
7716
    bsdi[45]*)
7717
      export_dynamic_flag_spec=-rdynamic
7718
      ;;
7719
 
7720
    cygwin* | mingw* | pw32* | cegcc*)
7721
      # When not using gcc, we currently assume that we are using
7722
      # Microsoft Visual C++.
7723
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7724
      # no search path for DLLs.
7725
      hardcode_libdir_flag_spec=' '
7726
      allow_undefined_flag=unsupported
7727
      # Tell ltmain to make .lib files, not .a files.
7728
      libext=lib
7729
      # Tell ltmain to make .dll files, not .so files.
7730
      shrext_cmds=".dll"
7731
      # FIXME: Setting linknames here is a bad hack.
7732
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7733
      # The linker will automatically build a .lib file if we build a DLL.
7734
      old_archive_from_new_cmds='true'
7735
      # FIXME: Should let the user specify the lib program.
7736
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7737
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7738
      enable_shared_with_static_runtimes=yes
7739
      ;;
7740
 
7741
    darwin* | rhapsody*)
7742
 
7743
 
7744
  archive_cmds_need_lc=no
7745
  hardcode_direct=no
7746
  hardcode_automatic=yes
7747
  hardcode_shlibpath_var=unsupported
7748
  whole_archive_flag_spec=''
7749
  link_all_deplibs=yes
7750
  allow_undefined_flag="$_lt_dar_allow_undefined"
7751
  case $cc_basename in
7752
     ifort*) _lt_dar_can_shared=yes ;;
7753
     *) _lt_dar_can_shared=$GCC ;;
7754
  esac
7755
  if test "$_lt_dar_can_shared" = "yes"; then
7756
    output_verbose_link_cmd=echo
7757
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7758
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7759
    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}"
7760
    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}"
7761
 
7762
  else
7763
  ld_shlibs=no
7764
  fi
7765
 
7766
      ;;
7767
 
7768
    dgux*)
7769
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7770
      hardcode_libdir_flag_spec='-L$libdir'
7771
      hardcode_shlibpath_var=no
7772
      ;;
7773
 
7774
    freebsd1*)
7775
      ld_shlibs=no
7776
      ;;
7777
 
7778
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7779
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7780
    # does not break anything, and helps significantly (at the cost of a little
7781
    # extra space).
7782
    freebsd2.2*)
7783
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7784
      hardcode_libdir_flag_spec='-R$libdir'
7785
      hardcode_direct=yes
7786
      hardcode_shlibpath_var=no
7787
      ;;
7788
 
7789
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7790
    freebsd2*)
7791
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7792
      hardcode_direct=yes
7793
      hardcode_minus_L=yes
7794
      hardcode_shlibpath_var=no
7795
      ;;
7796
 
7797
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7798
    freebsd* | dragonfly*)
7799
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7800
      hardcode_libdir_flag_spec='-R$libdir'
7801
      hardcode_direct=yes
7802
      hardcode_shlibpath_var=no
7803
      ;;
7804
 
7805
    hpux9*)
7806
      if test "$GCC" = yes; then
7807
        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'
7808
      else
7809
        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'
7810
      fi
7811
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7812
      hardcode_libdir_separator=:
7813
      hardcode_direct=yes
7814
 
7815
      # hardcode_minus_L: Not really in the search PATH,
7816
      # but as the default location of the library.
7817
      hardcode_minus_L=yes
7818
      export_dynamic_flag_spec='${wl}-E'
7819
      ;;
7820
 
7821
    hpux10*)
7822
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7823
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7824
      else
7825
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7826
      fi
7827
      if test "$with_gnu_ld" = no; then
7828
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7829
        hardcode_libdir_flag_spec_ld='+b $libdir'
7830
        hardcode_libdir_separator=:
7831
        hardcode_direct=yes
7832
        hardcode_direct_absolute=yes
7833
        export_dynamic_flag_spec='${wl}-E'
7834
        # hardcode_minus_L: Not really in the search PATH,
7835
        # but as the default location of the library.
7836
        hardcode_minus_L=yes
7837
      fi
7838
      ;;
7839
 
7840
    hpux11*)
7841
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7842
        case $host_cpu in
7843
        hppa*64*)
7844
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7845
          ;;
7846
        ia64*)
7847
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7848
          ;;
7849
        *)
7850
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7851
          ;;
7852
        esac
7853
      else
7854
        case $host_cpu in
7855
        hppa*64*)
7856
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7857
          ;;
7858
        ia64*)
7859
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7860
          ;;
7861
        *)
7862
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7863
          ;;
7864
        esac
7865
      fi
7866
      if test "$with_gnu_ld" = no; then
7867
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7868
        hardcode_libdir_separator=:
7869
 
7870
        case $host_cpu in
7871
        hppa*64*|ia64*)
7872
          hardcode_direct=no
7873
          hardcode_shlibpath_var=no
7874
          ;;
7875
        *)
7876
          hardcode_direct=yes
7877
          hardcode_direct_absolute=yes
7878
          export_dynamic_flag_spec='${wl}-E'
7879
 
7880
          # hardcode_minus_L: Not really in the search PATH,
7881
          # but as the default location of the library.
7882
          hardcode_minus_L=yes
7883
          ;;
7884
        esac
7885
      fi
7886
      ;;
7887
 
7888
    irix5* | irix6* | nonstopux*)
7889
      if test "$GCC" = yes; then
7890
        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'
7891
        # Try to use the -exported_symbol ld option, if it does not
7892
        # work, assume that -exports_file does not work either and
7893
        # implicitly export all symbols.
7894
        save_LDFLAGS="$LDFLAGS"
7895
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7896 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897
/* end confdefs.h.  */
7898 90 jeremybenn
int foo(void) {}
7899
_ACEOF
7900 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
7901 90 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'
7902
 
7903
fi
7904 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
7905
    conftest$ac_exeext conftest.$ac_ext
7906 90 jeremybenn
        LDFLAGS="$save_LDFLAGS"
7907
      else
7908
        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'
7909
        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'
7910
      fi
7911
      archive_cmds_need_lc='no'
7912
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7913
      hardcode_libdir_separator=:
7914
      inherit_rpath=yes
7915
      link_all_deplibs=yes
7916
      ;;
7917
 
7918 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7919 90 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7920
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7921
      else
7922
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7923
      fi
7924
      hardcode_libdir_flag_spec='-R$libdir'
7925
      hardcode_direct=yes
7926
      hardcode_shlibpath_var=no
7927
      ;;
7928
 
7929
    newsos6)
7930
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7931
      hardcode_direct=yes
7932
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7933
      hardcode_libdir_separator=:
7934
      hardcode_shlibpath_var=no
7935
      ;;
7936
 
7937
    *nto* | *qnx*)
7938
      ;;
7939
 
7940
    openbsd*)
7941
      if test -f /usr/libexec/ld.so; then
7942
        hardcode_direct=yes
7943
        hardcode_shlibpath_var=no
7944
        hardcode_direct_absolute=yes
7945
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7946
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7947
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7948
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7949
          export_dynamic_flag_spec='${wl}-E'
7950
        else
7951
          case $host_os in
7952
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7953
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7954
             hardcode_libdir_flag_spec='-R$libdir'
7955
             ;;
7956
           *)
7957
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7958
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7959
             ;;
7960
          esac
7961
        fi
7962
      else
7963
        ld_shlibs=no
7964
      fi
7965
      ;;
7966
 
7967
    os2*)
7968
      hardcode_libdir_flag_spec='-L$libdir'
7969
      hardcode_minus_L=yes
7970
      allow_undefined_flag=unsupported
7971
      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'
7972
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7973
      ;;
7974
 
7975
    osf3*)
7976
      if test "$GCC" = yes; then
7977
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7978
        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'
7979
      else
7980
        allow_undefined_flag=' -expect_unresolved \*'
7981
        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'
7982
      fi
7983
      archive_cmds_need_lc='no'
7984
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7985
      hardcode_libdir_separator=:
7986
      ;;
7987
 
7988
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7989
      if test "$GCC" = yes; then
7990
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7991
        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'
7992
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7993
      else
7994
        allow_undefined_flag=' -expect_unresolved \*'
7995
        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'
7996
        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~
7997
        $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'
7998
 
7999
        # Both c and cxx compiler support -rpath directly
8000
        hardcode_libdir_flag_spec='-rpath $libdir'
8001
      fi
8002
      archive_cmds_need_lc='no'
8003
      hardcode_libdir_separator=:
8004
      ;;
8005
 
8006
    solaris*)
8007
      no_undefined_flag=' -z defs'
8008
      if test "$GCC" = yes; then
8009
        wlarc='${wl}'
8010
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8011
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8012
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8013
      else
8014
        case `$CC -V 2>&1` in
8015
        *"Compilers 5.0"*)
8016
          wlarc=''
8017
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8018
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8019
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8020
          ;;
8021
        *)
8022
          wlarc='${wl}'
8023
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8024
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8025
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8026
          ;;
8027
        esac
8028
      fi
8029
      hardcode_libdir_flag_spec='-R$libdir'
8030
      hardcode_shlibpath_var=no
8031
      case $host_os in
8032
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8033
      *)
8034
        # The compiler driver will combine and reorder linker options,
8035
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8036
        # but is careful enough not to reorder.
8037
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8038
        if test "$GCC" = yes; then
8039
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8040
        else
8041
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8042
        fi
8043
        ;;
8044
      esac
8045
      link_all_deplibs=yes
8046
      ;;
8047
 
8048
    sunos4*)
8049
      if test "x$host_vendor" = xsequent; then
8050
        # Use $CC to link under sequent, because it throws in some extra .o
8051
        # files that make .init and .fini sections work.
8052
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8053
      else
8054
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8055
      fi
8056
      hardcode_libdir_flag_spec='-L$libdir'
8057
      hardcode_direct=yes
8058
      hardcode_minus_L=yes
8059
      hardcode_shlibpath_var=no
8060
      ;;
8061
 
8062
    sysv4)
8063
      case $host_vendor in
8064
        sni)
8065
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8066
          hardcode_direct=yes # is this really true???
8067
        ;;
8068
        siemens)
8069
          ## LD is ld it makes a PLAMLIB
8070
          ## CC just makes a GrossModule.
8071
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8072
          reload_cmds='$CC -r -o $output$reload_objs'
8073
          hardcode_direct=no
8074
        ;;
8075
        motorola)
8076
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8077
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8078
        ;;
8079
      esac
8080
      runpath_var='LD_RUN_PATH'
8081
      hardcode_shlibpath_var=no
8082
      ;;
8083
 
8084
    sysv4.3*)
8085
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8086
      hardcode_shlibpath_var=no
8087
      export_dynamic_flag_spec='-Bexport'
8088
      ;;
8089
 
8090
    sysv4*MP*)
8091
      if test -d /usr/nec; then
8092
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8093
        hardcode_shlibpath_var=no
8094
        runpath_var=LD_RUN_PATH
8095
        hardcode_runpath_var=yes
8096
        ld_shlibs=yes
8097
      fi
8098
      ;;
8099
 
8100
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8101
      no_undefined_flag='${wl}-z,text'
8102
      archive_cmds_need_lc=no
8103
      hardcode_shlibpath_var=no
8104
      runpath_var='LD_RUN_PATH'
8105
 
8106
      if test "$GCC" = yes; then
8107
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8108
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8109
      else
8110
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8111
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8112
      fi
8113
      ;;
8114
 
8115
    sysv5* | sco3.2v5* | sco5v6*)
8116
      # Note: We can NOT use -z defs as we might desire, because we do not
8117
      # link with -lc, and that would cause any symbols used from libc to
8118
      # always be unresolved, which means just about no library would
8119
      # ever link correctly.  If we're not using GNU ld we use -z text
8120
      # though, which does catch some bad symbols but isn't as heavy-handed
8121
      # as -z defs.
8122
      no_undefined_flag='${wl}-z,text'
8123
      allow_undefined_flag='${wl}-z,nodefs'
8124
      archive_cmds_need_lc=no
8125
      hardcode_shlibpath_var=no
8126
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8127
      hardcode_libdir_separator=':'
8128
      link_all_deplibs=yes
8129
      export_dynamic_flag_spec='${wl}-Bexport'
8130
      runpath_var='LD_RUN_PATH'
8131
 
8132
      if test "$GCC" = yes; then
8133
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8134
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8135
      else
8136
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8137
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8138
      fi
8139
      ;;
8140
 
8141
    uts4*)
8142
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8143
      hardcode_libdir_flag_spec='-L$libdir'
8144
      hardcode_shlibpath_var=no
8145
      ;;
8146
 
8147
    *)
8148
      ld_shlibs=no
8149
      ;;
8150
    esac
8151
 
8152
    if test x$host_vendor = xsni; then
8153
      case $host in
8154
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8155
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8156
        ;;
8157
      esac
8158
    fi
8159
  fi
8160
 
8161 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8162 90 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8163
test "$ld_shlibs" = no && can_build_shared=no
8164
 
8165
with_gnu_ld=$with_gnu_ld
8166
 
8167
 
8168
 
8169
 
8170
 
8171
 
8172
 
8173
 
8174
 
8175
 
8176
 
8177
 
8178
 
8179
 
8180
 
8181
#
8182
# Do we need to explicitly link libc?
8183
#
8184
case "x$archive_cmds_need_lc" in
8185
x|xyes)
8186
  # Assume -lc should be added
8187
  archive_cmds_need_lc=yes
8188
 
8189
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8190
    case $archive_cmds in
8191
    *'~'*)
8192
      # FIXME: we may have to deal with multi-command sequences.
8193
      ;;
8194
    '$CC '*)
8195
      # Test whether the compiler implicitly links with -lc since on some
8196
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8197
      # to ld, don't add -lc before -lgcc.
8198 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8199 90 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8200
      $RM conftest*
8201
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8202
 
8203 346 jeremybenn
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8204 90 jeremybenn
  (eval $ac_compile) 2>&5
8205
  ac_status=$?
8206 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8207
  test $ac_status = 0; } 2>conftest.err; then
8208 90 jeremybenn
        soname=conftest
8209
        lib=conftest
8210
        libobjs=conftest.$ac_objext
8211
        deplibs=
8212
        wl=$lt_prog_compiler_wl
8213
        pic_flag=$lt_prog_compiler_pic
8214
        compiler_flags=-v
8215
        linker_flags=-v
8216
        verstring=
8217
        output_objdir=.
8218
        libname=conftest
8219
        lt_save_allow_undefined_flag=$allow_undefined_flag
8220
        allow_undefined_flag=
8221 346 jeremybenn
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8222 90 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8223
  ac_status=$?
8224 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8225
  test $ac_status = 0; }
8226 90 jeremybenn
        then
8227
          archive_cmds_need_lc=no
8228
        else
8229
          archive_cmds_need_lc=yes
8230
        fi
8231
        allow_undefined_flag=$lt_save_allow_undefined_flag
8232
      else
8233
        cat conftest.err 1>&5
8234
      fi
8235
      $RM conftest*
8236 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8237 90 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8238
      ;;
8239
    esac
8240
  fi
8241
  ;;
8242
esac
8243
 
8244
 
8245
 
8246
 
8247
 
8248
 
8249
 
8250
 
8251
 
8252
 
8253
 
8254
 
8255
 
8256
 
8257
 
8258
 
8259
 
8260
 
8261
 
8262
 
8263
 
8264
 
8265
 
8266
 
8267
 
8268
 
8269
 
8270
 
8271
 
8272
 
8273
 
8274
 
8275
 
8276
 
8277
 
8278
 
8279
 
8280
 
8281
 
8282
 
8283
 
8284
 
8285
 
8286
 
8287
 
8288
 
8289
 
8290
 
8291
 
8292
 
8293
 
8294
 
8295
 
8296
 
8297
 
8298
 
8299
 
8300
 
8301
 
8302
 
8303
 
8304
 
8305
 
8306
 
8307
 
8308
 
8309
 
8310
 
8311
 
8312
 
8313
 
8314
 
8315
 
8316
 
8317
 
8318
 
8319
 
8320
 
8321
 
8322
 
8323
 
8324
 
8325
 
8326
 
8327
 
8328
 
8329
 
8330
 
8331
 
8332
 
8333
 
8334
 
8335
 
8336
 
8337
 
8338
 
8339
 
8340
 
8341
 
8342
 
8343
 
8344
 
8345
 
8346
 
8347
 
8348
 
8349
 
8350
 
8351
 
8352
 
8353
 
8354
 
8355
 
8356
 
8357
 
8358
 
8359
 
8360
 
8361
 
8362
 
8363
 
8364
 
8365
 
8366
 
8367
 
8368
 
8369
 
8370
 
8371
 
8372
 
8373
 
8374
 
8375
 
8376
 
8377
 
8378
 
8379
 
8380
 
8381
 
8382
 
8383
 
8384
 
8385
 
8386
 
8387
 
8388
 
8389
 
8390
 
8391
 
8392
 
8393
 
8394
 
8395
 
8396
 
8397
 
8398
 
8399
 
8400 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8401 90 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8402
 
8403
if test "$GCC" = yes; then
8404
  case $host_os in
8405
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8406
    *) lt_awk_arg="/^libraries:/" ;;
8407
  esac
8408
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8409
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8410
    # if the path contains ";" then we assume it to be the separator
8411
    # otherwise default to the standard path separator (i.e. ":") - it is
8412
    # assumed that no part of a normal pathname contains ";" but that should
8413
    # okay in the real world where ";" in dirpaths is itself problematic.
8414
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8415
  else
8416
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8417
  fi
8418
  # Ok, now we have the path, separated by spaces, we can step through it
8419
  # and add multilib dir if necessary.
8420
  lt_tmp_lt_search_path_spec=
8421
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8422
  for lt_sys_path in $lt_search_path_spec; do
8423
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8424
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8425
    else
8426
      test -d "$lt_sys_path" && \
8427
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8428
    fi
8429
  done
8430
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8431
BEGIN {RS=" "; FS="/|\n";} {
8432
  lt_foo="";
8433
  lt_count=0;
8434
  for (lt_i = NF; lt_i > 0; lt_i--) {
8435
    if ($lt_i != "" && $lt_i != ".") {
8436
      if ($lt_i == "..") {
8437
        lt_count++;
8438
      } else {
8439
        if (lt_count == 0) {
8440
          lt_foo="/" $lt_i lt_foo;
8441
        } else {
8442
          lt_count--;
8443
        }
8444
      }
8445
    }
8446
  }
8447
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8448
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8449
}'`
8450
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8451
else
8452
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8453
fi
8454
library_names_spec=
8455
libname_spec='lib$name'
8456
soname_spec=
8457
shrext_cmds=".so"
8458
postinstall_cmds=
8459
postuninstall_cmds=
8460
finish_cmds=
8461
finish_eval=
8462
shlibpath_var=
8463
shlibpath_overrides_runpath=unknown
8464
version_type=none
8465
dynamic_linker="$host_os ld.so"
8466
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8467
need_lib_prefix=unknown
8468
hardcode_into_libs=no
8469
 
8470
# when you set need_version to no, make sure it does not cause -set_version
8471
# flags to be left without arguments
8472
need_version=unknown
8473
 
8474
case $host_os in
8475
aix3*)
8476
  version_type=linux
8477
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8478
  shlibpath_var=LIBPATH
8479
 
8480
  # AIX 3 has no versioning support, so we append a major version to the name.
8481
  soname_spec='${libname}${release}${shared_ext}$major'
8482
  ;;
8483
 
8484
aix[4-9]*)
8485
  version_type=linux
8486
  need_lib_prefix=no
8487
  need_version=no
8488
  hardcode_into_libs=yes
8489
  if test "$host_cpu" = ia64; then
8490
    # AIX 5 supports IA64
8491
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8492
    shlibpath_var=LD_LIBRARY_PATH
8493
  else
8494
    # With GCC up to 2.95.x, collect2 would create an import file
8495
    # for dependence libraries.  The import file would start with
8496
    # the line `#! .'.  This would cause the generated library to
8497
    # depend on `.', always an invalid library.  This was fixed in
8498
    # development snapshots of GCC prior to 3.0.
8499
    case $host_os in
8500
      aix4 | aix4.[01] | aix4.[01].*)
8501
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8502
           echo ' yes '
8503
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8504
        :
8505
      else
8506
        can_build_shared=no
8507
      fi
8508
      ;;
8509
    esac
8510
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8511
    # soname into executable. Probably we can add versioning support to
8512
    # collect2, so additional links can be useful in future.
8513
    if test "$aix_use_runtimelinking" = yes; then
8514
      # If using run time linking (on AIX 4.2 or later) use lib.so
8515
      # instead of lib.a to let people know that these are not
8516
      # typical AIX shared libraries.
8517
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8518
    else
8519
      # We preserve .a as extension for shared libraries through AIX4.2
8520
      # and later when we are not doing run time linking.
8521
      library_names_spec='${libname}${release}.a $libname.a'
8522
      soname_spec='${libname}${release}${shared_ext}$major'
8523
    fi
8524
    shlibpath_var=LIBPATH
8525
  fi
8526
  ;;
8527
 
8528
amigaos*)
8529
  case $host_cpu in
8530
  powerpc)
8531
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8532
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8533
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8534
    ;;
8535
  m68k)
8536
    library_names_spec='$libname.ixlibrary $libname.a'
8537
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8538
    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'
8539
    ;;
8540
  esac
8541
  ;;
8542
 
8543
beos*)
8544
  library_names_spec='${libname}${shared_ext}'
8545
  dynamic_linker="$host_os ld.so"
8546
  shlibpath_var=LIBRARY_PATH
8547
  ;;
8548
 
8549
bsdi[45]*)
8550
  version_type=linux
8551
  need_version=no
8552
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8553
  soname_spec='${libname}${release}${shared_ext}$major'
8554
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8555
  shlibpath_var=LD_LIBRARY_PATH
8556
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8557
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8558
  # the default ld.so.conf also contains /usr/contrib/lib and
8559
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8560
  # libtool to hard-code these into programs
8561
  ;;
8562
 
8563
cygwin* | mingw* | pw32* | cegcc*)
8564
  version_type=windows
8565
  shrext_cmds=".dll"
8566
  need_version=no
8567
  need_lib_prefix=no
8568
 
8569
  case $GCC,$host_os in
8570
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8571
    library_names_spec='$libname.dll.a'
8572
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8573
    postinstall_cmds='base_file=`basename \${file}`~
8574
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8575
      dldir=$destdir/`dirname \$dlpath`~
8576
      test -d \$dldir || mkdir -p \$dldir~
8577
      $install_prog $dir/$dlname \$dldir/$dlname~
8578
      chmod a+x \$dldir/$dlname~
8579
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8580
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8581
      fi'
8582
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8583
      dlpath=$dir/\$dldll~
8584
       $RM \$dlpath'
8585
    shlibpath_overrides_runpath=yes
8586
 
8587
    case $host_os in
8588
    cygwin*)
8589
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8590
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8591
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8592
      ;;
8593
    mingw* | cegcc*)
8594
      # MinGW DLLs use traditional 'lib' prefix
8595
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8596
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8597
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8598
        # It is most probably a Windows format PATH printed by
8599
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8600
        # path with ; separators, and with drive letters. We can handle the
8601
        # drive letters (cygwin fileutils understands them), so leave them,
8602
        # especially as we might pass files found there to a mingw objdump,
8603
        # which wouldn't understand a cygwinified path. Ahh.
8604
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8605
      else
8606
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8607
      fi
8608
      ;;
8609
    pw32*)
8610
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8611
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8612
      ;;
8613
    esac
8614
    ;;
8615
 
8616
  *)
8617
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8618
    ;;
8619
  esac
8620
  dynamic_linker='Win32 ld.exe'
8621
  # FIXME: first we should search . and the directory the executable is in
8622
  shlibpath_var=PATH
8623
  ;;
8624
 
8625
darwin* | rhapsody*)
8626
  dynamic_linker="$host_os dyld"
8627
  version_type=darwin
8628
  need_lib_prefix=no
8629
  need_version=no
8630
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8631
  soname_spec='${libname}${release}${major}$shared_ext'
8632
  shlibpath_overrides_runpath=yes
8633
  shlibpath_var=DYLD_LIBRARY_PATH
8634
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8635
 
8636
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8637
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8638
  ;;
8639
 
8640
dgux*)
8641
  version_type=linux
8642
  need_lib_prefix=no
8643
  need_version=no
8644
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8645
  soname_spec='${libname}${release}${shared_ext}$major'
8646
  shlibpath_var=LD_LIBRARY_PATH
8647
  ;;
8648
 
8649
freebsd1*)
8650
  dynamic_linker=no
8651
  ;;
8652
 
8653
freebsd* | dragonfly*)
8654
  # DragonFly does not have aout.  When/if they implement a new
8655
  # versioning mechanism, adjust this.
8656
  if test -x /usr/bin/objformat; then
8657
    objformat=`/usr/bin/objformat`
8658
  else
8659
    case $host_os in
8660
    freebsd[123]*) objformat=aout ;;
8661
    *) objformat=elf ;;
8662
    esac
8663
  fi
8664
  version_type=freebsd-$objformat
8665
  case $version_type in
8666
    freebsd-elf*)
8667
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8668
      need_version=no
8669
      need_lib_prefix=no
8670
      ;;
8671
    freebsd-*)
8672
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8673
      need_version=yes
8674
      ;;
8675
  esac
8676
  shlibpath_var=LD_LIBRARY_PATH
8677
  case $host_os in
8678
  freebsd2*)
8679
    shlibpath_overrides_runpath=yes
8680
    ;;
8681
  freebsd3.[01]* | freebsdelf3.[01]*)
8682
    shlibpath_overrides_runpath=yes
8683
    hardcode_into_libs=yes
8684
    ;;
8685
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8686
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8687
    shlibpath_overrides_runpath=no
8688
    hardcode_into_libs=yes
8689
    ;;
8690
  *) # from 4.6 on, and DragonFly
8691
    shlibpath_overrides_runpath=yes
8692
    hardcode_into_libs=yes
8693
    ;;
8694
  esac
8695
  ;;
8696
 
8697
gnu*)
8698
  version_type=linux
8699
  need_lib_prefix=no
8700
  need_version=no
8701
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8702
  soname_spec='${libname}${release}${shared_ext}$major'
8703
  shlibpath_var=LD_LIBRARY_PATH
8704
  hardcode_into_libs=yes
8705
  ;;
8706
 
8707
hpux9* | hpux10* | hpux11*)
8708
  # Give a soname corresponding to the major version so that dld.sl refuses to
8709
  # link against other versions.
8710
  version_type=sunos
8711
  need_lib_prefix=no
8712
  need_version=no
8713
  case $host_cpu in
8714
  ia64*)
8715
    shrext_cmds='.so'
8716
    hardcode_into_libs=yes
8717
    dynamic_linker="$host_os dld.so"
8718
    shlibpath_var=LD_LIBRARY_PATH
8719
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8720
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8721
    soname_spec='${libname}${release}${shared_ext}$major'
8722
    if test "X$HPUX_IA64_MODE" = X32; then
8723
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8724
    else
8725
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8726
    fi
8727
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8728
    ;;
8729
  hppa*64*)
8730
    shrext_cmds='.sl'
8731
    hardcode_into_libs=yes
8732
    dynamic_linker="$host_os dld.sl"
8733
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8734
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8735
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8736
    soname_spec='${libname}${release}${shared_ext}$major'
8737
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8738
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8739
    ;;
8740
  *)
8741
    shrext_cmds='.sl'
8742
    dynamic_linker="$host_os dld.sl"
8743
    shlibpath_var=SHLIB_PATH
8744
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8745
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746
    soname_spec='${libname}${release}${shared_ext}$major'
8747
    ;;
8748
  esac
8749
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8750
  postinstall_cmds='chmod 555 $lib'
8751
  ;;
8752
 
8753
interix[3-9]*)
8754
  version_type=linux
8755
  need_lib_prefix=no
8756
  need_version=no
8757
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8758
  soname_spec='${libname}${release}${shared_ext}$major'
8759
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8760
  shlibpath_var=LD_LIBRARY_PATH
8761
  shlibpath_overrides_runpath=no
8762
  hardcode_into_libs=yes
8763
  ;;
8764
 
8765
irix5* | irix6* | nonstopux*)
8766
  case $host_os in
8767
    nonstopux*) version_type=nonstopux ;;
8768
    *)
8769
        if test "$lt_cv_prog_gnu_ld" = yes; then
8770
                version_type=linux
8771
        else
8772
                version_type=irix
8773
        fi ;;
8774
  esac
8775
  need_lib_prefix=no
8776
  need_version=no
8777
  soname_spec='${libname}${release}${shared_ext}$major'
8778
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8779
  case $host_os in
8780
  irix5* | nonstopux*)
8781
    libsuff= shlibsuff=
8782
    ;;
8783
  *)
8784
    case $LD in # libtool.m4 will add one of these switches to LD
8785
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8786
      libsuff= shlibsuff= libmagic=32-bit;;
8787
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8788
      libsuff=32 shlibsuff=N32 libmagic=N32;;
8789
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8790
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8791
    *) libsuff= shlibsuff= libmagic=never-match;;
8792
    esac
8793
    ;;
8794
  esac
8795
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8796
  shlibpath_overrides_runpath=no
8797
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8798
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8799
  hardcode_into_libs=yes
8800
  ;;
8801
 
8802
# No shared lib support for Linux oldld, aout, or coff.
8803
linux*oldld* | linux*aout* | linux*coff*)
8804
  dynamic_linker=no
8805
  ;;
8806
 
8807
# This must be Linux ELF.
8808
linux* | k*bsd*-gnu)
8809
  version_type=linux
8810
  need_lib_prefix=no
8811
  need_version=no
8812
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813
  soname_spec='${libname}${release}${shared_ext}$major'
8814
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8815
  shlibpath_var=LD_LIBRARY_PATH
8816
  shlibpath_overrides_runpath=no
8817
  # Some binutils ld are patched to set DT_RUNPATH
8818
  save_LDFLAGS=$LDFLAGS
8819
  save_libdir=$libdir
8820
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8821
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8822 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 90 jeremybenn
/* end confdefs.h.  */
8824
 
8825
int
8826
main ()
8827
{
8828
 
8829
  ;
8830
  return 0;
8831
}
8832
_ACEOF
8833 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8834
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8835 90 jeremybenn
  shlibpath_overrides_runpath=yes
8836
fi
8837
fi
8838 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8839
    conftest$ac_exeext conftest.$ac_ext
8840 90 jeremybenn
  LDFLAGS=$save_LDFLAGS
8841
  libdir=$save_libdir
8842
 
8843
  # This implies no fast_install, which is unacceptable.
8844
  # Some rework will be needed to allow for fast_install
8845
  # before this can be enabled.
8846
  hardcode_into_libs=yes
8847
 
8848
  # Append ld.so.conf contents to the search path
8849
  if test -f /etc/ld.so.conf; then
8850
    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' ' '`
8851 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8852 90 jeremybenn
  fi
8853
 
8854
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8855
  # powerpc, because MkLinux only supported shared libraries with the
8856
  # GNU dynamic linker.  Since this was broken with cross compilers,
8857
  # most powerpc-linux boxes support dynamic linking these days and
8858
  # people can always --disable-shared, the test was removed, and we
8859
  # assume the GNU/Linux dynamic linker is in use.
8860
  dynamic_linker='GNU/Linux ld.so'
8861
  ;;
8862
 
8863 93 jeremybenn
netbsdelf*-gnu)
8864
  version_type=linux
8865
  need_lib_prefix=no
8866
  need_version=no
8867
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8868
  soname_spec='${libname}${release}${shared_ext}$major'
8869
  shlibpath_var=LD_LIBRARY_PATH
8870
  shlibpath_overrides_runpath=no
8871
  hardcode_into_libs=yes
8872
  dynamic_linker='NetBSD ld.elf_so'
8873
  ;;
8874
 
8875 90 jeremybenn
netbsd*)
8876
  version_type=sunos
8877
  need_lib_prefix=no
8878
  need_version=no
8879
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8880
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8881
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8882
    dynamic_linker='NetBSD (a.out) ld.so'
8883
  else
8884
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8885
    soname_spec='${libname}${release}${shared_ext}$major'
8886
    dynamic_linker='NetBSD ld.elf_so'
8887
  fi
8888
  shlibpath_var=LD_LIBRARY_PATH
8889
  shlibpath_overrides_runpath=yes
8890
  hardcode_into_libs=yes
8891
  ;;
8892
 
8893
newsos6)
8894
  version_type=linux
8895
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896
  shlibpath_var=LD_LIBRARY_PATH
8897
  shlibpath_overrides_runpath=yes
8898
  ;;
8899
 
8900
*nto* | *qnx*)
8901
  version_type=qnx
8902
  need_lib_prefix=no
8903
  need_version=no
8904
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905
  soname_spec='${libname}${release}${shared_ext}$major'
8906
  shlibpath_var=LD_LIBRARY_PATH
8907
  shlibpath_overrides_runpath=no
8908
  hardcode_into_libs=yes
8909
  dynamic_linker='ldqnx.so'
8910
  ;;
8911
 
8912
openbsd*)
8913
  version_type=sunos
8914
  sys_lib_dlsearch_path_spec="/usr/lib"
8915
  need_lib_prefix=no
8916
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8917
  case $host_os in
8918
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8919
    *)                          need_version=no  ;;
8920
  esac
8921
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8922
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8923
  shlibpath_var=LD_LIBRARY_PATH
8924
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8925
    case $host_os in
8926
      openbsd2.[89] | openbsd2.[89].*)
8927
        shlibpath_overrides_runpath=no
8928
        ;;
8929
      *)
8930
        shlibpath_overrides_runpath=yes
8931
        ;;
8932
      esac
8933
  else
8934
    shlibpath_overrides_runpath=yes
8935
  fi
8936
  ;;
8937
 
8938
os2*)
8939
  libname_spec='$name'
8940
  shrext_cmds=".dll"
8941
  need_lib_prefix=no
8942
  library_names_spec='$libname${shared_ext} $libname.a'
8943
  dynamic_linker='OS/2 ld.exe'
8944
  shlibpath_var=LIBPATH
8945
  ;;
8946
 
8947
osf3* | osf4* | osf5*)
8948
  version_type=osf
8949
  need_lib_prefix=no
8950
  need_version=no
8951
  soname_spec='${libname}${release}${shared_ext}$major'
8952
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953
  shlibpath_var=LD_LIBRARY_PATH
8954
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8955
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8956
  ;;
8957
 
8958
rdos*)
8959
  dynamic_linker=no
8960
  ;;
8961
 
8962
solaris*)
8963
  version_type=linux
8964
  need_lib_prefix=no
8965
  need_version=no
8966
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967
  soname_spec='${libname}${release}${shared_ext}$major'
8968
  shlibpath_var=LD_LIBRARY_PATH
8969
  shlibpath_overrides_runpath=yes
8970
  hardcode_into_libs=yes
8971
  # ldd complains unless libraries are executable
8972
  postinstall_cmds='chmod +x $lib'
8973
  ;;
8974
 
8975
sunos4*)
8976
  version_type=sunos
8977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8978
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8979
  shlibpath_var=LD_LIBRARY_PATH
8980
  shlibpath_overrides_runpath=yes
8981
  if test "$with_gnu_ld" = yes; then
8982
    need_lib_prefix=no
8983
  fi
8984
  need_version=yes
8985
  ;;
8986
 
8987
sysv4 | sysv4.3*)
8988
  version_type=linux
8989
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990
  soname_spec='${libname}${release}${shared_ext}$major'
8991
  shlibpath_var=LD_LIBRARY_PATH
8992
  case $host_vendor in
8993
    sni)
8994
      shlibpath_overrides_runpath=no
8995
      need_lib_prefix=no
8996
      runpath_var=LD_RUN_PATH
8997
      ;;
8998
    siemens)
8999
      need_lib_prefix=no
9000
      ;;
9001
    motorola)
9002
      need_lib_prefix=no
9003
      need_version=no
9004
      shlibpath_overrides_runpath=no
9005
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9006
      ;;
9007
  esac
9008
  ;;
9009
 
9010
sysv4*MP*)
9011
  if test -d /usr/nec ;then
9012
    version_type=linux
9013
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9014
    soname_spec='$libname${shared_ext}.$major'
9015
    shlibpath_var=LD_LIBRARY_PATH
9016
  fi
9017
  ;;
9018
 
9019
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9020
  version_type=freebsd-elf
9021
  need_lib_prefix=no
9022
  need_version=no
9023
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9024
  soname_spec='${libname}${release}${shared_ext}$major'
9025
  shlibpath_var=LD_LIBRARY_PATH
9026
  shlibpath_overrides_runpath=yes
9027
  hardcode_into_libs=yes
9028
  if test "$with_gnu_ld" = yes; then
9029
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9030
  else
9031
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9032
    case $host_os in
9033
      sco3.2v5*)
9034
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9035
        ;;
9036
    esac
9037
  fi
9038
  sys_lib_dlsearch_path_spec='/usr/lib'
9039
  ;;
9040
 
9041
tpf*)
9042
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9043
  version_type=linux
9044
  need_lib_prefix=no
9045
  need_version=no
9046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047
  shlibpath_var=LD_LIBRARY_PATH
9048
  shlibpath_overrides_runpath=no
9049
  hardcode_into_libs=yes
9050
  ;;
9051
 
9052
uts4*)
9053
  version_type=linux
9054
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055
  soname_spec='${libname}${release}${shared_ext}$major'
9056
  shlibpath_var=LD_LIBRARY_PATH
9057
  ;;
9058
 
9059
*)
9060
  dynamic_linker=no
9061
  ;;
9062
esac
9063 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9064 90 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9065
test "$dynamic_linker" = no && can_build_shared=no
9066
 
9067
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9068
if test "$GCC" = yes; then
9069
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9070
fi
9071
 
9072
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9073
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9074
fi
9075
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9076
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9077
fi
9078
 
9079
 
9080
 
9081
 
9082
 
9083
 
9084
 
9085
 
9086
 
9087
 
9088
 
9089
 
9090
 
9091
 
9092
 
9093
 
9094
 
9095
 
9096
 
9097
 
9098
 
9099
 
9100
 
9101
 
9102
 
9103
 
9104
 
9105
 
9106
 
9107
 
9108
 
9109
 
9110
 
9111
 
9112
 
9113
 
9114
 
9115
 
9116
 
9117
 
9118
 
9119
 
9120
 
9121
 
9122
 
9123
 
9124
 
9125
 
9126
 
9127
 
9128
 
9129
 
9130
 
9131
 
9132
 
9133
 
9134
 
9135
 
9136
 
9137
 
9138
 
9139
 
9140
 
9141
 
9142
 
9143
 
9144
 
9145
 
9146
 
9147
 
9148
 
9149
 
9150
 
9151
 
9152
 
9153
 
9154
 
9155
 
9156
 
9157
 
9158
 
9159
 
9160
 
9161
 
9162
 
9163
 
9164
 
9165 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9166 90 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9167
hardcode_action=
9168
if test -n "$hardcode_libdir_flag_spec" ||
9169
   test -n "$runpath_var" ||
9170
   test "X$hardcode_automatic" = "Xyes" ; then
9171
 
9172
  # We can hardcode non-existent directories.
9173
  if test "$hardcode_direct" != no &&
9174
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9175
     # have to relink, otherwise we might link with an installed library
9176
     # when we should be linking with a yet-to-be-installed one
9177
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9178
     test "$hardcode_minus_L" != no; then
9179
    # Linking always hardcodes the temporary library directory.
9180
    hardcode_action=relink
9181
  else
9182
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9183
    hardcode_action=immediate
9184
  fi
9185
else
9186
  # We cannot hardcode anything, or else we can only hardcode existing
9187
  # directories.
9188
  hardcode_action=unsupported
9189
fi
9190 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9191 90 jeremybenn
$as_echo "$hardcode_action" >&6; }
9192
 
9193
if test "$hardcode_action" = relink ||
9194
   test "$inherit_rpath" = yes; then
9195
  # Fast installation is not supported
9196
  enable_fast_install=no
9197
elif test "$shlibpath_overrides_runpath" = yes ||
9198
     test "$enable_shared" = no; then
9199
  # Fast installation is not necessary
9200
  enable_fast_install=needless
9201
fi
9202
 
9203
 
9204
 
9205
 
9206
 
9207
 
9208
  if test "x$enable_dlopen" != xyes; then
9209
  enable_dlopen=unknown
9210
  enable_dlopen_self=unknown
9211
  enable_dlopen_self_static=unknown
9212
else
9213
  lt_cv_dlopen=no
9214
  lt_cv_dlopen_libs=
9215
 
9216
  case $host_os in
9217
  beos*)
9218
    lt_cv_dlopen="load_add_on"
9219
    lt_cv_dlopen_libs=
9220
    lt_cv_dlopen_self=yes
9221
    ;;
9222
 
9223
  mingw* | pw32* | cegcc*)
9224
    lt_cv_dlopen="LoadLibrary"
9225
    lt_cv_dlopen_libs=
9226
    ;;
9227
 
9228
  cygwin*)
9229
    lt_cv_dlopen="dlopen"
9230
    lt_cv_dlopen_libs=
9231
    ;;
9232
 
9233
  darwin*)
9234
  # if libdl is installed we need to link against it
9235 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9236 90 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9237 346 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9238 90 jeremybenn
  $as_echo_n "(cached) " >&6
9239
else
9240
  ac_check_lib_save_LIBS=$LIBS
9241
LIBS="-ldl  $LIBS"
9242 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 90 jeremybenn
/* end confdefs.h.  */
9244
 
9245
/* Override any GCC internal prototype to avoid an error.
9246
   Use char because int might match the return type of a GCC
9247
   builtin and then its argument prototype would still apply.  */
9248
#ifdef __cplusplus
9249
extern "C"
9250
#endif
9251
char dlopen ();
9252
int
9253
main ()
9254
{
9255
return dlopen ();
9256
  ;
9257
  return 0;
9258
}
9259
_ACEOF
9260 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9261 90 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9262
else
9263 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9264 90 jeremybenn
fi
9265 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9266
    conftest$ac_exeext conftest.$ac_ext
9267 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9268
fi
9269 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9270 90 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9271 346 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9272 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9273
else
9274
 
9275
    lt_cv_dlopen="dyld"
9276
    lt_cv_dlopen_libs=
9277
    lt_cv_dlopen_self=yes
9278
 
9279
fi
9280
 
9281
    ;;
9282
 
9283
  *)
9284 346 jeremybenn
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9285
if test "x$ac_cv_func_shl_load" = x""yes; then :
9286 90 jeremybenn
  lt_cv_dlopen="shl_load"
9287
else
9288 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9289 90 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9290 346 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9291 90 jeremybenn
  $as_echo_n "(cached) " >&6
9292
else
9293
  ac_check_lib_save_LIBS=$LIBS
9294
LIBS="-ldld  $LIBS"
9295 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 90 jeremybenn
/* end confdefs.h.  */
9297
 
9298
/* Override any GCC internal prototype to avoid an error.
9299
   Use char because int might match the return type of a GCC
9300
   builtin and then its argument prototype would still apply.  */
9301
#ifdef __cplusplus
9302
extern "C"
9303
#endif
9304
char shl_load ();
9305
int
9306
main ()
9307
{
9308
return shl_load ();
9309
  ;
9310
  return 0;
9311
}
9312
_ACEOF
9313 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9314 90 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9315
else
9316 346 jeremybenn
  ac_cv_lib_dld_shl_load=no
9317 90 jeremybenn
fi
9318 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9319
    conftest$ac_exeext conftest.$ac_ext
9320 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9321
fi
9322 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9323 90 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9324 346 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9325 90 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9326
else
9327 346 jeremybenn
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9328
if test "x$ac_cv_func_dlopen" = x""yes; then :
9329 90 jeremybenn
  lt_cv_dlopen="dlopen"
9330
else
9331 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9332 90 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9333 346 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9334 90 jeremybenn
  $as_echo_n "(cached) " >&6
9335
else
9336
  ac_check_lib_save_LIBS=$LIBS
9337
LIBS="-ldl  $LIBS"
9338 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 90 jeremybenn
/* end confdefs.h.  */
9340
 
9341
/* Override any GCC internal prototype to avoid an error.
9342
   Use char because int might match the return type of a GCC
9343
   builtin and then its argument prototype would still apply.  */
9344
#ifdef __cplusplus
9345
extern "C"
9346
#endif
9347
char dlopen ();
9348
int
9349
main ()
9350
{
9351
return dlopen ();
9352
  ;
9353
  return 0;
9354
}
9355
_ACEOF
9356 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9357 90 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9358
else
9359 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9360 90 jeremybenn
fi
9361 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9362
    conftest$ac_exeext conftest.$ac_ext
9363 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9364
fi
9365 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9366 90 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9367 346 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9368 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9369
else
9370 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9371 90 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9372 346 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9373 90 jeremybenn
  $as_echo_n "(cached) " >&6
9374
else
9375
  ac_check_lib_save_LIBS=$LIBS
9376
LIBS="-lsvld  $LIBS"
9377 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 90 jeremybenn
/* end confdefs.h.  */
9379
 
9380
/* Override any GCC internal prototype to avoid an error.
9381
   Use char because int might match the return type of a GCC
9382
   builtin and then its argument prototype would still apply.  */
9383
#ifdef __cplusplus
9384
extern "C"
9385
#endif
9386
char dlopen ();
9387
int
9388
main ()
9389
{
9390
return dlopen ();
9391
  ;
9392
  return 0;
9393
}
9394
_ACEOF
9395 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9396 90 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9397
else
9398 346 jeremybenn
  ac_cv_lib_svld_dlopen=no
9399 90 jeremybenn
fi
9400 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9401
    conftest$ac_exeext conftest.$ac_ext
9402 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9403
fi
9404 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9405 90 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9406 346 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9407 90 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9408
else
9409 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9410 90 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9411 346 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9412 90 jeremybenn
  $as_echo_n "(cached) " >&6
9413
else
9414
  ac_check_lib_save_LIBS=$LIBS
9415
LIBS="-ldld  $LIBS"
9416 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 90 jeremybenn
/* end confdefs.h.  */
9418
 
9419
/* Override any GCC internal prototype to avoid an error.
9420
   Use char because int might match the return type of a GCC
9421
   builtin and then its argument prototype would still apply.  */
9422
#ifdef __cplusplus
9423
extern "C"
9424
#endif
9425
char dld_link ();
9426
int
9427
main ()
9428
{
9429
return dld_link ();
9430
  ;
9431
  return 0;
9432
}
9433
_ACEOF
9434 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9435 90 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9436
else
9437 346 jeremybenn
  ac_cv_lib_dld_dld_link=no
9438 90 jeremybenn
fi
9439 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9440
    conftest$ac_exeext conftest.$ac_ext
9441 90 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9442
fi
9443 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9444 90 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9445 346 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9446 90 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9447
fi
9448
 
9449
 
9450
fi
9451
 
9452
 
9453
fi
9454
 
9455
 
9456
fi
9457
 
9458
 
9459
fi
9460
 
9461
 
9462
fi
9463
 
9464
    ;;
9465
  esac
9466
 
9467
  if test "x$lt_cv_dlopen" != xno; then
9468
    enable_dlopen=yes
9469
  else
9470
    enable_dlopen=no
9471
  fi
9472
 
9473
  case $lt_cv_dlopen in
9474
  dlopen)
9475
    save_CPPFLAGS="$CPPFLAGS"
9476
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9477
 
9478
    save_LDFLAGS="$LDFLAGS"
9479
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9480
 
9481
    save_LIBS="$LIBS"
9482
    LIBS="$lt_cv_dlopen_libs $LIBS"
9483
 
9484 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9485 90 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9486 346 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then :
9487 90 jeremybenn
  $as_echo_n "(cached) " >&6
9488
else
9489
          if test "$cross_compiling" = yes; then :
9490
  lt_cv_dlopen_self=cross
9491
else
9492
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9493
  lt_status=$lt_dlunknown
9494
  cat > conftest.$ac_ext <<_LT_EOF
9495 460 jeremybenn
#line 9495 "configure"
9496 90 jeremybenn
#include "confdefs.h"
9497
 
9498
#if HAVE_DLFCN_H
9499
#include 
9500
#endif
9501
 
9502
#include 
9503
 
9504
#ifdef RTLD_GLOBAL
9505
#  define LT_DLGLOBAL           RTLD_GLOBAL
9506
#else
9507
#  ifdef DL_GLOBAL
9508
#    define LT_DLGLOBAL         DL_GLOBAL
9509
#  else
9510
#    define LT_DLGLOBAL         0
9511
#  endif
9512
#endif
9513
 
9514
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9515
   find out it does not work in some platform. */
9516
#ifndef LT_DLLAZY_OR_NOW
9517
#  ifdef RTLD_LAZY
9518
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9519
#  else
9520
#    ifdef DL_LAZY
9521
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9522
#    else
9523
#      ifdef RTLD_NOW
9524
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9525
#      else
9526
#        ifdef DL_NOW
9527
#          define LT_DLLAZY_OR_NOW      DL_NOW
9528
#        else
9529
#          define LT_DLLAZY_OR_NOW      0
9530
#        endif
9531
#      endif
9532
#    endif
9533
#  endif
9534
#endif
9535
 
9536
void fnord() { int i=42;}
9537
int main ()
9538
{
9539
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9540
  int status = $lt_dlunknown;
9541
 
9542
  if (self)
9543
    {
9544
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9545
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9546
      /* dlclose (self); */
9547
    }
9548
  else
9549
    puts (dlerror ());
9550
 
9551
  return status;
9552
}
9553
_LT_EOF
9554 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9555 90 jeremybenn
  (eval $ac_link) 2>&5
9556
  ac_status=$?
9557 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9558
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9559 90 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9560
    lt_status=$?
9561
    case x$lt_status in
9562
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9563
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9564
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9565
    esac
9566
  else :
9567
    # compilation failed
9568
    lt_cv_dlopen_self=no
9569
  fi
9570
fi
9571
rm -fr conftest*
9572
 
9573
 
9574
fi
9575 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9576 90 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
9577
 
9578
    if test "x$lt_cv_dlopen_self" = xyes; then
9579
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9580 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9581 90 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9582 346 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then :
9583 90 jeremybenn
  $as_echo_n "(cached) " >&6
9584
else
9585
          if test "$cross_compiling" = yes; then :
9586
  lt_cv_dlopen_self_static=cross
9587
else
9588
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9589
  lt_status=$lt_dlunknown
9590
  cat > conftest.$ac_ext <<_LT_EOF
9591 460 jeremybenn
#line 9591 "configure"
9592 90 jeremybenn
#include "confdefs.h"
9593
 
9594
#if HAVE_DLFCN_H
9595
#include 
9596
#endif
9597
 
9598
#include 
9599
 
9600
#ifdef RTLD_GLOBAL
9601
#  define LT_DLGLOBAL           RTLD_GLOBAL
9602
#else
9603
#  ifdef DL_GLOBAL
9604
#    define LT_DLGLOBAL         DL_GLOBAL
9605
#  else
9606
#    define LT_DLGLOBAL         0
9607
#  endif
9608
#endif
9609
 
9610
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9611
   find out it does not work in some platform. */
9612
#ifndef LT_DLLAZY_OR_NOW
9613
#  ifdef RTLD_LAZY
9614
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9615
#  else
9616
#    ifdef DL_LAZY
9617
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9618
#    else
9619
#      ifdef RTLD_NOW
9620
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9621
#      else
9622
#        ifdef DL_NOW
9623
#          define LT_DLLAZY_OR_NOW      DL_NOW
9624
#        else
9625
#          define LT_DLLAZY_OR_NOW      0
9626
#        endif
9627
#      endif
9628
#    endif
9629
#  endif
9630
#endif
9631
 
9632
void fnord() { int i=42;}
9633
int main ()
9634
{
9635
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9636
  int status = $lt_dlunknown;
9637
 
9638
  if (self)
9639
    {
9640
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9641
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9642
      /* dlclose (self); */
9643
    }
9644
  else
9645
    puts (dlerror ());
9646
 
9647
  return status;
9648
}
9649
_LT_EOF
9650 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9651 90 jeremybenn
  (eval $ac_link) 2>&5
9652
  ac_status=$?
9653 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9654
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9655 90 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9656
    lt_status=$?
9657
    case x$lt_status in
9658
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9659
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9660
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9661
    esac
9662
  else :
9663
    # compilation failed
9664
    lt_cv_dlopen_self_static=no
9665
  fi
9666
fi
9667
rm -fr conftest*
9668
 
9669
 
9670
fi
9671 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9672 90 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
9673
    fi
9674
 
9675
    CPPFLAGS="$save_CPPFLAGS"
9676
    LDFLAGS="$save_LDFLAGS"
9677
    LIBS="$save_LIBS"
9678
    ;;
9679
  esac
9680
 
9681
  case $lt_cv_dlopen_self in
9682
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9683
  *) enable_dlopen_self=unknown ;;
9684
  esac
9685
 
9686
  case $lt_cv_dlopen_self_static in
9687
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9688
  *) enable_dlopen_self_static=unknown ;;
9689
  esac
9690
fi
9691
 
9692
 
9693
 
9694
 
9695
 
9696
 
9697
 
9698
 
9699
 
9700
 
9701
 
9702
 
9703
 
9704
 
9705
 
9706
 
9707
 
9708
striplib=
9709
old_striplib=
9710 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9711 90 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9712
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9713
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9714
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9715 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9716 90 jeremybenn
$as_echo "yes" >&6; }
9717
else
9718
# FIXME - insert some real tests, host_os isn't really good enough
9719
  case $host_os in
9720
  darwin*)
9721
    if test -n "$STRIP" ; then
9722
      striplib="$STRIP -x"
9723
      old_striplib="$STRIP -S"
9724 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9725 90 jeremybenn
$as_echo "yes" >&6; }
9726
    else
9727 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 90 jeremybenn
$as_echo "no" >&6; }
9729
    fi
9730
    ;;
9731
  *)
9732 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 90 jeremybenn
$as_echo "no" >&6; }
9734
    ;;
9735
  esac
9736
fi
9737
 
9738
 
9739
 
9740
 
9741
 
9742
 
9743
 
9744
 
9745
 
9746
 
9747
 
9748
 
9749
  # Report which library types will actually be built
9750 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9751 90 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9752 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9753 90 jeremybenn
$as_echo "$can_build_shared" >&6; }
9754
 
9755 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9756 90 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
9757
  test "$can_build_shared" = "no" && enable_shared=no
9758
 
9759
  # On AIX, shared libraries and static libraries use the same namespace, and
9760
  # are all built from PIC.
9761
  case $host_os in
9762
  aix3*)
9763
    test "$enable_shared" = yes && enable_static=no
9764
    if test -n "$RANLIB"; then
9765
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
9766
      postinstall_cmds='$RANLIB $lib'
9767
    fi
9768
    ;;
9769
 
9770
  aix[4-9]*)
9771
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9772
      test "$enable_shared" = yes && enable_static=no
9773
    fi
9774
    ;;
9775
  esac
9776 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9777 90 jeremybenn
$as_echo "$enable_shared" >&6; }
9778
 
9779 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9780 90 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
9781
  # Make sure either enable_shared or enable_static is yes.
9782
  test "$enable_shared" = yes || enable_static=yes
9783 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9784 90 jeremybenn
$as_echo "$enable_static" >&6; }
9785
 
9786
 
9787
 
9788
 
9789
fi
9790
ac_ext=c
9791
ac_cpp='$CPP $CPPFLAGS'
9792
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9793
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9794
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9795
 
9796
CC="$lt_save_CC"
9797
 
9798
 
9799
 
9800
 
9801
 
9802
 
9803
 
9804
 
9805
 
9806
 
9807
 
9808
 
9809
 
9810
        ac_config_commands="$ac_config_commands libtool"
9811
 
9812
 
9813
 
9814
 
9815
# Only expand once:
9816
 
9817
 
9818
am__api_version='1.11'
9819
 
9820
# Find a good install program.  We prefer a C program (faster),
9821
# so one script is as good as another.  But avoid the broken or
9822
# incompatible versions:
9823
# SysV /etc/install, /usr/sbin/install
9824
# SunOS /usr/etc/install
9825
# IRIX /sbin/install
9826
# AIX /bin/install
9827
# AmigaOS /C/install, which installs bootblocks on floppy discs
9828
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9829
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9830
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9831
# OS/2's system install, which has a completely different semantic
9832
# ./install, which can be erroneously created by make from ./install.sh.
9833
# Reject install programs that cannot install multiple files.
9834 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9835 90 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
9836
if test -z "$INSTALL"; then
9837 346 jeremybenn
if test "${ac_cv_path_install+set}" = set; then :
9838 90 jeremybenn
  $as_echo_n "(cached) " >&6
9839
else
9840
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9841
for as_dir in $PATH
9842
do
9843
  IFS=$as_save_IFS
9844
  test -z "$as_dir" && as_dir=.
9845 346 jeremybenn
    # Account for people who put trailing slashes in PATH elements.
9846
case $as_dir/ in #((
9847
  ./ | .// | /[cC]/* | \
9848 90 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9849 346 jeremybenn
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9850 90 jeremybenn
  /usr/ucb/* ) ;;
9851
  *)
9852
    # OSF1 and SCO ODT 3.0 have their own names for install.
9853
    # Don't use installbsd from OSF since it installs stuff as root
9854
    # by default.
9855
    for ac_prog in ginstall scoinst install; do
9856
      for ac_exec_ext in '' $ac_executable_extensions; do
9857
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9858
          if test $ac_prog = install &&
9859
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9860
            # AIX install.  It has an incompatible calling convention.
9861
            :
9862
          elif test $ac_prog = install &&
9863
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9864
            # program-specific install script used by HP pwplus--don't use.
9865
            :
9866
          else
9867
            rm -rf conftest.one conftest.two conftest.dir
9868
            echo one > conftest.one
9869
            echo two > conftest.two
9870
            mkdir conftest.dir
9871
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9872
              test -s conftest.one && test -s conftest.two &&
9873
              test -s conftest.dir/conftest.one &&
9874
              test -s conftest.dir/conftest.two
9875
            then
9876
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9877
              break 3
9878
            fi
9879
          fi
9880
        fi
9881
      done
9882
    done
9883
    ;;
9884
esac
9885
 
9886 346 jeremybenn
  done
9887 90 jeremybenn
IFS=$as_save_IFS
9888
 
9889
rm -rf conftest.one conftest.two conftest.dir
9890
 
9891
fi
9892
  if test "${ac_cv_path_install+set}" = set; then
9893
    INSTALL=$ac_cv_path_install
9894
  else
9895
    # As a last resort, use the slow shell script.  Don't cache a
9896
    # value for INSTALL within a source directory, because that will
9897
    # break other packages using the cache if that directory is
9898
    # removed, or if the value is a relative name.
9899
    INSTALL=$ac_install_sh
9900
  fi
9901
fi
9902 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9903 90 jeremybenn
$as_echo "$INSTALL" >&6; }
9904
 
9905
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9906
# It thinks the first close brace ends the variable substitution.
9907
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9908
 
9909
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9910
 
9911
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9912
 
9913 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
9914 90 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
9915
# Just in case
9916
sleep 1
9917
echo timestamp > conftest.file
9918
# Reject unsafe characters in $srcdir or the absolute working directory
9919
# name.  Accept space and tab only in the latter.
9920
am_lf='
9921
'
9922
case `pwd` in
9923
  *[\\\"\#\$\&\'\`$am_lf]*)
9924 346 jeremybenn
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
9925 90 jeremybenn
esac
9926
case $srcdir in
9927
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
9928 346 jeremybenn
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
9929 90 jeremybenn
esac
9930
 
9931
# Do `set' in a subshell so we don't clobber the current shell's
9932
# arguments.  Must try -L first in case configure is actually a
9933
# symlink; some systems play weird games with the mod time of symlinks
9934
# (eg FreeBSD returns the mod time of the symlink's containing
9935
# directory).
9936
if (
9937
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9938
   if test "$*" = "X"; then
9939
      # -L didn't work.
9940
      set X `ls -t "$srcdir/configure" conftest.file`
9941
   fi
9942
   rm -f conftest.file
9943
   if test "$*" != "X $srcdir/configure conftest.file" \
9944
      && test "$*" != "X conftest.file $srcdir/configure"; then
9945
 
9946
      # If neither matched, then we have a broken ls.  This can happen
9947
      # if, for instance, CONFIG_SHELL is bash and it inherits a
9948
      # broken ls alias from the environment.  This has actually
9949
      # happened.  Such a system could not be considered "sane".
9950 346 jeremybenn
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
9951
alias in your environment" "$LINENO" 5
9952 90 jeremybenn
   fi
9953
 
9954
   test "$2" = conftest.file
9955
   )
9956
then
9957
   # Ok.
9958
   :
9959
else
9960 346 jeremybenn
   as_fn_error "newly created file is older than distributed files!
9961
Check your system clock" "$LINENO" 5
9962 90 jeremybenn
fi
9963 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9964 90 jeremybenn
$as_echo "yes" >&6; }
9965
test "$program_prefix" != NONE &&
9966
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
9967
# Use a double $ so make ignores it.
9968
test "$program_suffix" != NONE &&
9969
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
9970
# Double any \ or $.
9971
# By default was `s,x,x', remove it if useless.
9972
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
9973
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
9974
 
9975
# expand $ac_aux_dir to an absolute path
9976
am_aux_dir=`cd $ac_aux_dir && pwd`
9977
 
9978
if test x"${MISSING+set}" != xset; then
9979
  case $am_aux_dir in
9980
  *\ * | *\     *)
9981
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9982
  *)
9983
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
9984
  esac
9985
fi
9986
# Use eval to expand $SHELL
9987
if eval "$MISSING --run true"; then
9988
  am_missing_run="$MISSING --run "
9989
else
9990
  am_missing_run=
9991 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
9992 90 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
9993
fi
9994
 
9995
if test x"${install_sh}" != xset; then
9996
  case $am_aux_dir in
9997
  *\ * | *\     *)
9998
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9999
  *)
10000
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10001
  esac
10002
fi
10003
 
10004
# Installed binaries are usually stripped using `strip' when the user
10005
# run `make install-strip'.  However `strip' might not be the right
10006
# tool to use in cross-compilation environments, therefore Automake
10007
# will honor the `STRIP' environment variable to overrule this program.
10008
if test "$cross_compiling" != no; then
10009
  if test -n "$ac_tool_prefix"; then
10010
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10011
set dummy ${ac_tool_prefix}strip; ac_word=$2
10012 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10014 346 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
10015 90 jeremybenn
  $as_echo_n "(cached) " >&6
10016
else
10017
  if test -n "$STRIP"; then
10018
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10019
else
10020
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021
for as_dir in $PATH
10022
do
10023
  IFS=$as_save_IFS
10024
  test -z "$as_dir" && as_dir=.
10025 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10026 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10028 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 90 jeremybenn
    break 2
10030
  fi
10031
done
10032 346 jeremybenn
  done
10033 90 jeremybenn
IFS=$as_save_IFS
10034
 
10035
fi
10036
fi
10037
STRIP=$ac_cv_prog_STRIP
10038
if test -n "$STRIP"; then
10039 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10040 90 jeremybenn
$as_echo "$STRIP" >&6; }
10041
else
10042 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 90 jeremybenn
$as_echo "no" >&6; }
10044
fi
10045
 
10046
 
10047
fi
10048
if test -z "$ac_cv_prog_STRIP"; then
10049
  ac_ct_STRIP=$STRIP
10050
  # Extract the first word of "strip", so it can be a program name with args.
10051
set dummy strip; ac_word=$2
10052 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10054 346 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10055 90 jeremybenn
  $as_echo_n "(cached) " >&6
10056
else
10057
  if test -n "$ac_ct_STRIP"; then
10058
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10059
else
10060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061
for as_dir in $PATH
10062
do
10063
  IFS=$as_save_IFS
10064
  test -z "$as_dir" && as_dir=.
10065 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10066 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10067
    ac_cv_prog_ac_ct_STRIP="strip"
10068 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 90 jeremybenn
    break 2
10070
  fi
10071
done
10072 346 jeremybenn
  done
10073 90 jeremybenn
IFS=$as_save_IFS
10074
 
10075
fi
10076
fi
10077
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10078
if test -n "$ac_ct_STRIP"; then
10079 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10080 90 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
10081
else
10082 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 90 jeremybenn
$as_echo "no" >&6; }
10084
fi
10085
 
10086
  if test "x$ac_ct_STRIP" = x; then
10087
    STRIP=":"
10088
  else
10089
    case $cross_compiling:$ac_tool_warned in
10090
yes:)
10091 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10092 90 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10093
ac_tool_warned=yes ;;
10094
esac
10095
    STRIP=$ac_ct_STRIP
10096
  fi
10097
else
10098
  STRIP="$ac_cv_prog_STRIP"
10099
fi
10100
 
10101
fi
10102
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10103
 
10104 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10105 90 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10106
if test -z "$MKDIR_P"; then
10107 346 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then :
10108 90 jeremybenn
  $as_echo_n "(cached) " >&6
10109
else
10110
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10112
do
10113
  IFS=$as_save_IFS
10114
  test -z "$as_dir" && as_dir=.
10115 346 jeremybenn
    for ac_prog in mkdir gmkdir; do
10116 90 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10117
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10118
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10119
             'mkdir (GNU coreutils) '* | \
10120
             'mkdir (coreutils) '* | \
10121
             'mkdir (fileutils) '4.1*)
10122
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10123
               break 3;;
10124
           esac
10125
         done
10126
       done
10127 346 jeremybenn
  done
10128 90 jeremybenn
IFS=$as_save_IFS
10129
 
10130
fi
10131
 
10132 460 jeremybenn
  test -d ./--version && rmdir ./--version
10133 90 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then
10134
    MKDIR_P="$ac_cv_path_mkdir -p"
10135
  else
10136
    # As a last resort, use the slow shell script.  Don't cache a
10137
    # value for MKDIR_P within a source directory, because that will
10138
    # break other packages using the cache if that directory is
10139
    # removed, or if the value is a relative name.
10140
    MKDIR_P="$ac_install_sh -d"
10141
  fi
10142
fi
10143 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10144 90 jeremybenn
$as_echo "$MKDIR_P" >&6; }
10145
 
10146
mkdir_p="$MKDIR_P"
10147
case $mkdir_p in
10148
  [\\/$]* | ?:[\\/]*) ;;
10149
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10150
esac
10151
 
10152
for ac_prog in gawk mawk nawk awk
10153
do
10154
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10155
set dummy $ac_prog; ac_word=$2
10156 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10157 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10158 346 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then :
10159 90 jeremybenn
  $as_echo_n "(cached) " >&6
10160
else
10161
  if test -n "$AWK"; then
10162
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10163
else
10164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165
for as_dir in $PATH
10166
do
10167
  IFS=$as_save_IFS
10168
  test -z "$as_dir" && as_dir=.
10169 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10170 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10171
    ac_cv_prog_AWK="$ac_prog"
10172 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173 90 jeremybenn
    break 2
10174
  fi
10175
done
10176 346 jeremybenn
  done
10177 90 jeremybenn
IFS=$as_save_IFS
10178
 
10179
fi
10180
fi
10181
AWK=$ac_cv_prog_AWK
10182
if test -n "$AWK"; then
10183 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10184 90 jeremybenn
$as_echo "$AWK" >&6; }
10185
else
10186 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187 90 jeremybenn
$as_echo "no" >&6; }
10188
fi
10189
 
10190
 
10191
  test -n "$AWK" && break
10192
done
10193
 
10194 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10195 90 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10196
set x ${MAKE-make}
10197
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10198 346 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10199 90 jeremybenn
  $as_echo_n "(cached) " >&6
10200
else
10201
  cat >conftest.make <<\_ACEOF
10202
SHELL = /bin/sh
10203
all:
10204
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10205
_ACEOF
10206
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10207
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10208
  *@@@%%%=?*=@@@%%%*)
10209
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10210
  *)
10211
    eval ac_cv_prog_make_${ac_make}_set=no;;
10212
esac
10213
rm -f conftest.make
10214
fi
10215
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10216 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10217 90 jeremybenn
$as_echo "yes" >&6; }
10218
  SET_MAKE=
10219
else
10220 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 90 jeremybenn
$as_echo "no" >&6; }
10222
  SET_MAKE="MAKE=${MAKE-make}"
10223
fi
10224
 
10225
rm -rf .tst 2>/dev/null
10226
mkdir .tst 2>/dev/null
10227
if test -d .tst; then
10228
  am__leading_dot=.
10229
else
10230
  am__leading_dot=_
10231
fi
10232
rmdir .tst 2>/dev/null
10233
 
10234
DEPDIR="${am__leading_dot}deps"
10235
 
10236
ac_config_commands="$ac_config_commands depfiles"
10237
 
10238
 
10239
am_make=${MAKE-make}
10240
cat > confinc << 'END'
10241
am__doit:
10242
        @echo this is the am__doit target
10243
.PHONY: am__doit
10244
END
10245
# If we don't find an include directive, just comment out the code.
10246 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10247 90 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10248
am__include="#"
10249
am__quote=
10250
_am_result=none
10251
# First try GNU make style include.
10252
echo "include confinc" > confmf
10253
# Ignore all kinds of additional output from `make'.
10254
case `$am_make -s -f confmf 2> /dev/null` in #(
10255
*the\ am__doit\ target*)
10256
  am__include=include
10257
  am__quote=
10258
  _am_result=GNU
10259
  ;;
10260
esac
10261
# Now try BSD make style include.
10262
if test "$am__include" = "#"; then
10263
   echo '.include "confinc"' > confmf
10264
   case `$am_make -s -f confmf 2> /dev/null` in #(
10265
   *the\ am__doit\ target*)
10266
     am__include=.include
10267
     am__quote="\""
10268
     _am_result=BSD
10269
     ;;
10270
   esac
10271
fi
10272
 
10273
 
10274 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10275 90 jeremybenn
$as_echo "$_am_result" >&6; }
10276
rm -f confinc confmf
10277
 
10278
# Check whether --enable-dependency-tracking was given.
10279 346 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then :
10280 90 jeremybenn
  enableval=$enable_dependency_tracking;
10281
fi
10282
 
10283
if test "x$enable_dependency_tracking" != xno; then
10284
  am_depcomp="$ac_aux_dir/depcomp"
10285
  AMDEPBACKSLASH='\'
10286
fi
10287
 if test "x$enable_dependency_tracking" != xno; then
10288
  AMDEP_TRUE=
10289
  AMDEP_FALSE='#'
10290
else
10291
  AMDEP_TRUE='#'
10292
  AMDEP_FALSE=
10293
fi
10294
 
10295
 
10296
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10297
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10298
  # is not polluted with repeated "-I."
10299
  am__isrc=' -I$(srcdir)'
10300
  # test to see if srcdir already configured
10301
  if test -f $srcdir/config.status; then
10302 346 jeremybenn
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10303 90 jeremybenn
  fi
10304
fi
10305
 
10306
# test whether we have cygpath
10307
if test -z "$CYGPATH_W"; then
10308
  if (cygpath --version) >/dev/null 2>/dev/null; then
10309
    CYGPATH_W='cygpath -w'
10310
  else
10311
    CYGPATH_W=echo
10312
  fi
10313
fi
10314
 
10315
 
10316
# Define the identity of the package.
10317
 PACKAGE='or1ksim-testsuite'
10318 510 jeremybenn
 VERSION='0.5.1rc1'
10319 90 jeremybenn
 
10320
 
10321
cat >>confdefs.h <<_ACEOF
10322
#define PACKAGE "$PACKAGE"
10323
_ACEOF
10324
 
10325
 
10326
cat >>confdefs.h <<_ACEOF
10327
#define VERSION "$VERSION"
10328
_ACEOF
10329
 
10330
# Some tools Automake needs.
10331
 
10332
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10333
 
10334
 
10335
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10336
 
10337
 
10338
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10339
 
10340
 
10341
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10342
 
10343
 
10344
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10345
 
10346
# We need awk for the "check" target.  The system "awk" is bad on
10347
# some platforms.
10348
# Always define AMTAR for backward compatibility.
10349
 
10350
AMTAR=${AMTAR-"${am_missing_run}tar"}
10351
 
10352
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10353
 
10354
 
10355
 
10356
 
10357
depcc="$CC"   am_compiler_list=
10358
 
10359 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10360 90 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10361 346 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10362 90 jeremybenn
  $as_echo_n "(cached) " >&6
10363
else
10364
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10365
  # We make a subdir and do the tests there.  Otherwise we can end up
10366
  # making bogus files that we don't know about and never remove.  For
10367
  # instance it was reported that on HP-UX the gcc test will end up
10368
  # making a dummy file named `D' -- because `-MD' means `put the output
10369
  # in D'.
10370
  mkdir conftest.dir
10371
  # Copy depcomp to subdir because otherwise we won't find it if we're
10372
  # using a relative directory.
10373
  cp "$am_depcomp" conftest.dir
10374
  cd conftest.dir
10375
  # We will build objects and dependencies in a subdirectory because
10376
  # it helps to detect inapplicable dependency modes.  For instance
10377
  # both Tru64's cc and ICC support -MD to output dependencies as a
10378
  # side effect of compilation, but ICC will put the dependencies in
10379
  # the current directory while Tru64 will put them in the object
10380
  # directory.
10381
  mkdir sub
10382
 
10383
  am_cv_CC_dependencies_compiler_type=none
10384
  if test "$am_compiler_list" = ""; then
10385
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10386
  fi
10387
  am__universal=false
10388
  case " $depcc " in #(
10389
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10390
     esac
10391
 
10392
  for depmode in $am_compiler_list; do
10393
    # Setup a source with many dependencies, because some compilers
10394
    # like to wrap large dependency lists on column 80 (with \), and
10395
    # we should not choose a depcomp mode which is confused by this.
10396
    #
10397
    # We need to recreate these files for each test, as the compiler may
10398
    # overwrite some of them when testing with obscure command lines.
10399
    # This happens at least with the AIX C compiler.
10400
    : > sub/conftest.c
10401
    for i in 1 2 3 4 5 6; do
10402
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10403
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10404
      # Solaris 8's {/usr,}/bin/sh.
10405
      touch sub/conftst$i.h
10406
    done
10407
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10408
 
10409
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10410
    # mode.  It turns out that the SunPro C++ compiler does not properly
10411
    # handle `-M -o', and we need to detect this.  Also, some Intel
10412
    # versions had trouble with output in subdirs
10413
    am__obj=sub/conftest.${OBJEXT-o}
10414
    am__minus_obj="-o $am__obj"
10415
    case $depmode in
10416
    gcc)
10417
      # This depmode causes a compiler race in universal mode.
10418
      test "$am__universal" = false || continue
10419
      ;;
10420
    nosideeffect)
10421
      # after this tag, mechanisms are not by side-effect, so they'll
10422
      # only be used when explicitly requested
10423
      if test "x$enable_dependency_tracking" = xyes; then
10424
        continue
10425
      else
10426
        break
10427
      fi
10428
      ;;
10429
    msvisualcpp | msvcmsys)
10430
      # This compiler won't grok `-c -o', but also, the minuso test has
10431
      # not run yet.  These depmodes are late enough in the game, and
10432
      # so weak that their functioning should not be impacted.
10433
      am__obj=conftest.${OBJEXT-o}
10434
      am__minus_obj=
10435
      ;;
10436
    none) break ;;
10437
    esac
10438
    if depmode=$depmode \
10439
       source=sub/conftest.c object=$am__obj \
10440
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10441
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10442
         >/dev/null 2>conftest.err &&
10443
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10444
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10445
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10446
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10447
      # icc doesn't choke on unknown options, it will just issue warnings
10448
      # or remarks (even with -Werror).  So we grep stderr for any message
10449
      # that says an option was ignored or not supported.
10450
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10451
      #   icc: Command line warning: ignoring option '-M'; no argument required
10452
      # The diagnosis changed in icc 8.0:
10453
      #   icc: Command line remark: option '-MP' not supported
10454
      if (grep 'ignoring option' conftest.err ||
10455
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10456
        am_cv_CC_dependencies_compiler_type=$depmode
10457
        break
10458
      fi
10459
    fi
10460
  done
10461
 
10462
  cd ..
10463
  rm -rf conftest.dir
10464
else
10465
  am_cv_CC_dependencies_compiler_type=none
10466
fi
10467
 
10468
fi
10469 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10470 90 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10471
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10472
 
10473
 if
10474
  test "x$enable_dependency_tracking" != xno \
10475
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10476
  am__fastdepCC_TRUE=
10477
  am__fastdepCC_FALSE='#'
10478
else
10479
  am__fastdepCC_TRUE='#'
10480
  am__fastdepCC_FALSE=
10481
fi
10482
 
10483
 
10484
 
10485
ac_config_headers="$ac_config_headers config.h"
10486
 
10487
 
10488
# make sure we are using a recent autoconf version
10489
 
10490
 
10491 385 jeremybenn
# This is not nice, but it gets round the problem of the target not being
10492
# specified. We don't need to warn again - the main configure did that for us.
10493
case "$target_cpu" in
10494
or32*)
10495
        ;;
10496
 
10497
dlx*)
10498
        ;;
10499
 
10500
*)      target_alias=or32-elf;
10501
        ;;
10502
esac
10503
 
10504 90 jeremybenn
# check for --enable-all-tests argument, in which case we attempt to build all
10505
# tests, even those that do not compile properly.
10506
# Check whether --enable-all-tests was given.
10507 346 jeremybenn
if test "${enable_all_tests+set}" = set; then :
10508 90 jeremybenn
  enableval=$enable_all_tests; all_tests=true all_tests=false
10509
fi
10510
 
10511
 if test x$all_tests = xtrue; then
10512
  BUILD_ALL_TESTS_TRUE=
10513
  BUILD_ALL_TESTS_FALSE='#'
10514
else
10515
  BUILD_ALL_TESTS_TRUE='#'
10516
  BUILD_ALL_TESTS_FALSE=
10517
fi
10518
 
10519
 
10520
# Sort out the tools. Using the target tool chain here, not native. Note that
10521
# AC_CHECK_PROGS will not override an already set variable, so we must
10522
# explicitly unset them first.
10523
unset CC
10524
unset RANLIB
10525
unset LD
10526
unset SIM
10527
for ac_prog in $target_alias-gcc
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 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10533 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
10534 90 jeremybenn
  $as_echo_n "(cached) " >&6
10535
else
10536
  if test -n "$CC"; then
10537
  ac_cv_prog_CC="$CC" # 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 90 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_CC="$ac_prog"
10547 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 90 jeremybenn
    break 2
10549
  fi
10550
done
10551 346 jeremybenn
  done
10552 90 jeremybenn
IFS=$as_save_IFS
10553
 
10554
fi
10555
fi
10556
CC=$ac_cv_prog_CC
10557
if test -n "$CC"; then
10558 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10559 90 jeremybenn
$as_echo "$CC" >&6; }
10560
else
10561 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 90 jeremybenn
$as_echo "no" >&6; }
10563
fi
10564
 
10565
 
10566
  test -n "$CC" && break
10567
done
10568
 
10569
for ac_prog in $target_alias-ranlib
10570
do
10571
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10572
set dummy $ac_prog; ac_word=$2
10573 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10575 346 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then :
10576 90 jeremybenn
  $as_echo_n "(cached) " >&6
10577
else
10578
  if test -n "$RANLIB"; then
10579
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10580
else
10581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582
for as_dir in $PATH
10583
do
10584
  IFS=$as_save_IFS
10585
  test -z "$as_dir" && as_dir=.
10586 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10587 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10588
    ac_cv_prog_RANLIB="$ac_prog"
10589 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 90 jeremybenn
    break 2
10591
  fi
10592
done
10593 346 jeremybenn
  done
10594 90 jeremybenn
IFS=$as_save_IFS
10595
 
10596
fi
10597
fi
10598
RANLIB=$ac_cv_prog_RANLIB
10599
if test -n "$RANLIB"; then
10600 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10601 90 jeremybenn
$as_echo "$RANLIB" >&6; }
10602
else
10603 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 90 jeremybenn
$as_echo "no" >&6; }
10605
fi
10606
 
10607
 
10608
  test -n "$RANLIB" && break
10609
done
10610
 
10611
for ac_prog in $target_alias-ld
10612
do
10613
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10614
set dummy $ac_prog; ac_word=$2
10615 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10617 346 jeremybenn
if test "${ac_cv_prog_LD+set}" = set; then :
10618 90 jeremybenn
  $as_echo_n "(cached) " >&6
10619
else
10620
  if test -n "$LD"; then
10621
  ac_cv_prog_LD="$LD" # Let the user override the test.
10622
else
10623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624
for as_dir in $PATH
10625
do
10626
  IFS=$as_save_IFS
10627
  test -z "$as_dir" && as_dir=.
10628 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10629 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10630
    ac_cv_prog_LD="$ac_prog"
10631 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 90 jeremybenn
    break 2
10633
  fi
10634
done
10635 346 jeremybenn
  done
10636 90 jeremybenn
IFS=$as_save_IFS
10637
 
10638
fi
10639
fi
10640
LD=$ac_cv_prog_LD
10641
if test -n "$LD"; then
10642 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10643 90 jeremybenn
$as_echo "$LD" >&6; }
10644
else
10645 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 90 jeremybenn
$as_echo "no" >&6; }
10647
fi
10648
 
10649
 
10650
  test -n "$LD" && break
10651
done
10652
 
10653
for ac_prog in $target_alias-sim
10654
do
10655
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10656
set dummy $ac_prog; ac_word=$2
10657 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10658 90 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10659 346 jeremybenn
if test "${ac_cv_prog_SIM+set}" = set; then :
10660 90 jeremybenn
  $as_echo_n "(cached) " >&6
10661
else
10662
  if test -n "$SIM"; then
10663
  ac_cv_prog_SIM="$SIM" # Let the user override the test.
10664
else
10665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666
for as_dir in $PATH
10667
do
10668
  IFS=$as_save_IFS
10669
  test -z "$as_dir" && as_dir=.
10670 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10671 90 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10672
    ac_cv_prog_SIM="$ac_prog"
10673 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10674 90 jeremybenn
    break 2
10675
  fi
10676
done
10677 346 jeremybenn
  done
10678 90 jeremybenn
IFS=$as_save_IFS
10679
 
10680
fi
10681
fi
10682
SIM=$ac_cv_prog_SIM
10683
if test -n "$SIM"; then
10684 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM" >&5
10685 90 jeremybenn
$as_echo "$SIM" >&6; }
10686
else
10687 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 90 jeremybenn
$as_echo "no" >&6; }
10689
fi
10690
 
10691
 
10692
  test -n "$SIM" && break
10693
done
10694
 
10695
 
10696
 
10697
 
10698
 
10699
 
10700 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10701 90 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
10702 346 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then :
10703 90 jeremybenn
  $as_echo_n "(cached) " >&6
10704
else
10705 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 90 jeremybenn
/* end confdefs.h.  */
10707
#include 
10708
#include 
10709
#include 
10710
#include 
10711
 
10712
int
10713
main ()
10714
{
10715
 
10716
  ;
10717
  return 0;
10718
}
10719
_ACEOF
10720 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
10721 90 jeremybenn
  ac_cv_header_stdc=yes
10722
else
10723 346 jeremybenn
  ac_cv_header_stdc=no
10724 90 jeremybenn
fi
10725
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726
 
10727
if test $ac_cv_header_stdc = yes; then
10728
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10729 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 90 jeremybenn
/* end confdefs.h.  */
10731
#include 
10732
 
10733
_ACEOF
10734
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10735 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
10736
 
10737 90 jeremybenn
else
10738
  ac_cv_header_stdc=no
10739
fi
10740
rm -f conftest*
10741
 
10742
fi
10743
 
10744
if test $ac_cv_header_stdc = yes; then
10745
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10746 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 90 jeremybenn
/* end confdefs.h.  */
10748
#include 
10749
 
10750
_ACEOF
10751
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10752 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
10753
 
10754 90 jeremybenn
else
10755
  ac_cv_header_stdc=no
10756
fi
10757
rm -f conftest*
10758
 
10759
fi
10760
 
10761
if test $ac_cv_header_stdc = yes; then
10762
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10763 346 jeremybenn
  if test "$cross_compiling" = yes; then :
10764 90 jeremybenn
  :
10765
else
10766 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 90 jeremybenn
/* end confdefs.h.  */
10768
#include 
10769
#include 
10770
#if ((' ' & 0x0FF) == 0x020)
10771
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10772
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10773
#else
10774
# define ISLOWER(c) \
10775
                   (('a' <= (c) && (c) <= 'i') \
10776
                     || ('j' <= (c) && (c) <= 'r') \
10777
                     || ('s' <= (c) && (c) <= 'z'))
10778
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10779
#endif
10780
 
10781
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10782
int
10783
main ()
10784
{
10785
  int i;
10786
  for (i = 0; i < 256; i++)
10787
    if (XOR (islower (i), ISLOWER (i))
10788
        || toupper (i) != TOUPPER (i))
10789
      return 2;
10790
  return 0;
10791
}
10792
_ACEOF
10793 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
10794
 
10795 236 jeremybenn
else
10796 346 jeremybenn
  ac_cv_header_stdc=no
10797 90 jeremybenn
fi
10798 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10799
  conftest.$ac_objext conftest.beam conftest.$ac_ext
10800 90 jeremybenn
fi
10801
 
10802
fi
10803
fi
10804 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10805 90 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
10806
if test $ac_cv_header_stdc = yes; then
10807
 
10808 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10809 90 jeremybenn
 
10810
fi
10811
 
10812
 
10813
# We need assembler, installer and per target C flags
10814
 
10815
# By default we simply use the C compiler to build assembly code.
10816
 
10817
test "${CCAS+set}" = set || CCAS=$CC
10818
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10819
 
10820
 
10821
 
10822
depcc="$CCAS"   am_compiler_list=
10823
 
10824 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10825 90 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10826 346 jeremybenn
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10827 90 jeremybenn
  $as_echo_n "(cached) " >&6
10828
else
10829
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10830
  # We make a subdir and do the tests there.  Otherwise we can end up
10831
  # making bogus files that we don't know about and never remove.  For
10832
  # instance it was reported that on HP-UX the gcc test will end up
10833
  # making a dummy file named `D' -- because `-MD' means `put the output
10834
  # in D'.
10835
  mkdir conftest.dir
10836
  # Copy depcomp to subdir because otherwise we won't find it if we're
10837
  # using a relative directory.
10838
  cp "$am_depcomp" conftest.dir
10839
  cd conftest.dir
10840
  # We will build objects and dependencies in a subdirectory because
10841
  # it helps to detect inapplicable dependency modes.  For instance
10842
  # both Tru64's cc and ICC support -MD to output dependencies as a
10843
  # side effect of compilation, but ICC will put the dependencies in
10844
  # the current directory while Tru64 will put them in the object
10845
  # directory.
10846
  mkdir sub
10847
 
10848
  am_cv_CCAS_dependencies_compiler_type=none
10849
  if test "$am_compiler_list" = ""; then
10850
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10851
  fi
10852
  am__universal=false
10853
 
10854
 
10855
  for depmode in $am_compiler_list; do
10856
    # Setup a source with many dependencies, because some compilers
10857
    # like to wrap large dependency lists on column 80 (with \), and
10858
    # we should not choose a depcomp mode which is confused by this.
10859
    #
10860
    # We need to recreate these files for each test, as the compiler may
10861
    # overwrite some of them when testing with obscure command lines.
10862
    # This happens at least with the AIX C compiler.
10863
    : > sub/conftest.c
10864
    for i in 1 2 3 4 5 6; do
10865
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10866
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10867
      # Solaris 8's {/usr,}/bin/sh.
10868
      touch sub/conftst$i.h
10869
    done
10870
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10871
 
10872
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10873
    # mode.  It turns out that the SunPro C++ compiler does not properly
10874
    # handle `-M -o', and we need to detect this.  Also, some Intel
10875
    # versions had trouble with output in subdirs
10876
    am__obj=sub/conftest.${OBJEXT-o}
10877
    am__minus_obj="-o $am__obj"
10878
    case $depmode in
10879
    gcc)
10880
      # This depmode causes a compiler race in universal mode.
10881
      test "$am__universal" = false || continue
10882
      ;;
10883
    nosideeffect)
10884
      # after this tag, mechanisms are not by side-effect, so they'll
10885
      # only be used when explicitly requested
10886
      if test "x$enable_dependency_tracking" = xyes; then
10887
        continue
10888
      else
10889
        break
10890
      fi
10891
      ;;
10892
    msvisualcpp | msvcmsys)
10893
      # This compiler won't grok `-c -o', but also, the minuso test has
10894
      # not run yet.  These depmodes are late enough in the game, and
10895
      # so weak that their functioning should not be impacted.
10896
      am__obj=conftest.${OBJEXT-o}
10897
      am__minus_obj=
10898
      ;;
10899
    none) break ;;
10900
    esac
10901
    if depmode=$depmode \
10902
       source=sub/conftest.c object=$am__obj \
10903
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10904
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10905
         >/dev/null 2>conftest.err &&
10906
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10907
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10908
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10909
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10910
      # icc doesn't choke on unknown options, it will just issue warnings
10911
      # or remarks (even with -Werror).  So we grep stderr for any message
10912
      # that says an option was ignored or not supported.
10913
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10914
      #   icc: Command line warning: ignoring option '-M'; no argument required
10915
      # The diagnosis changed in icc 8.0:
10916
      #   icc: Command line remark: option '-MP' not supported
10917
      if (grep 'ignoring option' conftest.err ||
10918
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10919
        am_cv_CCAS_dependencies_compiler_type=$depmode
10920
        break
10921
      fi
10922
    fi
10923
  done
10924
 
10925
  cd ..
10926
  rm -rf conftest.dir
10927
else
10928
  am_cv_CCAS_dependencies_compiler_type=none
10929
fi
10930
 
10931
fi
10932 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
10933 90 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
10934
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
10935
 
10936
 if
10937
  test "x$enable_dependency_tracking" != xno \
10938
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
10939
  am__fastdepCCAS_TRUE=
10940
  am__fastdepCCAS_FALSE='#'
10941
else
10942
  am__fastdepCCAS_TRUE='#'
10943
  am__fastdepCCAS_FALSE=
10944
fi
10945
 
10946
 
10947
if test "x$CC" != xcc; then
10948 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10949 90 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10950
else
10951 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10952 90 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10953
fi
10954
set dummy $CC; ac_cc=`$as_echo "$2" |
10955
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10956 346 jeremybenn
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
10957 90 jeremybenn
  $as_echo_n "(cached) " >&6
10958
else
10959 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 90 jeremybenn
/* end confdefs.h.  */
10961
 
10962
int
10963
main ()
10964
{
10965
 
10966
  ;
10967
  return 0;
10968
}
10969
_ACEOF
10970
# Make sure it works both with $CC and with simple cc.
10971
# We do the test twice because some compilers refuse to overwrite an
10972
# existing .o file with -o, though they will create one.
10973
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10974
rm -f conftest2.*
10975 346 jeremybenn
if { { case "(($ac_try" in
10976 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977
  *) ac_try_echo=$ac_try;;
10978
esac
10979 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10980
$as_echo "$ac_try_echo"; } >&5
10981 90 jeremybenn
  (eval "$ac_try") 2>&5
10982
  ac_status=$?
10983 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10984
  test $ac_status = 0; } &&
10985
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
10986 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987
  *) ac_try_echo=$ac_try;;
10988
esac
10989 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10990
$as_echo "$ac_try_echo"; } >&5
10991 90 jeremybenn
  (eval "$ac_try") 2>&5
10992
  ac_status=$?
10993 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10994
  test $ac_status = 0; };
10995 90 jeremybenn
then
10996
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10997
  if test "x$CC" != xcc; then
10998
    # Test first that cc exists at all.
10999
    if { ac_try='cc -c conftest.$ac_ext >&5'
11000 346 jeremybenn
  { { case "(($ac_try" in
11001 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002
  *) ac_try_echo=$ac_try;;
11003
esac
11004 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11005
$as_echo "$ac_try_echo"; } >&5
11006 90 jeremybenn
  (eval "$ac_try") 2>&5
11007
  ac_status=$?
11008 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11009
  test $ac_status = 0; }; }; then
11010 90 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11011
      rm -f conftest2.*
11012 346 jeremybenn
      if { { case "(($ac_try" in
11013 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014
  *) ac_try_echo=$ac_try;;
11015
esac
11016 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11017
$as_echo "$ac_try_echo"; } >&5
11018 90 jeremybenn
  (eval "$ac_try") 2>&5
11019
  ac_status=$?
11020 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11021
  test $ac_status = 0; } &&
11022
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
11023 90 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024
  *) ac_try_echo=$ac_try;;
11025
esac
11026 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11027
$as_echo "$ac_try_echo"; } >&5
11028 90 jeremybenn
  (eval "$ac_try") 2>&5
11029
  ac_status=$?
11030 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11031
  test $ac_status = 0; };
11032 90 jeremybenn
      then
11033
        # cc works too.
11034
        :
11035
      else
11036
        # cc exists but doesn't like -o.
11037
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11038
      fi
11039
    fi
11040
  fi
11041
else
11042
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11043
fi
11044
rm -f core conftest*
11045
 
11046
fi
11047
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11048 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11049 90 jeremybenn
$as_echo "yes" >&6; }
11050
else
11051 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 90 jeremybenn
$as_echo "no" >&6; }
11053
 
11054 346 jeremybenn
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11055 90 jeremybenn
 
11056
fi
11057
 
11058
# FIXME: we rely on the cache variable name because
11059
# there is no other way.
11060
set dummy $CC
11061
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11062
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11063
if test "$am_t" != yes; then
11064
   # Losing compiler, so override with the script.
11065
   # FIXME: It is wrong to rewrite CC.
11066
   # But if we don't then we get into trouble of one sort or another.
11067
   # A longer-term fix would be to have automake use am__CC in this case,
11068
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11069
   CC="$am_aux_dir/compile $CC"
11070
fi
11071
 
11072
 
11073
 
11074
 
11075
# Specify our baseline CFLAGS
11076 458 julius
CPPFLAGS="-I\${top_srcdir}/support -I\${top_srcdir}/except"
11077 90 jeremybenn
CFLAGS="-Wall -Werror -g -nostdlib -mhard-div -mhard-mul"
11078
 
11079
# Flag to specify whether we want optimization when checking
11080 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable optimizations when checking" >&5
11081 90 jeremybenn
$as_echo_n "checking whether to enable optimizations when checking... " >&6; }
11082 458 julius
# Check whether --enable-check-opt was given.
11083
if test "${enable_check_opt+set}" = set; then :
11084
  enableval=$enable_check_opt;
11085 90 jeremybenn
    case "$enableval" in
11086
        yes)
11087
            CFLAGS="$CFLAGS -O"
11088
            ;;
11089
        *)
11090
            CFLAGS="$CFLAGS -O$enableval"
11091
            ;;
11092
    esac
11093
 
11094
fi
11095
 
11096 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_check_opt-default}" >&5
11097 90 jeremybenn
$as_echo "${enable_check_opt-default}" >&6; }
11098
 
11099
 
11100
 
11101
 
11102
# This is GNU compliant source and uses GNU libraries
11103
 
11104 346 jeremybenn
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
11105 90 jeremybenn
 
11106
 
11107
# Check for functions doesn't work, since we can't execute code. Define some
11108
# we know are definitely there in OR1K GCC. This is all to allow reused
11109
# headers from the main code body (for the memory controller tests
11110
# principally) to work.
11111
 
11112 346 jeremybenn
$as_echo "#define HAVE_STRNDUP /**/" >>confdefs.h
11113 90 jeremybenn
 
11114
 
11115 346 jeremybenn
$as_echo "#define HAVE_ISBLANK /**/" >>confdefs.h
11116 90 jeremybenn
 
11117
 
11118
# Check for headers
11119
for ac_header in sys/types.h inttypes.h
11120 346 jeremybenn
do :
11121
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11122
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11123
eval as_val=\$$as_ac_Header
11124
   if test "x$as_val" = x""yes; then :
11125 90 jeremybenn
  cat >>confdefs.h <<_ACEOF
11126
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11127
_ACEOF
11128
 
11129
fi
11130
 
11131
done
11132
 
11133
 
11134
# check for types and sizes
11135 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
11136
"
11137
if test "x$ac_cv_type_uint8_t" = x""yes; then :
11138 90 jeremybenn
 
11139
cat >>confdefs.h <<_ACEOF
11140
#define HAVE_UINT8_T 1
11141
_ACEOF
11142
 
11143
 
11144
fi
11145 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
11146
"
11147
if test "x$ac_cv_type_uint16_t" = x""yes; then :
11148 90 jeremybenn
 
11149
cat >>confdefs.h <<_ACEOF
11150
#define HAVE_UINT16_T 1
11151
_ACEOF
11152
 
11153
 
11154
fi
11155 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
11156
"
11157
if test "x$ac_cv_type_uint32_t" = x""yes; then :
11158 90 jeremybenn
 
11159
cat >>confdefs.h <<_ACEOF
11160
#define HAVE_UINT32_T 1
11161
_ACEOF
11162
 
11163
 
11164
fi
11165
 
11166 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
11167
"
11168
if test "x$ac_cv_type_int8_t" = x""yes; then :
11169 90 jeremybenn
 
11170
cat >>confdefs.h <<_ACEOF
11171
#define HAVE_INT8_T 1
11172
_ACEOF
11173
 
11174
 
11175
fi
11176 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
11177
"
11178
if test "x$ac_cv_type_int16_t" = x""yes; then :
11179 90 jeremybenn
 
11180
cat >>confdefs.h <<_ACEOF
11181
#define HAVE_INT16_T 1
11182
_ACEOF
11183
 
11184
 
11185
fi
11186 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
11187
"
11188
if test "x$ac_cv_type_int32_t" = x""yes; then :
11189 90 jeremybenn
 
11190
cat >>confdefs.h <<_ACEOF
11191
#define HAVE_INT32_T 1
11192
_ACEOF
11193
 
11194
 
11195
fi
11196
 
11197
 
11198
# Checking sizeof doesn't really work, since it needs to run compiled code. So
11199
# we do it by hand.
11200
 
11201 346 jeremybenn
$as_echo "#define SIZEOF_CHAR 1" >>confdefs.h
11202 90 jeremybenn
 
11203
 
11204 346 jeremybenn
$as_echo "#define SIZEOF_SHORT 2" >>confdefs.h
11205 90 jeremybenn
 
11206
 
11207 346 jeremybenn
$as_echo "#define SIZEOF_INT 4" >>confdefs.h
11208 90 jeremybenn
 
11209
 
11210 346 jeremybenn
$as_echo "#define SIZEOF_LONG 4" >>confdefs.h
11211 90 jeremybenn
 
11212
 
11213 233 julius
ac_config_files="$ac_config_files Makefile acv-gpio/Makefile acv-uart/Makefile basic/Makefile cache/Makefile cbasic/Makefile cfg/Makefile dhry/Makefile dmatest/Makefile eth/Makefile except/Makefile except-test/Makefile exit/Makefile ext/Makefile fbtest/Makefile fp/Makefile testfloat/Makefile functest/Makefile flag/Makefile int-test/Makefile int-logger/Makefile inst-set-test/Makefile kbdtest/Makefile local-global/Makefile loop/Makefile mc-async/Makefile mc-dram/Makefile mc-ssram/Makefile mc-sync/Makefile mc-common/Makefile mem-test/Makefile mmu/Makefile mul/Makefile mycompress/Makefile support/Makefile tick/Makefile uos/Makefile upcalls/Makefile"
11214 90 jeremybenn
 
11215
 
11216
cat >confcache <<\_ACEOF
11217
# This file is a shell script that caches the results of configure
11218
# tests run on this system so they can be shared between configure
11219
# scripts and configure runs, see configure's option --config-cache.
11220
# It is not useful on other systems.  If it contains results you don't
11221
# want to keep, you may remove or edit it.
11222
#
11223
# config.status only pays attention to the cache file if you give it
11224
# the --recheck option to rerun configure.
11225
#
11226
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11227
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11228
# following values.
11229
 
11230
_ACEOF
11231
 
11232
# The following way of writing the cache mishandles newlines in values,
11233
# but we know of no workaround that is simple, portable, and efficient.
11234
# So, we kill variables containing newlines.
11235
# Ultrix sh set writes to stderr and can't be redirected directly,
11236
# and sets the high bit in the cache file unless we assign to the vars.
11237
(
11238
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11239
    eval ac_val=\$$ac_var
11240
    case $ac_val in #(
11241
    *${as_nl}*)
11242
      case $ac_var in #(
11243 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11244 90 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11245
      esac
11246
      case $ac_var in #(
11247
      _ | IFS | as_nl) ;; #(
11248
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11249 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
11250 90 jeremybenn
      esac ;;
11251
    esac
11252
  done
11253
 
11254
  (set) 2>&1 |
11255
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11256
    *${as_nl}ac_space=\ *)
11257 346 jeremybenn
      # `set' does not quote correctly, so add quotes: double-quote
11258
      # substitution turns \\\\ into \\, and sed turns \\ into \.
11259 90 jeremybenn
      sed -n \
11260
        "s/'/'\\\\''/g;
11261
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11262
      ;; #(
11263
    *)
11264
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11265
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11266
      ;;
11267
    esac |
11268
    sort
11269
) |
11270
  sed '
11271
     /^ac_cv_env_/b end
11272
     t clear
11273
     :clear
11274
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11275
     t end
11276
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11277
     :end' >>confcache
11278
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11279
  if test -w "$cache_file"; then
11280
    test "x$cache_file" != "x/dev/null" &&
11281 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11282 90 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
11283
    cat confcache >$cache_file
11284
  else
11285 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11286 90 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11287
  fi
11288
fi
11289
rm -f confcache
11290
 
11291
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11292
# Let make expand exec_prefix.
11293
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11294
 
11295
DEFS=-DHAVE_CONFIG_H
11296
 
11297
ac_libobjs=
11298
ac_ltlibobjs=
11299
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11300
  # 1. Remove the extension, and $U if already installed.
11301
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11302
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11303
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11304
  #    will be set to the directory where LIBOBJS objects are built.
11305 346 jeremybenn
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11306
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11307 90 jeremybenn
done
11308
LIBOBJS=$ac_libobjs
11309
 
11310
LTLIBOBJS=$ac_ltlibobjs
11311
 
11312
 
11313
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11314 346 jeremybenn
  as_fn_error "conditional \"AMDEP\" was never defined.
11315
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11316 90 jeremybenn
fi
11317
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11318 346 jeremybenn
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11319
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11320 90 jeremybenn
fi
11321
 if test -n "$EXEEXT"; then
11322
  am__EXEEXT_TRUE=
11323
  am__EXEEXT_FALSE='#'
11324
else
11325
  am__EXEEXT_TRUE='#'
11326
  am__EXEEXT_FALSE=
11327
fi
11328
 
11329
if test -z "${BUILD_ALL_TESTS_TRUE}" && test -z "${BUILD_ALL_TESTS_FALSE}"; then
11330 346 jeremybenn
  as_fn_error "conditional \"BUILD_ALL_TESTS\" was never defined.
11331
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11332 90 jeremybenn
fi
11333
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
11334 346 jeremybenn
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
11335
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11336 90 jeremybenn
fi
11337
 
11338
: ${CONFIG_STATUS=./config.status}
11339
ac_write_fail=0
11340
ac_clean_files_save=$ac_clean_files
11341
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11342 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11343 90 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11344 346 jeremybenn
as_write_fail=0
11345
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11346 90 jeremybenn
#! $SHELL
11347
# Generated by $as_me.
11348
# Run this file to recreate the current configuration.
11349
# Compiler output produced by configure, useful for debugging
11350
# configure, is in config.log if it exists.
11351
 
11352
debug=false
11353
ac_cs_recheck=false
11354
ac_cs_silent=false
11355 346 jeremybenn
 
11356 90 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
11357 346 jeremybenn
export SHELL
11358
_ASEOF
11359
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11360
## -------------------- ##
11361
## M4sh Initialization. ##
11362
## -------------------- ##
11363 90 jeremybenn
 
11364
# Be more Bourne compatible
11365
DUALCASE=1; export DUALCASE # for MKS sh
11366 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11367 90 jeremybenn
  emulate sh
11368
  NULLCMD=:
11369
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11370
  # is contrary to our usage.  Disable this feature.
11371
  alias -g '${1+"$@"}'='"$@"'
11372
  setopt NO_GLOB_SUBST
11373
else
11374 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
11375
  *posix*) :
11376
    set -o posix ;; #(
11377
  *) :
11378
     ;;
11379 90 jeremybenn
esac
11380
fi
11381
 
11382
 
11383
as_nl='
11384
'
11385
export as_nl
11386
# Printing a long string crashes Solaris 7 /usr/bin/printf.
11387
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11388
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11389
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11390 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
11391
# but without wasting forks for bash or zsh.
11392
if test -z "$BASH_VERSION$ZSH_VERSION" \
11393
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11394
  as_echo='print -r --'
11395
  as_echo_n='print -rn --'
11396
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11397 90 jeremybenn
  as_echo='printf %s\n'
11398
  as_echo_n='printf %s'
11399
else
11400
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11401
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11402
    as_echo_n='/usr/ucb/echo -n'
11403
  else
11404
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11405
    as_echo_n_body='eval
11406
      arg=$1;
11407 346 jeremybenn
      case $arg in #(
11408 90 jeremybenn
      *"$as_nl"*)
11409
        expr "X$arg" : "X\\(.*\\)$as_nl";
11410
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11411
      esac;
11412
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11413
    '
11414
    export as_echo_n_body
11415
    as_echo_n='sh -c $as_echo_n_body as_echo'
11416
  fi
11417
  export as_echo_body
11418
  as_echo='sh -c $as_echo_body as_echo'
11419
fi
11420
 
11421
# The user is always right.
11422
if test "${PATH_SEPARATOR+set}" != set; then
11423
  PATH_SEPARATOR=:
11424
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11425
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11426
      PATH_SEPARATOR=';'
11427
  }
11428
fi
11429
 
11430
 
11431
# IFS
11432
# We need space, tab and new line, in precisely that order.  Quoting is
11433
# there to prevent editors from complaining about space-tab.
11434
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11435
# splitting by setting IFS to empty value.)
11436
IFS=" ""        $as_nl"
11437
 
11438
# Find who we are.  Look in the path if we contain no directory separator.
11439 346 jeremybenn
case $0 in #((
11440 90 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
11441
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442
for as_dir in $PATH
11443
do
11444
  IFS=$as_save_IFS
11445
  test -z "$as_dir" && as_dir=.
11446 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11447
  done
11448 90 jeremybenn
IFS=$as_save_IFS
11449
 
11450
     ;;
11451
esac
11452
# We did not find ourselves, most probably we were run as `sh COMMAND'
11453
# in which case we are not to be found in the path.
11454
if test "x$as_myself" = x; then
11455
  as_myself=$0
11456
fi
11457
if test ! -f "$as_myself"; then
11458
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11459 346 jeremybenn
  exit 1
11460 90 jeremybenn
fi
11461
 
11462 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
11463
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11464
# suppresses any "Segmentation fault" message there.  '((' could
11465
# trigger a bug in pdksh 5.2.14.
11466
for as_var in BASH_ENV ENV MAIL MAILPATH
11467
do eval test x\${$as_var+set} = xset \
11468
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11469 90 jeremybenn
done
11470
PS1='$ '
11471
PS2='> '
11472
PS4='+ '
11473
 
11474
# NLS nuisances.
11475
LC_ALL=C
11476
export LC_ALL
11477
LANGUAGE=C
11478
export LANGUAGE
11479
 
11480 346 jeremybenn
# CDPATH.
11481
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11482
 
11483
 
11484
# as_fn_error ERROR [LINENO LOG_FD]
11485
# ---------------------------------
11486
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11487
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11488
# script with status $?, using 1 if that was 0.
11489
as_fn_error ()
11490
{
11491
  as_status=$?; test $as_status -eq 0 && as_status=1
11492
  if test "$3"; then
11493
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11494
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11495
  fi
11496
  $as_echo "$as_me: error: $1" >&2
11497
  as_fn_exit $as_status
11498
} # as_fn_error
11499
 
11500
 
11501
# as_fn_set_status STATUS
11502
# -----------------------
11503
# Set $? to STATUS, without forking.
11504
as_fn_set_status ()
11505
{
11506
  return $1
11507
} # as_fn_set_status
11508
 
11509
# as_fn_exit STATUS
11510
# -----------------
11511
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11512
as_fn_exit ()
11513
{
11514
  set +e
11515
  as_fn_set_status $1
11516
  exit $1
11517
} # as_fn_exit
11518
 
11519
# as_fn_unset VAR
11520
# ---------------
11521
# Portably unset VAR.
11522
as_fn_unset ()
11523
{
11524
  { eval $1=; unset $1;}
11525
}
11526
as_unset=as_fn_unset
11527
# as_fn_append VAR VALUE
11528
# ----------------------
11529
# Append the text in VALUE to the end of the definition contained in VAR. Take
11530
# advantage of any shell optimizations that allow amortized linear growth over
11531
# repeated appends, instead of the typical quadratic growth present in naive
11532
# implementations.
11533
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11534
  eval 'as_fn_append ()
11535
  {
11536
    eval $1+=\$2
11537
  }'
11538
else
11539
  as_fn_append ()
11540
  {
11541
    eval $1=\$$1\$2
11542
  }
11543
fi # as_fn_append
11544
 
11545
# as_fn_arith ARG...
11546
# ------------------
11547
# Perform arithmetic evaluation on the ARGs, and store the result in the
11548
# global $as_val. Take advantage of shells that can avoid forks. The arguments
11549
# must be portable across $(()) and expr.
11550
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11551
  eval 'as_fn_arith ()
11552
  {
11553
    as_val=$(( $* ))
11554
  }'
11555
else
11556
  as_fn_arith ()
11557
  {
11558
    as_val=`expr "$@" || test $? -eq 1`
11559
  }
11560
fi # as_fn_arith
11561
 
11562
 
11563 90 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
11564
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11565
  as_expr=expr
11566
else
11567
  as_expr=false
11568
fi
11569
 
11570
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11571
  as_basename=basename
11572
else
11573
  as_basename=false
11574
fi
11575
 
11576 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11577
  as_dirname=dirname
11578
else
11579
  as_dirname=false
11580
fi
11581 90 jeremybenn
 
11582
as_me=`$as_basename -- "$0" ||
11583
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11584
         X"$0" : 'X\(//\)$' \| \
11585
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11586
$as_echo X/"$0" |
11587
    sed '/^.*\/\([^/][^/]*\)\/*$/{
11588
            s//\1/
11589
            q
11590
          }
11591
          /^X\/\(\/\/\)$/{
11592
            s//\1/
11593
            q
11594
          }
11595
          /^X\/\(\/\).*/{
11596
            s//\1/
11597
            q
11598
          }
11599
          s/.*/./; q'`
11600
 
11601 346 jeremybenn
# Avoid depending upon Character Ranges.
11602
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11603
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11604
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11605
as_cr_digits='0123456789'
11606
as_cr_alnum=$as_cr_Letters$as_cr_digits
11607 90 jeremybenn
 
11608
ECHO_C= ECHO_N= ECHO_T=
11609 346 jeremybenn
case `echo -n x` in #(((((
11610 90 jeremybenn
-n*)
11611 346 jeremybenn
  case `echo 'xy\c'` in
11612 90 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11613 346 jeremybenn
  xy)  ECHO_C='\c';;
11614
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11615
       ECHO_T=' ';;
11616 90 jeremybenn
  esac;;
11617
*)
11618
  ECHO_N='-n';;
11619
esac
11620
 
11621
rm -f conf$$ conf$$.exe conf$$.file
11622
if test -d conf$$.dir; then
11623
  rm -f conf$$.dir/conf$$.file
11624
else
11625
  rm -f conf$$.dir
11626
  mkdir conf$$.dir 2>/dev/null
11627
fi
11628
if (echo >conf$$.file) 2>/dev/null; then
11629
  if ln -s conf$$.file conf$$ 2>/dev/null; then
11630
    as_ln_s='ln -s'
11631
    # ... but there are two gotchas:
11632
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11633
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11634
    # In both cases, we have to default to `cp -p'.
11635
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11636
      as_ln_s='cp -p'
11637
  elif ln conf$$.file conf$$ 2>/dev/null; then
11638
    as_ln_s=ln
11639
  else
11640
    as_ln_s='cp -p'
11641
  fi
11642
else
11643
  as_ln_s='cp -p'
11644
fi
11645
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11646
rmdir conf$$.dir 2>/dev/null
11647
 
11648 346 jeremybenn
 
11649
# as_fn_mkdir_p
11650
# -------------
11651
# Create "$as_dir" as a directory, including parents if necessary.
11652
as_fn_mkdir_p ()
11653
{
11654
 
11655
  case $as_dir in #(
11656
  -*) as_dir=./$as_dir;;
11657
  esac
11658
  test -d "$as_dir" || eval $as_mkdir_p || {
11659
    as_dirs=
11660
    while :; do
11661
      case $as_dir in #(
11662
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11663
      *) as_qdir=$as_dir;;
11664
      esac
11665
      as_dirs="'$as_qdir' $as_dirs"
11666
      as_dir=`$as_dirname -- "$as_dir" ||
11667
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11668
         X"$as_dir" : 'X\(//\)[^/]' \| \
11669
         X"$as_dir" : 'X\(//\)$' \| \
11670
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11671
$as_echo X"$as_dir" |
11672
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11673
            s//\1/
11674
            q
11675
          }
11676
          /^X\(\/\/\)[^/].*/{
11677
            s//\1/
11678
            q
11679
          }
11680
          /^X\(\/\/\)$/{
11681
            s//\1/
11682
            q
11683
          }
11684
          /^X\(\/\).*/{
11685
            s//\1/
11686
            q
11687
          }
11688
          s/.*/./; q'`
11689
      test -d "$as_dir" && break
11690
    done
11691
    test -z "$as_dirs" || eval "mkdir $as_dirs"
11692
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11693
 
11694
 
11695
} # as_fn_mkdir_p
11696 90 jeremybenn
if mkdir -p . 2>/dev/null; then
11697 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
11698 90 jeremybenn
else
11699
  test -d ./-p && rmdir ./-p
11700
  as_mkdir_p=false
11701
fi
11702
 
11703
if test -x / >/dev/null 2>&1; then
11704
  as_test_x='test -x'
11705
else
11706
  if ls -dL / >/dev/null 2>&1; then
11707
    as_ls_L_option=L
11708
  else
11709
    as_ls_L_option=
11710
  fi
11711
  as_test_x='
11712
    eval sh -c '\''
11713
      if test -d "$1"; then
11714
        test -d "$1/.";
11715
      else
11716 346 jeremybenn
        case $1 in #(
11717 90 jeremybenn
        -*)set "./$1";;
11718
        esac;
11719 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11720 90 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
11721
    '\'' sh
11722
  '
11723
fi
11724
as_executable_p=$as_test_x
11725
 
11726
# Sed expression to map a string onto a valid CPP name.
11727
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11728
 
11729
# Sed expression to map a string onto a valid variable name.
11730
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11731
 
11732
 
11733
exec 6>&1
11734 346 jeremybenn
## ----------------------------------- ##
11735
## Main body of $CONFIG_STATUS script. ##
11736
## ----------------------------------- ##
11737
_ASEOF
11738
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11739 90 jeremybenn
 
11740 346 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11741
# Save the log message, to keep $0 and so on meaningful, and to
11742 90 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
11743
# values after options handling.
11744
ac_log="
11745 510 jeremybenn
This file was extended by or1ksim-testsuite $as_me 0.5.1rc1, which was
11746 460 jeremybenn
generated by GNU Autoconf 2.65.  Invocation command line was
11747 90 jeremybenn
 
11748
  CONFIG_FILES    = $CONFIG_FILES
11749
  CONFIG_HEADERS  = $CONFIG_HEADERS
11750
  CONFIG_LINKS    = $CONFIG_LINKS
11751
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11752
  $ $0 $@
11753
 
11754
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11755
"
11756
 
11757
_ACEOF
11758
 
11759
case $ac_config_files in *"
11760
"*) set x $ac_config_files; shift; ac_config_files=$*;;
11761
esac
11762
 
11763
case $ac_config_headers in *"
11764
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11765
esac
11766
 
11767
 
11768
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11769
# Files that config.status was made for.
11770
config_files="$ac_config_files"
11771
config_headers="$ac_config_headers"
11772
config_commands="$ac_config_commands"
11773
 
11774
_ACEOF
11775
 
11776
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11777
ac_cs_usage="\
11778 346 jeremybenn
\`$as_me' instantiates files and other configuration actions
11779
from templates according to the current configuration.  Unless the files
11780
and actions are specified as TAGs, all are instantiated by default.
11781 90 jeremybenn
 
11782 346 jeremybenn
Usage: $0 [OPTION]... [TAG]...
11783 90 jeremybenn
 
11784
  -h, --help       print this help, then exit
11785
  -V, --version    print version number and configuration settings, then exit
11786 460 jeremybenn
      --config     print configuration, then exit
11787 90 jeremybenn
  -q, --quiet, --silent
11788
                   do not print progress messages
11789
  -d, --debug      don't remove temporary files
11790
      --recheck    update $as_me by reconfiguring in the same conditions
11791
      --file=FILE[:TEMPLATE]
11792
                   instantiate the configuration file FILE
11793
      --header=FILE[:TEMPLATE]
11794
                   instantiate the configuration header FILE
11795
 
11796
Configuration files:
11797
$config_files
11798
 
11799
Configuration headers:
11800
$config_headers
11801
 
11802
Configuration commands:
11803
$config_commands
11804
 
11805 346 jeremybenn
Report bugs to ."
11806 90 jeremybenn
 
11807
_ACEOF
11808
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11809 460 jeremybenn
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11810 90 jeremybenn
ac_cs_version="\\
11811 510 jeremybenn
or1ksim-testsuite config.status 0.5.1rc1
11812 460 jeremybenn
configured by $0, generated by GNU Autoconf 2.65,
11813
  with options \\"\$ac_cs_config\\"
11814 90 jeremybenn
 
11815 346 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
11816 90 jeremybenn
This config.status script is free software; the Free Software Foundation
11817
gives unlimited permission to copy, distribute and modify it."
11818
 
11819
ac_pwd='$ac_pwd'
11820
srcdir='$srcdir'
11821
INSTALL='$INSTALL'
11822
MKDIR_P='$MKDIR_P'
11823
AWK='$AWK'
11824
test -n "\$AWK" || AWK=awk
11825
_ACEOF
11826
 
11827
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11828
# The default lists apply if the user does not specify any file.
11829
ac_need_defaults=:
11830
while test $# != 0
11831
do
11832
  case $1 in
11833
  --*=*)
11834
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11835
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11836
    ac_shift=:
11837
    ;;
11838
  *)
11839
    ac_option=$1
11840
    ac_optarg=$2
11841
    ac_shift=shift
11842
    ;;
11843
  esac
11844
 
11845
  case $ac_option in
11846
  # Handling of the options.
11847
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11848
    ac_cs_recheck=: ;;
11849
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11850
    $as_echo "$ac_cs_version"; exit ;;
11851 460 jeremybenn
  --config | --confi | --conf | --con | --co | --c )
11852
    $as_echo "$ac_cs_config"; exit ;;
11853 90 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
11854
    debug=: ;;
11855
  --file | --fil | --fi | --f )
11856
    $ac_shift
11857
    case $ac_optarg in
11858
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11859
    esac
11860 346 jeremybenn
    as_fn_append CONFIG_FILES " '$ac_optarg'"
11861 90 jeremybenn
    ac_need_defaults=false;;
11862
  --header | --heade | --head | --hea )
11863
    $ac_shift
11864
    case $ac_optarg in
11865
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11866
    esac
11867 346 jeremybenn
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11868 90 jeremybenn
    ac_need_defaults=false;;
11869
  --he | --h)
11870
    # Conflict between --help and --header
11871 346 jeremybenn
    as_fn_error "ambiguous option: \`$1'
11872
Try \`$0 --help' for more information.";;
11873 90 jeremybenn
  --help | --hel | -h )
11874
    $as_echo "$ac_cs_usage"; exit ;;
11875
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11876
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11877
    ac_cs_silent=: ;;
11878
 
11879
  # This is an error.
11880 346 jeremybenn
  -*) as_fn_error "unrecognized option: \`$1'
11881
Try \`$0 --help' for more information." ;;
11882 90 jeremybenn
 
11883 346 jeremybenn
  *) as_fn_append ac_config_targets " $1"
11884 90 jeremybenn
     ac_need_defaults=false ;;
11885
 
11886
  esac
11887
  shift
11888
done
11889
 
11890
ac_configure_extra_args=
11891
 
11892
if $ac_cs_silent; then
11893
  exec 6>/dev/null
11894
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11895
fi
11896
 
11897
_ACEOF
11898
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11899
if \$ac_cs_recheck; then
11900
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11901
  shift
11902
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11903
  CONFIG_SHELL='$SHELL'
11904
  export CONFIG_SHELL
11905
  exec "\$@"
11906
fi
11907
 
11908
_ACEOF
11909
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11910
exec 5>>config.log
11911
{
11912
  echo
11913
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11914
## Running $as_me. ##
11915
_ASBOX
11916
  $as_echo "$ac_log"
11917
} >&5
11918
 
11919
_ACEOF
11920
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11921
#
11922
# INIT-COMMANDS
11923
#
11924
 
11925
 
11926
# The HP-UX ksh and POSIX shell print the target directory to stdout
11927
# if CDPATH is set.
11928
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11929
 
11930
sed_quote_subst='$sed_quote_subst'
11931
double_quote_subst='$double_quote_subst'
11932
delay_variable_subst='$delay_variable_subst'
11933
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11934
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11935
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11936
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11937
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11938
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11939
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11940
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11941
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11942
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11943
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11944
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11945
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11946
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11947
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11948
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11949
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11950
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11951
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11952
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11953
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11954
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11955
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11956
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11957
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11958
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11959
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11960
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11961
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11962
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11963
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11964
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11965
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11966
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11967
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11968
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11969
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11970
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11971
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11972
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11973
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11974
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11975
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11976
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11977
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"`'
11978
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"`'
11979
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11980
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11981
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11982
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11983
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11984
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11985
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11986
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11987
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11988
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11989
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11990
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11991
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11992
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11993
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11994
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11995
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11996
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11997
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11998
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11999
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12000
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12001
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12002
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12003
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12004
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12005
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12006
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12007
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12008
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12009
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12010
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12011
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12012
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12013
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12014
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12015
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12016
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12017
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12018
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12019
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12020
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12021
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12022
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12023
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12024
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12025
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12026
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12027
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12028
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12029
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12030
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12031
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12032
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12033
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12034
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12035
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12036
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12037
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12038
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12039
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12040
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12041
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12042
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12043
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12044
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12045
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12046
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12047
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12048
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12049
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12050
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12051
 
12052
LTCC='$LTCC'
12053
LTCFLAGS='$LTCFLAGS'
12054
compiler='$compiler_DEFAULT'
12055
 
12056
# Quote evaled strings.
12057
for var in SED \
12058
GREP \
12059
EGREP \
12060
FGREP \
12061
LD \
12062
NM \
12063
LN_S \
12064
lt_SP2NL \
12065
lt_NL2SP \
12066
reload_flag \
12067
OBJDUMP \
12068
deplibs_check_method \
12069
file_magic_cmd \
12070
AR \
12071
AR_FLAGS \
12072
STRIP \
12073
RANLIB \
12074
CC \
12075
CFLAGS \
12076
compiler \
12077
lt_cv_sys_global_symbol_pipe \
12078
lt_cv_sys_global_symbol_to_cdecl \
12079
lt_cv_sys_global_symbol_to_c_name_address \
12080
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12081
SHELL \
12082
ECHO \
12083
lt_prog_compiler_no_builtin_flag \
12084
lt_prog_compiler_wl \
12085
lt_prog_compiler_pic \
12086
lt_prog_compiler_static \
12087
lt_cv_prog_compiler_c_o \
12088
need_locks \
12089
DSYMUTIL \
12090
NMEDIT \
12091
LIPO \
12092
OTOOL \
12093
OTOOL64 \
12094
shrext_cmds \
12095
export_dynamic_flag_spec \
12096
whole_archive_flag_spec \
12097
compiler_needs_object \
12098
with_gnu_ld \
12099
allow_undefined_flag \
12100
no_undefined_flag \
12101
hardcode_libdir_flag_spec \
12102
hardcode_libdir_flag_spec_ld \
12103
hardcode_libdir_separator \
12104
fix_srcfile_path \
12105
exclude_expsyms \
12106
include_expsyms \
12107
file_list_spec \
12108
variables_saved_for_relink \
12109
libname_spec \
12110
library_names_spec \
12111
soname_spec \
12112
finish_eval \
12113
old_striplib \
12114
striplib; do
12115
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12116
    *[\\\\\\\`\\"\\\$]*)
12117
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12118
      ;;
12119
    *)
12120
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12121
      ;;
12122
    esac
12123
done
12124
 
12125
# Double-quote double-evaled strings.
12126
for var in reload_cmds \
12127
old_postinstall_cmds \
12128
old_postuninstall_cmds \
12129
old_archive_cmds \
12130
extract_expsyms_cmds \
12131
old_archive_from_new_cmds \
12132
old_archive_from_expsyms_cmds \
12133
archive_cmds \
12134
archive_expsym_cmds \
12135
module_cmds \
12136
module_expsym_cmds \
12137
export_symbols_cmds \
12138
prelink_cmds \
12139
postinstall_cmds \
12140
postuninstall_cmds \
12141
finish_cmds \
12142
sys_lib_search_path_spec \
12143
sys_lib_dlsearch_path_spec; do
12144
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12145
    *[\\\\\\\`\\"\\\$]*)
12146
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12147
      ;;
12148
    *)
12149
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12150
      ;;
12151
    esac
12152
done
12153
 
12154
# Fix-up fallback echo if it was mangled by the above quoting rules.
12155
case \$lt_ECHO in
12156
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12157
  ;;
12158
esac
12159
 
12160
ac_aux_dir='$ac_aux_dir'
12161
xsi_shell='$xsi_shell'
12162
lt_shell_append='$lt_shell_append'
12163
 
12164
# See if we are running on zsh, and set the options which allow our
12165
# commands through without removal of \ escapes INIT.
12166
if test -n "\${ZSH_VERSION+set}" ; then
12167
   setopt NO_GLOB_SUBST
12168
fi
12169
 
12170
 
12171
    PACKAGE='$PACKAGE'
12172
    VERSION='$VERSION'
12173
    TIMESTAMP='$TIMESTAMP'
12174
    RM='$RM'
12175
    ofile='$ofile'
12176
 
12177
 
12178
 
12179
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12180
 
12181
_ACEOF
12182
 
12183
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12184
 
12185
# Handling of arguments.
12186
for ac_config_target in $ac_config_targets
12187
do
12188
  case $ac_config_target in
12189
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12190
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12191
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12192
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12193
    "acv-gpio/Makefile") CONFIG_FILES="$CONFIG_FILES acv-gpio/Makefile" ;;
12194
    "acv-uart/Makefile") CONFIG_FILES="$CONFIG_FILES acv-uart/Makefile" ;;
12195
    "basic/Makefile") CONFIG_FILES="$CONFIG_FILES basic/Makefile" ;;
12196
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
12197
    "cbasic/Makefile") CONFIG_FILES="$CONFIG_FILES cbasic/Makefile" ;;
12198
    "cfg/Makefile") CONFIG_FILES="$CONFIG_FILES cfg/Makefile" ;;
12199
    "dhry/Makefile") CONFIG_FILES="$CONFIG_FILES dhry/Makefile" ;;
12200
    "dmatest/Makefile") CONFIG_FILES="$CONFIG_FILES dmatest/Makefile" ;;
12201
    "eth/Makefile") CONFIG_FILES="$CONFIG_FILES eth/Makefile" ;;
12202
    "except/Makefile") CONFIG_FILES="$CONFIG_FILES except/Makefile" ;;
12203
    "except-test/Makefile") CONFIG_FILES="$CONFIG_FILES except-test/Makefile" ;;
12204
    "exit/Makefile") CONFIG_FILES="$CONFIG_FILES exit/Makefile" ;;
12205
    "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
12206
    "fbtest/Makefile") CONFIG_FILES="$CONFIG_FILES fbtest/Makefile" ;;
12207 104 jeremybenn
    "fp/Makefile") CONFIG_FILES="$CONFIG_FILES fp/Makefile" ;;
12208 233 julius
    "testfloat/Makefile") CONFIG_FILES="$CONFIG_FILES testfloat/Makefile" ;;
12209 90 jeremybenn
    "functest/Makefile") CONFIG_FILES="$CONFIG_FILES functest/Makefile" ;;
12210
    "flag/Makefile") CONFIG_FILES="$CONFIG_FILES flag/Makefile" ;;
12211
    "int-test/Makefile") CONFIG_FILES="$CONFIG_FILES int-test/Makefile" ;;
12212 93 jeremybenn
    "int-logger/Makefile") CONFIG_FILES="$CONFIG_FILES int-logger/Makefile" ;;
12213 90 jeremybenn
    "inst-set-test/Makefile") CONFIG_FILES="$CONFIG_FILES inst-set-test/Makefile" ;;
12214
    "kbdtest/Makefile") CONFIG_FILES="$CONFIG_FILES kbdtest/Makefile" ;;
12215
    "local-global/Makefile") CONFIG_FILES="$CONFIG_FILES local-global/Makefile" ;;
12216
    "loop/Makefile") CONFIG_FILES="$CONFIG_FILES loop/Makefile" ;;
12217
    "mc-async/Makefile") CONFIG_FILES="$CONFIG_FILES mc-async/Makefile" ;;
12218
    "mc-dram/Makefile") CONFIG_FILES="$CONFIG_FILES mc-dram/Makefile" ;;
12219
    "mc-ssram/Makefile") CONFIG_FILES="$CONFIG_FILES mc-ssram/Makefile" ;;
12220
    "mc-sync/Makefile") CONFIG_FILES="$CONFIG_FILES mc-sync/Makefile" ;;
12221
    "mc-common/Makefile") CONFIG_FILES="$CONFIG_FILES mc-common/Makefile" ;;
12222
    "mem-test/Makefile") CONFIG_FILES="$CONFIG_FILES mem-test/Makefile" ;;
12223
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
12224
    "mul/Makefile") CONFIG_FILES="$CONFIG_FILES mul/Makefile" ;;
12225
    "mycompress/Makefile") CONFIG_FILES="$CONFIG_FILES mycompress/Makefile" ;;
12226
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
12227
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
12228
    "uos/Makefile") CONFIG_FILES="$CONFIG_FILES uos/Makefile" ;;
12229 93 jeremybenn
    "upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES upcalls/Makefile" ;;
12230 90 jeremybenn
 
12231 346 jeremybenn
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12232 90 jeremybenn
  esac
12233
done
12234
 
12235
 
12236
# If the user did not use the arguments to specify the items to instantiate,
12237
# then the envvar interface is used.  Set only those that are not.
12238
# We use the long form for the default assignment because of an extremely
12239
# bizarre bug on SunOS 4.1.3.
12240
if $ac_need_defaults; then
12241
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12242
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12243
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12244
fi
12245
 
12246
# Have a temporary directory for convenience.  Make it in the build tree
12247
# simply because there is no reason against having it here, and in addition,
12248
# creating and moving files from /tmp can sometimes cause problems.
12249
# Hook for its removal unless debugging.
12250
# Note that there is a small window in which the directory will not be cleaned:
12251
# after its creation but before its name has been assigned to `$tmp'.
12252
$debug ||
12253
{
12254
  tmp=
12255
  trap 'exit_status=$?
12256
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12257
' 0
12258 346 jeremybenn
  trap 'as_fn_exit 1' 1 2 13 15
12259 90 jeremybenn
}
12260
# Create a (secure) tmp directory for tmp files.
12261
 
12262
{
12263
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12264
  test -n "$tmp" && test -d "$tmp"
12265
}  ||
12266
{
12267
  tmp=./conf$$-$RANDOM
12268
  (umask 077 && mkdir "$tmp")
12269 346 jeremybenn
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12270 90 jeremybenn
 
12271
# Set up the scripts for CONFIG_FILES section.
12272
# No need to generate them if there are no CONFIG_FILES.
12273
# This happens for instance with `./config.status config.h'.
12274
if test -n "$CONFIG_FILES"; then
12275
 
12276
 
12277 346 jeremybenn
ac_cr=`echo X | tr X '\015'`
12278
# On cygwin, bash can eat \r inside `` if the user requested igncr.
12279
# But we know of no other shell where ac_cr would be empty at this
12280
# point, so we can use a bashism as a fallback.
12281
if test "x$ac_cr" = x; then
12282
  eval ac_cr=\$\'\\r\'
12283
fi
12284 90 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
12285
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12286 346 jeremybenn
  ac_cs_awk_cr='\r'
12287 90 jeremybenn
else
12288
  ac_cs_awk_cr=$ac_cr
12289
fi
12290
 
12291
echo 'BEGIN {' >"$tmp/subs1.awk" &&
12292
_ACEOF
12293
 
12294
 
12295
{
12296
  echo "cat >conf$$subs.awk <<_ACEOF" &&
12297
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12298
  echo "_ACEOF"
12299
} >conf$$subs.sh ||
12300 346 jeremybenn
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12301 90 jeremybenn
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12302
ac_delim='%!_!# '
12303
for ac_last_try in false false false false false :; do
12304
  . ./conf$$subs.sh ||
12305 346 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12306 90 jeremybenn
 
12307
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12308
  if test $ac_delim_n = $ac_delim_num; then
12309
    break
12310
  elif $ac_last_try; then
12311 346 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12312 90 jeremybenn
  else
12313
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12314
  fi
12315
done
12316
rm -f conf$$subs.sh
12317
 
12318
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12319
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12320
_ACEOF
12321
sed -n '
12322
h
12323
s/^/S["/; s/!.*/"]=/
12324
p
12325
g
12326
s/^[^!]*!//
12327
:repl
12328
t repl
12329
s/'"$ac_delim"'$//
12330
t delim
12331
:nl
12332
h
12333 460 jeremybenn
s/\(.\{148\}\)..*/\1/
12334 90 jeremybenn
t more1
12335
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12336
p
12337
n
12338
b repl
12339
:more1
12340
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12341
p
12342
g
12343
s/.\{148\}//
12344
t nl
12345
:delim
12346
h
12347 460 jeremybenn
s/\(.\{148\}\)..*/\1/
12348 90 jeremybenn
t more2
12349
s/["\\]/\\&/g; s/^/"/; s/$/"/
12350
p
12351
b
12352
:more2
12353
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12354
p
12355
g
12356
s/.\{148\}//
12357
t delim
12358
' 
12359
/^[^""]/{
12360
  N
12361
  s/\n//
12362
}
12363
' >>$CONFIG_STATUS || ac_write_fail=1
12364
rm -f conf$$subs.awk
12365
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12366
_ACAWK
12367
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12368
  for (key in S) S_is_set[key] = 1
12369
  FS = ""
12370
 
12371
}
12372
{
12373
  line = $ 0
12374
  nfields = split(line, field, "@")
12375
  substed = 0
12376
  len = length(field[1])
12377
  for (i = 2; i < nfields; i++) {
12378
    key = field[i]
12379
    keylen = length(key)
12380
    if (S_is_set[key]) {
12381
      value = S[key]
12382
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12383
      len += length(value) + length(field[++i])
12384
      substed = 1
12385
    } else
12386
      len += 1 + keylen
12387
  }
12388
 
12389
  print line
12390
}
12391
 
12392
_ACAWK
12393
_ACEOF
12394
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12395
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12396
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12397
else
12398
  cat
12399
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12400 346 jeremybenn
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12401 90 jeremybenn
_ACEOF
12402
 
12403
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12404
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12405
# trailing colons and then remove the whole line if VPATH becomes empty
12406
# (actually we leave an empty line to preserve line numbers).
12407
if test "x$srcdir" = x.; then
12408
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
12409
s/:*\$(srcdir):*/:/
12410
s/:*\${srcdir}:*/:/
12411
s/:*@srcdir@:*/:/
12412
s/^\([^=]*=[     ]*\):*/\1/
12413
s/:*$//
12414
s/^[^=]*=[       ]*$//
12415
}'
12416
fi
12417
 
12418
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12419
fi # test -n "$CONFIG_FILES"
12420
 
12421
# Set up the scripts for CONFIG_HEADERS section.
12422
# No need to generate them if there are no CONFIG_HEADERS.
12423
# This happens for instance with `./config.status Makefile'.
12424
if test -n "$CONFIG_HEADERS"; then
12425
cat >"$tmp/defines.awk" <<\_ACAWK ||
12426
BEGIN {
12427
_ACEOF
12428
 
12429
# Transform confdefs.h into an awk script `defines.awk', embedded as
12430
# here-document in config.status, that substitutes the proper values into
12431
# config.h.in to produce config.h.
12432
 
12433
# Create a delimiter string that does not exist in confdefs.h, to ease
12434
# handling of long lines.
12435
ac_delim='%!_!# '
12436
for ac_last_try in false false :; do
12437
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12438
  if test -z "$ac_t"; then
12439
    break
12440
  elif $ac_last_try; then
12441 346 jeremybenn
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12442 90 jeremybenn
  else
12443
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12444
  fi
12445
done
12446
 
12447
# For the awk script, D is an array of macro values keyed by name,
12448
# likewise P contains macro parameters if any.  Preserve backslash
12449
# newline sequences.
12450
 
12451
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12452
sed -n '
12453
s/.\{148\}/&'"$ac_delim"'/g
12454
t rset
12455
:rset
12456
s/^[     ]*#[    ]*define[       ][      ]*/ /
12457
t def
12458
d
12459
:def
12460
s/\\$//
12461
t bsnl
12462
s/["\\]/\\&/g
12463
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12464
D["\1"]=" \3"/p
12465
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12466
d
12467
:bsnl
12468
s/["\\]/\\&/g
12469
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12470
D["\1"]=" \3\\\\\\n"\\/p
12471
t cont
12472
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12473
t cont
12474
d
12475
:cont
12476
n
12477
s/.\{148\}/&'"$ac_delim"'/g
12478
t clear
12479
:clear
12480
s/\\$//
12481
t bsnlc
12482
s/["\\]/\\&/g; s/^/"/; s/$/"/p
12483
d
12484
:bsnlc
12485
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12486
b cont
12487
' 
12488
s/'"$ac_delim"'/"\\\
12489
"/g' >>$CONFIG_STATUS || ac_write_fail=1
12490
 
12491
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12492
  for (key in D) D_is_set[key] = 1
12493
  FS = ""
12494
}
12495
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12496
  line = \$ 0
12497
  split(line, arg, " ")
12498
  if (arg[1] == "#") {
12499
    defundef = arg[2]
12500
    mac1 = arg[3]
12501
  } else {
12502
    defundef = substr(arg[1], 2)
12503
    mac1 = arg[2]
12504
  }
12505
  split(mac1, mac2, "(") #)
12506
  macro = mac2[1]
12507
  prefix = substr(line, 1, index(line, defundef) - 1)
12508
  if (D_is_set[macro]) {
12509
    # Preserve the white space surrounding the "#".
12510
    print prefix "define", macro P[macro] D[macro]
12511
    next
12512
  } else {
12513
    # Replace #undef with comments.  This is necessary, for example,
12514
    # in the case of _POSIX_SOURCE, which is predefined and required
12515
    # on some systems where configure will not decide to define it.
12516
    if (defundef == "undef") {
12517
      print "/*", prefix defundef, macro, "*/"
12518
      next
12519
    }
12520
  }
12521
}
12522
{ print }
12523
_ACAWK
12524
_ACEOF
12525
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12526 346 jeremybenn
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12527 90 jeremybenn
fi # test -n "$CONFIG_HEADERS"
12528
 
12529
 
12530
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12531
shift
12532
for ac_tag
12533
do
12534
  case $ac_tag in
12535
  :[FHLC]) ac_mode=$ac_tag; continue;;
12536
  esac
12537
  case $ac_mode$ac_tag in
12538
  :[FHL]*:*);;
12539 346 jeremybenn
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12540 90 jeremybenn
  :[FH]-) ac_tag=-:-;;
12541
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12542
  esac
12543
  ac_save_IFS=$IFS
12544
  IFS=:
12545
  set x $ac_tag
12546
  IFS=$ac_save_IFS
12547
  shift
12548
  ac_file=$1
12549
  shift
12550
 
12551
  case $ac_mode in
12552
  :L) ac_source=$1;;
12553
  :[FH])
12554
    ac_file_inputs=
12555
    for ac_f
12556
    do
12557
      case $ac_f in
12558
      -) ac_f="$tmp/stdin";;
12559
      *) # Look for the file first in the build tree, then in the source tree
12560
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
12561
         # because $ac_f cannot contain `:'.
12562
         test -f "$ac_f" ||
12563
           case $ac_f in
12564
           [\\/$]*) false;;
12565
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12566
           esac ||
12567 346 jeremybenn
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12568 90 jeremybenn
      esac
12569
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12570 346 jeremybenn
      as_fn_append ac_file_inputs " '$ac_f'"
12571 90 jeremybenn
    done
12572
 
12573
    # Let's still pretend it is `configure' which instantiates (i.e., don't
12574
    # use $as_me), people would be surprised to read:
12575
    #    /* config.h.  Generated by config.status.  */
12576
    configure_input='Generated from '`
12577
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12578
        `' by configure.'
12579
    if test x"$ac_file" != x-; then
12580
      configure_input="$ac_file.  $configure_input"
12581 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12582 90 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
12583
    fi
12584
    # Neutralize special characters interpreted by sed in replacement strings.
12585
    case $configure_input in #(
12586
    *\&* | *\|* | *\\* )
12587
       ac_sed_conf_input=`$as_echo "$configure_input" |
12588
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12589
    *) ac_sed_conf_input=$configure_input;;
12590
    esac
12591
 
12592
    case $ac_tag in
12593
    *:-:* | *:-) cat >"$tmp/stdin" \
12594 346 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12595 90 jeremybenn
    esac
12596
    ;;
12597
  esac
12598
 
12599
  ac_dir=`$as_dirname -- "$ac_file" ||
12600
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12601
         X"$ac_file" : 'X\(//\)[^/]' \| \
12602
         X"$ac_file" : 'X\(//\)$' \| \
12603
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12604
$as_echo X"$ac_file" |
12605
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12606
            s//\1/
12607
            q
12608
          }
12609
          /^X\(\/\/\)[^/].*/{
12610
            s//\1/
12611
            q
12612
          }
12613
          /^X\(\/\/\)$/{
12614
            s//\1/
12615
            q
12616
          }
12617
          /^X\(\/\).*/{
12618
            s//\1/
12619
            q
12620
          }
12621
          s/.*/./; q'`
12622 346 jeremybenn
  as_dir="$ac_dir"; as_fn_mkdir_p
12623 90 jeremybenn
  ac_builddir=.
12624
 
12625
case "$ac_dir" in
12626
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12627
*)
12628
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12629
  # A ".." for each directory in $ac_dir_suffix.
12630
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12631
  case $ac_top_builddir_sub in
12632
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12633
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12634
  esac ;;
12635
esac
12636
ac_abs_top_builddir=$ac_pwd
12637
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12638
# for backward compatibility:
12639
ac_top_builddir=$ac_top_build_prefix
12640
 
12641
case $srcdir in
12642
  .)  # We are building in place.
12643
    ac_srcdir=.
12644
    ac_top_srcdir=$ac_top_builddir_sub
12645
    ac_abs_top_srcdir=$ac_pwd ;;
12646
  [\\/]* | ?:[\\/]* )  # Absolute name.
12647
    ac_srcdir=$srcdir$ac_dir_suffix;
12648
    ac_top_srcdir=$srcdir
12649
    ac_abs_top_srcdir=$srcdir ;;
12650
  *) # Relative name.
12651
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12652
    ac_top_srcdir=$ac_top_build_prefix$srcdir
12653
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12654
esac
12655
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12656
 
12657
 
12658
  case $ac_mode in
12659
  :F)
12660
  #
12661
  # CONFIG_FILE
12662
  #
12663
 
12664
  case $INSTALL in
12665
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12666
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12667
  esac
12668
  ac_MKDIR_P=$MKDIR_P
12669
  case $MKDIR_P in
12670
  [\\/$]* | ?:[\\/]* ) ;;
12671
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12672
  esac
12673
_ACEOF
12674
 
12675
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12676
# If the template does not know about datarootdir, expand it.
12677
# FIXME: This hack should be removed a few years after 2.60.
12678
ac_datarootdir_hack=; ac_datarootdir_seen=
12679
ac_sed_dataroot='
12680
/datarootdir/ {
12681
  p
12682
  q
12683
}
12684
/@datadir@/p
12685
/@docdir@/p
12686
/@infodir@/p
12687
/@localedir@/p
12688 346 jeremybenn
/@mandir@/p'
12689 90 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12690
*datarootdir*) ac_datarootdir_seen=yes;;
12691
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12692 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12693 90 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12694
_ACEOF
12695
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12696
  ac_datarootdir_hack='
12697
  s&@datadir@&$datadir&g
12698
  s&@docdir@&$docdir&g
12699
  s&@infodir@&$infodir&g
12700
  s&@localedir@&$localedir&g
12701
  s&@mandir@&$mandir&g
12702 346 jeremybenn
  s&\\\${datarootdir}&$datarootdir&g' ;;
12703 90 jeremybenn
esac
12704
_ACEOF
12705
 
12706
# Neutralize VPATH when `$srcdir' = `.'.
12707
# Shell code in configure.ac might set extrasub.
12708
# FIXME: do we really want to maintain this feature?
12709
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12710
ac_sed_extra="$ac_vpsub
12711
$extrasub
12712
_ACEOF
12713
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12714
:t
12715
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12716
s|@configure_input@|$ac_sed_conf_input|;t t
12717
s&@top_builddir@&$ac_top_builddir_sub&;t t
12718
s&@top_build_prefix@&$ac_top_build_prefix&;t t
12719
s&@srcdir@&$ac_srcdir&;t t
12720
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12721
s&@top_srcdir@&$ac_top_srcdir&;t t
12722
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12723
s&@builddir@&$ac_builddir&;t t
12724
s&@abs_builddir@&$ac_abs_builddir&;t t
12725
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12726
s&@INSTALL@&$ac_INSTALL&;t t
12727
s&@MKDIR_P@&$ac_MKDIR_P&;t t
12728
$ac_datarootdir_hack
12729
"
12730
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12731 346 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
12732 90 jeremybenn
 
12733
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12734
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12735
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12736 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12737 90 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
12738
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12739
which seems to be undefined.  Please make sure it is defined." >&2;}
12740
 
12741
  rm -f "$tmp/stdin"
12742
  case $ac_file in
12743
  -) cat "$tmp/out" && rm -f "$tmp/out";;
12744
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12745
  esac \
12746 346 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
12747 90 jeremybenn
 ;;
12748
  :H)
12749
  #
12750
  # CONFIG_HEADER
12751
  #
12752
  if test x"$ac_file" != x-; then
12753
    {
12754
      $as_echo "/* $configure_input  */" \
12755
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12756
    } >"$tmp/config.h" \
12757 346 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5
12758 90 jeremybenn
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12759 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12760 90 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
12761
    else
12762
      rm -f "$ac_file"
12763
      mv "$tmp/config.h" "$ac_file" \
12764 346 jeremybenn
        || as_fn_error "could not create $ac_file" "$LINENO" 5
12765 90 jeremybenn
    fi
12766
  else
12767
    $as_echo "/* $configure_input  */" \
12768
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12769 346 jeremybenn
      || as_fn_error "could not create -" "$LINENO" 5
12770 90 jeremybenn
  fi
12771
# Compute "$ac_file"'s index in $config_headers.
12772
_am_arg="$ac_file"
12773
_am_stamp_count=1
12774
for _am_header in $config_headers :; do
12775
  case $_am_header in
12776
    $_am_arg | $_am_arg:* )
12777
      break ;;
12778
    * )
12779
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12780
  esac
12781
done
12782
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12783
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12784
         X"$_am_arg" : 'X\(//\)[^/]' \| \
12785
         X"$_am_arg" : 'X\(//\)$' \| \
12786
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12787
$as_echo X"$_am_arg" |
12788
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12789
            s//\1/
12790
            q
12791
          }
12792
          /^X\(\/\/\)[^/].*/{
12793
            s//\1/
12794
            q
12795
          }
12796
          /^X\(\/\/\)$/{
12797
            s//\1/
12798
            q
12799
          }
12800
          /^X\(\/\).*/{
12801
            s//\1/
12802
            q
12803
          }
12804
          s/.*/./; q'`/stamp-h$_am_stamp_count
12805
 ;;
12806
 
12807 346 jeremybenn
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12808 90 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
12809
 ;;
12810
  esac
12811
 
12812
 
12813
  case $ac_file$ac_mode in
12814
    "libtool":C)
12815
 
12816
    # See if we are running on zsh, and set the options which allow our
12817
    # commands through without removal of \ escapes.
12818
    if test -n "${ZSH_VERSION+set}" ; then
12819
      setopt NO_GLOB_SUBST
12820
    fi
12821
 
12822
    cfgfile="${ofile}T"
12823
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12824
    $RM "$cfgfile"
12825
 
12826
    cat <<_LT_EOF >> "$cfgfile"
12827
#! $SHELL
12828
 
12829
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12830
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12831
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12832
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12833
#
12834
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12835
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12836
#   Written by Gordon Matzigkeit, 1996
12837
#
12838
#   This file is part of GNU Libtool.
12839
#
12840
# GNU Libtool is free software; you can redistribute it and/or
12841
# modify it under the terms of the GNU General Public License as
12842
# published by the Free Software Foundation; either version 2 of
12843
# the License, or (at your option) any later version.
12844
#
12845
# As a special exception to the GNU General Public License,
12846
# if you distribute this file as part of a program or library that
12847
# is built using GNU Libtool, you may include this file under the
12848
# same distribution terms that you use for the rest of that program.
12849
#
12850
# GNU Libtool is distributed in the hope that it will be useful,
12851
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12852
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12853
# GNU General Public License for more details.
12854
#
12855
# You should have received a copy of the GNU General Public License
12856
# along with GNU Libtool; see the file COPYING.  If not, a copy
12857
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12858
# obtained by writing to the Free Software Foundation, Inc.,
12859
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12860
 
12861
 
12862
# The names of the tagged configurations supported by this script.
12863
available_tags=""
12864
 
12865
# ### BEGIN LIBTOOL CONFIG
12866
 
12867
# Which release of libtool.m4 was used?
12868
macro_version=$macro_version
12869
macro_revision=$macro_revision
12870
 
12871
# Whether or not to build shared libraries.
12872
build_libtool_libs=$enable_shared
12873
 
12874
# Whether or not to build static libraries.
12875
build_old_libs=$enable_static
12876
 
12877
# What type of objects to build.
12878
pic_mode=$pic_mode
12879
 
12880
# Whether or not to optimize for fast installation.
12881
fast_install=$enable_fast_install
12882
 
12883
# The host system.
12884
host_alias=$host_alias
12885
host=$host
12886
host_os=$host_os
12887
 
12888
# The build system.
12889
build_alias=$build_alias
12890
build=$build
12891
build_os=$build_os
12892
 
12893
# A sed program that does not truncate output.
12894
SED=$lt_SED
12895
 
12896
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12897
Xsed="\$SED -e 1s/^X//"
12898
 
12899
# A grep program that handles long lines.
12900
GREP=$lt_GREP
12901
 
12902
# An ERE matcher.
12903
EGREP=$lt_EGREP
12904
 
12905
# A literal string matcher.
12906
FGREP=$lt_FGREP
12907
 
12908
# A BSD- or MS-compatible name lister.
12909
NM=$lt_NM
12910
 
12911
# Whether we need soft or hard links.
12912
LN_S=$lt_LN_S
12913
 
12914
# What is the maximum length of a command?
12915
max_cmd_len=$max_cmd_len
12916
 
12917
# Object file suffix (normally "o").
12918
objext=$ac_objext
12919
 
12920
# Executable file suffix (normally "").
12921
exeext=$exeext
12922
 
12923
# whether the shell understands "unset".
12924
lt_unset=$lt_unset
12925
 
12926
# turn spaces into newlines.
12927
SP2NL=$lt_lt_SP2NL
12928
 
12929
# turn newlines into spaces.
12930
NL2SP=$lt_lt_NL2SP
12931
 
12932
# How to create reloadable object files.
12933
reload_flag=$lt_reload_flag
12934
reload_cmds=$lt_reload_cmds
12935
 
12936
# An object symbol dumper.
12937
OBJDUMP=$lt_OBJDUMP
12938
 
12939
# Method to check whether dependent libraries are shared objects.
12940
deplibs_check_method=$lt_deplibs_check_method
12941
 
12942
# Command to use when deplibs_check_method == "file_magic".
12943
file_magic_cmd=$lt_file_magic_cmd
12944
 
12945
# The archiver.
12946
AR=$lt_AR
12947
AR_FLAGS=$lt_AR_FLAGS
12948
 
12949
# A symbol stripping program.
12950
STRIP=$lt_STRIP
12951
 
12952
# Commands used to install an old-style archive.
12953
RANLIB=$lt_RANLIB
12954
old_postinstall_cmds=$lt_old_postinstall_cmds
12955
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12956
 
12957
# A C compiler.
12958
LTCC=$lt_CC
12959
 
12960
# LTCC compiler flags.
12961
LTCFLAGS=$lt_CFLAGS
12962
 
12963
# Take the output of nm and produce a listing of raw symbols and C names.
12964
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12965
 
12966
# Transform the output of nm in a proper C declaration.
12967
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12968
 
12969
# Transform the output of nm in a C name address pair.
12970
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12971
 
12972
# Transform the output of nm in a C name address pair when lib prefix is needed.
12973
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12974
 
12975
# The name of the directory that contains temporary libtool files.
12976
objdir=$objdir
12977
 
12978
# Shell to use when invoking shell scripts.
12979
SHELL=$lt_SHELL
12980
 
12981
# An echo program that does not interpret backslashes.
12982
ECHO=$lt_ECHO
12983
 
12984
# Used to examine libraries when file_magic_cmd begins with "file".
12985
MAGIC_CMD=$MAGIC_CMD
12986
 
12987
# Must we lock files when doing compilation?
12988
need_locks=$lt_need_locks
12989
 
12990
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12991
DSYMUTIL=$lt_DSYMUTIL
12992
 
12993
# Tool to change global to local symbols on Mac OS X.
12994
NMEDIT=$lt_NMEDIT
12995
 
12996
# Tool to manipulate fat objects and archives on Mac OS X.
12997
LIPO=$lt_LIPO
12998
 
12999
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13000
OTOOL=$lt_OTOOL
13001
 
13002
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13003
OTOOL64=$lt_OTOOL64
13004
 
13005
# Old archive suffix (normally "a").
13006
libext=$libext
13007
 
13008
# Shared library suffix (normally ".so").
13009
shrext_cmds=$lt_shrext_cmds
13010
 
13011
# The commands to extract the exported symbol list from a shared archive.
13012
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13013
 
13014
# Variables whose values should be saved in libtool wrapper scripts and
13015
# restored at link time.
13016
variables_saved_for_relink=$lt_variables_saved_for_relink
13017
 
13018
# Do we need the "lib" prefix for modules?
13019
need_lib_prefix=$need_lib_prefix
13020
 
13021
# Do we need a version for libraries?
13022
need_version=$need_version
13023
 
13024
# Library versioning type.
13025
version_type=$version_type
13026
 
13027
# Shared library runtime path variable.
13028
runpath_var=$runpath_var
13029
 
13030
# Shared library path variable.
13031
shlibpath_var=$shlibpath_var
13032
 
13033
# Is shlibpath searched before the hard-coded library search path?
13034
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13035
 
13036
# Format of library name prefix.
13037
libname_spec=$lt_libname_spec
13038
 
13039
# List of archive names.  First name is the real one, the rest are links.
13040
# The last name is the one that the linker finds with -lNAME
13041
library_names_spec=$lt_library_names_spec
13042
 
13043
# The coded name of the library, if different from the real name.
13044
soname_spec=$lt_soname_spec
13045
 
13046
# Command to use after installation of a shared archive.
13047
postinstall_cmds=$lt_postinstall_cmds
13048
 
13049
# Command to use after uninstallation of a shared archive.
13050
postuninstall_cmds=$lt_postuninstall_cmds
13051
 
13052
# Commands used to finish a libtool library installation in a directory.
13053
finish_cmds=$lt_finish_cmds
13054
 
13055
# As "finish_cmds", except a single script fragment to be evaled but
13056
# not shown.
13057
finish_eval=$lt_finish_eval
13058
 
13059
# Whether we should hardcode library paths into libraries.
13060
hardcode_into_libs=$hardcode_into_libs
13061
 
13062
# Compile-time system search path for libraries.
13063
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13064
 
13065
# Run-time system search path for libraries.
13066
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13067
 
13068
# Whether dlopen is supported.
13069
dlopen_support=$enable_dlopen
13070
 
13071
# Whether dlopen of programs is supported.
13072
dlopen_self=$enable_dlopen_self
13073
 
13074
# Whether dlopen of statically linked programs is supported.
13075
dlopen_self_static=$enable_dlopen_self_static
13076
 
13077
# Commands to strip libraries.
13078
old_striplib=$lt_old_striplib
13079
striplib=$lt_striplib
13080
 
13081
 
13082
# The linker used to build libraries.
13083
LD=$lt_LD
13084
 
13085
# Commands used to build an old-style archive.
13086
old_archive_cmds=$lt_old_archive_cmds
13087
 
13088
# A language specific compiler.
13089
CC=$lt_compiler
13090
 
13091
# Is the compiler the GNU compiler?
13092
with_gcc=$GCC
13093
 
13094
# Compiler flag to turn off builtin functions.
13095
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13096
 
13097
# How to pass a linker flag through the compiler.
13098
wl=$lt_lt_prog_compiler_wl
13099
 
13100
# Additional compiler flags for building library objects.
13101
pic_flag=$lt_lt_prog_compiler_pic
13102
 
13103
# Compiler flag to prevent dynamic linking.
13104
link_static_flag=$lt_lt_prog_compiler_static
13105
 
13106
# Does compiler simultaneously support -c and -o options?
13107
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13108
 
13109
# Whether or not to add -lc for building shared libraries.
13110
build_libtool_need_lc=$archive_cmds_need_lc
13111
 
13112
# Whether or not to disallow shared libs when runtime libs are static.
13113
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13114
 
13115
# Compiler flag to allow reflexive dlopens.
13116
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13117
 
13118
# Compiler flag to generate shared objects directly from archives.
13119
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13120
 
13121
# Whether the compiler copes with passing no objects directly.
13122
compiler_needs_object=$lt_compiler_needs_object
13123
 
13124
# Create an old-style archive from a shared archive.
13125
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13126
 
13127
# Create a temporary old-style archive to link instead of a shared archive.
13128
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13129
 
13130
# Commands used to build a shared archive.
13131
archive_cmds=$lt_archive_cmds
13132
archive_expsym_cmds=$lt_archive_expsym_cmds
13133
 
13134
# Commands used to build a loadable module if different from building
13135
# a shared archive.
13136
module_cmds=$lt_module_cmds
13137
module_expsym_cmds=$lt_module_expsym_cmds
13138
 
13139
# Whether we are building with GNU ld or not.
13140
with_gnu_ld=$lt_with_gnu_ld
13141
 
13142
# Flag that allows shared libraries with undefined symbols to be built.
13143
allow_undefined_flag=$lt_allow_undefined_flag
13144
 
13145
# Flag that enforces no undefined symbols.
13146
no_undefined_flag=$lt_no_undefined_flag
13147
 
13148
# Flag to hardcode \$libdir into a binary during linking.
13149
# This must work even if \$libdir does not exist
13150
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13151
 
13152
# If ld is used when linking, flag to hardcode \$libdir into a binary
13153
# during linking.  This must work even if \$libdir does not exist.
13154
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13155
 
13156
# Whether we need a single "-rpath" flag with a separated argument.
13157
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13158
 
13159
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13160
# DIR into the resulting binary.
13161
hardcode_direct=$hardcode_direct
13162
 
13163
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13164
# DIR into the resulting binary and the resulting library dependency is
13165
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13166
# library is relocated.
13167
hardcode_direct_absolute=$hardcode_direct_absolute
13168
 
13169
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13170
# into the resulting binary.
13171
hardcode_minus_L=$hardcode_minus_L
13172
 
13173
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13174
# into the resulting binary.
13175
hardcode_shlibpath_var=$hardcode_shlibpath_var
13176
 
13177
# Set to "yes" if building a shared library automatically hardcodes DIR
13178
# into the library and all subsequent libraries and executables linked
13179
# against it.
13180
hardcode_automatic=$hardcode_automatic
13181
 
13182
# Set to yes if linker adds runtime paths of dependent libraries
13183
# to runtime path list.
13184
inherit_rpath=$inherit_rpath
13185
 
13186
# Whether libtool must link a program against all its dependency libraries.
13187
link_all_deplibs=$link_all_deplibs
13188
 
13189
# Fix the shell variable \$srcfile for the compiler.
13190
fix_srcfile_path=$lt_fix_srcfile_path
13191
 
13192
# Set to "yes" if exported symbols are required.
13193
always_export_symbols=$always_export_symbols
13194
 
13195
# The commands to list exported symbols.
13196
export_symbols_cmds=$lt_export_symbols_cmds
13197
 
13198
# Symbols that should not be listed in the preloaded symbols.
13199
exclude_expsyms=$lt_exclude_expsyms
13200
 
13201
# Symbols that must always be exported.
13202
include_expsyms=$lt_include_expsyms
13203
 
13204
# Commands necessary for linking programs (against libraries) with templates.
13205
prelink_cmds=$lt_prelink_cmds
13206
 
13207
# Specify filename containing input files.
13208
file_list_spec=$lt_file_list_spec
13209
 
13210
# How to hardcode a shared library path into an executable.
13211
hardcode_action=$hardcode_action
13212
 
13213
# ### END LIBTOOL CONFIG
13214
 
13215
_LT_EOF
13216
 
13217
  case $host_os in
13218
  aix3*)
13219
    cat <<\_LT_EOF >> "$cfgfile"
13220
# AIX sometimes has problems with the GCC collect2 program.  For some
13221
# reason, if we set the COLLECT_NAMES environment variable, the problems
13222
# vanish in a puff of smoke.
13223
if test "X${COLLECT_NAMES+set}" != Xset; then
13224
  COLLECT_NAMES=
13225
  export COLLECT_NAMES
13226
fi
13227
_LT_EOF
13228
    ;;
13229
  esac
13230
 
13231
 
13232
ltmain="$ac_aux_dir/ltmain.sh"
13233
 
13234
 
13235
  # We use sed instead of cat because bash on DJGPP gets confused if
13236
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13237
  # text mode, it properly converts lines to CR/LF.  This bash problem
13238
  # is reportedly fixed, but why not run on old versions too?
13239
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13240
    || (rm -f "$cfgfile"; exit 1)
13241
 
13242
  case $xsi_shell in
13243
  yes)
13244
    cat << \_LT_EOF >> "$cfgfile"
13245
 
13246
# func_dirname file append nondir_replacement
13247
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13248
# otherwise set result to NONDIR_REPLACEMENT.
13249
func_dirname ()
13250
{
13251
  case ${1} in
13252
    */*) func_dirname_result="${1%/*}${2}" ;;
13253
    *  ) func_dirname_result="${3}" ;;
13254
  esac
13255
}
13256
 
13257
# func_basename file
13258
func_basename ()
13259
{
13260
  func_basename_result="${1##*/}"
13261
}
13262
 
13263
# func_dirname_and_basename file append nondir_replacement
13264
# perform func_basename and func_dirname in a single function
13265
# call:
13266
#   dirname:  Compute the dirname of FILE.  If nonempty,
13267
#             add APPEND to the result, otherwise set result
13268
#             to NONDIR_REPLACEMENT.
13269
#             value returned in "$func_dirname_result"
13270
#   basename: Compute filename of FILE.
13271
#             value retuned in "$func_basename_result"
13272
# Implementation must be kept synchronized with func_dirname
13273
# and func_basename. For efficiency, we do not delegate to
13274
# those functions but instead duplicate the functionality here.
13275
func_dirname_and_basename ()
13276
{
13277
  case ${1} in
13278
    */*) func_dirname_result="${1%/*}${2}" ;;
13279
    *  ) func_dirname_result="${3}" ;;
13280
  esac
13281
  func_basename_result="${1##*/}"
13282
}
13283
 
13284
# func_stripname prefix suffix name
13285
# strip PREFIX and SUFFIX off of NAME.
13286
# PREFIX and SUFFIX must not contain globbing or regex special
13287
# characters, hashes, percent signs, but SUFFIX may contain a leading
13288
# dot (in which case that matches only a dot).
13289
func_stripname ()
13290
{
13291
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13292
  # positional parameters, so assign one to ordinary parameter first.
13293
  func_stripname_result=${3}
13294
  func_stripname_result=${func_stripname_result#"${1}"}
13295
  func_stripname_result=${func_stripname_result%"${2}"}
13296
}
13297
 
13298
# func_opt_split
13299
func_opt_split ()
13300
{
13301
  func_opt_split_opt=${1%%=*}
13302
  func_opt_split_arg=${1#*=}
13303
}
13304
 
13305
# func_lo2o object
13306
func_lo2o ()
13307
{
13308
  case ${1} in
13309
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13310
    *)    func_lo2o_result=${1} ;;
13311
  esac
13312
}
13313
 
13314
# func_xform libobj-or-source
13315
func_xform ()
13316
{
13317
  func_xform_result=${1%.*}.lo
13318
}
13319
 
13320
# func_arith arithmetic-term...
13321
func_arith ()
13322
{
13323
  func_arith_result=$(( $* ))
13324
}
13325
 
13326
# func_len string
13327
# STRING may not start with a hyphen.
13328
func_len ()
13329
{
13330
  func_len_result=${#1}
13331
}
13332
 
13333
_LT_EOF
13334
    ;;
13335
  *) # Bourne compatible functions.
13336
    cat << \_LT_EOF >> "$cfgfile"
13337
 
13338
# func_dirname file append nondir_replacement
13339
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13340
# otherwise set result to NONDIR_REPLACEMENT.
13341
func_dirname ()
13342
{
13343
  # Extract subdirectory from the argument.
13344
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13345
  if test "X$func_dirname_result" = "X${1}"; then
13346
    func_dirname_result="${3}"
13347
  else
13348
    func_dirname_result="$func_dirname_result${2}"
13349
  fi
13350
}
13351
 
13352
# func_basename file
13353
func_basename ()
13354
{
13355
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13356
}
13357
 
13358
 
13359
# func_stripname prefix suffix name
13360
# strip PREFIX and SUFFIX off of NAME.
13361
# PREFIX and SUFFIX must not contain globbing or regex special
13362
# characters, hashes, percent signs, but SUFFIX may contain a leading
13363
# dot (in which case that matches only a dot).
13364
# func_strip_suffix prefix name
13365
func_stripname ()
13366
{
13367
  case ${2} in
13368
    .*) func_stripname_result=`$ECHO "X${3}" \
13369
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13370
    *)  func_stripname_result=`$ECHO "X${3}" \
13371
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13372
  esac
13373
}
13374
 
13375
# sed scripts:
13376
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13377
my_sed_long_arg='1s/^-[^=]*=//'
13378
 
13379
# func_opt_split
13380
func_opt_split ()
13381
{
13382
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13383
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13384
}
13385
 
13386
# func_lo2o object
13387
func_lo2o ()
13388
{
13389
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13390
}
13391
 
13392
# func_xform libobj-or-source
13393
func_xform ()
13394
{
13395
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13396
}
13397
 
13398
# func_arith arithmetic-term...
13399
func_arith ()
13400
{
13401
  func_arith_result=`expr "$@"`
13402
}
13403
 
13404
# func_len string
13405
# STRING may not start with a hyphen.
13406
func_len ()
13407
{
13408
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13409
}
13410
 
13411
_LT_EOF
13412
esac
13413
 
13414
case $lt_shell_append in
13415
  yes)
13416
    cat << \_LT_EOF >> "$cfgfile"
13417
 
13418
# func_append var value
13419
# Append VALUE to the end of shell variable VAR.
13420
func_append ()
13421
{
13422
  eval "$1+=\$2"
13423
}
13424
_LT_EOF
13425
    ;;
13426
  *)
13427
    cat << \_LT_EOF >> "$cfgfile"
13428
 
13429
# func_append var value
13430
# Append VALUE to the end of shell variable VAR.
13431
func_append ()
13432
{
13433
  eval "$1=\$$1\$2"
13434
}
13435
 
13436
_LT_EOF
13437
    ;;
13438
  esac
13439
 
13440
 
13441
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13442
    || (rm -f "$cfgfile"; exit 1)
13443
 
13444
  mv -f "$cfgfile" "$ofile" ||
13445
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13446
  chmod +x "$ofile"
13447
 
13448
 ;;
13449
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13450
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13451
  # are listed without --file.  Let's play safe and only enable the eval
13452
  # if we detect the quoting.
13453
  case $CONFIG_FILES in
13454
  *\'*) eval set x "$CONFIG_FILES" ;;
13455
  *)   set x $CONFIG_FILES ;;
13456
  esac
13457
  shift
13458
  for mf
13459
  do
13460
    # Strip MF so we end up with the name of the file.
13461
    mf=`echo "$mf" | sed -e 's/:.*$//'`
13462
    # Check whether this is an Automake generated Makefile or not.
13463
    # We used to match only the files named `Makefile.in', but
13464
    # some people rename them; so instead we look at the file content.
13465
    # Grep'ing the first line is not enough: some people post-process
13466
    # each Makefile.in and add a new line on top of each file to say so.
13467
    # Grep'ing the whole file is not good either: AIX grep has a line
13468
    # limit of 2048, but all sed's we know have understand at least 4000.
13469
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13470
      dirpart=`$as_dirname -- "$mf" ||
13471
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13472
         X"$mf" : 'X\(//\)[^/]' \| \
13473
         X"$mf" : 'X\(//\)$' \| \
13474
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13475
$as_echo X"$mf" |
13476
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13477
            s//\1/
13478
            q
13479
          }
13480
          /^X\(\/\/\)[^/].*/{
13481
            s//\1/
13482
            q
13483
          }
13484
          /^X\(\/\/\)$/{
13485
            s//\1/
13486
            q
13487
          }
13488
          /^X\(\/\).*/{
13489
            s//\1/
13490
            q
13491
          }
13492
          s/.*/./; q'`
13493
    else
13494
      continue
13495
    fi
13496
    # Extract the definition of DEPDIR, am__include, and am__quote
13497
    # from the Makefile without running `make'.
13498
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13499
    test -z "$DEPDIR" && continue
13500
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13501
    test -z "am__include" && continue
13502
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13503
    # When using ansi2knr, U may be empty or an underscore; expand it
13504
    U=`sed -n 's/^U = //p' < "$mf"`
13505
    # Find all dependency output files, they are included files with
13506
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13507
    # simplest approach to changing $(DEPDIR) to its actual value in the
13508
    # expansion.
13509
    for file in `sed -n "
13510
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13511
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13512
      # Make sure the directory exists.
13513
      test -f "$dirpart/$file" && continue
13514
      fdir=`$as_dirname -- "$file" ||
13515
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13516
         X"$file" : 'X\(//\)[^/]' \| \
13517
         X"$file" : 'X\(//\)$' \| \
13518
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13519
$as_echo X"$file" |
13520
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13521
            s//\1/
13522
            q
13523
          }
13524
          /^X\(\/\/\)[^/].*/{
13525
            s//\1/
13526
            q
13527
          }
13528
          /^X\(\/\/\)$/{
13529
            s//\1/
13530
            q
13531
          }
13532
          /^X\(\/\).*/{
13533
            s//\1/
13534
            q
13535
          }
13536
          s/.*/./; q'`
13537 346 jeremybenn
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13538 90 jeremybenn
      # echo "creating $dirpart/$file"
13539
      echo '# dummy' > "$dirpart/$file"
13540
    done
13541
  done
13542
}
13543
 ;;
13544
 
13545
  esac
13546
done # for ac_tag
13547
 
13548
 
13549 346 jeremybenn
as_fn_exit 0
13550 90 jeremybenn
_ACEOF
13551
ac_clean_files=$ac_clean_files_save
13552
 
13553
test $ac_write_fail = 0 ||
13554 346 jeremybenn
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13555 90 jeremybenn
 
13556
 
13557
# configure is writing to config.log, and then calls config.status.
13558
# config.status does its own redirection, appending to config.log.
13559
# Unfortunately, on DOS this fails, as config.log is still kept open
13560
# by configure, so config.status won't be able to write to it; its
13561
# output is simply discarded.  So we exec the FD to /dev/null,
13562
# effectively closing config.log, so it can be properly (re)opened and
13563
# appended to by config.status.  When coming back to configure, we
13564
# need to make the FD available again.
13565
if test "$no_create" != yes; then
13566
  ac_cs_success=:
13567
  ac_config_status_args=
13568
  test "$silent" = yes &&
13569
    ac_config_status_args="$ac_config_status_args --quiet"
13570
  exec 5>/dev/null
13571
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13572
  exec 5>>config.log
13573
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13574
  # would make configure fail if this is the last instruction.
13575 346 jeremybenn
  $ac_cs_success || as_fn_exit $?
13576 90 jeremybenn
fi
13577
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13578 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13579 90 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13580
fi
13581
 

powered by: WebSVN 2.1.0

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